Skip to content

Program Crashed While Deleting Entities #1233

Description

@jgyo

LDtk crashed while I was deleting Entities. When I deleted the last entity I had created, I got the error reported here.

Stack:

LDtk version: 1.5.3-64bits
Cannot read properties of null (reading 'length')
TypeError
TypeError: Cannot read properties of null (reading 'length')
    at GenericLevelElementGroup.isOveringSelection (file:///C:/Users/gilyo/AppData/Local/Programs/ldtk/resources/app.asar/assets/js/renderer.js:10949:18)
    at page_Editor.onMouseMove (file:///C:/Users/gilyo/AppData/Local/Programs/ldtk/resources/app.asar/assets/js/renderer.js:238417:138)
    at page_Editor.onHeapsEvent (file:///C:/Users/gilyo/AppData/Local/Programs/ldtk/resources/app.asar/assets/js/renderer.js:238274:9)
    at h2d_Scene.dispatchListeners (file:///C:/Users/gilyo/AppData/Local/Programs/ldtk/resources/app.asar/assets/js/renderer.js:142944:4)
    at hxd_SceneEvents.dispatchListeners (file:///C:/Users/gilyo/AppData/Local/Programs/ldtk/resources/app.asar/assets/js/renderer.js:190121:6)
    at hxd_SceneEvents.emitEvent (file:///C:/Users/gilyo/AppData/Local/Programs/ldtk/resources/app.asar/assets/js/renderer.js:189951:9)
    at hxd_SceneEvents.checkEvents (file:///C:/Users/gilyo/AppData/Local/Programs/ldtk/resources/app.asar/assets/js/renderer.js:190037:10)
    at Boot.mainLoop (file:///C:/Users/gilyo/AppData/Local/Programs/ldtk/resources/app.asar/assets/js/renderer.js:5148:16)
    at hxd_System.browserLoop (file:///C:/Users/gilyo/AppData/Local/Programs/ldtk/resources/app.asar/assets/js/renderer.js:190796:14)

Processes:

#0 App
 |--- #8 page.Editor
 |--- #798 page.CrashReport
 |--- #799 page.CrashReport

Log:

[RENDER]       Rendering world bg...
[RENDER]       Rendering world bg...
[RENDER]       Rendering world bg...
[RENDER]       Rendering world bg...
[RENDER]       Rendering world bg...
[RENDER]       Rendering world bg...
[EVENT]        LastChanceEnded
[WARNING]      Last chance for: Enum Boxes deleted
[EVENT]        EnumDefRemoved
[EVENT]        LevelJsonCacheInvalidated
[RENDER]       Rendering world level fields data.Level#906e75a2-6fc0-11f1-817c-332f62decdde "Level_0"...
[RENDER]       Rendering world bg...
[RENDER]       Rendering world bg...
[RENDER]       Rendering world bg...
[RENDER]       Rendering world bg...
[RENDER]       Rendering world bg...
[EVENT]        LastChanceEnded
[WARNING]      Last chance for: Enum Traps deleted
[EVENT]        EnumDefRemoved
[EVENT]        LevelJsonCacheInvalidated
[RENDER]       Rendering world bg...
[RENDER]       Rendering world level fields data.Level#906e75a2-6fc0-11f1-817c-332f62decdde "Level_0"...
[RENDER]       Rendering world bg...
[RENDER]       Rendering world bg...
[RENDER]       Rendering world bg...
[RENDER]       Rendering world bg...
[RENDER]       Rendering world bg...
[EVENT]        LastChanceEnded
[GENERAL]      Page started: page.CrashReport()
[FILE]         Loading page template: crashReport from C:/Users/gilyo/AppData/Local/Programs/ldtk/resources/app.asar/assets/tpl/pages/crashReport.html
[ERROR]        Cannot read properties of undefined (reading 'values') (TypeError)
[ERROR]        TypeError: Cannot read properties of undefined (reading 'values')
    at data_def_TilesetDef.toJson (file:///C:/Users/gilyo/AppData/Local/Programs/ldtk/resources/app.asar/assets/js/renderer.js:42875:35)
    at data_Definitions.toJson (file:///C:/Users/gilyo/AppData/Local/Programs/ldtk/resources/app.asar/assets/js/renderer.js:32019:25)
    at data_Project.toJson (file:///C:/Users/gilyo/AppData/Local/Programs/ldtk/resources/app.asar/assets/js/renderer.js:35872:26)
    at new ui_LastChance (file:///C:/Users/gilyo/AppData/Local/Programs/ldtk/resources/app.asar/assets/js/renderer.js:283206:23)
    at _delete (file:///C:/Users/gilyo/AppData/Local/Programs/ldtk/resources/app.asar/assets/js/renderer.js:304278:5)
    at ui_modal_panel_EditEnumDefs.deleteEnumDef (file:///C:/Users/gilyo/AppData/Local/Programs/ldtk/resources/app.asar/assets/js/renderer.js:304325:5)
    at ctx.addElement.ui_modal_CtxElement.Ctx_CopyPaster.delete [as cb] (file:///C:/Users/gilyo/AppData/Local/Programs/ldtk/resources/app.asar/assets/js/renderer.js:304434:16)
    at HTMLButtonElement.<anonymous> (file:///C:/Users/gilyo/AppData/Local/Programs/ldtk/resources/app.asar/assets/js/renderer.js:291322:14)
    at HTMLButtonElement.dispatch (C:\Users\gilyo\AppData\Local\Programs\ldtk\resources\app.asar\assets\js\jquery.min.js:2:43064)
    at v.handle (C:\Users\gilyo\AppData\Local\Programs\ldtk\resources\app.asar\assets\js\jquery.min.js:2:41048)

[GENERAL]      
#0 App
 |--- #8 page.Editor
       |--- #9 misc.FileWatcher
       |--- #10 display.WorldRender
       |--- #11 display.LevelRender
       |--- #12 display.Camera
       |--- #13 display.Rulers[--]
       |--- #14 tool.SelectionTool[--]
       |--- #15 tool.lt.DoNothing[--]
       |--- #16 WorldTool
       |--- #17 tool.PanView[--]
       |--- #767 ui.modal.panel.EditEnumDefs
       |--- #791 ui.LastChance
       |--- #792 ui.modal.ContextMenu
       |--- #796 ui.Tip
       |--- #797 ui.LastChance
 |--- #798 page.CrashReport

[FILE]         Cleared all file watches
[GENERAL]      Page started: page.CrashReport()
[FILE]         Loading page template: crashReport from C:/Users/gilyo/AppData/Local/Programs/ldtk/resources/app.asar/assets/tpl/pages/crashReport.html
[ERROR]        Cannot read properties of undefined (reading 'remove') (TypeError)
[ERROR]        TypeError: Cannot read properties of undefined (reading 'remove')
    at ui_LastChance.onDispose (file:///C:/Users/gilyo/AppData/Local/Programs/ldtk/resources/app.asar/assets/js/renderer.js:283471:13)
    at dn_Process._disposeProcess (file:///C:/Users/gilyo/AppData/Local/Programs/ldtk/resources/app.asar/assets/js/renderer.js:556:4)
    at dn_Process._garbageCollector (file:///C:/Users/gilyo/AppData/Local/Programs/ldtk/resources/app.asar/assets/js/renderer.js:529:15)
    at dn_Process._disposeProcess (file:///C:/Users/gilyo/AppData/Local/Programs/ldtk/resources/app.asar/assets/js/renderer.js:544:13)
    at dn_Process._garbageCollector (file:///C:/Users/gilyo/AppData/Local/Programs/ldtk/resources/app.asar/assets/js/renderer.js:529:15)
    at dn_Process._garbageCollector (file:///C:/Users/gilyo/AppData/Local/Programs/ldtk/resources/app.asar/assets/js/renderer.js:531:15)
    at dn_Process.updateAll (file:///C:/Users/gilyo/AppData/Local/Programs/ldtk/resources/app.asar/assets/js/renderer.js:789:13)
    at Boot.update (file:///C:/Users/gilyo/AppData/Local/Programs/ldtk/resources/app.asar/assets/js/renderer.js:5190:14)
    at Boot.mainLoop (file:///C:/Users/gilyo/AppData/Local/Programs/ldtk/resources/app.asar/assets/js/renderer.js:5152:8)
    at hxd_System.browserLoop (file:///C:/Users/gilyo/AppData/Local/Programs/ldtk/resources/app.asar/assets/js/renderer.js:190796:14)

[GENERAL]      
#0 App
 |--- #8 page.Editor
 |--- #798 page.CrashReport
 |--- #799 page.CrashReport

[GENERAL]      Page started: page.CrashReport()
[FILE]         Loading page template: crashReport from C:/Users/gilyo/AppData/Local/Programs/ldtk/resources/app.asar/assets/tpl/pages/crashReport.html
[ERROR]        Cannot read properties of null (reading 'length') (TypeError)
[ERROR]        TypeError: Cannot read properties of null (reading 'length')
    at GenericLevelElementGroup.isOveringSelection (file:///C:/Users/gilyo/AppData/Local/Programs/ldtk/resources/app.asar/assets/js/renderer.js:10949:18)
    at page_Editor.onMouseMove (file:///C:/Users/gilyo/AppData/Local/Programs/ldtk/resources/app.asar/assets/js/renderer.js:238417:138)
    at page_Editor.onHeapsEvent (file:///C:/Users/gilyo/AppData/Local/Programs/ldtk/resources/app.asar/assets/js/renderer.js:238274:9)
    at h2d_Scene.dispatchListeners (file:///C:/Users/gilyo/AppData/Local/Programs/ldtk/resources/app.asar/assets/js/renderer.js:142944:4)
    at hxd_SceneEvents.dispatchListeners (file:///C:/Users/gilyo/AppData/Local/Programs/ldtk/resources/app.asar/assets/js/renderer.js:190121:6)
    at hxd_SceneEvents.emitEvent (file:///C:/Users/gilyo/AppData/Local/Programs/ldtk/resources/app.asar/assets/js/renderer.js:189951:9)
    at hxd_SceneEvents.checkEvents (file:///C:/Users/gilyo/AppData/Local/Programs/ldtk/resources/app.asar/assets/js/renderer.js:190037:10)
    at Boot.mainLoop (file:///C:/Users/gilyo/AppData/Local/Programs/ldtk/resources/app.asar/assets/js/renderer.js:5148:16)
    at hxd_System.browserLoop (file:///C:/Users/gilyo/AppData/Local/Programs/ldtk/resources/app.asar/assets/js/renderer.js:190796:14)

[GENERAL]      
#0 App
 |--- #8 page.Editor
 |--- #798 page.CrashReport
 |--- #799 page.CrashReport
 |--- #800 page.CrashReport

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions