ldtk
ldtk copied to clipboard
Crash when i move the single level from world to another in a multiworld project
Steps to reproduce:
- Create a new project
- Enable multi-worlds support
- Create a new world
- Move the only level of the current world to another world
Stack:
LDtk version: 1.5.3-64bits
Cannot read properties of undefined (reading '_world')
TypeError
TypeError: Cannot read properties of undefined (reading '_world')
at page_Editor.selectLevel (file:///tmp/.mount_LDtk%201Dscfcr/resources/app.asar/assets/js/renderer.js:242596:8)
at page_Editor.selectWorld (file:///tmp/.mount_LDtk%201Dscfcr/resources/app.asar/assets/js/renderer.js:242581:8)
at HTMLLIElement.<anonymous> (file:///tmp/.mount_LDtk%201Dscfcr/resources/app.asar/assets/js/renderer.js:242892:13)
at HTMLLIElement.dispatch (/tmp/.mount_LDtk 1Dscfcr/resources/app.asar/assets/js/jquery.min.js:2:43064)
at v.handle (/tmp/.mount_LDtk 1Dscfcr/resources/app.asar/assets/js/jquery.min.js:2:41048)
Processes:
#0 App
|--- #69 page.Editor
|--- #70 misc.FileWatcher
|--- #71 display.WorldRender
|--- #72 display.LevelRender
|--- #73 display.Camera
|--- #74 display.Rulers[--]
|--- #75 tool.SelectionTool[--]
|--- #76 tool.lt.DoNothing[--]
|--- #77 WorldTool
|--- #78 tool.PanView[--]
|--- #112 ui.Notification
Log:
[RENDER] Rendering world bg...
[RENDER] Rendering world bg...
[RENDER] Rendering world bg...
[USERACTION] Closed panel #103 ui.modal.panel.EditProject
[RENDER] Rendering world bg...
[RENDER] Rendering world bg...
[USERACTION] Opened panel #107 ui.modal.panel.WorldPanel
[FILE] Reading HTML template worldPanel from cache
[FILE] Reading HTML template levelInstanceForm from cache
[RENDER] Rendering world level data.Level#314068a0-4ce0-11ef-abd9-1514905b6998 "Level_1"...
[RENDER] Rendering world level fields data.Level#314068a0-4ce0-11ef-abd9-1514905b6998 "Level_1"...
[RENDER] Rendering world bg...
[RENDER] Rendering world bg...
[EVENT] LevelSelected 1
[USERACTION] Opened level data.Level#314068a0-4ce0-11ef-abd9-1514905b6998 "Level_1"
[RENDER] Rendering world level data.Level#314068a0-4ce0-11ef-abd9-1514905b6998 "Level_1"...
[RENDER] Rendering world level fields data.Level#314068a0-4ce0-11ef-abd9-1514905b6998 "Level_1"...
[RENDER] Rendering world bg...
[EVENT] WorldSelected
[EVENT] LevelSelected 0
[USERACTION] Opened level data.Level#98bff7c0-4ce0-11ef-b515-274cf33016ef "Level_0"
[WARNING] Full level render requested
[TIMELINE] Garbage collected level: #1
[USERACTION] Closed panel #107 ui.modal.panel.WorldPanel
[USERACTION] Opened panel #110 ui.modal.panel.WorldPanel
[FILE] Reading HTML template worldPanel from cache
[FILE] Reading HTML template levelInstanceForm from cache
[USERACTION] Closed panel #110 ui.modal.panel.WorldPanel
[USERACTION] Opened panel #111 ui.modal.panel.WorldPanel
[FILE] Reading HTML template worldPanel from cache
[FILE] Reading HTML template levelInstanceForm from cache
[EVENT] LevelSelected 1
[USERACTION] Opened level data.Level#314068a0-4ce0-11ef-abd9-1514905b6998 "Level_1"
[WARNING] Full level render requested
[TIMELINE] Garbage collected level: #0
[USERACTION] Closed panel #111 ui.modal.panel.WorldPanel
[RENDER] Rendering world level data.Level#98bff7c0-4ce0-11ef-b515-274cf33016ef "Level_0"...
[RENDER] Rendering world level fields data.Level#314068a0-4ce0-11ef-abd9-1514905b6998 "Level_1"...
[WARNING] Full level render requested
[RENDER] Rendering world bg...
[RENDER] Rendering world level data.Level#314068a0-4ce0-11ef-abd9-1514905b6998 "Level_1"...
[EVENT] WorldSelected
[GENERAL] Page started: page.CrashReport()
[FILE] Loading page template: crashReport from /tmp/.mount_LDtk 1Dscfcr/resources/app.asar/assets/tpl/pages/crashReport.html
[ERROR] Cannot read properties of undefined (reading '_world') (TypeError)
[ERROR] TypeError: Cannot read properties of undefined (reading '_world')
at page_Editor.selectLevel (file:///tmp/.mount_LDtk%201Dscfcr/resources/app.asar/assets/js/renderer.js:242596:8)
at page_Editor.selectWorld (file:///tmp/.mount_LDtk%201Dscfcr/resources/app.asar/assets/js/renderer.js:242581:8)
at HTMLLIElement.<anonymous> (file:///tmp/.mount_LDtk%201Dscfcr/resources/app.asar/assets/js/renderer.js:242892:13)
at HTMLLIElement.dispatch (/tmp/.mount_LDtk 1Dscfcr/resources/app.asar/assets/js/jquery.min.js:2:43064)
at v.handle (/tmp/.mount_LDtk 1Dscfcr/resources/app.asar/assets/js/jquery.min.js:2:41048)
[GENERAL]
#0 App
|--- #69 page.Editor
|--- #70 misc.FileWatcher
|--- #71 display.WorldRender
|--- #72 display.LevelRender
|--- #73 display.Camera
|--- #74 display.Rulers[--]
|--- #75 tool.SelectionTool[--]
|--- #76 tool.lt.DoNothing[--]
|--- #77 WorldTool
|--- #78 tool.PanView[--]
|--- #112 ui.Notification
|--- #113 page.CrashReport
[FILE] Cleared all file watches