Segmentation fault on new AudioMediaPlayerComponent()
Posted: 18 Mar 2019 15:58
Hi,
I'm trying, in my java application, to use libvlc to play a audio stream.
My environment is this:
vlcj: (Info.java:70) | INFO | vlcj: 2.4.1
vlcj: (Info.java:71) | INFO | java: 1.8.0_181 Oracle Corporation
vlcj: (Info.java:72) | INFO | java home: /usr/lib/jvm/java-8-openjdk-armhf/jre
vlcj: (Info.java:73) | INFO | os: Linux 4.9.88-10179-ga2cc75c7c427-dirty arm
when I call this function:
AudioMediaPlayerComponent mediaPlayerComponent=new AudioMediaPlayerComponent()
my application fails and displays a segmentation fault error.
I reported all output when i run my application:
java -Djna.debug_load.jna=true -Djna.library.path=/usr/lib/arm-linux-gnueabihf -Dvlcj.log=DEBUG -jar player.jar
Mar 18, 2019 2:33:17 PM com.sun.jna.Native extractFromResourcePath
INFO: Looking in classpath from sun.misc.Launcher$AppClassLoader@d93b30 for /com/sun/jna/linux-arm/libjnidispatch.so
Mar 18, 2019 2:33:17 PM com.sun.jna.Native extractFromResourcePath
INFO: Found library resource at jar:file:/home/x_user/NetBeansProjects/player/dist/lib/jna-5.2.0.jar!/com/sun/jna/linux-arm/libjnidispatch.so
Mar 18, 2019 2:33:17 PM com.sun.jna.Native extractFromResourcePath
INFO: Extracting library to /root/.cache/JNA/temp/jna1853999980795198447.tmp
Mar 18, 2019 2:33:17 PM com.sun.jna.Native loadNativeDispatchLibraryFromClasspath
INFO: Trying /root/.cache/JNA/temp/jna1853999980795198447.tmp
Mar 18, 2019 2:33:17 PM com.sun.jna.Native loadNativeDispatchLibraryFromClasspath
INFO: Found jnidispatch at /root/.cache/JNA/temp/jna1853999980795198447.tmp
vlcj: (MediaPlayerFactory.java:131) | DEBUG | Trying workaround for Java7 on Linux
vlcj: (MediaPlayerFactory.java:137) | DEBUG | Attempting to load jawt...
vlcj: (MediaPlayerFactory.java:139) | DEBUG | ...loaded jawt
vlcj: (MediaPlayerFactory.java:147) | DEBUG | Java7 on Linux workaround complete.
vlcj: (Info.java:70) | INFO | vlcj: 2.4.1
vlcj: (Info.java:71) | INFO | java: 1.8.0_181 Oracle Corporation
vlcj: (Info.java:72) | INFO | java home: /usr/lib/jvm/java-8-openjdk-armhf/jre
vlcj: (Info.java:73) | INFO | os: Linux 4.9.88-10179-ga2cc75c7c427-dirty arm
vlcj: (LibVlcFactory.java:164) | INFO | vlc: 3.0.6 Vetinari, changeset 3.0.6-0-g5803e85f73
vlcj: (LibVlcFactory.java:165) | INFO | libvlc: /usr/lib/arm-linux-gnueabihf/libvlc.so
vlcj: (MediaPlayerFactory.java:236) | DEBUG | MediaPlayerFactory(libvlc=Proxy interface to Native Library </usr/lib/arm-linux-gnueabihf/libvlc.so@1646186488>,libvlcArgs=[--ignore-config, --no-plugins-cache, --quiet, --quiet-synchro, --intf=dummy])
vlcj: (MediaPlayerFactory.java:238) | DEBUG | jna.library.path=/usr/lib/arm-linux-gnueabihf
Segmentation fault
How can I resolve this issue?
I'm trying, in my java application, to use libvlc to play a audio stream.
My environment is this:
vlcj: (Info.java:70) | INFO | vlcj: 2.4.1
vlcj: (Info.java:71) | INFO | java: 1.8.0_181 Oracle Corporation
vlcj: (Info.java:72) | INFO | java home: /usr/lib/jvm/java-8-openjdk-armhf/jre
vlcj: (Info.java:73) | INFO | os: Linux 4.9.88-10179-ga2cc75c7c427-dirty arm
when I call this function:
AudioMediaPlayerComponent mediaPlayerComponent=new AudioMediaPlayerComponent()
my application fails and displays a segmentation fault error.
I reported all output when i run my application:
java -Djna.debug_load.jna=true -Djna.library.path=/usr/lib/arm-linux-gnueabihf -Dvlcj.log=DEBUG -jar player.jar
Mar 18, 2019 2:33:17 PM com.sun.jna.Native extractFromResourcePath
INFO: Looking in classpath from sun.misc.Launcher$AppClassLoader@d93b30 for /com/sun/jna/linux-arm/libjnidispatch.so
Mar 18, 2019 2:33:17 PM com.sun.jna.Native extractFromResourcePath
INFO: Found library resource at jar:file:/home/x_user/NetBeansProjects/player/dist/lib/jna-5.2.0.jar!/com/sun/jna/linux-arm/libjnidispatch.so
Mar 18, 2019 2:33:17 PM com.sun.jna.Native extractFromResourcePath
INFO: Extracting library to /root/.cache/JNA/temp/jna1853999980795198447.tmp
Mar 18, 2019 2:33:17 PM com.sun.jna.Native loadNativeDispatchLibraryFromClasspath
INFO: Trying /root/.cache/JNA/temp/jna1853999980795198447.tmp
Mar 18, 2019 2:33:17 PM com.sun.jna.Native loadNativeDispatchLibraryFromClasspath
INFO: Found jnidispatch at /root/.cache/JNA/temp/jna1853999980795198447.tmp
vlcj: (MediaPlayerFactory.java:131) | DEBUG | Trying workaround for Java7 on Linux
vlcj: (MediaPlayerFactory.java:137) | DEBUG | Attempting to load jawt...
vlcj: (MediaPlayerFactory.java:139) | DEBUG | ...loaded jawt
vlcj: (MediaPlayerFactory.java:147) | DEBUG | Java7 on Linux workaround complete.
vlcj: (Info.java:70) | INFO | vlcj: 2.4.1
vlcj: (Info.java:71) | INFO | java: 1.8.0_181 Oracle Corporation
vlcj: (Info.java:72) | INFO | java home: /usr/lib/jvm/java-8-openjdk-armhf/jre
vlcj: (Info.java:73) | INFO | os: Linux 4.9.88-10179-ga2cc75c7c427-dirty arm
vlcj: (LibVlcFactory.java:164) | INFO | vlc: 3.0.6 Vetinari, changeset 3.0.6-0-g5803e85f73
vlcj: (LibVlcFactory.java:165) | INFO | libvlc: /usr/lib/arm-linux-gnueabihf/libvlc.so
vlcj: (MediaPlayerFactory.java:236) | DEBUG | MediaPlayerFactory(libvlc=Proxy interface to Native Library </usr/lib/arm-linux-gnueabihf/libvlc.so@1646186488>,libvlcArgs=[--ignore-config, --no-plugins-cache, --quiet, --quiet-synchro, --intf=dummy])
vlcj: (MediaPlayerFactory.java:238) | DEBUG | jna.library.path=/usr/lib/arm-linux-gnueabihf
Segmentation fault
How can I resolve this issue?