Skip to content

Cannot read properties of null (reading 'identifier') (TypeError) #1189

@Umbrakinetic

Description

@Umbrakinetic

If it helps at all, what I was trying to do when this crash happened is this:
I made an assistant auto-layer, then added another rule on top of the existing rule; this was to add details over any tile this layer existed on, for variety. After setting up the second rule, no tiles on this layer rendered. when I went to check the settings of the first original rule, The project then crashed for me.

Stack:

LDtk version: 1.5.3-64bits
Cannot read properties of null (reading 'identifier')
TypeError
TypeError: Cannot read properties of null (reading 'identifier')
    at ui_modal_dialog_RulesWizard.updateIntGridValue (file:///C:/Users/quinn/AppData/Local/Programs/ldtk/resources/app.asar/assets/js/renderer.js:298006:17)
    at ui_modal_dialog_RulesWizard.updateUI (file:///C:/Users/quinn/AppData/Local/Programs/ldtk/resources/app.asar/assets/js/renderer.js:297888:8)
    at new ui_modal_dialog_RulesWizard (file:///C:/Users/quinn/AppData/Local/Programs/ldtk/resources/app.asar/assets/js/renderer.js:297664:7)
    at ui_modal_panel_EditAllAutoLayerRules.doUseWizard (file:///C:/Users/quinn/AppData/Local/Programs/ldtk/resources/app.asar/assets/js/renderer.js:300720:3)
    at HTMLButtonElement.<anonymous> (file:///C:/Users/quinn/AppData/Local/Programs/ldtk/resources/app.asar/assets/js/renderer.js:301420:12)
    at HTMLButtonElement.dispatch (C:\Users\quinn\AppData\Local\Programs\ldtk\resources\app.asar\assets\js\jquery.min.js:2:43064)
    at v.handle (C:\Users\quinn\AppData\Local\Programs\ldtk\resources\app.asar\assets\js\jquery.min.js:2:41048)

Processes:

#0 App
 |--- #3 page.Editor
       |--- #4 misc.FileWatcher
       |--- #5 display.WorldRender
       |--- #6 display.LevelRender
       |--- #7 display.Camera
       |--- #8 display.Rulers[--]
       |--- #9 tool.SelectionTool[--]
       |--- #10 tool.lt.DoNothing[--]
       |--- #11 WorldTool
       |--- #12 tool.PanView[--]
       |--- #13 tool.lt.TileTool [PAUSED][--]
       |--- #17 tool.lt.IntGridTool[--]
       |--- #58 tool.lt.EntityTool [PAUSED][--]
       |--- #312 tool.lt.IntGridTool [PAUSED][--]
       |--- #476 display.EntityRender
       |--- #477 display.EntityRender
       |--- #482 ui.modal.panel.EditAllAutoLayerRules
       |--- #563 ui.LastChance
       |--- #564 ui.modal.dialog.RulesWizard

Log:

[TIDY]         Removed lost rule cache in LayerInst#65 "Path" [IntGrid]
[TIDY]         Removed lost rule cache in LayerInst#65 "Path" [IntGrid]
[TIDY]         Removed lost rule cache in LayerInst#65 "Path" [IntGrid]
[TIDY]         Removed lost rule cache in LayerInst#65 "Path" [IntGrid]
[TIDY]         Removed lost rule cache in LayerInst#65 "Path" [IntGrid]
[TIDY]         Removed lost rule cache in LayerInst#65 "Path" [IntGrid]
[TIDY]         Removed lost rule cache in LayerInst#65 "Path" [IntGrid]
[TIDY]         Removed lost rule cache in LayerInst#65 "Path" [IntGrid]
[TIDY]         Removed lost rule cache in LayerInst#65 "Path" [IntGrid]
[TIDY]         Removed lost rule cache in LayerInst#65 "Path" [IntGrid]
[TIDY]         Removed lost rule cache in LayerInst#65 "Path" [IntGrid]
[TIDY]         Removed lost rule cache in LayerInst#65 "Path" [IntGrid]
[TIDY]         Removed lost rule cache in LayerInst#65 "Path" [IntGrid]
[TIDY]         Removed lost rule cache in LayerInst#65 "Path" [IntGrid]
[TIDY]         Removed lost rule cache in LayerInst#65 "Path" [IntGrid]
[TIDY]         Removed lost rule cache in LayerInst#65 "Path" [IntGrid]
[TIDY]         Removed lost rule cache in LayerInst#65 "Path" [IntGrid]
[TIDY]         Removed lost rule cache in LayerInst#65 "Path" [IntGrid]
[TIDY]         Removed lost rule cache in LayerInst#65 "Path" [IntGrid]
[TIDY]         Removed lost rule cache in LayerInst#65 "Path" [IntGrid]
[TIDY]         Removed lost rule cache in LayerInst#65 "Path" [IntGrid]
[TIDY]         Removed lost rule cache in LayerInst#65 "Path" [IntGrid]
[TIDY]         Removed lost rule cache in LayerInst#65 "Path" [IntGrid]
[TIDY]         Removed lost rule cache in LayerInst#65 "Path" [IntGrid]
[TIDY]         Removed lost rule cache in LayerInst#65 "Path" [IntGrid]
[TIDY]         Removed lost rule cache in LayerInst#65 "Path" [IntGrid]
[TIDY]         Removed lost rule cache in LayerInst#65 "Path" [IntGrid]
[TIDY]         Removed lost rule cache in LayerInst#65 "Path" [IntGrid]
[TIDY]         Removed lost rule cache in LayerInst#65 "Path" [IntGrid]
[TIDY]         Removed lost rule cache in LayerInst#65 "Path" [IntGrid]
[TIDY]         Removed lost rule cache in LayerInst#65 "Path" [IntGrid]
[TIDY]         Removed lost rule cache in LayerInst#65 "Path" [IntGrid]
[TIDY]         Removed lost rule cache in LayerInst#65 "Path" [IntGrid]
[TIDY]         Removed lost rule cache in LayerInst#65 "Path" [IntGrid]
[TIDY]         Removed lost rule cache in LayerInst#65 "Path" [IntGrid]
[TIDY]         Removed lost rule cache in LayerInst#65 "Path" [IntGrid]
[TIDY]         Removed lost rule cache in LayerInst#65 "Path" [IntGrid]
[EVENT]        LayerRuleGroupRemoved 400
[WARNING]      All rules applied in LayerInst#65 "Path" [IntGrid]
[RENDER]       Rendering world level data.Level#0c38d480-5e50-11f0-aa75-fbb225134596 "Level_0"...
[RENDER]       Rendering world bg...
[FILE]         Reading HTML template rulesWizard.html from cache
[GENERAL]      Page started: page.CrashReport()
[FILE]         Loading page template: crashReport from C:/Users/quinn/AppData/Local/Programs/ldtk/resources/app.asar/assets/tpl/pages/crashReport.html
[ERROR]        Cannot read properties of null (reading 'identifier') (TypeError)
[ERROR]        TypeError: Cannot read properties of null (reading 'identifier')
    at ui_modal_dialog_RulesWizard.updateIntGridValue (file:///C:/Users/quinn/AppData/Local/Programs/ldtk/resources/app.asar/assets/js/renderer.js:298006:17)
    at ui_modal_dialog_RulesWizard.updateUI (file:///C:/Users/quinn/AppData/Local/Programs/ldtk/resources/app.asar/assets/js/renderer.js:297888:8)
    at new ui_modal_dialog_RulesWizard (file:///C:/Users/quinn/AppData/Local/Programs/ldtk/resources/app.asar/assets/js/renderer.js:297664:7)
    at ui_modal_panel_EditAllAutoLayerRules.doUseWizard (file:///C:/Users/quinn/AppData/Local/Programs/ldtk/resources/app.asar/assets/js/renderer.js:300720:3)
    at HTMLButtonElement.<anonymous> (file:///C:/Users/quinn/AppData/Local/Programs/ldtk/resources/app.asar/assets/js/renderer.js:301420:12)
    at HTMLButtonElement.dispatch (C:\Users\quinn\AppData\Local\Programs\ldtk\resources\app.asar\assets\js\jquery.min.js:2:43064)
    at v.handle (C:\Users\quinn\AppData\Local\Programs\ldtk\resources\app.asar\assets\js\jquery.min.js:2:41048)

[GENERAL]      
#0 App
 |--- #3 page.Editor
       |--- #4 misc.FileWatcher
       |--- #5 display.WorldRender
       |--- #6 display.LevelRender
       |--- #7 display.Camera
       |--- #8 display.Rulers[--]
       |--- #9 tool.SelectionTool[--]
       |--- #10 tool.lt.DoNothing[--]
       |--- #11 WorldTool
       |--- #12 tool.PanView[--]
       |--- #13 tool.lt.TileTool [PAUSED][--]
       |--- #17 tool.lt.IntGridTool[--]
       |--- #58 tool.lt.EntityTool [PAUSED][--]
       |--- #312 tool.lt.IntGridTool [PAUSED][--]
       |--- #476 display.EntityRender
       |--- #477 display.EntityRender
       |--- #482 ui.modal.panel.EditAllAutoLayerRules
       |--- #563 ui.LastChance
       |--- #564 ui.modal.dialog.RulesWizard
 |--- #565 page.CrashReport

[FILE]         Cleared all file watches

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