[Rseding91] [0.16.16] Crash in MP - EntityWithOwner.cpp:241

This subforum contains all the issues which we already resolved.
Post Reply
User avatar
Dev-iL
Filter Inserter
Filter Inserter
Posts: 298
Joined: Thu Jul 02, 2015 2:48 pm
Contact:

[Rseding91] [0.16.16] Crash in MP - EntityWithOwner.cpp:241

Post by Dev-iL »

Crash happened twice when playing on a public MP server ("ExplosiveGaming S1 Public"; no mods). At the time of the crash I wasn't doing anything special, just standing around.

This seems to be the error:

Code: Select all

Error EntityWithOwner.cpp:241: Unit number cannot be zero when comparing entities.
The attached save was made between the two crashes.

I'm sorry if this was reported already - I couldn't find a duplicate.
Attachments
Crash_maybe.zip
(16.87 MiB) Downloaded 91 times
factorio-dump-previous.dmp
(603.96 KiB) Downloaded 89 times
factorio-dump-current.dmp
(596.28 KiB) Downloaded 78 times
factorio-current.log
(10.08 KiB) Downloaded 92 times
factorio-previous.log
(11.94 KiB) Downloaded 89 times
Leading Hebrew translator of Factorio.

nucklesamich
Manual Inserter
Manual Inserter
Posts: 3
Joined: Mon Jan 15, 2018 9:19 pm
Contact:

Re: [0.16.16] Crash in MP - EntityWithOwner.cpp:241

Post by nucklesamich »

I got the same issue a few minutes ago.
Attachments
factorio-previous.log
(23.69 KiB) Downloaded 94 times

User avatar
Dev-iL
Filter Inserter
Filter Inserter
Posts: 298
Joined: Thu Jul 02, 2015 2:48 pm
Contact:

Re: [0.16.16] Crash in MP - EntityWithOwner.cpp:241

Post by Dev-iL »

nucklesamich wrote:I got the same issue a few minutes ago.
Same server?
Leading Hebrew translator of Factorio.

nucklesamich
Manual Inserter
Manual Inserter
Posts: 3
Joined: Mon Jan 15, 2018 9:19 pm
Contact:

Re: [0.16.16] Crash in MP - EntityWithOwner.cpp:241

Post by nucklesamich »

Dev-iL wrote:
nucklesamich wrote:I got the same issue a few minutes ago.
Same server?
I think so? Explosive gaming S1?

sakama
Manual Inserter
Manual Inserter
Posts: 1
Joined: Mon Jan 15, 2018 9:27 pm
Contact:

Re: [0.16.16] Crash in MP - EntityWithOwner.cpp:241

Post by sakama »

factorio-previous.log
I got this issue on the same server (explosive gaming s1)
(13.5 KiB) Downloaded 102 times

User avatar
badgamernl
Long Handed Inserter
Long Handed Inserter
Posts: 63
Joined: Sat Aug 29, 2015 4:03 pm
Contact:

Re: [0.16.16] Crash in MP - EntityWithOwner.cpp:241

Post by badgamernl »

This is the server save maybe something is wrong with it.
Attachments
explosivegaming-s1-save-21131313123.zip
(17.08 MiB) Downloaded 92 times
-- Explosive Gaming a factorio server community, or join the discord --

Rseding91
Factorio Staff
Factorio Staff
Posts: 13198
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: [0.16.16] Crash in MP - EntityWithOwner.cpp:241

Post by Rseding91 »

Thanks for the report. Do you happen to know if the save file was originally migrated from 0.15?
If you want to get ahold of me I'm almost always on Discord.


User avatar
badgamernl
Long Handed Inserter
Long Handed Inserter
Posts: 63
Joined: Sat Aug 29, 2015 4:03 pm
Contact:

Re: [0.16.16] Crash in MP - EntityWithOwner.cpp:241

Post by badgamernl »

Rseding91 wrote:Thanks for the report. Do you happen to know if the save file was originally migrated from 0.15?
no it has not been migrated
-- Explosive Gaming a factorio server community, or join the discord --

