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: Simulator Enhancements (03/13/24)

Pages: [1] 2

Author Topic: [linux: 0.8a-rc19] crashes on saving and loading [solved]  (Read 5789 times)

Stormking

  • Ensign
  • *
  • Posts: 12
    • View Profile
[linux: 0.8a-rc19] crashes on saving and loading [solved]
« on: April 21, 2017, 03:15:28 AM »

Game reliably crashes on the first quicksave in the tutorial.
The crash happens always at ~40% of the bar.

  • kubuntu 16.04 x64
  • happens with packaged jre1.7 (but had to install lots of extras and modify class-paths to get it even running)
  • also happens with openjdk1.8 as installed via apt

Terminal Log:

Code
[xcb] Unknown sequence number while processing queue
[xcb] Most likely this is a multi-threaded client and XInitThreads has not been called
[xcb] Aborting, sorry about that.
java: ../../src/xcb_io.c:274: poll_for_event: Assertion `!xcb_xlib_threads_sequence_lost' failed.

Solved in 0.8.1a
In settings.json set "processMessagesWhileSavingOrLoading" to FALSE
« Last Edit: June 05, 2017, 05:05:13 AM by Stormking »
Logged

Alex

  • Administrator
  • Admiral
  • *****
  • Posts: 23988
    • View Profile
Re: [0.8a-rc17] crashes on quicksave in linux
« Reply #1 on: April 21, 2017, 07:48:35 AM »

Hmm - what's in starsector.log when that happens?
Logged

Stormking

  • Ensign
  • *
  • Posts: 12
    • View Profile
Re: [0.8a-rc17] crashes on quicksave in linux
« Reply #2 on: April 22, 2017, 03:27:18 AM »

here's a new full log from launching the game, starting a new campaign, doing some salvage and a fight until it crashed.
unexpectedly it went well through several quicksaves today, but crashed when I hit save & exit. (again at ~40% of saving)
yesterday it crashed 3 times, always on the first quicksave.

Edit: I can't append the zipped log (it's 2MB unzipped, 136KB zipped), the forum says "Upload folder is full"
Logged

Alex

  • Administrator
  • Admiral
  • *****
  • Posts: 23988
    • View Profile
Re: [0.8a-rc17] crashes on quicksave in linux
« Reply #3 on: April 22, 2017, 08:13:43 AM »

Could you email me the log? fractalsoftworks [at] gmail [dot] com.
Logged

Stormking

  • Ensign
  • *
  • Posts: 12
    • View Profile
Re: [0.8a-rc17] crashes on quicksave in linux
« Reply #4 on: April 24, 2017, 06:37:20 AM »

Addendum: this also happens during loading sometimes.
Terminal output including last log lines when loading from menu before instant crash
Code
1499997 [Thread-5] INFO  com.fs.starfarer.campaign.save.CampaignGameManager  - Reading save data from [./saves/save_WadjetEze_2244066526483522721/descriptor.xml]
1502825 [Thread-5] INFO  com.fs.starfarer.campaign.save.CampaignGameManager  - Loading /opt/starsector/./saves/save_WadjetEze_2244066526483522721...
1502835 [Thread-5] INFO  com.fs.starfarer.campaign.save.CampaignGameManager  - Loading stage 1
1502835 [Thread-5] INFO  com.fs.starfarer.campaign.save.CampaignGameManager  - Loading stage 2
1502835 [Thread-5] INFO  com.fs.starfarer.campaign.save.CampaignGameManager  - Loading stage 3
1502851 [Thread-17] INFO  com.fs.starfarer.campaign.save.CampaignGameManager  - Loading progress: 0.0
1502864 [Thread-17] INFO  com.fs.starfarer.campaign.save.CampaignGameManager  - Loading progress: 0.0048
1502881 [Thread-17] INFO  com.fs.starfarer.campaign.save.CampaignGameManager  - Loading progress: 0.007406707
1502897 [Thread-17] INFO  com.fs.starfarer.campaign.save.CampaignGameManager  - Loading progress: 0.0117272865
1502915 [Thread-17] INFO  com.fs.starfarer.campaign.save.CampaignGameManager  - Loading progress: 0.014813414
1502932 [Thread-17] INFO  com.fs.starfarer.campaign.save.CampaignGameManager  - Loading progress: 0.019133992
1502948 [Thread-17] INFO  com.fs.starfarer.campaign.save.CampaignGameManager  - Loading progress: 0.025306249
1502964 [Thread-17] INFO  com.fs.starfarer.campaign.save.CampaignGameManager  - Loading progress: 0.029626828
1502981 [Thread-17] INFO  com.fs.starfarer.campaign.save.CampaignGameManager  - Loading progress: 0.03333018
1502998 [Thread-17] INFO  com.fs.starfarer.campaign.save.CampaignGameManager  - Loading progress: 0.037033536
1503014 [Thread-17] INFO  com.fs.starfarer.campaign.save.CampaignGameManager  - Loading progress: 0.041354112
1503031 [Thread-17] INFO  com.fs.starfarer.campaign.save.CampaignGameManager  - Loading progress: 0.048143595
1503048 [Thread-17] INFO  com.fs.starfarer.campaign.save.CampaignGameManager  - Loading progress: 0.052464176
1503064 [Thread-17] INFO  com.fs.starfarer.campaign.save.CampaignGameManager  - Loading progress: 0.056784753
1503080 [Thread-17] INFO  com.fs.starfarer.campaign.save.CampaignGameManager  - Loading progress: 0.061722558
1503097 [Thread-17] INFO  com.fs.starfarer.campaign.save.CampaignGameManager  - Loading progress: 0.06851204
[xcb] Unknown request in queue while dequeuing
[xcb] Most likely this is a multi-threaded client and XInitThreads has not been called
[xcb] Aborting, sorry about that.
java: ../../src/xcb_io.c:179: dequeue_pending_request: Assertion `!xcb_xlib_unknown_req_in_deq' failed.
./starsector.sh: line 12:  6078 Aborted                 (core dumped) ./jre_linux/bin/java -server -XX:CompilerThreadPriority=1 -XX:+CompilerThreadHintNoPreempt -Djava.library.path=./native/linux:/usr/java/packages/lib/amd64:/usr/lib/x86_64-linux-gnu/jni:/lib/x86_64-linux-gnu:/usr/lib/x86_64-linux-gnu:/usr/lib/jni -Xms1024m -Xmx1024m -Xss1024k -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.2.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=. com.fs.starfarer.StarfarerLauncher
Logged

