Hi,
Bug report
I faced with a problem that application crashes due to high memory consuming trying to resize multiple images when spawning goroutines. A docker container exits with code 139.
I spawn goroutine for each Image.Process method call. The problem does not reproduce in a single thread without goroutines.
Also I noticed that it depends on how many cache memory seted via VipsCacheSetMaxMem. If the value is 0 application crashes almost instantly while if I set VipsCacheSetMaxMem(1000) it process several images before error.
Environment
(please complete the following information)
- OS: Alpine 3.14, Ubuntu 22.04
- Vips: 8.15.1
- bimg: 1.1.9
Additional context
Cant reproduce it on MacOS. The problem exists in Alpine or Ubuntu based docker containers.
Please let me know what other information I can provide.
Thanks!
Hi,
Bug report
I faced with a problem that application crashes due to high memory consuming trying to resize multiple images when spawning goroutines. A docker container exits with code 139.
I spawn goroutine for each Image.Process method call. The problem does not reproduce in a single thread without goroutines.
Also I noticed that it depends on how many cache memory seted via VipsCacheSetMaxMem. If the value is 0 application crashes almost instantly while if I set VipsCacheSetMaxMem(1000) it process several images before error.
Environment
(please complete the following information)
Additional context
Cant reproduce it on MacOS. The problem exists in Alpine or Ubuntu based docker containers.
Please let me know what other information I can provide.
Thanks!