Reputation: 25872
I started facing the following JVM crashes during my integration test build:
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0x00007f74e1add156, pid=17603, tid=0x00007f743ff9e700
#
# JRE version: Java(TM) SE Runtime Environment (8.0_162-b12) (build 1.8.0_162-b12)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (25.162-b12 mixed mode linux-amd64 compressed oops)
# Problematic frame:
# C [libc.so.6+0x14e156]
I use JNA wrappers for OpenCV and Leptonica libraries.
What can be a reason for this and how to fix it?
UPDATED
This is hs_err_pid18951.log
- https://files.fm/u/s9vnpw3d
I also suspect(but not sure right now) that this issue relates to parallel execution of OpenCV/Leptonica logic inside of the following code block:
Arrays.stream(fileList).parallel().forEach(f -> {
// OpenCV/Leptonica logic
}
Does it make sense and if so, how it can be fixed?
Upvotes: 2
Views: 2660
Reputation: 149
I had the same problem. I switched from alpine to Ubuntu and reinstall
apt install --reinstall libgtk2.0-0 -y
which solved my problem.
Upvotes: 1