ldtk icon indicating copy to clipboard operation
ldtk copied to clipboard

EBUSY: resource busy or locked, open ...

Open Torchpup opened this issue 3 years ago • 1 comments

Was editing the tilemap and got this error :(

Stack:

LDtk version: 1.1.3-64bits
EBUSY: resource busy or locked, open 'C:/Users/Shmellyorc/Documents/Pizzamon/Pizzamon/Content/Map/Pizzamon.ldtk'
Error
Error: EBUSY: resource busy or locked, open 'C:/Users/Shmellyorc/Documents/Pizzamon/Pizzamon/Content/Map/Pizzamon.ldtk'
    at Object.openSync (node:fs:585:3)
    at Object.func [as openSync] (node:electron/js2c/asar_bundle:5:1800)
    at Object.writeFileSync (node:fs:2153:35)
    at Function.dn_js_NodeTools.writeFileString (file:///C:/Users/Shmellyorc/AppData/Local/Programs/ldtk/resources/app.asar/assets/js/renderer.js:80121:13)
    at Object.cb (file:///C:/Users/Shmellyorc/AppData/Local/Programs/ldtk/resources/app.asar/assets/js/renderer.js:215697:21)
    at ui_modal_Progress.update (file:///C:/Users/Shmellyorc/AppData/Local/Programs/ldtk/resources/app.asar/assets/js/renderer.js:220409:8)
    at Function.dn_Process._doMainUpdate (file:///C:/Users/Shmellyorc/AppData/Local/Programs/ldtk/resources/app.asar/assets/js/renderer.js:223:4)
    at Function.dn_Process._doMainUpdate (file:///C:/Users/Shmellyorc/AppData/Local/Programs/ldtk/resources/app.asar/assets/js/renderer.js:266:15)
    at Function.dn_Process._doMainUpdate (file:///C:/Users/Shmellyorc/AppData/Local/Programs/ldtk/resources/app.asar/assets/js/renderer.js:266:15)
    at Function.dn_Process.updateAll (file:///C:/Users/Shmellyorc/AppData/Local/Programs/ldtk/resources/app.asar/assets/js/renderer.js:734:14)

Processes:

#0 App
 |--- #1874 page.Editor
       |--- #1875 misc.FileWatcher
       |--- #1876 display.WorldRender
       |--- #1877 display.LevelRender
       |--- #1878 display.Camera
       |--- #1879 display.Rulers[--]
       |--- #1880 tool.SelectionTool[--]
       |--- #1881 tool.lt.DoNothing[--]
       |--- #1882 WorldTool
       |--- #1883 tool.PanView[--]
       |--- #2019 tool.lt.IntGridTool [PAUSED][--]
       |--- #2022 tool.lt.TileTool [PAUSED][--]
       |--- #2024 tool.lt.TileTool[--]
       |--- #2029 tool.lt.IntGridTool [PAUSED][--]
       |--- #2486 tool.lt.EntityTool [PAUSED][--]
       |--- #3879 display.EntityRender
       |--- #3880 ui.ProjectSaver
       |--- #3881 ui.modal.MetaProgress
       |--- #3884 ui.modal.Progress

Log:

[RENDER]       Rendered level UI
[RENDER]       Rendering world bg...
[EVENT]        LayerInstanceSelected
[RENDER]       Rendered level UI
[RENDER]       Rendering world bg...
[EVENT]        ToolValueSelected
[EVENT]        LayerInstanceEditedByTool
[EVENT]        LevelJsonCacheInvalidated
[EVENT]        LayerInstanceEditedByTool
[RENDER]       Rendering world level fields data.Level.World_Level_215(#921)...
[EVENT]        LayerInstanceEditedByTool
[EVENT]        LayerInstanceEditedByTool
[EVENT]        LevelSelected 920
[RENDER]       Rendering world level data.Level.World_Level_214(#920)...
[RENDER]       Rendering world level fields data.Level.World_Level_214(#920)...
[WARNING]      Full level render requested
[RENDER]       Rendering world bg...
[RENDER]       Rendering world level data.Level.World_Level_215(#921)...
[SAVE]         Preparing project saving: C:/Users/Shmellyorc/Documents/Pizzamon/Pizzamon/Content/Map/Pizzamon.ldtk...
[SAVE]         => PreChecks...
[SAVE]         => BeforeSavingActions...
[EVENT]        BeforeProjectSaving
[SAVE]         => AutoLayers...
[SAVE]         => Backup...
[SAVE]         Backing up C:/Users/Shmellyorc/Documents/Pizzamon/Pizzamon/Content/Map to C:/Users/Shmellyorc/Documents/Pizzamon/Pizzamon/Content/Map/Pizzamon/backups/backup_2022-05-25_17-28-15...
[SAVE]           Found 1 files.
[GENERAL]      Progress created.
[RENDER]       Rendering world bg...
[GENERAL]      Progress started: : "Backup", 2 operation(s)
[SAVE]         Removing older backup: backup_2022-05-25_14-19-15
[GENERAL]      Progress completed: "Backup" (0s)
[SAVE]           Done!
[GENERAL]      Progress created.
[RENDER]       Rendering world bg...
[GENERAL]      Progress started: : "Preparing levels...", 235 operation(s)
[GENERAL]      Progress completed: "Preparing levels..." (0s)
[SAVE]         => SavingMainFile...
[GENERAL]      Progress created.
[RENDER]       Rendering world bg...
[GENERAL]      Progress started: : "Saving main file...", 2 operation(s)
[SAVE]           Preparing SavingData...
[SAVE]           Writing C:/Users/Shmellyorc/Documents/Pizzamon/Pizzamon/Content/Map/Pizzamon.ldtk...
[GENERAL]      Page started: page.CrashReport()
[FILE]         Loading page template: crashReport from C:/Users/Shmellyorc/AppData/Local/Programs/ldtk/resources/app.asar/assets/tpl/pages/crashReport.html
[ERROR]        EBUSY: resource busy or locked, open 'C:/Users/Shmellyorc/Documents/Pizzamon/Pizzamon/Content/Map/Pizzamon.ldtk' (Error)
[ERROR]        Error: EBUSY: resource busy or locked, open 'C:/Users/Shmellyorc/Documents/Pizzamon/Pizzamon/Content/Map/Pizzamon.ldtk'
    at Object.openSync (node:fs:585:3)
    at Object.func [as openSync] (node:electron/js2c/asar_bundle:5:1800)
    at Object.writeFileSync (node:fs:2153:35)
    at Function.dn_js_NodeTools.writeFileString (file:///C:/Users/Shmellyorc/AppData/Local/Programs/ldtk/resources/app.asar/assets/js/renderer.js:80121:13)
    at Object.cb (file:///C:/Users/Shmellyorc/AppData/Local/Programs/ldtk/resources/app.asar/assets/js/renderer.js:215697:21)
    at ui_modal_Progress.update (file:///C:/Users/Shmellyorc/AppData/Local/Programs/ldtk/resources/app.asar/assets/js/renderer.js:220409:8)
    at Function.dn_Process._doMainUpdate (file:///C:/Users/Shmellyorc/AppData/Local/Programs/ldtk/resources/app.asar/assets/js/renderer.js:223:4)
    at Function.dn_Process._doMainUpdate (file:///C:/Users/Shmellyorc/AppData/Local/Programs/ldtk/resources/app.asar/assets/js/renderer.js:266:15)
    at Function.dn_Process._doMainUpdate (file:///C:/Users/Shmellyorc/AppData/Local/Programs/ldtk/resources/app.asar/assets/js/renderer.js:266:15)
    at Function.dn_Process.updateAll (file:///C:/Users/Shmellyorc/AppData/Local/Programs/ldtk/resources/app.asar/assets/js/renderer.js:734:14)

[GENERAL]      
#0 App
 |--- #1874 page.Editor
       |--- #1875 misc.FileWatcher
       |--- #1876 display.WorldRender
       |--- #1877 display.LevelRender
       |--- #1878 display.Camera
       |--- #1879 display.Rulers[--]
       |--- #1880 tool.SelectionTool[--]
       |--- #1881 tool.lt.DoNothing[--]
       |--- #1882 WorldTool
       |--- #1883 tool.PanView[--]
       |--- #2019 tool.lt.IntGridTool [PAUSED][--]
       |--- #2022 tool.lt.TileTool [PAUSED][--]
       |--- #2024 tool.lt.TileTool[--]
       |--- #2029 tool.lt.IntGridTool [PAUSED][--]
       |--- #2486 tool.lt.EntityTool [PAUSED][--]
       |--- #3879 display.EntityRender
       |--- #3880 ui.ProjectSaver
       |--- #3881 ui.modal.MetaProgress
       |--- #3884 ui.modal.Progress
 |--- #3885 page.CrashReport

[FILE]         Cleared all file watches

Torchpup avatar May 26 '22 00:05 Torchpup