Rseding91
Factorio Staff
Factorio Staff
Posts: 13198
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: [0.16.16] Crash in MP - EntityWithOwner.cpp:241

Post by Rseding91 »

It looks like there's a blueprint in Ronin114s inventory that's broken. It's missing data that should be set on the entities in the blueprint.

Does the scenario you're using do anything with blueprints?
If you want to get ahold of me I'm almost always on Discord.

User avatar
badgamernl
Long Handed Inserter
Long Handed Inserter
Posts: 63
Joined: Sat Aug 29, 2015 4:03 pm
Contact:

Re: [0.16.16] Crash in MP - EntityWithOwner.cpp:241

Post by badgamernl »

Rseding91 wrote:It looks like there's a blueprint in Ronin114s inventory that's broken. It's missing data that should be set on the entities in the blueprint.

Does the scenario you're using do anything with blueprints?
this is prob the problem and no the scenario does not use bp's.
https://cdn.discordapp.com/attachments/ ... nknown.png
-- Explosive Gaming a factorio server community, or join the discord --

Rseding91
Factorio Staff
Factorio Staff
Posts: 13198
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: [0.16.16] Crash in MP - EntityWithOwner.cpp:241

Post by Rseding91 »

Can you zip and upload the contents of the data\base\migrations from the server?
If you want to get ahold of me I'm almost always on Discord.

User avatar
badgamernl
Long Handed Inserter
Long Handed Inserter
Posts: 63
Joined: Sat Aug 29, 2015 4:03 pm
Contact:

Re: [0.16.16] Crash in MP - EntityWithOwner.cpp:241

Post by badgamernl »

Rseding91 wrote:Can you zip and upload the contents of the data\base\migrations from the server?
There you go :)
Attachments
migrations.zip
(10.75 KiB) Downloaded 61 times
-- Explosive Gaming a factorio server community, or join the discord --

Rseding91
Factorio Staff
Factorio Staff
Posts: 13198
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: [0.16.16] Crash in MP - EntityWithOwner.cpp:241

Post by Rseding91 »

Yep, that's it. You have 0.11 and 0.12 migrations on the server when you shouldn't.

Well, not the only problem but one of them.

Delete the _0.11.X and _0.12.X migration files on your server and it should fix the crash for now until I add a proper check that people with different migrations aren't loading into the same MP game together.
If you want to get ahold of me I'm almost always on Discord.

User avatar
badgamernl
Long Handed Inserter
Long Handed Inserter
Posts: 63
Joined: Sat Aug 29, 2015 4:03 pm
Contact:

Re: [Rseding91] [0.16.16] Crash in MP - EntityWithOwner.cpp:241

Post by badgamernl »

I removed the files yesterday but it was a bit late for me...

Today I generated a new map and got this error after 37min but I don't know if it's related?

Code: Select all

