[1.1.109] Segfault when launching with optirun/primusrun

Anything that prevents you from playing the game properly. Do you have issues playing for the game, downloading it or successfully running it on your computer? Let us know here.
rolenthedeep
Manual Inserter
Manual Inserter
Posts: 1
Joined: Fri Aug 16, 2024 2:56 am
Contact:

[1.1.109] Segfault when launching with optirun/primusrun

Post by rolenthedeep »

I get a segfault when launching Factorio. I'm running Manjaro on a (quite) old Thinkpad T530. That's an integrated Intel Ivybridge gen 7 and an Nvidia NVS 5400m with the Nvidia 390 drivers. I use the Bumblebee drivers and generally have no problems with anything other than Factorio.

If I don't launch Factorio with optirun or primusrun and just use the integrated graphics, it works fine, if slowly. Trying to run on the dedicated GPU, Factorio doesn't open a window. It immediately segfaults. I get no logs of any kind, no messages, nothing but two lines in dmesg:

Code: Select all

[ 5875.898529] factorio[32871]: segfault at 0 ip 0000000001ee04c0 sp 00007ffdb1f49258 error 6 in factorio[400000+2335000] likely on CPU 3 (core 1, socket 0)
[ 5875.898558] Code: 00 00 00 48 89 e6 e8 2f c5 52 fe 48 69 04 24 00 ca 9a 3b 48 03 44 24 08 48 83 c4 18 c3 66 66 66 66 2e 0f 1f 84 00 00 00 00 00 <49> 89 10 b8 03 00 00 00 c3 0f 1f 80 00 00 00 00 31 c0 c3 66 66 66
It's the same message and codes each time.

This has been happening to me for at least six months or so. I've tried to debug it off and on, but always gave up because I couldn't find any logs. Somehow I didn't think to check dmesg until now. However, it did work before I installed Manjaro. Odd thing is, I was using another Arch distro before, either KDE Neon or Garuda. Both times the drivers were set up by mhwd.

I think this is more related to my specific system than Factorio, but I have no clue where to look next. Any hints would be much appreciated.

The only thing I could find was an offhand mention of adding PRIMUS_UPLOAD=1 to my command line invocation, but that gave absolutely no change.
Tobinger
Manual Inserter
Manual Inserter
Posts: 1
Joined: Mon Dec 30, 2024 11:59 pm
Contact:

Re: [1.1.109] Segfault when launching with optirun/primusrun

Post by Tobinger »

Hi,

had the same issue on Manjaro and also 390xx Nvidia drivers. It was a missing VirtualGL installation on my system. This works only with optirun (primusrun don't use VirtualGL). Try to install virtualgl with pamac.
I think it only happens on old GPUs. Newer ones will use Vulkan.

Hope this will helps you and others.
Last edited by Tobinger on Tue Dec 31, 2024 12:10 am, edited 1 time in total.
Post Reply

Return to “Technical Help”