[1.1.26] Crash (LightRenderer::loadLights)

Place for things which are bugs but we have no idea how to solve them. Things related to hardware, libraries, strange setups, etc.
Post Reply
thehairyvikingniels
Manual Inserter
Manual Inserter
Posts: 4
Joined: Thu Mar 04, 2021 1:11 pm
Contact:

[1.1.26] Crash (LightRenderer::loadLights)

Post by thehairyvikingniels »

Hi all,

My factorio game just crashed mid-game.
I was (dragging) placing belts using a blueprint.
I was unable to reproduce the crash by doing approximately the same...
Attachments
1.1 Megabase.zip
Savegame
(56.9 MiB) Downloaded 91 times
factorio-current.log
Logfile
(10.85 KiB) Downloaded 89 times

thehairyvikingniels
Manual Inserter
Manual Inserter
Posts: 4
Joined: Thu Mar 04, 2021 1:11 pm
Contact:

Re: [1.1.26] Crash (LightRenderer::loadLights) 128MB VRAM

Post by thehairyvikingniels »

It happend again so it's not a one-off
Attachments
factorio-current.log
Logfile
(12.35 KiB) Downloaded 81 times

orzelek
Smart Inserter
Smart Inserter
Posts: 3911
Joined: Fri Apr 03, 2015 10:20 am
Contact:

Re: [1.1.26] Crash (LightRenderer::loadLights) 128MB VRAM

Post by orzelek »

Please be aware that minimum supported amount of VRAM is 512MB so you are not meeting minimum required specs for game.
More details in FAQ:
https://www.factorio.com/support/faq#q- ... quirements

posila
Factorio Staff
Factorio Staff
Posts: 5201
Joined: Thu Jun 11, 2015 1:35 pm
Contact:

Re: [1.1.26] Crash (LightRenderer::loadLights) 128MB VRAM

Post by posila »

VRAM is fine. The detected amount is mostly just reserved amount of system RAM for integrated GPU, but the iGPU can use up to half of RAM size (almost 16 GB in this case)
Anyhow, the crash is not related to the GPU

posila
Factorio Staff
Factorio Staff
Posts: 5201
Joined: Thu Jun 11, 2015 1:35 pm
Contact:

Re: [1.1.26] Crash (LightRenderer::loadLights) 128MB VRAM

Post by posila »

Can you ZIP and upload also factorio-dump-current.dmp and factorio-dump-previous.dmp, please?

thehairyvikingniels
Manual Inserter
Manual Inserter
Posts: 4
Joined: Thu Mar 04, 2021 1:11 pm
Contact:

Re: [1.1.26] Crash (LightRenderer::loadLights) 128MB VRAM

Post by thehairyvikingniels »

Of course. Here you go.
Kudos to the dev team by the way. These are my first crashes in 1300+ hours of playing!
Attachments
dump.7z
factorio-dump-current.dmp and factorio-dump-previous.dmp
(273.12 KiB) Downloaded 67 times

posila
Factorio Staff
Factorio Staff
Posts: 5201
Joined: Thu Jun 11, 2015 1:35 pm
Contact:

Re: [1.1.26] Crash (LightRenderer::loadLights)

Post by posila »

Thank you for the dumps. Normally, I would dismiss it as 1/0 Magic crash, due to cosmic ray hitting your HW just in the right place, as this is pretty much only occurance of this crash we have captured. But since the exact same crash happened to you twice in a row, I decided it was worth investigating.

As far as I can tell, stack pointer got corrupted sometime during execution of LightDefinition::draw() and crash happened when the function was returning to the caller (because return address at top of the stack was nonsense). In the dump-current, it was probably drawing light of a rail signal, and in dump-previous light of lamp. In both cases the stack pointer seems to be of by 0x80, which happens to be also how many bytes LightDefinition::draw() uses on stack. So possible explanation would be that when LightDefinition::draw() was doing stack cleanup before returning, CPU somehow executed the instruction that adds 0x80 to the stack pointer twice ... now that sounds like a nonsense but it is the best I got at the moment, unfortunatelly :/

Anyway, moving to 1/0 Magic and I'll keep an eye on future occurances of this crash.

thehairyvikingniels
Manual Inserter
Manual Inserter
Posts: 4
Joined: Thu Mar 04, 2021 1:11 pm
Contact:

Re: [1.1.26] Crash (LightRenderer::loadLights)

Post by thehairyvikingniels »

I know it has been a while but I thought I might mention it:

The crashes kept happening on seemingly random times for weeks. Sometimes days would pass with no crash, a different day it would crash 3 times while playing...
Sinds I finally bought a GPU I'm no longer using my I-GPU and the crashes have disappeared.

I have no idea if this info might help but I thought any info is at least something.

Post Reply

Return to “1 / 0 magic”