Page 1 of 1

[16.22] Crash on launch: "Failed to load window icon!"

Posted: Fri Feb 02, 2018 3:41 pm
by albertz66
Factorio 0.16.22 Crashes on launch with the following log:

Code: Select all

   0.000 2018-02-02 09:28:44; Factorio 0.16.22 (build 35382, linux64, steam)
   0.000 Operating system: Linux
   0.000 Program arguments: "/home/me/.local/share/Steam/steamapps/common/Factorio/bin/x64/factorio" 
   0.000 Read data path: /home/me/.local/share/Steam/steamapps/common/Factorio/data
   0.000 Write data path: /home/me/.factorio [16624/42020MB]
   0.000 Binaries path: /home/me/.local/share/Steam/steamapps/common/Factorio/bin
   0.015 System info: [CPU: Intel(R) Core(TM) i5-4200U CPU @ 1.60GHz, 4 cores, RAM: 7902 MB]
   0.016 Display options: [FullScreen: 1] [VSync: 1] [UIScale: system (100.0%)] [MultiSampling: OFF] [Screen: 255] [Lang: en]
   0.036 Available display adapters: 1
   0.036  [0]: resolution 1366x768px at [0,0]
   0.036 Create display on adapter 0. Size 1280x718 at position [33, 7].
   0.387 Initialised OpenGL:[0] Mesa DRI Intel(R) Haswell Mobile ; driver: 3.0 Mesa 17.3.3
   0.388   GL_NVX_gpu_memory_info not supported, VRAM detection won't work properly
   0.388 al_create_bitmap failed while loading PNG.

   0.388 Error Util.cpp:49: Failed to load window icon! Loading from: /home/me/.local/share/Steam/steamapps/common/Factorio/data/core/graphics/factorio-icon.png
   0.390 Error CrashHandler.cpp:419: Received SIGSEGV
Could this be due to the recent changes in linking libpng?

Re: [16.22] Crash on launch: "Failed to load window icon!"

Posted: Fri Feb 02, 2018 4:02 pm
by Oxyd
Can you open /home/me/.local/share/Steam/steamapps/common/Factorio/data/core/graphics/factorio-icon.png in an image editor? Does it open and look correct?

Re: [16.22] Crash on launch: "Failed to load window icon!"

Posted: Sat Feb 03, 2018 4:47 pm
by albertz66
Yes. It looks fine. I have also verified the integrity of game files through Steam, without issue.

Re: [16.22] Crash on launch: "Failed to load window icon!"

Posted: Mon Feb 05, 2018 10:50 am
by wheybags
Looking at the code, it seems that it was creating a texture to load into that failed, not the actual png loading code.

Re: [16.22] Crash on launch: "Failed to load window icon!"

Posted: Mon Feb 05, 2018 12:17 pm
by wheybags
Did previous versions of factorio work on this machine?

Re: [16.22] Crash on launch: "Failed to load window icon!"

Posted: Mon Feb 05, 2018 1:27 pm
by albertz66
Yes. I believe it broke somewhere around version 0.16.18

Re: [16.22] Crash on launch: "Failed to load window icon!"

Posted: Mon Feb 05, 2018 1:31 pm
by wheybags
Could you maybe check just to be sure? It would be good to know exactly what version made it break. You can download older releases from our website, or in steam by opting into a specific "beta".