BenPyton / ProceduralDungeon

This is an Unreal Engine 4/5 plugin to generate procedural dungeon.
MIT License
527 stars 64 forks source link

Randon crash when generating dungeon #44

Closed originalred closed 8 months ago

originalred commented 8 months ago

Bug Description Randomly crashing when generating dungeon

Technical informations

Steps To Reproduce Randomly happens, usually on a 2nd editor run.

Expected behavior Not randomly crashing

Stack trace Assertion failed: Index >= 0 && Index < Connections.Num() [File:R:\ProceduraDungeon\Packaged\5.3\ProceduralDungeon\HostProject\Plugins\ProceduralDungeon\Source\ProceduralDungeon\Prvate\Room.cpp] [Line: 92]

UnrealEditor_ProceduralDungeon!ARoomLevel::Tick() [R:\ProceduralDungeon\Packaged\5.3\ProceduralDungeon\HostProject\Plugins\ProceduralDungeon\Source\ProceduralDungeon\Private\RoomLevel.cpp:165]

BenPyton commented 8 months ago

Hi @originalred It seems the room level and the room instance have their room data mismatching. And both data files have not the same amount of doors.

Can you share (if there is no sensible data) the output log please? Or read it by yourslef to check for an error? There should be an error saying which rool level and instance have their data mismatching. (Meaning the level referenced in the room data is referencing this very same room data).

originalred commented 8 months ago

Many thanks. I think I've found the issue - seems one of my levels wasn't configured properly and I'd accidentally deleted a couple of the levels in the list (and the room data was pointing to a different level).

It seems stable (for now), but so far this issue can be closed.

BenPyton commented 8 months ago

Great to hear you fixed your issue! I will fix the crash and make sure only error messages will be displayed instead.

BenPyton commented 8 months ago

The crash has been fixed in plugin version 3.1.2 (commit f259a78). It has been properly replaced by an error message displayed on screen and in logs when playing in editor and packaged dev games.