Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Random error when detonating a nuke? #5

Closed
trikop opened this issue Jul 2, 2022 · 9 comments
Closed

Random error when detonating a nuke? #5

trikop opened this issue Jul 2, 2022 · 9 comments

Comments

@trikop
Copy link

trikop commented Jul 2, 2022

The mod True Nukes (0.2.10) caused a non-recoverable error. Please report this error to the mod author.
Error while running event True-Nukes::on_script_trigger_effect (ID 153) Flush failed: Invalid argument stack traceback: [C]: in function 'destroy' True-Nukes/control.lua:1520: in function 'optimisedChunkLoadHandler' True-Nukes/control.lua:1876: in function 'atomic_weapon_hit' True-Nukes/control.lua:2093: in function <True-Nukes/control.lua:2039>

@More-Wrong
Copy link
Owner

Hi, thanks for the bug report.
What were you doing at the time of the crash, and what other mods did you have installed?

@trikop
Copy link
Author

trikop commented Jul 3, 2022

the betas of SE+K2 and like 100 other mods.
At the time I got this error I was trying to nuke the biters off a fully scanned planet (idk if this matters or not). Didn't get the error after trimming the size of the planet. I'm quite curious about why it crashed tho 🤔

@More-Wrong
Copy link
Owner

Yeah, that report looks very odd - I honestly think this might be an internal problem. I'll put a post on the forum. Possibilities that come to mind are things like you running out of memory - you were detonating a 10Mt (I think), on a large loaded surface, the bigger nukes scale with the area loaded at the time, so having scanned the planet might load a big area... idk how space exploration works though...
A few questions on that kind of theory:
What kind of hardware are you running?
What operating system are you using?
How long did the game freeze before failing (and did it play the sounds before dying)?
Were you running anything memory or cpu intensive at the time (like a browser)?
Did the disk activity light go fully on before the crash?

Final thing, just so I can see:
Can I have a screenshot of the traceback (like what comes up on screen)?

@More-Wrong
Copy link
Owner

Oh, also, can I see the factorio log (https://wiki.factorio.com/Log_file for details)

@More-Wrong
Copy link
Owner

I've asked on the forum:
https://forums.factorio.com/viewtopic.php?f=25&t=102820

@trikop
Copy link
Author

trikop commented Jul 3, 2022

I realize now that this issue might be related to not enough RAM. I have 16GB and just running modded factorio uses around 10GB. Going back to the save I made before detonating the 10Mt nuke, I tried detonating it again and the game froze for a few minutes (like it usually does when doing things like detonating nukes), but then this time it crashed.
According to task manager I was using 90-98% ram from after the nuke detonated until it crashed
I'm using windows
no browser open and disk activity was nothing out of the ordinary

@More-Wrong
Copy link
Owner

Yeah, that figures. You can get almost any error from memory full, unless the system has a properly organised way of failing on full memory. You should be good for smaller nukes on that, but the bigger ones (100kt+) have performance requirements dependant entirely on the number of chunks loaded. This might have been too many.
(I was asking disk activity because some computers use a bit of disk to supplement RAM, and you can tell when they get really short because their disk light goes full-on, and they get ~1000x slower).

@trikop
Copy link
Author

trikop commented Jul 3, 2022

Yeah, factorio log shows it crashed due to Stack overflow.. quite interesting indeed
Thank you for your time :)

@More-Wrong
Copy link
Owner

No problem at all.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants