Reputation: 11
I have written a java program that plays videos using vlcj on a frame. I use NativeDiscovery().discover() to get the libvlc libraries, the program works on windows but on ubuntu NativeDiscovery().doscover() returns false and I get a fatal error with the log file: This is just the beginning of the log file
A fatal error has been detected by the Java Runtime Environment:
SIGSEGV (0xb) at pc=0xb7674f98, pid=21800, tid=2195979072
JRE version: 7.0_25-b30
Java VM: OpenJDK Server VM (23.7-b01 mixed mode linux-x86 )
Problematic frame:
C [libc.so.6+0x12ef98] _IO_file_underflow+0x68
Filed to write core dump. Core dumps have been disabled. To enable core dumping, try ulimit -c unlimited" before starting Java again
If you would like to submit a bug report, please include
instructions on how to reproduce the bug and visit:
https://bugs.launchpad.net/ubuntu/+source/openjdk-7/
Thanks guys for your help.
Upvotes: 0
Views: 3114
Reputation: 609
In my case, installing Oracle JDK and setting up as default jdk has solved the problem.
Upvotes: 0
Reputation: 1
I encountered a similar problem. I solved it by removing openjdk and reinstalling it :)
Upvotes: 0
Reputation: 4146
This is almost certainly the same issue as https://github.com/caprica/vlcj/issues/62.
There is a long history of investigations into that issue which you can see in the comments at that github issue page.
The short version is that for some currently unknown reason:
Unfortunately, I do not know if the bug is in Ubuntu's LUA build or the Oracle/OpenJDK build of the Java7 JVM.
Switching from OpenJDK to Oracle's JDK or vice versa will likely make no difference.
Upvotes: 0
Reputation: 700
I had to face a bunch of similar errors as i worked with VLCJ last year. I dont know, if you have exactly the same error, as i had, but i can give you some hints:
I dont know, if this is useful to you, but as i was in your situation, i was grateful for every hint.
Upvotes: 1
Reputation: 9336
The reason could be the usage of the OpenJDK. Try the OracleJDK.
Upvotes: 0