Title is a mouth full, but basically what’s happening is I have a blueprint which handles animated tiles in my TileMap. The key is a string and the value is an int I’ve made myself with some needed parameters.
I loop every x seconds with this map to switch the tile index so the tiles animate. I’ve nativized the blueprints so it does this more efficiently. The problem here is: If I have 10 or more map entries in this variable, it crashes!
It doesn’t give a traditional bug report window so I can’t report the crash though there. Confirmed to have worked fine with just blueprints and it works fine if I have 9 entries with nativization enabled. I’ve included the crash report to investigate.
[link text][2]
Here’s also a bit of the source code where the crash occurs, It crashes at bpv__AnimatedTiles__pf.Add(FString(TEXT(“AniWaterSeaCoast”)), __Local__10);
bpv__AnimatedTiles__pf = {};
bpv__AnimatedTiles__pf.Reserve(11);
auto __Local__1 = FST_AniTileData__pf3484142996{};
__Local__1.bpv__UserDataName_23_351418B24732B01B2EC48999091B1207__pf = FString(TEXT("AniFlowers"));
__Local__1.bpv__AnimatedTileIndicies_15_B334B2F1487C6E7EFD27E3822DFDDE64__pf = TArray<int32> ();
__Local__1.bpv__AnimatedTileIndicies_15_B334B2F1487C6E7EFD27E3822DFDDE64__pf.Reserve(4);
__Local__1.bpv__AnimatedTileIndicies_15_B334B2F1487C6E7EFD27E3822DFDDE64__pf.Add(320);
__Local__1.bpv__AnimatedTileIndicies_15_B334B2F1487C6E7EFD27E3822DFDDE64__pf.Add(321);
__Local__1.bpv__AnimatedTileIndicies_15_B334B2F1487C6E7EFD27E3822DFDDE64__pf.Add(322);
__Local__1.bpv__AnimatedTileIndicies_15_B334B2F1487C6E7EFD27E3822DFDDE64__pf.Add(323);
__Local__1.bpv__AnimationInterval_19_45AE23C4434D40985CBD8FAB89FA1382__pf = 0.300000f;
bpv__AnimatedTiles__pf.Add(FString(TEXT("AniFlowers")), __Local__1);
auto __Local__2 = FST_AniTileData__pf3484142996{};
__Local__2.bpv__UserDataName_23_351418B24732B01B2EC48999091B1207__pf = FString(TEXT("AniWaterDeep"));
__Local__2.bpv__AnimatedTileIndicies_15_B334B2F1487C6E7EFD27E3822DFDDE64__pf = TArray<int32> ();
__Local__2.bpv__AnimatedTileIndicies_15_B334B2F1487C6E7EFD27E3822DFDDE64__pf.Reserve(4);
__Local__2.bpv__AnimatedTileIndicies_15_B334B2F1487C6E7EFD27E3822DFDDE64__pf.Add(800);
__Local__2.bpv__AnimatedTileIndicies_15_B334B2F1487C6E7EFD27E3822DFDDE64__pf.Add(801);
__Local__2.bpv__AnimatedTileIndicies_15_B334B2F1487C6E7EFD27E3822DFDDE64__pf.Add(802);
__Local__2.bpv__AnimatedTileIndicies_15_B334B2F1487C6E7EFD27E3822DFDDE64__pf.Add(803);
__Local__2.bpv__AnimationInterval_19_45AE23C4434D40985CBD8FAB89FA1382__pf = 0.300000f;
bpv__AnimatedTiles__pf.Add(FString(TEXT("AniWaterDeep")), __Local__2);
auto __Local__3 = FST_AniTileData__pf3484142996{};
__Local__3.bpv__UserDataName_23_351418B24732B01B2EC48999091B1207__pf = FString(TEXT("AniWaterPuddle"));
__Local__3.bpv__AnimatedTileIndicies_15_B334B2F1487C6E7EFD27E3822DFDDE64__pf = TArray<int32> ();
__Local__3.bpv__AnimatedTileIndicies_15_B334B2F1487C6E7EFD27E3822DFDDE64__pf.Reserve(2);
__Local__3.bpv__AnimatedTileIndicies_15_B334B2F1487C6E7EFD27E3822DFDDE64__pf.Add(832);
__Local__3.bpv__AnimatedTileIndicies_15_B334B2F1487C6E7EFD27E3822DFDDE64__pf.Add(833);
__Local__3.bpv__AnimationInterval_19_45AE23C4434D40985CBD8FAB89FA1382__pf = 0.300000f;
bpv__AnimatedTiles__pf.Add(FString(TEXT("AniWaterPuddle")), __Local__3);
auto __Local__4 = FST_AniTileData__pf3484142996{};
__Local__4.bpv__UserDataName_23_351418B24732B01B2EC48999091B1207__pf = FString(TEXT("AniWaterPuddleLily"));
__Local__4.bpv__AnimatedTileIndicies_15_B334B2F1487C6E7EFD27E3822DFDDE64__pf = TArray<int32> ();
__Local__4.bpv__AnimatedTileIndicies_15_B334B2F1487C6E7EFD27E3822DFDDE64__pf.Reserve(2);
__Local__4.bpv__AnimatedTileIndicies_15_B334B2F1487C6E7EFD27E3822DFDDE64__pf.Add(834);
__Local__4.bpv__AnimatedTileIndicies_15_B334B2F1487C6E7EFD27E3822DFDDE64__pf.Add(835);
__Local__4.bpv__AnimationInterval_19_45AE23C4434D40985CBD8FAB89FA1382__pf = 0.300000f;
bpv__AnimatedTiles__pf.Add(FString(TEXT("AniWaterPuddleLily")), __Local__4);
auto __Local__5 = FST_AniTileData__pf3484142996{};
__Local__5.bpv__UserDataName_23_351418B24732B01B2EC48999091B1207__pf = FString(TEXT("AniWaterFlowing"));
__Local__5.bpv__AnimatedTileIndicies_15_B334B2F1487C6E7EFD27E3822DFDDE64__pf = TArray<int32> ();
__Local__5.bpv__AnimatedTileIndicies_15_B334B2F1487C6E7EFD27E3822DFDDE64__pf.Reserve(4);
__Local__5.bpv__AnimatedTileIndicies_15_B334B2F1487C6E7EFD27E3822DFDDE64__pf.Add(864);
__Local__5.bpv__AnimatedTileIndicies_15_B334B2F1487C6E7EFD27E3822DFDDE64__pf.Add(865);
__Local__5.bpv__AnimatedTileIndicies_15_B334B2F1487C6E7EFD27E3822DFDDE64__pf.Add(866);
__Local__5.bpv__AnimatedTileIndicies_15_B334B2F1487C6E7EFD27E3822DFDDE64__pf.Add(867);
__Local__5.bpv__AnimationInterval_19_45AE23C4434D40985CBD8FAB89FA1382__pf = 0.300000f;
bpv__AnimatedTiles__pf.Add(FString(TEXT("AniWaterFlowing")), __Local__5);
auto __Local__6 = FST_AniTileData__pf3484142996{};
__Local__6.bpv__UserDataName_23_351418B24732B01B2EC48999091B1207__pf = FString(TEXT("AniWaterfall"));
__Local__6.bpv__AnimatedTileIndicies_15_B334B2F1487C6E7EFD27E3822DFDDE64__pf = TArray<int32> ();
__Local__6.bpv__AnimatedTileIndicies_15_B334B2F1487C6E7EFD27E3822DFDDE64__pf.Reserve(4);
__Local__6.bpv__AnimatedTileIndicies_15_B334B2F1487C6E7EFD27E3822DFDDE64__pf.Add(672);
__Local__6.bpv__AnimatedTileIndicies_15_B334B2F1487C6E7EFD27E3822DFDDE64__pf.Add(673);
__Local__6.bpv__AnimatedTileIndicies_15_B334B2F1487C6E7EFD27E3822DFDDE64__pf.Add(674);
__Local__6.bpv__AnimatedTileIndicies_15_B334B2F1487C6E7EFD27E3822DFDDE64__pf.Add(675);
__Local__6.bpv__AnimationInterval_19_45AE23C4434D40985CBD8FAB89FA1382__pf = 0.300000f;
bpv__AnimatedTiles__pf.Add(FString(TEXT("AniWaterfall")), __Local__6);
auto __Local__7 = FST_AniTileData__pf3484142996{};
__Local__7.bpv__UserDataName_23_351418B24732B01B2EC48999091B1207__pf = FString(TEXT("AniWaterfallDown"));
__Local__7.bpv__AnimatedTileIndicies_15_B334B2F1487C6E7EFD27E3822DFDDE64__pf = TArray<int32> ();
__Local__7.bpv__AnimatedTileIndicies_15_B334B2F1487C6E7EFD27E3822DFDDE64__pf.Reserve(4);
__Local__7.bpv__AnimatedTileIndicies_15_B334B2F1487C6E7EFD27E3822DFDDE64__pf.Add(704);
__Local__7.bpv__AnimatedTileIndicies_15_B334B2F1487C6E7EFD27E3822DFDDE64__pf.Add(705);
__Local__7.bpv__AnimatedTileIndicies_15_B334B2F1487C6E7EFD27E3822DFDDE64__pf.Add(706);
__Local__7.bpv__AnimatedTileIndicies_15_B334B2F1487C6E7EFD27E3822DFDDE64__pf.Add(707);
__Local__7.bpv__AnimationInterval_19_45AE23C4434D40985CBD8FAB89FA1382__pf = 0.300000f;
bpv__AnimatedTiles__pf.Add(FString(TEXT("AniWaterfallDown")), __Local__7);
auto __Local__8 = FST_AniTileData__pf3484142996{};
__Local__8.bpv__UserDataName_23_351418B24732B01B2EC48999091B1207__pf = FString(TEXT("AniWaterfallTop"));
__Local__8.bpv__AnimatedTileIndicies_15_B334B2F1487C6E7EFD27E3822DFDDE64__pf = TArray<int32> ();
__Local__8.bpv__AnimatedTileIndicies_15_B334B2F1487C6E7EFD27E3822DFDDE64__pf.Reserve(4);
__Local__8.bpv__AnimatedTileIndicies_15_B334B2F1487C6E7EFD27E3822DFDDE64__pf.Add(837);
__Local__8.bpv__AnimatedTileIndicies_15_B334B2F1487C6E7EFD27E3822DFDDE64__pf.Add(869);
__Local__8.bpv__AnimatedTileIndicies_15_B334B2F1487C6E7EFD27E3822DFDDE64__pf.Add(901);
__Local__8.bpv__AnimatedTileIndicies_15_B334B2F1487C6E7EFD27E3822DFDDE64__pf.Add(933);
__Local__8.bpv__AnimationInterval_19_45AE23C4434D40985CBD8FAB89FA1382__pf = 0.300000f;
bpv__AnimatedTiles__pf.Add(FString(TEXT("AniWaterfallTop")), __Local__8);
auto __Local__9 = FST_AniTileData__pf3484142996{};
__Local__9.bpv__UserDataName_23_351418B24732B01B2EC48999091B1207__pf = FString(TEXT("AniPortal"));
__Local__9.bpv__AnimatedTileIndicies_15_B334B2F1487C6E7EFD27E3822DFDDE64__pf = TArray<int32> ();
__Local__9.bpv__AnimatedTileIndicies_15_B334B2F1487C6E7EFD27E3822DFDDE64__pf.Reserve(4);
__Local__9.bpv__AnimatedTileIndicies_15_B334B2F1487C6E7EFD27E3822DFDDE64__pf.Add(640);
__Local__9.bpv__AnimatedTileIndicies_15_B334B2F1487C6E7EFD27E3822DFDDE64__pf.Add(641);
__Local__9.bpv__AnimatedTileIndicies_15_B334B2F1487C6E7EFD27E3822DFDDE64__pf.Add(642);
__Local__9.bpv__AnimatedTileIndicies_15_B334B2F1487C6E7EFD27E3822DFDDE64__pf.Add(643);
__Local__9.bpv__AnimationInterval_19_45AE23C4434D40985CBD8FAB89FA1382__pf = 0.300000f;
bpv__AnimatedTiles__pf.Add(FString(TEXT("AniPortal")), __Local__9);
auto __Local__10 = FST_AniTileData__pf3484142996{};
__Local__10.bpv__UserDataName_23_351418B24732B01B2EC48999091B1207__pf = FString(TEXT("AniWaterSeaCoast"));
__Local__10.bpv__AnimatedTileIndicies_15_B334B2F1487C6E7EFD27E3822DFDDE64__pf = TArray<int32> ();
__Local__10.bpv__AnimatedTileIndicies_15_B334B2F1487C6E7EFD27E3822DFDDE64__pf.Reserve(4);
__Local__10.bpv__AnimatedTileIndicies_15_B334B2F1487C6E7EFD27E3822DFDDE64__pf.Add(736);
__Local__10.bpv__AnimatedTileIndicies_15_B334B2F1487C6E7EFD27E3822DFDDE64__pf.Add(737);
__Local__10.bpv__AnimatedTileIndicies_15_B334B2F1487C6E7EFD27E3822DFDDE64__pf.Add(738);
__Local__10.bpv__AnimatedTileIndicies_15_B334B2F1487C6E7EFD27E3822DFDDE64__pf.Add(739);
__Local__10.bpv__AnimationInterval_19_45AE23C4434D40985CBD8FAB89FA1382__pf = 0.300000f;
bpv__AnimatedTiles__pf.Add(FString(TEXT("AniWaterSeaCoast")), __Local__10);
auto __Local__11 = FST_AniTileData__pf3484142996{};
__Local__11.bpv__UserDataName_23_351418B24732B01B2EC48999091B1207__pf = FString(TEXT("AniWaterSea"));
__Local__11.bpv__AnimatedTileIndicies_15_B334B2F1487C6E7EFD27E3822DFDDE64__pf = TArray<int32> ();
__Local__11.bpv__AnimatedTileIndicies_15_B334B2F1487C6E7EFD27E3822DFDDE64__pf.Reserve(4);
__Local__11.bpv__AnimatedTileIndicies_15_B334B2F1487C6E7EFD27E3822DFDDE64__pf.Add(768);
__Local__11.bpv__AnimatedTileIndicies_15_B334B2F1487C6E7EFD27E3822DFDDE64__pf.Add(769);
__Local__11.bpv__AnimatedTileIndicies_15_B334B2F1487C6E7EFD27E3822DFDDE64__pf.Add(770);
__Local__11.bpv__AnimatedTileIndicies_15_B334B2F1487C6E7EFD27E3822DFDDE64__pf.Add(771);
__Local__11.bpv__AnimationInterval_19_45AE23C4434D40985CBD8FAB89FA1382__pf = 0.300000f;
bpv__AnimatedTiles__pf.Add(FString(TEXT("AniWaterSea")), __Local__11);