Factorio crashed. Generating symbolized stacktrace, please wait ...
2225.634 Warning Logger.cpp:446: Symbols.size() == 23, usedSize == 18
#0  0x0000000000b0b3fd in Logger::logStacktrace(StackTraceInfo*) at /tmp/factorio-qnPOZQ/src/Util/Logger.cpp:471
#1  0x000000000089d4ca in Logging::flush() at /tmp/factorio-qnPOZQ/src/Util/Logging.cpp:61
#2  0x00000000008c744f in Logging::logAndAbortOrThrow(char const*, unsigned int, LogLevel, std::string const&) at /tmp/factorio-qnPOZQ/src/Util/Logging.cpp:79
#3  0x00000000009cb921 in Logging::logAndAbortOrThrow(char const*, unsigned int, LogLevel, char const*, ...) at /tmp/factorio-qnPOZQ/src/Util/Logging.cpp:73
#4  0x0000000000acf83e in BlueprintLibrary::transferNextInQueue() at /tmp/factorio-qnPOZQ/src/Blueprint/BlueprintLibrary.cpp:960 (discriminator 2)
#5  0x0000000000acf97c in BlueprintLibrary::applyTransferBlueprintData(Map&, TransferBlueprintData const&, bool) at /tmp/factorio-qnPOZQ/src/Blueprint/BlueprintLibrary.cpp:598
#6  0x0000000000954cc4 in GameActionHandler::transferBlueprintData(InputAction const&, Controller*) at /tmp/factorio-qnPOZQ/src/GameActionHandler.cpp:3268
#7  0x00000000005c850c in GameActionHandler::actionPerformed(InputAction const&) at /tmp/factorio-qnPOZQ/src/GameActionHandler.cpp:262 (discriminator 4)
#8  0x00000000009e97c0 in InputHandler::flushToListeners(InputAction const&, bool) at /tmp/factorio-qnPOZQ/src/Input/InputHandler.cpp:62
#9  0x00000000009e872e in InputHandler::flushActions(bool) at /tmp/factorio-qnPOZQ/src/Input/InputHandler.cpp:55
#10 0x0000000000890230 in NetworkInputHandler::flushActions(bool) at /tmp/factorio-qnPOZQ/src/Net/NetworkInputHandler.cpp:157
#11 0x0000000000c2c521 in InputHandler::nextTick() at /tmp/factorio-qnPOZQ/src/Input/InputHandler.cpp:45
#12 0x0000000000c2d09f in NetworkInputHandler::nextTick() at /tmp/factorio-qnPOZQ/src/Net/NetworkInputHandler.cpp:117
#13 0x0000000000c316f3 in NetworkInputHandler::tryToApplyNextTickClosure() at /tmp/factorio-qnPOZQ/src/Net/NetworkInputHandler.cpp:110
#14 0x0000000000c320f3 in ServerMultiplayerManager::updateMultiplayerInputInternal() at /tmp/factorio-qnPOZQ/src/Net/ServerMultiplayerManager.cpp:647
#15 0x000000000041f57c in MultiplayerManagerBase::updateMultiplayerInput() at /tmp/factorio-qnPOZQ/src/Net/MultiplayerManagerBase.cpp:180
#16 (nil) in MainLoop::gameUpdateStep(MultiplayerManagerBase*, Scenario*, AppManager*, MainLoop::HeavyMode) at /tmp/factorio-qnPOZQ/src/MainLoop.cpp:967
#17 0x000000000042574f in MainLoop::gameUpdateLoop(MainLoop::HeavyMode) at /tmp/factorio-qnPOZQ/src/MainLoop.cpp:852
2228.526 Warning Logger.cpp:446: Symbols.size() == 22, usedSize == 17
2228.526 Error BlueprintLibrary.cpp:961: this->getShelf(player)->getBlueprintRecord(front.id) was not true
Logger::writeStacktrace skipped.
2228.526 Error CrashHandler.cpp:128: Map tick at moment of crash: 110155
2228.526 Error Util.cpp:67: Unexpected error occurred. If you're running the latest version of the game you can help us solve the problem by posting the contents of the log file on the Factorio forums.
Please also include the save file(s), any mods you may be using, and any steps you know of to reproduce the crash.
Attachments
explosivegaming-s1-save-1312313221312.zip
Save file from after the crash
(4.83 MiB) Downloaded 73 times
factorio-previous-1-16-2018.txt
full log
(55.45 KiB) Downloaded 63 times
-- Explosive Gaming a factorio server community, or join the discord --

Rseding91
Factorio Staff
Factorio Staff
Posts: 13198
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: [Rseding91] [0.16.16] Crash in MP - EntityWithOwner.cpp:241

Post by Rseding91 »

The source issue with this should be fixed but existing blueprints and saves with the blueprints are still going to be in the broken state.

To fix blueprints you need to open every one you have in the save and in your blueprint library and edit them in some way to remove the "unknown contents" portion (so they stop showing the "?").
If you want to get ahold of me I'm almost always on Discord.

Post Reply

Return to “Resolved Problems and Bugs”