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 3258 times)

blitz

  • Ensign
  • *
  • Posts: 2
    • View Profile
Re: [0.97a-RC11] Crash at startup on Linux
« Reply #15 on: March 06, 2024, 04:17:01 AM »

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.

Could you start a new campaign using your fix ?

The game launches fine. I can play individual missions. I can tweak options.
But when I start a new campaign (as soon as I click "Start with tutorial"), I get this error :

Code
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x000075eed8efaca5, pid=191582, tid=129668327933632
#
# JRE version: Java(TM) SE Runtime Environment (7.0_79-b15) (build 1.7.0_79-b15)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (24.79-b02 mixed mode linux-amd64 compressed oops)
# Problematic frame:
# C  [libnvidia-glcore.so.550.54.14+0xcfaca5]  vk_optimusGetDeviceProcAddr+0x1d735

https://drive.google.com/drive/folders/1W5im8esz-DfVhG_4pIG_Ls8ofSC-eEb4?usp=sharing

I can load an existing save on 0.96, but can't start a new one, just like 0.97.

Edit : If anyone encounters the same problems, here is a thing that works :
Code
#!/bin/sh
## ~/games/starsector/starsector_patched.sh

## Switch to mesa oss implementation of Opengl, since Nvidia proprietary driver crashes (545, 550)
export __GLX_VENDOR_LIBRARY_NAME=mesa

## Start a new game (poor performance but the only way to start a new game)
# export MESA_LOADER_DRIVER_OVERRIDE=etnaviv

## Play with an existing save (great performances but crashes on a new game)
export MESA_LOADER_DRIVER_OVERRIDE=zink
export GALLIUM_DRIVER=zink

./jre_linux/bin/java -server -XX:CompilerThreadPriority=1 -XX:+CompilerThreadHintNoPreempt -Djava.library.path=./native/linux -XX:+UseG1GC -Xms8192m -Xmx8192m -Xss2048k -XX:PermSize=192m -XX:MaxPermSize=192m -classpath janino.jar:commons-compiler.jar:commons-compiler-jdk.jar:starfarer.api.jar:starfarer_obf.jar:jogg-0.0.7.jar:jorbis-0.0.15.jar:json.jar:lwjgl.jar:jinput.jar:log4j-1.2.9.jar:lwjgl_util.jar:fs.sound_obf.jar:fs.common_obf.jar:xstream-1.4.10.jar -Dcom.fs.starfarer.settings.paths.saves=./saves -Dcom.fs.starfarer.settings.paths.screenshots=./screenshots -Dcom.fs.starfarer.settings.paths.mods=./mods -Dcom.fs.starfarer.settings.paths.logs=. -Dcom.fs.starfarer.settings.linux=true com.fs.starfarer.StarfarerLauncher

« Last Edit: March 11, 2024, 03:01:31 PM by blitz »
Logged

Deez

  • Ensign
  • *
  • Posts: 4
    • View Profile
Re: [0.97a-RC11] Crash at startup on Linux
« Reply #16 on: April 02, 2024, 03:38:59 PM »

I get the same problem on my end.
Code
C  [libnvidia-glcore.so.550.67+0x9d4cfc]  _nv000glcore+0x451cfc
I tried downgrading drivers to 5.35 but that ended up causing more problems than anything. First, LWJGL started complaining, then when I restarted my PC, I couldn't even boot and had to switch to terminal mode to fix the issue. I'm running EndeavourOS (Arch) with hyprland (Wayland). Unsurprisingly, Starsector runs completely fine on my laptop (AMD iGPU, EndeavourOS, hyprland). Just in case, I tried with Mikohime's JRE23 conversion kit but that had no effect.

Hopefully nvidia can fix that soon...

