Resolved Terasology on FreeBSD

kht

New Member
Hi, i want to test terasology on FreeBSD. But it seems that it doesnt like OSS. Here´s the output and log:

Code:
$ /usr/local/linux-sun-jdk1.6.0/bin/java -jar Terasology.jar
[INFO] (11-06 17:57:32)    org.terasology.game.TerasologyEngine:init() - Initializing Terasology... (Thread: 10)
[INFO] (11-06 17:57:32)    org.terasology.game.TerasologyEngine:init() - [buildNumber=309, buildId=2012-11-06_01-45-45, buildTag=jenkins-Terasology-309, buildUrl=http://jenkins.movingblocks.net/job/Terasology/309/, gitBranch=develop, gitCommit=412e22628e9b96c76bf45f773f425760ff01fecd, dateTime=2012-11-06_01-47-16] (Thread: 10)
[INFO] (11-06 17:57:33)    org.terasology.audio.OpenALManager:initialize() - Initializing OpenAL audio manager (Thread: 10)
AL lib: alsa.c:1015: no playback cards found...
AL lib: alsa.c:1072: no capture cards found...
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x28067c5d, pid=94665, tid=686533520
#
# JRE version: 6.0_37-b06
# Java VM: Java HotSpot(TM) Server VM (20.12-b01 mixed mode linux-x86 )
# Problematic frame:
# C  [ld-linux.so.2+0x15c5d]  _dl_close+0x1d
#
# An error report file with more information is saved as:
# /home/tobias/Spiele/terasology/hs_err_pid94665.log
#
# If you would like to submit a bug report, please visit:
#  http://java.sun.com/webapps/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug
Log: http://de.pastebin.ca/2249073

I have audio/alsa-lib, audio/alsa-plugins and audio/alsa-utils installed.

Any Ideas? :)
 

Cervator

Org Co-Founder & Project Lead
Contributor
Design
Logistics
SpecOps
Thanks for the report kht ! Will have to look at this some more later, or somebody else like Immortius could have an idea or two. I also think we need to add an option to launch without sound support, for troubleshooting if nothing else.
 

Skaldarnar

Development Lead
Contributor
Art
World
SpecOps
Ok, I'm just guessing now (since it works on my Arch Linux with alsa). Do you have installed alsa properly, do you have alsa sound in other applications (prefereable other java apps)?
A thing you could try is run TS with OpenJDK (and see if this solves the problem).
 

kht

New Member
Hi,

I have only Minecraft here as an java programm and there´s no problem with sound, anyway here´s the output:

Code:
$ mc
asdf
27 achievements
208 recipes
Setting user: tobi1953, 8894975074506846389
LWJGL Version: 2.8.3
 
OptiFine_1.4.2_HD_U_A6
Tue Nov 06 19:20:40 CET 2012
OS: Linux (i386) version 2.6.16
Java: 1.6.0_37, Sun Microsystems Inc.
VM: Java HotSpot(TM) Server VM (mixed mode), Sun Microsystems Inc.
LWJGL: 2.8.3
OpenGL: GeForce 9600 GSO 512/PCIe/SSE2 version 3.3.0 NVIDIA 304.60, NVIDIA Corporation
OpenGL Version: 3.3
Checking for new version
FSAA Samples: 2
Version found: A7
Class not present: net.minecraftforge.client.ForgeHooksClient
setupTexture: "/title/mojang.png", id: 1
Class not present: FMLRenderAccessLibrary
 