Alex

  • Administrator
  • Admiral
  • *****
  • Posts: 23988
    • View Profile
Re: [0.8a-rc17] crashes on quicksave in linux
« Reply #5 on: April 24, 2017, 08:52:06 AM »

Hmm. It looks like 32 bit java 7 is just straight up crashing on your system. Can you try running the game using Java 7, 64-bit? To do that, install it somewhere so it's in the path, and then adjust starsector.sh accordingly (i.e., probably remove ./jre_linux/bin/ from the beginning).
Logged

Stormking

  • Ensign
  • *
  • Posts: 12
    • View Profile
Re: [0.8a-rc19] crashes on quicksave in linux
« Reply #6 on: April 25, 2017, 12:39:14 AM »

No such look. Hang-up on first quicksave again.

Code
java version "1.7.0_79"
Java(TM) SE Runtime Environment (build 1.7.0_79-b15)
Java HotSpot(TM) 64-Bit Server VM (build 24.79-b02, mixed mode)

Code
576798 [Thread-13] INFO  com.fs.starfarer.campaign.save.CampaignGameManager  - Saving progress: 0.2858857
576815 [Thread-13] INFO  com.fs.starfarer.campaign.save.CampaignGameManager  - Saving progress: 0.28892705
576832 [Thread-13] INFO  com.fs.starfarer.campaign.save.CampaignGameManager  - Saving progress: 0.2913601
576849 [Thread-13] INFO  com.fs.starfarer.campaign.save.CampaignGameManager  - Saving progress: 0.29440144
[xcb] Unknown request in queue while dequeuing
[xcb] Most likely this is a multi-threaded client and XInitThreads has not been called
[xcb] Aborting, sorry about that.
java: ../../src/xcb_io.c:179: dequeue_pending_request: Assertion `!xcb_xlib_unknown_req_in_deq' failed.

No crash to desktop this time, gotta kill -9 it to get it to close, but that's what happened the first times around, too.
And I should add I'm running rc19 by now, too.
Logged

Alex

  • Administrator
  • Admiral
  • *****
  • Posts: 23988
    • View Profile
Re: [linux: 0.8a-rc19] crashes on saving and loading
« Reply #7 on: April 25, 2017, 01:26:42 PM »

Hmm. Searching for the error message, this comes up:
https://github.com/chjj/compton/issues/344

It's from early 2016, but does indicate this may be a graphics driver bug.
Logged

Stormking

  • Ensign
  • *
  • Posts: 12
    • View Profile
Re: [linux: 0.8a-rc19] crashes on saving and loading
« Reply #8 on: April 28, 2017, 06:42:37 AM »

I searched around for it, too, and it seems to pop up everywhere and some say it's to do with thread handling. (I have no understanding of thread programming, I'm a web dev)
Can't be those display drivers, though, since I'm running AMD, not nvidia.
I am pretty sure it didn't happen in 0.7, but I don't have an archive of that around anymore to test it out now. But if that's the case then however the save/load logic changed during these versions might have something to do with it.
Logged

Alex

  • Administrator
  • Admiral
  • *****
  • Posts: 23988
    • View Profile
Re: [linux: 0.8a-rc19] crashes on saving and loading
« Reply #9 on: April 28, 2017, 09:49:03 AM »

Hmm. Yeah, that's possible - still a driver issue, looks like, but could perhaps be worked around. Added this setting:
"processMessagesWhileSavingOrLoading":true

to settings.json for the 0.8.1a release. If you set it to false, that *may* get around that crash.
Logged

Stormking

  • Ensign
  • *
  • Posts: 12
    • View Profile
Re: [linux: 0.8a-rc19] crashes on saving and loading
« Reply #10 on: June 05, 2017, 05:03:53 AM »

works great so far! no crashes at all yesterday.
Logged

Alex

  • Administrator
  • Admiral
  • *****
  • Posts: 23988
    • View Profile
Re: [linux: 0.8a-rc19] crashes on saving and loading [solved]
« Reply #11 on: June 05, 2017, 08:19:55 AM »

Great! Odd that it was necessary, but glad that resolved it for you.
Logged

Althaea

  • Lieutenant
  • **
  • Posts: 80
    • View Profile
Re: [linux: 0.8a-rc19] crashes on saving and loading [solved]
« Reply #12 on: January 01, 2018, 07:40:20 AM »

Had a similar issue, wasn't playing the tutorial and the error was a bit inconsistent which I figure is probably because the tutorial would always be processing messages at that point where this might not be the case in the sandbox. But setting the option to false helped. So thanks!

I noticed, however, that the comment given in the config file was a bit misleading.

Quote
   "processMessagesWhileSavingOrLoading":true, # might work around graphics driver crashes while saving/loading game]

Makes it sound like having it set to "true" is the workaround while the workaround is setting it to "false."
Logged

Alex

  • Administrator
  • Admiral
  • *****
  • Posts: 23988
    • View Profile
Re: [linux: 0.8a-rc19] crashes on saving and loading [solved]
« Reply #13 on: January 01, 2018, 09:01:20 AM »

Ah, thanks, good call - tweaked it. To confirm, you're on Linux as well?
Logged

Althaea

  • Lieutenant
  • **
  • Posts: 80
    • View Profile
Re: [linux: 0.8a-rc19] crashes on saving and loading [solved]
« Reply #14 on: January 01, 2018, 10:18:09 AM »

Yep.
Logged
Pages: [1] 2