Fractal Softworks Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

Starsector 0.97a is out! (02/02/24); New blog post: Planet Search Overhaul (07/13/24)

Author Topic: Crash if computer has no sound. org.lwjgl.openal.AL10.nalDistanceModel error.  (Read 3452 times)

Paul

  • Commander
  • ***
  • Posts: 159
    • View Profile

The game crashes if you try to start up the game without sound output (speakers, headphone, etc). I have a feeling it's an issue with the newer java library, as many games are suddenly having this issue with recent updates (Stellaris, for example). My gaming computer doesn't have speakers, and I noticed this when I forgot to plug in my headset before I launched the game.

I wanted to put it out there in case people are having this crash and don't know why. Not a huge deal, since the fix is to just plug in speakers or headphones. If it's something you can easily code around it would be good for people who may not even have speakers or headphones.

Code
org.lwjgl.LWJGLException: Could not locate OpenAL library.
at org.lwjgl.openal.AL.create(AL.java:151)
at org.lwjgl.openal.AL.create(AL.java:102)
at org.lwjgl.openal.AL.create(AL.java:201)
at sound.OoOO$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at sound.OoOO.o00000(Unknown Source)
at com.fs.starfarer.combat.CombatMain.main(Unknown Source)
at com.fs.starfarer.StarfarerLauncher$1.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
5144 [Thread-4] ERROR com.fs.starfarer.combat.CombatMain  - java.lang.UnsatisfiedLinkError: org.lwjgl.openal.AL10.nalDistanceModel(I)V
java.lang.UnsatisfiedLinkError: org.lwjgl.openal.AL10.nalDistanceModel(I)V
at org.lwjgl.openal.AL10.nalDistanceModel(Native Method)
at org.lwjgl.openal.AL10.alDistanceModel(AL10.java:1303)
at sound.OoOO.o00000(Unknown Source)
at com.fs.starfarer.combat.CombatMain.main(Unknown Source)
at com.fs.starfarer.StarfarerLauncher$1.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Logged

Alex

  • Administrator
  • Admiral
  • *****
  • Posts: 24690
    • View Profile

Hmm, interesting. Does it still crash if you try to run it with sound disabled from the launcher? Guessing it doesn't, but just want to confirm.
Logged

Paul

  • Commander
  • ***
  • Posts: 159
    • View Profile

Oh, it doesn't.

I didn't even notice the "sound" option in the launcher so I guess anyone without speakers could just turn it off, haha.

Not really an issue then at all. But good to know in case someone brings it up you can just say "Turn off sound or plug in speakers." :)
Logged

Alex

  • Administrator
  • Admiral
  • *****
  • Posts: 24690
    • View Profile

Yeah, definitely good to know. Kind of a weird one, really - wouldn't think speakers being unplugged would cause a dll to not be found, but so it goes.
Logged