[0.15.31] Stopping the server due to an unexpected error

This subforum contains all the issues which we already resolved.
User avatar
die_8_
Long Handed Inserter
Long Handed Inserter
Posts: 57
Joined: Thu Sep 01, 2016 4:22 am
Contact:

[0.15.31] Stopping the server due to an unexpected error

Post by die_8_ »

Attach saved data and logs.
Attachments
factorio-current.log
(25.2 KiB) Downloaded 77 times
factorio15.zip
(16.59 MiB) Downloaded 53 times
kovarex
Factorio Staff
Factorio Staff
Posts: 8207
Joined: Wed Feb 06, 2013 12:00 am
Contact:

Re: [0.15.31] Stopping the server due to an unexpected error

Post by kovarex »

Unluckily for us, we catch the bad_aloc instead of crashing, so we have no idea what happened there. I guess that you can't reproduce it.
The only thing that came to my mind is bad allocation related to malformed packet that has proper crc value by a chance. We check on most of the places, but I found 3 other places where it could create such an error. It is shot in the dark, but it might help.

We should find a way to throw on std::bad_alloc right away, to see the stacktrace ...

Edit: I changed the code for 0.15.32 in a way, that bad_alloc will not be caught as an exception, so it will probably show stack trace of the error next time.
User avatar
Dev-iL
Filter Inserter
Filter Inserter
Posts: 304
Joined: Thu Jul 02, 2015 2:48 pm
Contact:

Re: [0.15.31] Stopping the server due to an unexpected error

Post by Dev-iL »

kovarex wrote:Unluckily for us, we catch the bad_aloc instead of crashing, so we have no idea what happened there. I guess that you can't reproduce it.
So basically it was:
Image
I kid, I kid.... :)
Leading Hebrew translator of Factorio.
kovarex
Factorio Staff
Factorio Staff
Posts: 8207
Joined: Wed Feb 06, 2013 12:00 am
Contact:

Re: [0.15.31] Stopping the server due to an unexpected error

Post by kovarex »

Dev-iL wrote:
kovarex wrote:Unluckily for us, we catch the bad_aloc instead of crashing, so we have no idea what happened there. I guess that you can't reproduce it.
So basically it was:
Image
I kid, I kid.... :)
Nice pic :) Well, we logged the exception (it is in the log), but without stacktrace, it was almost useless ..
Post Reply

Return to “Resolved Problems and Bugs”