[0.13.19] [Hanziq] Linux Crash on Mod Update using Bumblebee

This subforum contains all the issues which we already resolved.
pcmaster160
Inserter
Inserter
Posts: 26
Joined: Wed Oct 23, 2013 12:51 pm
Contact:

[0.13.19] [Hanziq] Linux Crash on Mod Update using Bumblebee

Post by pcmaster160 »

When updating mods ingame (specifically the creative mode mod in this case from 0.1.3 to 0.1.4) the downloading progress bar never progresses and the game almost immediately crashes. Upon starting the game after this it will crash due to a duplicate mod (the 0.1.3 zip is not removed).

There is nothing out of the ordinary in the log except it just seems to fail to restart the game.

Code: Select all

28.690 Info ModPortal.cpp:159: Downloading /api/downloads/data/mods/232/creative-mode_0.1.4.zip?username=pcmaster160&token=<private> to /home/matt/.factorio/temp/creative-mode_0.1.4.zip
  28.691 Info HttpSharedState.cpp:44: Downloading https://mods.factorio.com/api/downloads/data/mods/232/creative-mode_0.1.4.zip?username=pcmaster160&token=<private>
  30.932 Info HttpSharedState.cpp:108: Status code: 200
  30.985 Info AppManager.cpp:626: Restarting Factorio
X Error of failed request:  GLXBadWindow
  Major opcode of failed request:  155 (GLX)
  Minor opcode of failed request:  32 (X_GLXDestroyWindow)
  Serial number of failed request:  33
  Current serial number in output stream:  35
Game removed: AppID 427520 "Factorio", ProcID 15784 
However upon starting the game after the first crash it crashes every time until the old version of the mod is manually deleted from the mods folder.

Code: Select all

0.066 Operating system: Linux (Arch rolling)
   0.066 Program arguments: "/home/matt/.local/share/Steam/steamapps/common/Factorio/bin/x64/factorio" 
   0.066 Read data path: /home/matt/.local/share/Steam/steamapps/common/Factorio/data
   0.066 Write data path: /home/matt/.factorio
   0.066 Binaries path: /home/matt/.local/share/Steam/steamapps/common/Factorio/bin
   0.075 Graphics options: [FullScreen: true] [VSync: false] [UIScale: 100%] [MultiSampling: OFF] [Graphics quality: normal] [Video memory usage: all] [Light scale: 30%] [Screen: 255] [DXT: false]
   0.099 Available display adapters: 3
   0.099  [0]: resolution 1920x1080px at [3840,0]
   0.099  [1]: resolution 1920x1080px at [1920,0]
   0.099  [2]: resolution 1920x1080px at [0,0]
   0.099 Create display on adapter 2. Size 1280x720 at position [310, 162].
   0.437 Initialised OpenGL:[2] GeForce 940MX/PCIe/SSE2; driver: 4.5.0 NVIDIA 370.23
   0.437     Video memory size (dedicated/total available/current available): 2048/2048/1970 MB
Installing breakpad exception handler for appid(gameoverlayui)/version(20160823182503)
Installing breakpad exception handler for appid(gameoverlayui)/version(1.0)
Installing breakpad exception handler for appid(gameoverlayui)/version(1.0)
Fontconfig error: "/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", line 72: non-double matrix element
Fontconfig error: "/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", line 72: non-double matrix element
Fontconfig warning: "/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", line 80: saw unknown, expected number
   0.836 Error Util.cpp:57: Duplicate mod creative-mode.