Starting up SoundSystem...
Initializing LWJGL OpenAL
    (The LWJGL binding of OpenAL.  For more information, see http://www.lwjgl.org)
ALSA lib confmisc.c:768:(parse_card) cannot find card '0'
ALSA lib conf.c:4154:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory
ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
ALSA lib conf.c:4154:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
ALSA lib confmisc.c:1251:(snd_func_refer) error evaluating name
ALSA lib conf.c:4154:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:4633:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2211:(snd_pcm_open_noupdate) Unknown PCM default
AL lib: alsa.c:512: Could not open playback device 'default': No such file or directory
AL lib: ALc.c:674: Failed to set priority level for thread
OpenAL initialized.
OpenJDK:

Code:
$ /usr/local/usr/local/openjdk6/bin/java -jar Terasology.jar
[INFO] (11-06 19:34:11)org.terasology.game.TerasologyEngine:init() - Initializing Terasology... (Thread: 10)
[INFO] (11-06 19:34:11)org.terasology.game.TerasologyEngine:init() - [buildNumber=309, buildId=2012-11-06_01-45-45, buildTag=jenkins-Terasology-309, buildUrl=http://jenkins.movingblocks.net/job/Terasology/309/, gitBranch=develop, gitCommit=412e22628e9b96c76bf45f773f425760ff01fecd, dateTime=2012-11-06_01-47-16] (Thread: 10)
[SEVERE] (11-06 19:34:11)org.terasology.game.Terasology:main() - Uncaught Exception (Thread: 10)
java.lang.UnsatisfiedLinkError: /home/tobias/Spiele/terasology/natives/linux/libopenal64.so: /usr/lib/libpthread.so.0: unsupported file layout
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1750)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1675)
at java.lang.Runtime.loadLibrary0(Runtime.java:840)
at java.lang.System.loadLibrary(System.java:1047)
at org.terasology.game.TerasologyEngine.initNativeLibs(TerasologyEngine.java:309)
at org.terasology.game.TerasologyEngine.init(TerasologyEngine.java:104)
at org.terasology.game.Terasology.main(Terasology.java:42
Diablo:
Code:
$ /usr/local/diablo-jre1.6.0/bin/java -jar Terasology.jar
[INFO] (11-06 19:32:47)org.terasology.game.TerasologyEngine:init() - Initializing Terasology... (Thread: 10)
[INFO] (11-06 19:32:47)org.terasology.game.TerasologyEngine:init() - [buildNumber=309, buildId=2012-11-06_01-45-45, buildTag=jenkins-Terasology-309, buildUrl=http://jenkins.movingblocks.net/job/Terasology/309/, gitBranch=develop, gitCommit=412e22628e9b96c76bf45f773f425760ff01fecd, dateTime=2012-11-06_01-47-16] (Thread: 10)
[SEVERE] (11-06 19:32:47)org.terasology.game.Terasology:main() - Uncaught Exception (Thread: 10)
java.lang.UnsatisfiedLinkError: /home/tobias/Spiele/terasology/natives/linux/libopenal64.so: /usr/lib/libpthread.so.0: unsupported file layout
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1751)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1676)
at java.lang.Runtime.loadLibrary0(Runtime.java:823)
at java.lang.System.loadLibrary(System.java:1030)
at org.terasology.game.TerasologyEngine.initNativeLibs(TerasologyEngine.java:309)
at org.terasology.game.TerasologyEngine.init(TerasologyEngine.java:104)
at org.terasology.game.Terasology.main(Terasology.java:42
 

Skaldarnar

Development Lead
Contributor
Art
World
SpecOps
Code:
$ ...
Starting up SoundSystem...
Initializing LWJGL OpenAL
    (The LWJGL binding of OpenAL.  For more information, see http://www.lwjgl.org)
ALSA lib confmisc.c:768:(parse_card) cannot find card '0'
ALSA lib conf.c:4154:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory
ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
ALSA lib conf.c:4154:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
ALSA lib confmisc.c:1251:(snd_func_refer) error evaluating name
ALSA lib conf.c:4154:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:4633:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2211:(snd_pcm_open_noupdate) Unknown PCM default
AL lib: alsa.c:512: Could not open playback device 'default': No such file or directory
AL lib: ALc.c:674: Failed to set priority level for thread
OpenAL initialized.
It seems that MC cannot load your your alsa sound devices either, but it deals with it a little bit better (I admit, simple crashing is not the best way to do it :D)
So, the trouble shooting the launch without sound cards should be put on the buglist ;)
 

Cervator

Org Co-Founder & Project Lead
Contributor
Design
Logistics
SpecOps
Thanks for all the good logs, especially the MC logs showing the same issue, gives good hope we can make it work too :)

I've updated issue #221 with a link to this thread

Also, at first I thought you were somehow running Diablo using Java. Then I realized that was a code name for a JDK. Then I realized that somebody did do Diablo in Java!
 
Top