johannesjo / super-productivity

Super Productivity is an advanced todo list app with integrated Timeboxing and time tracking capabilities. It also comes with integrations for Jira, Gitlab, GitHub and Open Project.
http://super-productivity.com
MIT License
12.01k stars 932 forks source link

TypeError: Cannot set properties of undefined (setting '_lastParams') #3309

Open ELigoP opened 3 months ago

ELigoP commented 3 months ago

Steps to Reproduce

I cannot provide any good reproduce steps. That was some system/hardware disk error when copying large amounts data from one disk to another, remote path stopped working somehow. My sync file is on remote sftp mounted disk (I am on Linux), sync path starts with /run/user/1000/gvfs/sftp:host=

Error Log (Desktop only)

Last thing in the log before stacktrace was

[2024-07-31 14:11:21.097] [error] Error: ENOENT: no such file or directory, open '/run/user/1000/gvfs/sftp:host=<....REMOVED LOCATION...>/MAIN.json'
    at Object.open (node:internal/fs/sync:78:18)
    at Object.openSync (node:fs:565:17)
    at Object.func [as openSync] (node:electron/js2c/node_init:2:2214)
    at readFileSync (node:fs:445:35)
    at t.readFileSync (node:electron/js2c/node_init:2:9771)
    at /tmp/.mount_superPAgdTEe/resources/app.asar/electron/local-file-sync.js:28:35
    at WebContents.<anonymous> (node:electron/js2c/browser_init:2:78397)
    at WebContents.emit (node:events:514:28)

Meta Info

META: SP9.0.5 Electron – en-US – Linux x86_64 – Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) superProductivity/9.0.5 Chrome/122.0.6261.156 Electron/29.4.5 Safari/537.36

Stacktrace

TypeError: Cannot set properties of undefined (setting '_lastParams')
    at file:///tmp/.mount_superPAgdTEe/resources/app.asar/dist/browser/main-LW377CCS.js:107:175777
    at Generator.next (<anonymous>)
    at file:///tmp/.mount_superPAgdTEe/resources/app.asar/dist/browser/main-LW377CCS.js:1:1664
    at N (file:///tmp/.mount_superPAgdTEe/resources/app.asar/dist/browser/polyfills-OXW65WWX.js:2:2233)
    at Se (file:///tmp/.mount_superPAgdTEe/resources/app.asar/dist/browser/main-LW377CCS.js:1:1484)
    at save (file:///tmp/.mount_superPAgdTEe/resources/app.asar/dist/browser/main-LW377CCS.js:107:175736)
    at e.<anonymous> (file:///tmp/.mount_superPAgdTEe/resources/app.asar/dist/browser/main-LW377CCS.js:107:176910)
    at Generator.next (<anonymous>)
    at o (file:///tmp/.mount_superPAgdTEe/resources/app.asar/dist/browser/main-LW377CCS.js:1:1522)
    at a.invoke (file:///tmp/.mount_superPAgdTEe/resources/app.asar/dist/browser/polyfills-OXW65WWX.js:1:38702)

Actions Before Error

1722423723114: [Task] Add time spent 
1722423723116: [Project] Update Work End 
1722423723116: [Persistence] Save to DB (2) 
1722423724114: [Task] Add time spent 
1722423724116: [Project] Update Work End 
1722423724116: [Persistence] Save to DB (2) 
1722423725114: [Task] Add time spent 
1722423725116: [Project] Update Work End 
1722423725116: [Persistence] Save to DB (2) 
1722423726114: [Task] Add time spent 
1722423726116: [Project] Update Work End 
1722423726116: [Persistence] Save to DB (2) 
1722423727114: [Task] Add time spent 
1722423727116: [Project] Update Work End 
1722423727116: [Persistence] Save to DB (2) 
1722423728114: [Task] Add time spent 
1722423728116: [Project] Update Work End 
1722423728116: [Persistence] Save to DB (2) 
1722423729114: [Task] Add time spent 
1722423729116: [Project] Update Work End 
1722423729116: [Persistence] Save to DB (2) 
1722423730114: [Task] Add time spent 
1722423730116: [Project] Update Work End 
1722423730116: [Persistence] Save to DB (2) 
1722424280848: [FocusMode] Set focus session elapsed time 
1722424281072: [SP_ALL] Load(import) all data 
1722424281074: [SP_ALL] All Data was loaded 
1722427270815: [Idle] Trigger Idle 
1722427270815: [Idle] Set idle time 
1722427270816: [Idle] Open dialog
github-actions[bot] commented 3 months ago

Thank you very much for opening up this issue! I am currently a bit overwhelmed by the many requests that arrive each week, so please forgive me, if I fail to respond personally. I am still very likely to at least skim read your request and I'll probably try to fix all (real) bugs if possible and I will likely review every single PR being made (please, give me a heads up if you intent to do so) and I will try to work on popular requests (please upvote via thumbs up on the original issue) whenever possible, but trying to respond to every single issue over the last years has been kind of draining and I need to adjust my approach for this project to remain fun for me and to make any progress with actually coding new stuff. Thanks for your understanding!