Page 1 of 1

[1.1.49] Unexpected error occurred while preview map

Posted: Fri Dec 17, 2021 7:18 pm
by nuhll
Hi,
i wanna start a new map, i got some bluescreens while tryin to preview maps in singleplayer so i decided to go to multiplayer to create a map...

then i got a "Unexpected error occurred"

Some QoL Mods, Krastorio 2, Space exploration

Re: [1.1.49] Unexpected error occurred while preview map

Posted: Fri Dec 17, 2021 7:19 pm
by Loewchen
If you get bluescreens, then something is wrong with your system.

Re: [1.1.49] Unexpected error occurred while preview map

Posted: Fri Dec 17, 2021 8:39 pm
by nuhll
yeah, but it only happens in factorio. it said i should share it, so there you are.

And also not only in factorio, it also ONLY happens while creating a preview of a map.

Re: [1.1.49] Unexpected error occurred while preview map

Posted: Sat Dec 18, 2021 5:11 pm
by orzelek
nuhll wrote: Fri Dec 17, 2021 8:39 pm yeah, but it only happens in factorio. it said i should share it, so there you are.

And also not only in factorio, it also ONLY happens while creating a preview of a map.
I think that preview map generates using multiple threads so if it causes blue screens you could run some tests to load CPU and check if they will also cause problems.

Re: [1.1.49] Unexpected error occurred while preview map

Posted: Fri Dec 31, 2021 12:11 pm
by nuhll
Yeah again like 100 hours in a game without a single crash. I literally had to use a different computer to generate a map for me :P

Maybe a dev can tell what makes the preview method so special? Does it use different instructions?

Re: [1.1.49] Unexpected error occurred while preview map

Posted: Fri Dec 31, 2021 1:53 pm
by Bilka
nuhll wrote: Fri Dec 31, 2021 12:11 pm Maybe a dev can tell what makes the preview method so special?
It eats CPU cores for breakfast :)


You can try reducing the used thread count: Main menu -> ctrl + alt click on settings -> the rest -> search for max-map-preview-threads -> decrease the number.

Re: [1.1.49] Unexpected error occurred while preview map

Posted: Sat Jan 01, 2022 12:03 am
by nuhll
Bilka wrote: Fri Dec 31, 2021 1:53 pm
nuhll wrote: Fri Dec 31, 2021 12:11 pm Maybe a dev can tell what makes the preview method so special?
It eats CPU cores for breakfast :)


You can try reducing the used thread count: Main menu -> ctrl + alt click on settings -> the rest -> search for max-map-preview-threads -> decrease the number.
Thanks, ill give it a try.

But i tested my OC with prime95, does it maybe use AVX (or what ever its called?) this special thing no program normal uses xD

Re: [1.1.49] Unexpected error occurred while preview map

Posted: Sun Jan 02, 2022 1:10 am
by Rseding91
nuhll wrote: Sat Jan 01, 2022 12:03 am Thanks, ill give it a try.

But i tested my OC with prime95, does it maybe use AVX (or what ever its called?) this special thing no program normal uses xD
Virtually every program out there uses SIMD including the operating system and the browser you're using to post here.

The bottom line is: if you experience a BSOD then your hardware is unstable. That's caused by: bad overclocks, bad hardware, or bad drivers.

Re: [1.1.49] Unexpected error occurred while preview map

Posted: Sun Jan 02, 2022 4:32 am
by ptx0
Rseding91 wrote: Sun Jan 02, 2022 1:10 am The bottom line is: [...] hardware is unstable. That's caused by: [...] bad drivers.
that's software
Rseding91 wrote: Sun Jan 02, 2022 1:10 am Virtually every program out there uses SIMD including the operating system and the browser you're using to post here.
not all SIMD use is equivalent or Prime95 wouldn't be capable of such excessive power consumption. Furmark has its own nasty way with things.

either way, not helpful info since it's not even accurate

Re: [1.1.49] Unexpected error occurred while preview map

Posted: Sun Jan 02, 2022 4:37 am
by ptx0
https://stackoverflow.com/questions/171 ... 0005-in-vc


c05 error is accessing invalid memory, which means Factorio is doing something it shouldn't. probably a use-after-free in some threaded code.

Re: [1.1.49] Unexpected error occurred while preview map

Posted: Sun Jan 02, 2022 4:48 am
by ptx0
btw you have a really nice system and i'm kind of jealous 🥰

Re: [1.1.49] Unexpected error occurred while preview map

Posted: Sun Jan 02, 2022 5:05 am
by Rseding91
ptx0 wrote: Sun Jan 02, 2022 4:32 am
Rseding91 wrote: Sun Jan 02, 2022 1:10 am The bottom line is: [...] hardware is unstable. That's caused by: [...] bad drivers.
that's software
Drivers are kernal space software. User space software does not have access to anything that can cause a BSOD.

Re: [1.1.49] Unexpected error occurred while preview map

Posted: Sun Jan 02, 2022 5:09 am
by Rseding91
ptx0 wrote: Sun Jan 02, 2022 4:37 am https://stackoverflow.com/questions/171 ... 0005-in-vc


c05 error is accessing invalid memory, which means Factorio is doing something it shouldn't. probably a use-after-free in some threaded code.
It's not. It's a unstable system executing code that has been corrupted by an unstable CPU overclock. I and multiple coworkers have that exact same CPU and have been running it for quite some time with zero issues. If there was any issue with the code that's running we would see it in the crash logs and they show there is no issues around that area of code.