1
Bug Reports & Support / Re: [0.97a-RC11] Crash at startup on Linux
« 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