factorio: libglfork.cpp:775: void glXDestroyWindow(Display*, GLXWindow): Assertion `primus.drawables.known(window)' failed.
ERROR: ld.so: object '/home/matt/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
ERROR: ld.so: object '/home/matt/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
Installing breakpad exception handler for appid(gameoverlayui)/version(1.0)
Factorio crashed. Generating symbolized stacktrace, please wait ...
ERROR: ld.so: object '/home/matt/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
ERROR: ld.so: object '/home/matt/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
#0  0x77c9fb in CrashHandler::writeStackTrace() at /tmp/factorio-MvEaNl/src/Util/CrashHandler.cpp:105
#1  0x77cc74 in CrashHandler::SignalHandler(int) at /tmp/factorio-MvEaNl/src/Util/CrashHandler.cpp:215
#2  0x7f094dea60b0 in ?? at ??:0
#3  0x7f094dea604f in ?? at ??:0
#4  0x7f094dea747a in ?? at ??:0
#5  0x7f094de9eea7 in ?? at ??:0
#6  0x7f094de9ef52 in ?? at ??:0
#7  0x7f094ed80e3d in ?? at ??:0
#8  0xe197fe in xdpy_destroy_display_hook_default at /tmp/factorio-MvEaNl/libraries/Allegro/src/x/xdisplay.c:637
#9  0xe191c1 in xdpy_destroy_display at /tmp/factorio-MvEaNl/libraries/Allegro/src/x/xdisplay.c:689
#10 0xe1713a in xglx_shutdown_system at /tmp/factorio-MvEaNl/libraries/Allegro/src/x/xsystem.c:105
#11 0xdca93d in shutdown_system_driver at /tmp/factorio-MvEaNl/libraries/Allegro/src/system.c:84
#12 0xdac394 in _al_run_exit_funcs at /tmp/factorio-MvEaNl/libraries/Allegro/src/exitfunc.c:89
#13 0xdca8d5 in al_uninstall_system at /tmp/factorio-MvEaNl/libraries/Allegro/src/system.c:315
#14 0x7f094dea8990 in ?? at ??:0
#15 0x7f094dea89ea in ?? at ??:0
#16 0x7f094de93298 in ?? at ??:0
#17 0x40af29 in _start at ??:?
   2.209 Error Util.cpp:77: Unexpected error occurred. If you're running the latest version of the game you can help us solve the problem by posting the contents of the log file on the Factorio forums.
Please also include the save file(s), any mods you may be using, and any steps you know of to reproduce the crash.
Last edited by pcmaster160 on Wed Sep 14, 2016 8:36 pm, edited 1 time in total.
Oxyd
Former Staff
Former Staff
Posts: 1428
Joined: Thu May 07, 2015 8:42 am
Contact:

Re: [0.13.19] [Hanziq] Linux Crash on Mod Update

Post by Oxyd »

Can't reproduce. I tried updating Creative Mode 0.1.3 using the mod manager, and it downloaded pretty much instantly and the game restarted correctly.

Is there anything else we need to do to reproduce this?
pcmaster160
Inserter
Inserter
Posts: 26
Joined: Wed Oct 23, 2013 12:51 pm
Contact:

Re: [0.13.19] [Hanziq] Linux Crash on Mod Update

Post by pcmaster160 »

Nope. Still happening on Arch Linux using steam version on 14.5. There are 4 issues here.

Firstly the progress bar doesn't progress. I just updated 3 mods and I could see network activity at 13mbps for around 30 seconds (WaiTex is quite big) and there was no progress bar activity. It shows as a black rectangle (See Attachment).

Secondly the old mod files are not deleted (The old version of the mod is not deleted however the new version of the mod is created). This may cause the third issue.

Third, the game doesn't restart. It just closes and nothing of interest is printed to the log. It may be crashing trying to delete the old game files, however it clearly has write perms in that directory because it is creating new files. (I do think this might be an independent issue however since I recall the game not properly restarting on linux for a long time).

Fourth, the game crashes upon startup if there are 2 different versions of the same mod in the mods folder. Other than viewing the log file the user has no indication that they caused the crash. There is no popup or anything it just loads for a bit then crashes.
Attachments
No Progress Bar
No Progress Bar
2016-09-13-124915_1920x1080_scrot.png (2.72 MiB) Viewed 4172 times
User avatar
HanziQ
Former Staff
Former Staff
Posts: 630
Joined: Fri Mar 27, 2015 7:07 am
Contact:

Re: [0.13.19] [Hanziq] Linux Crash on Mod Update

Post by HanziQ »

Progress bar not moving will be fixed in the next version. Old mod files are deleted on proper shutdown, but the game crashes while restarting, so that doesn't happen. It doesn't look like it crashed because of file permissions, but rather because of some problem with the window manager, as indicated by:

Code: Select all

Error of failed request:  GLXBadWindow
  Major opcode of failed request:  155 (GLX)
  Minor opcode of failed request:  32 (X_GLXDestroyWindow)
pcmaster160
Inserter
Inserter
Posts: 26
Joined: Wed Oct 23, 2013 12:51 pm
Contact:

Re: [0.13.19] [Hanziq] Linux Crash on Mod Update

Post by pcmaster160 »

I got it. The issue is caused by using bumblebee which is essentially optimus for linux. More Information. I have confirmed running the game without this works correctly (minus the progress bar graphic).

Basically it enables the discrete graphics card on certain processes. I'm launching factorio with the command primusrun %COMMAND% which will in steam put primusrun before the game executable when launching. Primusrun basically enables the gpu until that process is closed. This is what is causing that opcode.

You can investigate if you really want, but I'd suggest simply giving an error on startup with multiple versions of the same mod instead of just crashing.
User avatar
HanziQ
Former Staff
Former Staff
Posts: 630
Joined: Fri Mar 27, 2015 7:07 am
Contact:

Re: [0.13.19] [Hanziq] Linux Crash on Mod Update using Bumblebee

Post by HanziQ »

The problem is, that our dialog windows don't work in linux, it is giving a proper error. We will be using a new version of Allegro in 0.15, so they might work there. Anyways it now loads and displays a message in the main menu, while loading higher versions of mods.
Post Reply

Return to “Resolved Problems and Bugs”