[0.15.31] Stopping the server due to an unexpected error
[0.15.31] Stopping the server due to an unexpected error
Attach saved data and logs.
- Attachments
-
- factorio-current.log
- (25.2 KiB) Downloaded 77 times
-
- factorio15.zip
- (16.59 MiB) Downloaded 53 times
Re: [0.15.31] Stopping the server due to an unexpected error
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.
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.
Re: [0.15.31] Stopping the server due to an unexpected error
So basically it was: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.
I kid, I kid....
Leading Hebrew translator of Factorio.
Re: [0.15.31] Stopping the server due to an unexpected error
Nice pic Well, we logged the exception (it is in the log), but without stacktrace, it was almost useless ..Dev-iL wrote:So basically it was: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.
I kid, I kid....