Page 1 of 1

[0.13] Crash when picking up BP book after migrations

Posted: Sun Jul 03, 2016 9:07 pm
by siggboy
Affected version: 0.13.3

The game crashes if you try to use a blueprint book that has a blueprint in it for entities that no longer exist (because they're from a mod that you disabled and the migration removed the entities).

How to reproduce:

Create a blueprint that uses a modded entity. Use the icon for the modded entity as one of the icons for the blueprint. Mark that blueprint active in the blueprint book. Disable the mod that added the entity. Load into the map again. Pick up the blueprint book -> crash.

The blueprint that caused the crash for me did not contain the actual entity, but the icon for the entity was used in the blueprint label. So that might have caused it, or it was simply because some of the other blueprints in the book actually contained the entity.

More tests could be done, but the above sequence of actions definitely triggers the bug.

Re: [0.13] Crash when picking up BP book after migrations

Posted: Sun Jul 03, 2016 11:20 pm
by Rseding91
Do you have a crash log and or a save file that reproduces the issue?

Re: [0.13] Crash when picking up BP book after migrations

Posted: Mon Jul 04, 2016 4:32 am
by siggboy
The save file is attached (it's pretty big because the map is large; but it's just sandbox map with not much in it).

To reproduce, simply pick up the blueprint book from the toolbar and cycle to the next blueprint in the book with Shift-MWheel.

Originally I had the crash right when I picked up the BP book from the toolbelt and dragged it onto the playing area.

So what's causing the crash seems to be the ghost preview being rendered that is missing some entities that have been migrated away.

Here's the crash log:
crash log

Re: [0.13] Crash when picking up BP book after migrations

Posted: Mon Jul 04, 2016 6:56 am
by Rseding91
Can you include all the mods you're using in the save as well? When I load it without the mods it works just fine.

Re: [0.13] Crash when picking up BP book after migrations

Posted: Mon Jul 04, 2016 7:15 am
by Rseding91
Was this save originally created in 0.13.4 or did you migrate it from one of the older versions?

Re: [0.13] Crash when picking up BP book after migrations

Posted: Mon Jul 04, 2016 7:31 am
by siggboy
The save is migrated from 0.12. The blueprints were created in 0.13 by importing blueprints with Blueprint string; the imported blueprints were also created in 0.13, on a map that was migrated from 0.12.

I'm attaching an archive of the mod folder to this post.

The mod that I disabled to provoke the crash is "SmartTrains". I've also disabled "Personal Teleporter" (that must be unrelated because I've never used it).

Re: [0.13] Crash when picking up BP book after migrations

Posted: Mon Jul 04, 2016 8:08 am
by Rseding91
Fixed for 0.13.5.