Putting this at the beginning so people don't need to read my wall of text.
Problem: Editor crashing when loading existing level
Solution: I had an empty layer. It caused issues.


After adding a creature to my level (A Goblin Grunt), I attempted to load the Combat Group panel and nothing happened. I tried it a couple times to ensure it wasn't popping up somewhere I didn't notice, nothing happened. So I saved, closed the editor completely and re-loaded it.

After re-loading, I was unable to open my level again. I get the error "Glasses has stopped working". If I click to debug, I can see the error: Unhandled exception at 0x00007FFA319D3C58 (KernelBase.dll) in DivinityEngine2.exe: 0xC000041D: An unhandled exception was encountered during a user callback.


I found I was able to create a new level fine but even after successfully loading into a new level, I still couldn't load the previous level. While I was gathering information for this post though, I was able to figure out steps to load my level.

I started the editor, loaded into my new (blank) level, opened then closed the combat group panel then loaded my existing level and it opened fine.

I still can't open the combat group panel and any attempts to do so cause me to need to re-do the above "fix". If I load the combat panel while in the blank level then switch over to my existing level, the combat panel is visible. I can click the "x" to close it. After performing these steps, I need to re-do the "fix" as the editor will crash on next load.

I also found if I click "load layout" then press the Combat Group Panel button, the panel will appear. If I close it and attempt to re-open it, it does not work (unless I hit load layout again). This will still cause me to re-do the "fix" though, regardless of the state of the panel when I re-load the editor.

So it seems there is something about my level the combat group panel does not like. Attempting to open it causes my level to be put in a bad state and this is only rectified by opening and closing the panel while in another level.


Edit: Ok, turns out my "Fix" is only a one time fix. If I do that, close the editor and try to reload into my level, it crashes. So this is a bigger problem than I thought. Not to mention that I can't seem to "play" my level anymore with the in-editor test, I'm just a floating character in blackness now. I suspect that's because I need to load into the blank level first and it carried some of that information over into my level.

Also, I noticed there's a "CRITICAL ERROR" populating in the log when I load my level:

(I put it in Pastebin because it was making the formatting on the post all wonky).

I'm guessing it's related..



Edit 2: Ok, I created a new level copied from my old level and started deleting folders out of the new level. After I deleted the Layers folder, the level would load. Turns out I had an empty layer. I deleted it and now my level loads again.

I'm still loading to a dummy character surrounded by blackness instead of in my level but .. it's a start!

Edit 3: Ok, so after rebuilding the AI grid it's all good. I'll leave this post here in case anyone else has the same issues. One final note: It seems I can load the combat group panel now, but if I close it, I can't reopen it. If I reload the layout it works again. None of this results in crashes. It's just weird but I can deal with it.

Last edited by Chumble; 29/09/17 01:12 PM.