-
-
Notifications
You must be signed in to change notification settings - Fork 56.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Segmentation fault with Java and OpenCV 3.3.1 #10080
Comments
We need stack trace with debug symbols at least. What is about C++ OpenCV tests?
And runs? |
I'm not expert in C++ so I'm attaching the core dump file: also the runs: test file is simple:
Any guidelines on how to generate the stack trace is welcomed. |
Some tutorial from Internet.
|
appreciated
|
I didn't see here any OpenCV call. Please try to run
|
and attach output of |
please find:
output file with LD_DEBUG=files |
Seems it fails before calling any native OpenCV code.
|
Also try to build OpenCV with this CMake option: Do you have ffmpeg tool (try to run |
please find attached summary
|
I'm doing it, it will take couple of hours to compile on Raspberry. |
ok, it works now with ffmpeg disabled. maybe i will try to install ffmpeg and then recompile again |
Native C++ tests are good. Feel free to reopen this issue if you have additional information about what is wrong and should be fixed in OpenCV. |
I built on Debian for ARM and confirm that without the ffmpeg dependency the library loads fine. BTW I've also been struggling with this on the PI and other platforms for a few weeks. |
This is solved by building ffmpeg from src with "--disable-libopenmpt". you need to get older ffmpeg (3.3.4 is ok) |
This is probably caused by https://bugs.debian.org/916222 |
Hi,
I'm facing issues with installing OpenCV on raspberry. i have tried this configuration:
$ cmake -DWITH_QT=OFF
-DWITH_GTK=OFF
-D CMAKE_BUILD_TYPE=RELEASE
-D WITH_OPENCL=OFF
-D BUILD_PERF_TESTS=OFF
-D BUILD_SHARED_LIBS=OFF
-D OPENCV_EXTRA_MODULES_PATH=../../opencv_contrib-3.3.1/modules
-D JAVA_INCLUDE_PATH=$JAVA_HOME/include
-D JAVA_AWT_LIBRARY=$JAVA_HOME/lib/libawt.so
-D JAVA_JVM_LIBRARY=$JAVA_HOME/lib/server/libjvm.so
-D JAVA_AWT_INCLUDE_PATH=$JAVA_HOME/include
-D CMAKE_INSTALL_PREFIX=/usr/local ..
but i got Segmentation fault (core dumped) when initiating the library:
System.loadLibrary(Core.NATIVE_LIBRARY_NAME);
I tried it with both openjdk-9-jdk-headless and normal on raspberry pi 3 (stretch). i tried it as well with Oracle JDK 8 with the same output. i tried as well simpler configuration:
$ cmake -D CMAKE_BUILD_TYPE=RELEASE
-D CMAKE_INSTALL_PREFIX=/usr/local ..
it compiles without issues.
the Path is set to the correct location (libopencv_java331.so) :
-Djava.library.path=/usr/local/share/OpenCV/java/
any advise on how the troubleshoot this is appreciated.
The text was updated successfully, but these errors were encountered: