Fractal Softworks Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

Starsector 0.98a is out! (03/27/25)

Pages: [1] 2

Author Topic: [0.97a-RC11] Crash at startup on Linux  (Read 3323 times)

not_ai

  • Ensign
  • *
  • Posts: 7
    • View Profile
[0.97a-RC11] Crash at startup on Linux
« on: February 27, 2024, 05:50:29 PM »

After updating my Linux computer to the latest nvidia drivers Starsector has started crashing on launch (the launcher works but after pressing play no window for the main game is created)

I was previously using driver version 535 with no issues playing Starsector (including the same day before updating).
Looking at the standard output of Starsector the JVM seems to encounter a SIGSEV and blames
Code
C [libnvidia-glcore.so.550.54.14+0x9d50cc] _nv000glcore+0x4520fc
as the problem.

I've attached both the stdout (starsector_stdout.txt) and the associated error report (starsector_log.zip) in the hopes that they will be helpful.

[attachment deleted by admin]
« Last Edit: February 28, 2024, 01:04:53 PM by not_ai »
Logged

Alex

  • Administrator
  • Admiral
  • *****
  • Posts: 25836
    • View Profile
Re: Starsector 0.97a-RC11 crashes with nvidia v550 drivers
« Reply #1 on: February 27, 2024, 05:52:07 PM »

Hi - sorry about the trouble! Unfortunately, this looks like a crash in the nvidia driver, so, not something I can do much about. I'd suggest rolling back the driver version, if that's an option for you.
Logged

not_ai

  • Ensign
  • *
  • Posts: 7
    • View Profile
Re: [0.97a-RC11] Crash at startup
« Reply #2 on: February 27, 2024, 05:57:42 PM »

Yeah I've already rolled back to keep playing but felt that I should report it since I haven't encountered this issue (or any similar issues) on any other game/application so far.
Logged

Alex

  • Administrator
  • Admiral
  • *****
  • Posts: 25836
    • View Profile
Re: [0.97a-RC11] Crash at startup
« Reply #3 on: February 27, 2024, 06:00:27 PM »

I appreciate it, and that makes sense, yeah! Just, the crash clearly looks to be in the driver, and "crash bug in the driver" is definitely something that happens (and very often gets fixed in subsequent driver versions).
Logged

not_ai

  • Ensign
  • *
  • Posts: 7
    • View Profile
Re: [0.97a-RC11] Crash at startup
« Reply #4 on: February 27, 2024, 07:13:16 PM »

I looked at bit closer at the error log I found a frame log that seems to suggest that the error occurs on trying to close the launcher window.
Is there a way that I can bypass the launcher and directly invoke the game to see if the launcher is the only issue?
Logged

Alex

  • Administrator
  • Admiral
  • *****
  • Posts: 25836
    • View Profile
Re: [0.97a-RC11] Crash at startup
« Reply #5 on: February 27, 2024, 07:44:59 PM »

