deepnight / ldtk

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

Crash on new world creation #1038

Closed ykt-dev closed 9 months ago

ykt-dev commented 9 months ago

Multiworld is broken in 1.5

Steps:

Stack:

LDtk version: 1.5.0-64bits
Empty jQuery object
Error

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[--]
       |--- #32 ui.modal.panel.WorldPanel
       |--- #34 ui.Tip
       |--- #35 ui.modal.panel.WorldPanel
       |--- #36 ui.Notification
       |--- #37 ui.modal.panel.WorldPanel

Log:

[WARNING]      Full level render requested
[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]        LevelJsonCacheInvalidated
[EVENT]        ProjectSettingsChanged
[RENDER]       Rendering world bg...
[FILE]         Reading HTML template pivotEditor from cache
[RENDER]       Rendered level UI
[RENDER]       Rendering world bg...
[RENDER]       Rendering world bg...
[RENDER]       Rendering world bg...
[RENDER]       Rendering world bg...
[RENDER]       Rendering world bg...
[RENDER]       Rendering world bg...
[USERACTION]   Closed panel #23 ui.modal.panel.EditProject
[USERACTION]   Opened panel #32 ui.modal.panel.WorldPanel
[FILE]         Reading HTML template worldPanel from cache
[FILE]         Reading HTML template levelInstanceForm from cache
[RENDER]       Rendering world level data.Level#249d6780-8990-11ee-a1eb-995e266c95a7 "level_1"...
[RENDER]       Rendering world level fields data.Level#249d6780-8990-11ee-a1eb-995e266c95a7 "level_1"...
[RENDER]       Rendering world bg...
[RENDER]       Rendering world bg...
[RENDER]       Rendering world level fields data.Level#1f712a00-8990-11ee-89bb-17c110d89eef "level_0"...
[RENDER]       Rendering world bg...
[EVENT]        WorldSelected
[EVENT]        LevelSelected 2
[USERACTION]   Opened level data.Level#2a7204e0-8990-11ee-a1eb-2749e8fcf901 "level_2"
[WARNING]      Full level render requested
[TIMELINE]     Garbage collected level: #1
[USERACTION]   Closed panel #32 ui.modal.panel.WorldPanel
[USERACTION]   Opened panel #35 ui.modal.panel.WorldPanel
[FILE]         Reading HTML template worldPanel from cache
[FILE]         Reading HTML template levelInstanceForm from cache
[USERACTION]   Closed panel #35 ui.modal.panel.WorldPanel
[USERACTION]   Opened panel #37 ui.modal.panel.WorldPanel
[FILE]         Reading HTML template worldPanel from cache
[FILE]         Reading HTML template levelInstanceForm from cache
[EVENT]        WorldCreated
[GENERAL]      Page started: page.CrashReport()
[FILE]         Loading page template: crashReport from C:/Users/user/AppData/Local/Programs/ldtk/resources/app.asar/assets/tpl/pages/crashReport.html
[ERROR]        Empty jQuery object (Error)
[ERROR]        undefined

[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[--]
       |--- #32 ui.modal.panel.WorldPanel
       |--- #34 ui.Tip
       |--- #35 ui.modal.panel.WorldPanel
       |--- #36 ui.Notification
       |--- #37 ui.modal.panel.WorldPanel
 |--- #38 page.CrashReport

[FILE]         Cleared all file watches
deepnight commented 9 months ago

Fixed