Crash on forced monitor switch (Windows)

Bugs that we were not able to reproduce, and/or are waiting for more detailed info.
dawnraider00
Manual Inserter
Manual Inserter
Posts: 1
Joined: Tue Jun 13, 2017 4:49 am
Contact:

Crash on forced monitor switch (Windows)

Post by dawnraider00 »

I use 2 monitors on my computer, my primary one is 3440x1440 while my secondary is 1920x1080. If I switch the inputs of my primary monitor while I'm using the computer the computer switches to only using the secondary monitor, moving and resizing all open windows. When the computer does this to Factorio, the game crahses with the following error:

Unable to create sprite (1916X1013) probably not enough video memory.

I did a little more testing, and it does not happen when changing the resolution of the game through Windows, even when changing aspect ratios, however it does happen when I unplug the primary monitor. Additionally, if the monitors are the same resolution it does not crash, but if the original monitor is a higher resolution (regardless of aspect ratio - tested at 3440x1440, 2560x1440, 2560x1080, and 1920x1080 - every one crashed when going to a 1920x1080 monitor except when the primary monitor was set to 1920x1080)
Loewchen
Global Moderator
Global Moderator
Posts: 10262
Joined: Wed Jan 07, 2015 5:53 pm
Contact:

Re: Crash on forced monitor switch (Windows)

Post by Loewchen »

Post the complete log, see my signature.
rorror
Fast Inserter
Fast Inserter
Posts: 241
Joined: Fri Nov 21, 2014 9:02 pm
Contact:

Re: Crash on forced monitor switch (Windows)

Post by rorror »

This just happend to me too

Factorio was running for hours, i unplugged my monitor cable on my laptop (while factorio was running on laptop screen)

See my log file, while the topic starter did not provide one.
Attachments
factorio-current.log
(149.63 KiB) Downloaded 116 times
User avatar
Jon8RFC
Filter Inserter
Filter Inserter
Posts: 556
Joined: Tue May 10, 2016 3:39 pm
Contact:

Re: Crash on forced monitor switch (Windows)

Post by Jon8RFC »

I searched and found your thread. My game doesn't crash when I unplug my monitor, but it seems to improve memory usage.

My game did crash for another reason but gave me the same error. I understand that my system is weak, so I have the memory usage graphics setting on "All" which gives me the best performance. It uses more dynamic memory (taken from system memory), and the reason my game crashed is because it "ran out" of video memory, but what I really think happened was my system memory was maxed out because I started multi-tasking and was doing some alt+enter a few times and opening FRAPS.

viewtopic.php?f=7&t=52209&p=305025#p305025
Image
Post Reply

Return to “Pending”