If you open up data/config/settings.json in a text editor, there's a "legacyLauncher" setting - changing it to true may help with this as it'll use a different rendering method for the launcher (though you'll also lose the ability to configure screen scaling from the launcher, the legacy launcher is... old).
Logged

not_ai

  • Ensign
  • *
  • Posts: 7
    • View Profile
Re: [0.97a-RC11] Crash at startup
« Reply #6 on: February 27, 2024, 08:00:00 PM »

Unfortunately that seemed to do nothing, oh well.
Logged

not_ai

  • Ensign
  • *
  • Posts: 7
    • View Profile
Re: [0.97a-RC11] Crash at startup
« Reply #7 on: February 27, 2024, 08:23:57 PM »

I'm going to report this to Nvidia and hopefully learn of a fix, would you be willing to divulge what exact version of lwjgl you're using for Starsector so I can share that with the developers should they want to try and recreate the problem?
Logged

Alex

  • Administrator
  • Admiral
  • *****
  • Posts: 25836
    • View Profile
Re: [0.97a-RC11] Crash at startup
« Reply #8 on: February 27, 2024, 08:49:50 PM »

Good luck!

The version of LWJGL is 2.9.3.
Logged

Kim

  • Ensign
  • *
  • Posts: 8
    • View Profile
Re: [0.97a-RC11] Crash at startup
« Reply #9 on: February 28, 2024, 11:02:59 AM »

Need help  :'(

Spoiler
276936 [Thread-3] INFO  com.fs.graphics.TextureLoader  - Cleaned buffer for texture graphics/shadow_ships/ships/stations/ms_gunModuleS_L.png (using cast)
278097 [Thread-3] ERROR com.fs.starfarer.combat.CombatMain  - java.lang.RuntimeException: Error loading [data.scripts.weapons.SignpostOnHitEffect]
java.lang.RuntimeException: Error loading [data.scripts.weapons.SignpostOnHitEffect]
   at com.fs.starfarer.loading.scripts.ScriptStore$3.run(Unknown Source)
   at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.ClassNotFoundException: data.scripts.weapons.SignpostOnHitEffect
   at org.codehaus.janino.JavaSourceClassLoader.findClass(JavaSourceClassLoader.java:179)
   at java.lang.ClassLoader.loadClass(Unknown Source)
   at java.lang.ClassLoader.loadClass(Unknown Source)
   ... 2 more
[close]
Logged

Alex

  • Administrator
  • Admiral
  • *****
  • Posts: 25836
    • View Profile
Re: [0.97a-RC11] Crash at startup
« Reply #10 on: February 28, 2024, 11:12:22 AM »

Hmm, this looks like a mod issue? Also, this is an unrelated thread; please make a new post (in the modded reports subforum) for a new issue).
Logged

not_ai

  • Ensign
  • *
  • Posts: 7
    • View Profile
Re: [0.97a-RC11] Crash at startup
« Reply #11 on: February 28, 2024, 01:04:18 PM »

Thought I'd make a note in case anyone else is experiencing a similar issue that Starsector seems to work fine using the Zink opengl driver instead of the Nvidia driver. Though it does make the game feel a little slower at the moment.
To launch starsector with zink I used this commandline.
Code
__GLX_VENDOR_LIBRARY_NAME=mesa MESA_LOADER_DRIVER_OVERRIDE=zink GALLIUM_DRIVER=zink starsector
Where 'starsector' is the launch script included in the game's download
Logged

Alex

  • Administrator
  • Admiral
  • *****
  • Posts: 25836
    • View Profile
Re: [0.97a-RC11] Crash at startup on Linux
« Reply #12 on: February 28, 2024, 01:10:54 PM »

Thank you for sharing the info! Glad you've got a (hopefully temporary) workaround, at least.
Logged

blitz

  • Ensign
  • *
  • Posts: 2
    • View Profile
Re: [0.97a-RC11] Crash at startup
« Reply #13 on: March 04, 2024, 02:38:31 AM »

Thought I'd make a note in case anyone else is experiencing a similar issue that Starsector seems to work fine using the Zink opengl driver instead of the Nvidia driver. Though it does make the game feel a little slower at the moment.
To launch starsector with zink I used this commandline.
Code
__GLX_VENDOR_LIBRARY_NAME=mesa MESA_LOADER_DRIVER_OVERRIDE=zink GALLIUM_DRIVER=zink starsector
Where 'starsector' is the launch script included in the game's download

Wow thank you dude !
I could not play starsector for a couple of months and you saved the day.

As far as I know :
- nvidia 535 -> ok
- nvidia 545 -> not ok
- nvidia 550 -> not ok

Your fix works at least with 550.
Logged

not_ai

  • Ensign
  • *
  • Posts: 7
    • View Profile
Re: [0.97a-RC11] Crash at startup on Linux
« Reply #14 on: March 05, 2024, 02:01:01 PM »

Glad it also helped you.

It should also work on the 545 driver since all the opengl commands are being translated to vulkan commands then going through the GPU.
Logged
Pages: [1] 2