1
0
mirror of https://github.com/imgproxy/imgproxy.git synced 2025-01-03 10:43:58 +02:00

Disable vector (orc causes random segfaults)

This commit is contained in:
DarthSim 2019-09-10 18:46:26 +06:00
parent 4bd7b72c7a
commit f30e065a96
2 changed files with 5 additions and 0 deletions

View File

@ -59,6 +59,10 @@ func initVips() {
C.vips_concurrency_set(1)
// Vector calculations cause SIGSEGV sometimes when working with JPEG.
// It's better to disable it since profit it quite small
C.vips_vector_set_enabled(0)
if len(os.Getenv("IMGPROXY_VIPS_LEAK_CHECK")) > 0 {
C.vips_leak_set(C.gboolean(1))
}

1
vips.h
View File

@ -2,6 +2,7 @@
#include <vips/vips.h>
#include <vips/vips7compat.h>
#include <vips/vector.h>
enum ImgproxyImageTypes {
UNKNOWN = 0,