deepnight / ldtk

Modern, lightweight and efficient 2D level editor
https://ldtk.io
MIT License
3.44k stars 192 forks source link

Cannot read properties of null (reading 'getImageExportMode') (TypeError) #1100

Open PainOfExistance opened 7 months ago

PainOfExistance commented 7 months ago

Stack:

LDtk version: 1.5.3-64bits
Cannot read properties of null (reading 'getImageExportMode')
TypeError
TypeError: Cannot read properties of null (reading 'getImageExportMode')
    at Object.cb (file:///C:/Users/MatejPC/AppData/Local/Programs/ldtk/resources/app.asar/assets/js/renderer.js:286875:31)
    at ui_modal_Progress.update (file:///C:/Users/MatejPC/AppData/Local/Programs/ldtk/resources/app.asar/assets/js/renderer.js:292554:8)
    at dn_Process._doMainUpdate (file:///C:/Users/MatejPC/AppData/Local/Programs/ldtk/resources/app.asar/assets/js/renderer.js:405:4)
    at dn_Process._doMainUpdate (file:///C:/Users/MatejPC/AppData/Local/Programs/ldtk/resources/app.asar/assets/js/renderer.js:432:15)
    at dn_Process._doMainUpdate (file:///C:/Users/MatejPC/AppData/Local/Programs/ldtk/resources/app.asar/assets/js/renderer.js:432:15)
    at dn_Process.updateAll (file:///C:/Users/MatejPC/AppData/Local/Programs/ldtk/resources/app.asar/assets/js/renderer.js:675:14)
    at Boot.update (file:///C:/Users/MatejPC/AppData/Local/Programs/ldtk/resources/app.asar/assets/js/renderer.js:5190:14)
    at Boot.mainLoop (file:///C:/Users/MatejPC/AppData/Local/Programs/ldtk/resources/app.asar/assets/js/renderer.js:5152:8)
    at hxd_System.browserLoop (file:///C:/Users/MatejPC/AppData/Local/Programs/ldtk/resources/app.asar/assets/js/renderer.js:190796:14)

Processes:

#0 App
 |--- #2 page.Editor
       |--- #3 misc.FileWatcher
       |--- #4 display.WorldRender
       |--- #5 display.LevelRender
       |--- #6 display.Camera
       |--- #7 display.Rulers[--]
       |--- #8 tool.SelectionTool[--]
       |--- #9 tool.lt.DoNothing[--]
       |--- #10 WorldTool
       |--- #11 tool.PanView[--]
       |--- #12 tool.lt.IntGridTool [PAUSED][--]
       |--- #47 display.EntityRender
       |--- #48 display.EntityRender
       |--- #49 display.EntityRender
       |--- #50 display.EntityRender
       |--- #51 display.EntityRender
       |--- #52 display.EntityRender
       |--- #53 display.EntityRender
       |--- #54 display.EntityRender
       |--- #55 display.EntityRender
       |--- #56 display.EntityRender
       |--- #57 display.EntityRender
       |--- #58 display.EntityRender
       |--- #59 display.EntityRender
       |--- #60 display.EntityRender
       |--- #61 display.EntityRender
       |--- #62 display.EntityRender
       |--- #63 display.EntityRender
       |--- #64 display.EntityRender
       |--- #65 display.EntityRender
       |--- #66 display.EntityRender
       |--- #67 display.EntityRender
       |--- #68 display.EntityRender
       |--- #69 display.EntityRender
       |--- #70 display.EntityRender
       |--- #71 display.EntityRender
       |--- #72 display.EntityRender
       |--- #73 display.EntityRender
       |--- #74 display.EntityRender
       |--- #75 display.EntityRender
       |--- #76 display.EntityRender
       |--- #77 display.EntityRender
       |--- #78 display.EntityRender
       |--- #79 display.EntityRender
       |--- #80 display.EntityRender
       |--- #81 tool.lt.TileTool [PAUSED][--]
       |--- #95 tool.lt.EntityTool[--]
       |--- #101 ui.modal.Progress
       |--- #102 ui.modal.dialog.Message
       |--- #103 ui.Notification

Log:

[RENDER]       Rendering world bg...
[RENDER]       Rendering world bg...
[RENDER]       Rendering world bg...
[USERACTION]   Opened panel #90 ui.modal.panel.EditLayerDefs
[FILE]         Loading HTML template editLayerDefs
[FILE]         Loading HTML template pivotEditor
[RENDER]       Rendering world bg...
[RENDER]       Rendering world bg...
[RENDER]       Rendering world bg...
[RENDER]       Rendering world bg...
[USERACTION]   Closed panel #90 ui.modal.panel.EditLayerDefs
[RENDER]       Rendering world bg...
[EVENT]        LayerInstanceSelected 22
[RENDER]       Rendered level UI
[RENDER]       Rendering world bg...
[RENDER]       Rendering world bg...
[RENDER]       Rendering world level data.Level#46530a10-b0a0-11ee-a3a1-d14e400ed0cf "Land_Of_the_Free"...
[SAVE]         Preparing project saving: D:\FindingHabo\terrain\worlds.ldtk...
[SAVE]         => PreChecks...
[SAVE]         => BeforeSavingActions...
[EVENT]        BeforeProjectSaving
[SAVE]         => AutoLayers...
[GENERAL]      Progress created.
[RENDER]       Rendering world bg...
[GENERAL]      Progress started: : "Preparing levels...", 3 operation(s)
[GENERAL]      Progress completed: "Preparing levels..." (1s)
[SAVE]         => SavingMainFile...
[GENERAL]      Progress created.
[RENDER]       Rendering world bg...
[GENERAL]      Progress started: : "Saving main file...", 2 operation(s)
[SAVE]           Preparing SavingData...
[SAVE]           Writing D:\FindingHabo\terrain\worlds.ldtk...
[GENERAL]      Progress completed: "Saving main file..." (2s)
[FILE]         Emptying dir D:\FindingHabo\terrain\worlds (onlyExts=[ldtkl])...
[SAVE]         => WritingImages...
[GENERAL]      Progress created.
[RENDER]       Rendering world bg...
[GENERAL]      Progress started: : "PNG export", 3 operation(s)
[SAVE]         Level Dream_World...
[ERROR]        Saving failed!
[RENDER]       Rendering world bg...
[SAVE]         Level Land_Of_the_Free...
[GENERAL]      Page started: page.CrashReport()
[FILE]         Loading page template: crashReport from C:/Users/MatejPC/AppData/Local/Programs/ldtk/resources/app.asar/assets/tpl/pages/crashReport.html
[ERROR]        Cannot read properties of null (reading 'getImageExportMode') (TypeError)
[ERROR]        TypeError: Cannot read properties of null (reading 'getImageExportMode')
    at Object.cb (file:///C:/Users/MatejPC/AppData/Local/Programs/ldtk/resources/app.asar/assets/js/renderer.js:286875:31)
    at ui_modal_Progress.update (file:///C:/Users/MatejPC/AppData/Local/Programs/ldtk/resources/app.asar/assets/js/renderer.js:292554:8)
    at dn_Process._doMainUpdate (file:///C:/Users/MatejPC/AppData/Local/Programs/ldtk/resources/app.asar/assets/js/renderer.js:405:4)
    at dn_Process._doMainUpdate (file:///C:/Users/MatejPC/AppData/Local/Programs/ldtk/resources/app.asar/assets/js/renderer.js:432:15)
    at dn_Process._doMainUpdate (file:///C:/Users/MatejPC/AppData/Local/Programs/ldtk/resources/app.asar/assets/js/renderer.js:432:15)
    at dn_Process.updateAll (file:///C:/Users/MatejPC/AppData/Local/Programs/ldtk/resources/app.asar/assets/js/renderer.js:675:14)
    at Boot.update (file:///C:/Users/MatejPC/AppData/Local/Programs/ldtk/resources/app.asar/assets/js/renderer.js:5190:14)
    at Boot.mainLoop (file:///C:/Users/MatejPC/AppData/Local/Programs/ldtk/resources/app.asar/assets/js/renderer.js:5152:8)
    at hxd_System.browserLoop (file:///C:/Users/MatejPC/AppData/Local/Programs/ldtk/resources/app.asar/assets/js/renderer.js:190796:14)

[GENERAL]      
#0 App
 |--- #2 page.Editor
       |--- #3 misc.FileWatcher
       |--- #4 display.WorldRender
       |--- #5 display.LevelRender
       |--- #6 display.Camera
       |--- #7 display.Rulers[--]
       |--- #8 tool.SelectionTool[--]
       |--- #9 tool.lt.DoNothing[--]
       |--- #10 WorldTool
       |--- #11 tool.PanView[--]
       |--- #12 tool.lt.IntGridTool [PAUSED][--]
       |--- #47 display.EntityRender
       |--- #48 display.EntityRender
       |--- #49 display.EntityRender
       |--- #50 display.EntityRender
       |--- #51 display.EntityRender
       |--- #52 display.EntityRender
       |--- #53 display.EntityRender
       |--- #54 display.EntityRender
       |--- #55 display.EntityRender
       |--- #56 display.EntityRender
       |--- #57 display.EntityRender
       |--- #58 display.EntityRender
       |--- #59 display.EntityRender
       |--- #60 display.EntityRender
       |--- #61 display.EntityRender
       |--- #62 display.EntityRender
       |--- #63 display.EntityRender
       |--- #64 display.EntityRender
       |--- #65 display.EntityRender
       |--- #66 display.EntityRender
       |--- #67 display.EntityRender
       |--- #68 display.EntityRender
       |--- #69 display.EntityRender
       |--- #70 display.EntityRender
       |--- #71 display.EntityRender
       |--- #72 display.EntityRender
       |--- #73 display.EntityRender
       |--- #74 display.EntityRender
       |--- #75 display.EntityRender
       |--- #76 display.EntityRender
       |--- #77 display.EntityRender
       |--- #78 display.EntityRender
       |--- #79 display.EntityRender
       |--- #80 display.EntityRender
       |--- #81 tool.lt.TileTool [PAUSED][--]
       |--- #95 tool.lt.EntityTool[--]
       |--- #101 ui.modal.Progress
       |--- #102 ui.modal.dialog.Message
       |--- #103 ui.Notification
 |--- #104 page.CrashReport

[FILE]         Cleared all file watches