Author Topic: [Resolved] Linux: Game crashes at launch  (Read 13814 times)

usha

  • Newbie
  • *
  • Posts: 11
[Resolved] Linux: Game crashes at launch
« on: March 16, 2017, 11:31:37 AM »
I've downloaded v14 linux build and had segmentation fault crashes right away. In my case adding -force-opengl when launching solved this problem.

However, as the problem also occurs for other games and may affect more linux players, I've decided to post about it here, just in case.

Reddit thread with more info where the same is happening with System Shock 2 and Chroma Squad:
https://www.reddit.com/r/linux_gaming/comments/5ejro0/several_games_crashing_on_launch/

Btw. thanks for providing native pre-release builds! Much appreciated.

Daithi

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1250
Re: [Resolved] Linux: Game crashes at launch
« Reply #1 on: March 16, 2017, 03:47:20 PM »
Hi usha! Thanks for the information and for the solution. I haven't encountered this problem on my own Linux machine, but I'll mention this as a potential fix in the next development video. The problem seems to relate to Unity, as the other games you mentioned were both built using Unity. I'll do some research to see if there's a fix I can implement on my end. It is possible that this is an issue with Unity which has been patch out in more up to date versions of the engine - I'm currently using 5.3.3. and the most recent version is around 5.5.

usha

  • Newbie
  • *
  • Posts: 11
Re: [Resolved] Linux: Game crashes at launch
« Reply #2 on: March 17, 2017, 03:39:31 PM »
Hm, so I was a little bit hasty. I was able to launch with that option but the first combat became unplayable with pink boxes everywhere. But the interesting thing is that I've tried to change graphical settings. Afterwards I could run the game without that option. Then I erased the whole game's directory in /home/user/.config/unity3d/Timeslip Softworks/ with the saved settings. And now 64bit executable launches with or without -force-opengl no problems and no pink boxes. I tried a few missions yesterday and even on highest graphical setup it was in good fps space and running well. -force-opengl uses the legacy OpenGL back-end. Some of the folks having this issue also had older machines, but that's not entirely this case. I have GeForce GTX 750 with latest stable nvidia drivers.

Because it was late and I wasn't properly paying attention I cannot say for sure, but it's possible that I had some old setting files in .config folder from the times when I was trying demo during Kickstarter, even when there were no saves anymore. Then when running with -force-opengl I was able to rewrite said settings. But in the end, erasing that whole config directory might be the real solution here. Unfortunately, I didn't checked it before and cannot reproduce the problem nor make any diffs. Sorry for that.

Unity together with mesa and nvidia drivers situation in linux environment isn't easy nor feasible for me to delve into. How much you can do on your side, I don't know. As in this case there is simple possibility I was just stupid and having old files.

If (big IF) the old configuration was the culpit here, you can make the checks when loading from that directory more conservative and if something doesn't fit quite well rather decide to set everything to default? I mean better make players change the settings again than having possibility that it crashes on sigsegv.

I understand this is pretty much wip. if the development is wild, I dunno, easy and sure to do is perhaps temporarily making a new directory for each game's version? Like 'Vigilantes14'. Especially if you're planning updating to newer unity versions and/or having incompatible saves anyway.

Daithi

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1250
Re: [Resolved] Linux: Game crashes at launch
« Reply #3 on: March 20, 2017, 03:27:52 PM »
I have experienced a problem where on launch, a vertical slice of the main menu illustration is displayed, and I think the last column of pixels are repeated. Is this what happened to you? In that case, I deleted the existing configuration directory to solve. I'll look into a better solution.

usha

  • Newbie
  • *
  • Posts: 11
Re: [Resolved] Linux: Game crashes at launch
« Reply #4 on: March 22, 2017, 11:49:24 PM »
I don't think so. It was basically just pink boxes everywhere on the mission screen. But I cannot reproduce that, so deleting existing configuration was probably solution for that as well. 

Daithi

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1250
Re: [Resolved] Linux: Game crashes at launch
« Reply #5 on: March 30, 2017, 03:12:21 PM »
Ah, ok, good to know, thanks! Pink textures are normally unassigned textures. Could happen if a bug interupts the methods loading up the textures.