Native Libraries Not Executable

Create issue
Issue #20 resolved
Fernando Mumbach created an issue

Java version: java version "1.7.0_65" Java(TM) SE Runtime Environment (build 1.7.0_65-b17) Java HotSpot(TM) 64-Bit Server VM (build 24.65-b04, mixed mode)

fermuch@orion ~ [1]> java -Dcom.xtansia.ccemu.path="local_data" -jar Downloads/ccemuredux-launcher.jar 
2014-10-12 01:41:39 [INFO] [CCEmuRedux Launcher] CCEmuRedux Launcher v1.0 started on linux...
2014-10-12 01:41:39 [INFO] [CCEmuRedux Launcher] Current time is Oct 12, 2014 1:41:39 AM
2014-10-12 01:41:39 [INFO] [CCEmuRedux Launcher] Using data directory: local_data
2014-10-12 01:41:39 [INFO] [CCEmuRedux Launcher] System.getProperty('os.name') == 'Linux'
2014-10-12 01:41:39 [INFO] [CCEmuRedux Launcher] System.getProperty('os.version') == '3.14.14-gentoo'
2014-10-12 01:41:39 [INFO] [CCEmuRedux Launcher] System.getProperty('os.arch') == 'amd64'
2014-10-12 01:41:39 [INFO] [CCEmuRedux Launcher] System.getProperty('java.version') == '1.7.0_65'
2014-10-12 01:41:39 [INFO] [CCEmuRedux Launcher] System.getProperty('java.vendor') == 'Oracle Corporation'
2014-10-12 01:41:39 [INFO] [CCEmuRedux Launcher] System.getProperty('sun.arch.data.model') == '64'
2014-10-12 01:41:41 [INFO] [CCEmuRedux Launcher] Download job 'CCEmuRedux & Libraries' started (16 threads, 11 files)
2014-10-12 01:41:41 [INFO] [CCEmuRedux Launcher] Attempting to download local_data/bin/jackson-core.jar for job 'CCEmuRedux & Libraries'... (try 0)
2014-10-12 01:41:41 [INFO] [CCEmuRedux Launcher] Making directory local_data/bin
2014-10-12 01:41:41 [INFO] [CCEmuRedux Launcher] Attempting to download local_data/bin/jackson-annotations.jar for job 'CCEmuRedux & Libraries'... (try 0)
2014-10-12 01:41:41 [INFO] [CCEmuRedux Launcher] Attempting to download local_data/bin/jackson-databind.jar for job 'CCEmuRedux & Libraries'... (try 0)
2014-10-12 01:41:42 [INFO] [CCEmuRedux Launcher] Attempting to download local_data/bin/guava.jar for job 'CCEmuRedux & Libraries'... (try 0)
2014-10-12 01:41:42 [INFO] [CCEmuRedux Launcher] Attempting to download local_data/bin/computercraft.jar for job 'CCEmuRedux & Libraries'... (try 0)
2014-10-12 01:41:42 [INFO] [CCEmuRedux Launcher] Attempting to download local_data/bin/gdx.jar for job 'CCEmuRedux & Libraries'... (try 0)
2014-10-12 01:41:42 [INFO] [CCEmuRedux Launcher] Attempting to download local_data/bin/gdx-backend-lwjgl.jar for job 'CCEmuRedux & Libraries'... (try 0)
2014-10-12 01:41:42 [INFO] [CCEmuRedux Launcher] Attempting to download local_data/bin/gdx-platform.jar for job 'CCEmuRedux & Libraries'... (try 0)
2014-10-12 01:41:42 [INFO] [CCEmuRedux Launcher] Attempting to download local_data/bin/lwjgl.jar for job 'CCEmuRedux & Libraries'... (try 0)
2014-10-12 01:41:42 [INFO] [CCEmuRedux Launcher] Attempting to download local_data/bin/lwjgl-platform.jar for job 'CCEmuRedux & Libraries'... (try 0)
2014-10-12 01:41:42 [INFO] [CCEmuRedux Launcher] Attempting to download local_data/bin/ccemuredux.jar for job 'CCEmuRedux & Libraries'... (try 0)
2014-10-12 01:41:43 [INFO] [CCEmuRedux Launcher] Finished downloading local_data/bin/jackson-core.jar for job 'CCEmuRedux & Libraries': Downloaded successfully and etag matched
2014-10-12 01:41:43 [INFO] [CCEmuRedux Launcher] Finished downloading local_data/bin/jackson-annotations.jar for job 'CCEmuRedux & Libraries': Downloaded successfully and etag matched
2014-10-12 01:41:44 [INFO] [CCEmuRedux Launcher] Finished downloading local_data/bin/gdx-platform.jar for job 'CCEmuRedux & Libraries': Downloaded successfully and etag matched
2014-10-12 01:41:46 [INFO] [CCEmuRedux Launcher] Finished downloading local_data/bin/gdx-backend-lwjgl.jar for job 'CCEmuRedux & Libraries': Downloaded successfully and etag matched
2014-10-12 01:41:46 [INFO] [CCEmuRedux Launcher] Finished downloading local_data/bin/gdx.jar for job 'CCEmuRedux & Libraries': Downloaded successfully and etag matched
2014-10-12 01:41:47 [INFO] [CCEmuRedux Launcher] Finished downloading local_data/bin/ccemuredux.jar for job 'CCEmuRedux & Libraries': Downloaded successfully and etag matched
2014-10-12 01:41:50 [INFO] [CCEmuRedux Launcher] Finished downloading local_data/bin/computercraft.jar for job 'CCEmuRedux & Libraries': Downloaded successfully and checksum matched
2014-10-12 01:41:53 [INFO] [CCEmuRedux Launcher] Finished downloading local_data/bin/lwjgl.jar for job 'CCEmuRedux & Libraries': Downloaded successfully and etag matched
2014-10-12 01:41:54 [INFO] [CCEmuRedux Launcher] Finished downloading local_data/bin/guava.jar for job 'CCEmuRedux & Libraries': Downloaded successfully and etag matched
2014-10-12 01:41:55 [INFO] [CCEmuRedux Launcher] Finished downloading local_data/bin/lwjgl-platform.jar for job 'CCEmuRedux & Libraries': Downloaded successfully and etag matched
2014-10-12 01:41:55 [INFO] [CCEmuRedux Launcher] Finished downloading local_data/bin/jackson-databind.jar for job 'CCEmuRedux & Libraries': Downloaded successfully and etag matched
2014-10-12 01:41:55 [INFO] [CCEmuRedux Launcher] 'CCEmuRedux & Libraries' finished successfully (took 0:00:13.435)
2014-10-12 01:41:55 [FINE] [CCEmuRedux Launcher] Running /opt/oracle-jdk-bin-1.7.0.65/jre/bin/java -Xmx512M -cp /home/fermuch/local_data/bin/jackson-core.jar:/home/fermuch/local_data/bin/jackson-annotations.jar:/home/fermuch/local_data/bin/jackson-databind.jar:/home/fermuch/local_data/bin/guava.jar:/home/fermuch/local_data/bin/computercraft.jar:/home/fermuch/local_data/bin/gdx.jar:/home/fermuch/local_data/bin/gdx-backend-lwjgl.jar:/home/fermuch/local_data/bin/gdx-platform.jar:/home/fermuch/local_data/bin/lwjgl.jar:/home/fermuch/local_data/bin/lwjgl-platform.jar:/home/fermuch/local_data/bin/ccemuredux.jar com.xtansia.ccemu.desktop.DesktopLauncher
2014-10-12 01:41:55 [INFO] [CCEmuRedux Launcher] Emulator> java.lang.UnsatisfiedLinkError: /tmp/libgdxfermuch/5502b6ed/libgdx64.so: /tmp/libgdxfermuch/5502b6ed/libgdx64.so: failed to map segment from shared object: Operation not permitted
2014-10-12 01:41:55 [INFO] [CCEmuRedux Launcher] Emulator>  at java.lang.ClassLoader$NativeLibrary.load(Native Method)
2014-10-12 01:41:55 [INFO] [CCEmuRedux Launcher] Emulator>  at java.lang.ClassLoader.loadLibrary1(ClassLoader.java:1965)
2014-10-12 01:41:55 [INFO] [CCEmuRedux Launcher] Emulator>  at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1890)
2014-10-12 01:41:55 [INFO] [CCEmuRedux Launcher] Emulator>  at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1851)
2014-10-12 01:41:55 [INFO] [CCEmuRedux Launcher] Emulator>  at java.lang.Runtime.load0(Runtime.java:795)
2014-10-12 01:41:55 [INFO] [CCEmuRedux Launcher] Emulator>  at java.lang.System.load(System.java:1062)
2014-10-12 01:41:55 [INFO] [CCEmuRedux Launcher] Emulator>  at com.badlogic.gdx.utils.SharedLibraryLoader.loadFile(SharedLibraryLoader.java:283)
2014-10-12 01:41:55 [INFO] [CCEmuRedux Launcher] Emulator>  at com.badlogic.gdx.utils.SharedLibraryLoader.loadFile(SharedLibraryLoader.java:252)
2014-10-12 01:41:55 [INFO] [CCEmuRedux Launcher] Emulator>  at com.badlogic.gdx.utils.SharedLibraryLoader.load(SharedLibraryLoader.java:113)
2014-10-12 01:41:55 [INFO] [CCEmuRedux Launcher] Emulator>  at com.badlogic.gdx.utils.GdxNativesLoader.load(GdxNativesLoader.java:34)
2014-10-12 01:41:55 [INFO] [CCEmuRedux Launcher] Emulator>  at com.badlogic.gdx.backends.lwjgl.LwjglNativesLoader.load(LwjglNativesLoader.java:47)
2014-10-12 01:41:55 [INFO] [CCEmuRedux Launcher] Emulator>  at com.badlogic.gdx.backends.lwjgl.LwjglApplication.<init>(LwjglApplication.java:76)
2014-10-12 01:41:55 [INFO] [CCEmuRedux Launcher] Emulator>  at com.badlogic.gdx.backends.lwjgl.LwjglApplication.<init>(LwjglApplication.java:64)
2014-10-12 01:41:55 [INFO] [CCEmuRedux Launcher] Emulator>  at com.xtansia.ccemu.desktop.DesktopLauncher.main(DesktopLauncher.java:17)
2014-10-12 01:41:55 [INFO] [CCEmuRedux Launcher] Emulator> java.lang.UnsatisfiedLinkError: /tmp/5502b6ed111462821584352044.tmp: /tmp/5502b6ed111462821584352044.tmp: failed to map segment from shared object: Operation not permitted
2014-10-12 01:41:55 [INFO] [CCEmuRedux Launcher] Emulator>  at java.lang.ClassLoader$NativeLibrary.load(Native Method)
2014-10-12 01:41:55 [INFO] [CCEmuRedux Launcher] Emulator>  at java.lang.ClassLoader.loadLibrary1(ClassLoader.java:1965)
2014-10-12 01:41:55 [INFO] [CCEmuRedux Launcher] Emulator>  at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1890)
2014-10-12 01:41:55 [INFO] [CCEmuRedux Launcher] Emulator>  at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1851)
2014-10-12 01:41:55 [INFO] [CCEmuRedux Launcher] Emulator>  at java.lang.Runtime.load0(Runtime.java:795)
2014-10-12 01:41:55 [INFO] [CCEmuRedux Launcher] Emulator>  at java.lang.System.load(System.java:1062)
2014-10-12 01:41:55 [INFO] [CCEmuRedux Launcher] Emulator>  at com.badlogic.gdx.utils.SharedLibraryLoader.loadFile(SharedLibraryLoader.java:283)
2014-10-12 01:41:55 [INFO] [CCEmuRedux Launcher] Emulator>  at com.badlogic.gdx.utils.SharedLibraryLoader.loadFile(SharedLibraryLoader.java:258)
2014-10-12 01:41:55 [INFO] [CCEmuRedux Launcher] Emulator>  at com.badlogic.gdx.utils.SharedLibraryLoader.load(SharedLibraryLoader.java:113)
2014-10-12 01:41:55 [INFO] [CCEmuRedux Launcher] Emulator>  at com.badlogic.gdx.utils.GdxNativesLoader.load(GdxNativesLoader.java:34)
2014-10-12 01:41:55 [INFO] [CCEmuRedux Launcher] Emulator>  at com.badlogic.gdx.backends.lwjgl.LwjglNativesLoader.load(LwjglNativesLoader.java:47)
2014-10-12 01:41:55 [INFO] [CCEmuRedux Launcher] Emulator>  at com.badlogic.gdx.backends.lwjgl.LwjglApplication.<init>(LwjglApplication.java:76)
2014-10-12 01:41:55 [INFO] [CCEmuRedux Launcher] Emulator>  at com.badlogic.gdx.backends.lwjgl.LwjglApplication.<init>(LwjglApplication.java:64)
2014-10-12 01:41:55 [INFO] [CCEmuRedux Launcher] Emulator>  at com.xtansia.ccemu.desktop.DesktopLauncher.main(DesktopLauncher.java:17)
2014-10-12 01:41:55 [INFO] [CCEmuRedux Launcher] Emulator> Exception in thread "main" java.lang.UnsatisfiedLinkError: Can't load library: /tmp/libgdxfermuch/7b43be9b/liblwjgl.so
2014-10-12 01:41:55 [INFO] [CCEmuRedux Launcher] Emulator>  at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1854)
2014-10-12 01:41:55 [INFO] [CCEmuRedux Launcher] Emulator>  at java.lang.Runtime.load0(Runtime.java:795)
2014-10-12 01:41:55 [INFO] [CCEmuRedux Launcher] Emulator>  at java.lang.System.load(System.java:1062)
2014-10-12 01:41:55 [INFO] [CCEmuRedux Launcher] Emulator>  at org.lwjgl.Sys$1.run(Sys.java:70)
2014-10-12 01:41:55 [INFO] [CCEmuRedux Launcher] Emulator>  at java.security.AccessController.doPrivileged(Native Method)
2014-10-12 01:41:55 [INFO] [CCEmuRedux Launcher] Emulator>  at org.lwjgl.Sys.doLoadLibrary(Sys.java:66)
2014-10-12 01:41:55 [INFO] [CCEmuRedux Launcher] Emulator>  at org.lwjgl.Sys.loadLibrary(Sys.java:95)
2014-10-12 01:41:55 [INFO] [CCEmuRedux Launcher] Emulator>  at org.lwjgl.Sys.<clinit>(Sys.java:112)
2014-10-12 01:41:55 [INFO] [CCEmuRedux Launcher] Emulator>  at org.lwjgl.openal.AL.<clinit>(AL.java:59)
2014-10-12 01:41:55 [INFO] [CCEmuRedux Launcher] Emulator>  at com.badlogic.gdx.backends.lwjgl.audio.OpenALAudio.<init>(OpenALAudio.java:72)
2014-10-12 01:41:55 [INFO] [CCEmuRedux Launcher] Emulator>  at com.badlogic.gdx.backends.lwjgl.LwjglApplication.<init>(LwjglApplication.java:82)
2014-10-12 01:41:55 [INFO] [CCEmuRedux Launcher] Emulator>  at com.badlogic.gdx.backends.lwjgl.LwjglApplication.<init>(LwjglApplication.java:64)
2014-10-12 01:41:55 [INFO] [CCEmuRedux Launcher] Emulator>  at com.xtansia.ccemu.desktop.DesktopLauncher.main(DesktopLauncher.java:17)
2014-10-12 01:41:55 [SEVERE] [CCEmuRedux Launcher] Something went wrong while piping Emulator StdOut
java.io.IOException: Stream closed
    at sun.nio.cs.StreamDecoder.ensureOpen(StreamDecoder.java:46)
    at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:147)
    at java.io.InputStreamReader.read(InputStreamReader.java:184)
    at java.io.BufferedReader.fill(BufferedReader.java:154)
    at java.io.BufferedReader.readLine(BufferedReader.java:317)
    at java.io.BufferedReader.readLine(BufferedReader.java:382)
    at com.xtansia.ccemu.launcher.ProcessMonitor.run(ProcessMonitor.java:38)
2014-10-12 01:41:55 [INFO] [CCEmuRedux Launcher] Emulator process finished!

Comments (5)

  1. Gábor Garami

    A temporary workaround is run the launcher in following way:

    java -Djava.io.tmpdir=$HOME/tmp -Dcom.xtansia.ccemu.path="local_data" -jar Downloads/ccemuredux-launcher.jar

    Also, be sure $HOME/tmp is exists and writable by you :-)

  2. Log in to comment