Update: I can run Starsector with good performance through proton-experimental; however, if I try to launch it any other way (such as through Mikohime's Java 23), it will crash even if no other mods are enabled whatsoever. I'll try to investigate further.
« Last Edit: April 02, 2024, 06:45:24 PM by Deez »
Logged

winnie

  • Ensign
  • *
  • Posts: 40
    • View Profile
Re: [0.97a-RC11] Crash at startup
« Reply #17 on: May 18, 2024, 07:41:49 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

Thanks! this helped me! I wasn't able to play SS on wayland. But it works for me on Xorg. On wayland it works only on bult in video card, but with graphics mods it complains on VRAM. But without this it won't run under wayland.

Need to compare performance. Would compare FPS under X without this configs.

Did anybody create bug report to nVidia?
Logged

Tatsuran

  • Ensign
  • *
  • Posts: 1
    • View Profile
Re: [0.97a-RC11] Crash at startup on Linux
« Reply #18 on: February 23, 2025, 12:29:23 PM »

- nvidia 565 -> not ok (still  :'( )

# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x00007fb7ce85133c, pid=22924, tid=140428791772864
#
# JRE version: Java(TM) SE Runtime Environment (7.0_79-b15) (build 1.7.0_79-b15)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (24.79-b02 mixed mode linux-amd64 compressed oops)
# Problematic frame:
# C  [libnvidia-glcore.so.565.77+0xa5133c]  _nv008glcore+0x185fc
Logged

Vind

  • Admiral
  • *****
  • Posts: 804
    • View Profile
Re: [0.97a-RC11] Crash at startup on Linux
« Reply #19 on: February 24, 2025, 04:28:42 AM »

Works fine here with nvidia drivers version 570.86.16
Cant really test with older versions atm.
Logged

SalmonLord

  • Ensign
  • *
  • Posts: 1
    • View Profile
Re: [0.97a-RC11] Crash at startup on Linux
« Reply #20 on: March 14, 2025, 01:29:43 PM »

Hi, all. If this counts as necro, I'll happily make another thread, but I'm getting the same issue on the 570 nvidia driver on Arch. I get the same crash as Tatsuran above when I try to run the game or change the scaling/AA options via the launcher. I've tried running it via zink using the commands here, but that just gets me a blanked out launcher. Problem occurs with both vanilla Starsector and Mikohime 24. Anyone have an idea how I might get it working?

Update: Well, I tried swapping over to XFCE from KDE, and it works without any need for zink. Seems to be a Wayland issue. Even forcing XWayland through env -u WAYLAND_DISPLAY ./starsector.sh didn't fix it, only the full swap to X11.
« Last Edit: March 14, 2025, 02:13:08 PM by SalmonLord »
Logged

rkb

  • Ensign
  • *
  • Posts: 1
    • View Profile
Re: [0.97a-RC11] Crash at startup on Linux
« Reply #21 on: March 16, 2025, 06:02:40 PM »

Setting
Code
__GL_THREADED_OPTIMIZATIONS=0
appears to work with Nvidia drivers.

Unable to source a specific bug report but searching "nvidia" in lwjgl3 issues shows its a driver issue with Nvidia.
This does prevent the libnvidia-glcore related crash.

Now the issue appears to be specific to Wayland (well XWayland).

Code
2892 [Thread-4] ERROR com.fs.graphics.o0oO  - Exiting - exception in LWJGL initialization
org.lwjgl.LWJGLException: Could not choose GLX13 config
        at org.lwjgl.opengl.LinuxDisplayPeerInfo.initDefaultPeerInfo(Native Method)
        at org.lwjgl.opengl.LinuxDisplayPeerInfo.<init>(LinuxDisplayPeerInfo.java:61)
        at org.lwjgl.opengl.LinuxDisplay.createPeerInfo(LinuxDisplay.java:828)
        at org.lwjgl.opengl.DrawableGL.setPixelFormat(DrawableGL.java:61)
        at org.lwjgl.opengl.Display.create(Display.java:846)
        at org.lwjgl.opengl.Display.create(Display.java:757)
        at com.fs.graphics.o0oO.Ò00000(Unknown Source)
        at com.fs.starfarer.combat.CombatMain.main(Unknown Source)
        at com.fs.starfarer.StarfarerLauncher.o00000(Unknown Source)
        at com.fs.starfarer.StarfarerLauncher$1.run(Unknown Source)
        at java.lang.Thread.run(Unknown Source)
2895 [Thread-4] ERROR com.fs.starfarer.combat.CombatMain  - java.lang.RuntimeException: Exiting - exception in LWJGL initialization
java.lang.RuntimeException: Exiting - exception in LWJGL initialization
        at com.fs.graphics.o0oO.Ò00000(Unknown Source)
        at com.fs.starfarer.combat.CombatMain.main(Unknown Source)
        at com.fs.starfarer.StarfarerLauncher.o00000(Unknown Source)
        at com.fs.starfarer.StarfarerLauncher$1.run(Unknown Source)
        at java.lang.Thread.run(Unknown Source)
Caused by: org.lwjgl.LWJGLException: Could not choose GLX13 config
        at org.lwjgl.opengl.LinuxDisplayPeerInfo.initDefaultPeerInfo(Native Method)
        at org.lwjgl.opengl.LinuxDisplayPeerInfo.<init>(LinuxDisplayPeerInfo.java:61)
        at org.lwjgl.opengl.LinuxDisplay.createPeerInfo(LinuxDisplay.java:828)
        at org.lwjgl.opengl.DrawableGL.setPixelFormat(DrawableGL.java:61)
        at org.lwjgl.opengl.Display.create(Display.java:846)
        at org.lwjgl.opengl.Display.create(Display.java:757)
        ... 5 more

Apparently this is due to a (now resolved?) bug under XWayland, and disabling Antialiasing allows the game to run under XWayland.
Logged

Daholli

  • Ensign
  • *
  • Posts: 1
    • View Profile
Re: [0.97a-RC11] Crash at startup on Linux
« Reply #22 on: March 24, 2025, 03:14:54 AM »

Quote
Code
__GL_THREADED_OPTIMIZATIONS=0

Thanks this together with turned off Antialiasing allowed me to start up.
Cheers
Holli
Logged
Pages: 1 [2]