[0.13] Crash when picking up BP book after migrations

This subforum contains all the issues which we already resolved.
User avatar
siggboy
Filter Inserter
Filter Inserter
Posts: 988
Joined: Tue Mar 29, 2016 11:47 am
Contact:

[0.13] Crash when picking up BP book after migrations

Post 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.
Is your railroad worrying you? Doctor T-Junction recommends: Smart, dynamic train deliveries with combinator Magick
Rseding91
Factorio Staff
Factorio Staff
Posts: 14363
Joined: Wed Jun 11, 2014 5:23 am
Contact:

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

Post by Rseding91 »

Do you have a crash log and or a save file that reproduces the issue?
If you want to get ahold of me I'm almost always on Discord.
User avatar
siggboy
Filter Inserter
Filter Inserter
Posts: 988
Joined: Tue Mar 29, 2016 11:47 am
Contact:

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

Post 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
Attachments
Sandbox 0.13.zip
(32.8 MiB) Downloaded 167 times
Is your railroad worrying you? Doctor T-Junction recommends: Smart, dynamic train deliveries with combinator Magick
Rseding91
Factorio Staff
Factorio Staff
Posts: 14363
Joined: Wed Jun 11, 2014 5:23 am
Contact:

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

Post 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.
If you want to get ahold of me I'm almost always on Discord.
Rseding91
Factorio Staff
Factorio Staff
Posts: 14363
Joined: Wed Jun 11, 2014 5:23 am
Contact:

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

Post by Rseding91 »

Was this save originally created in 0.13.4 or did you migrate it from one of the older versions?
If you want to get ahold of me I'm almost always on Discord.
User avatar
siggboy
Filter Inserter
Filter Inserter
Posts: 988
Joined: Tue Mar 29, 2016 11:47 am
Contact:

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

Post 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).
Attachments
mods.zip
(5.03 MiB) Downloaded 107 times
Is your railroad worrying you? Doctor T-Junction recommends: Smart, dynamic train deliveries with combinator Magick
Rseding91
Factorio Staff
Factorio Staff
Posts: 14363
Joined: Wed Jun 11, 2014 5:23 am
Contact:

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

Post by Rseding91 »

Fixed for 0.13.5.
If you want to get ahold of me I'm almost always on Discord.
Post Reply

Return to “Resolved Problems and Bugs”