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
8.67k stars 753 forks source link

TypeError: Cannot read properties of null (reading 'subTasks') #3062

Open galois-grothen opened 4 months ago

galois-grothen commented 4 months ago

ANONYMIZED-super-productivity-crash-user-data-export.json

Steps to Reproduce

  1. Clicked on a tag to get a list of items.

Error Log (Desktop only)

Console Output

See attached.

Meta Info

META: SP8.0.0 Electron – en-US – MacIntel – Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) superProductivity/8.0.0 Chrome/120.0.6099.227 Electron/28.2.0 Safari/537.36

Stacktrace

TypeError: Cannot read properties of null (reading 'subTasks')
    at file:///Applications/superProductivity.app/Contents/Resources/app.asar/dist/main.059230447973e241.js:1:299146
    at Array.forEach (<anonymous>)
    at Pp (file:///Applications/superProductivity.app/Contents/Resources/app.asar/dist/main.059230447973e241.js:1:299122)
    at g.project (file:///Applications/superProductivity.app/Contents/Resources/app.asar/dist/main.059230447973e241.js:1:578043)
    at g._next (file:///Applications/superProductivity.app/Contents/Resources/app.asar/dist/main.059230447973e241.js:1:3918000)
    at g.next (file:///Applications/superProductivity.app/Contents/Resources/app.asar/dist/main.059230447973e241.js:1:3906121)
    at S.next (file:///Applications/superProductivity.app/Contents/Resources/app.asar/dist/main.059230447973e241.js:1:3903871)
    at S.nextInfiniteTimeWindow (file:///Applications/superProductivity.app/Contents/Resources/app.asar/dist/main.059230447973e241.js:1:3902444)
    at Object.next (file:///Applications/superProductivity.app/Contents/Resources/app.asar/dist/main.059230447973e241.js:1:187078)
    at p.__tryOrUnsub (file:///Applications/superProductivity.app/Contents/Resources/app.asar/dist/main.059230447973e241.js:1:3907935)

Actions Before Error

1709117014307: [Persistence] Save to DB 
1709117026119: [Task] Update Task 
1709117026123: [Persistence] Save to DB 
1709117048625: [Task] SetSelectedTask 
1709117048628: [Layout] Hide Notes 
1709117057898: [Task] Update Task 
1709117057903: [Persistence] Save to DB 
1709117067997: [Task] SetSelectedTask (2) 
1709117067998: [Layout] Hide Notes 
1709117072435: [Task] Update Task 
1709117072438: [Persistence] Save to DB 
1709117074943: [Task] Update Task 
1709117074956: [Persistence] Save to DB 
1709117082900: [Task] Update Task 
1709117082903: [Persistence] Save to DB 
1709117143215: [Task] Update Task 
1709117143219: [Persistence] Save to DB 
1709117168335: [Task] Update Task 
1709117168343: [Persistence] Save to DB 
1709117174203: [Task] SetSelectedTask 
1709117174239: [Layout] Hide Notes 
1709117215319: [Task] Move to archive 
1709117215326: [Persistence] Save to DB (3) 
1709117215326: [Task] UnsetCurrentTask 
1709117215356: [Persistence] Save to DB 
1709117243698: [WorkContext] Set Active Work Context 
1709117243735: [Task] SetSelectedTask 
1709117245166: [WorkContext] Set Active Work Context 
1709117245168: [Task] SetSelectedTask 
1709117246273: [WorkContext] Set Active Work Context
github-actions[bot] commented 4 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!

github-actions[bot] commented 4 months ago

Hello there galois-grothen! 👋

Thank you and congratulations 🎉 for opening your very first issue in this project! 💖

In case you want to claim this issue, please comment down below! We will try to get back to you as soon as we can. 👀

For more open ended discussions and/or specific questions, please visit the discussions page. 💖

galois-grothen commented 4 months ago

My main intention is to simply log this error. Feel free to comment if this issue makes sense to you? Had anyone else experienced this 'issue' as well?

johannesjo commented 4 months ago

Thank you very much for reporting this.

I think you accidentally(?) posted your real data which contained your dropbox token which gives access to the super productivity data in your dropbox. You might want to invalidate this token (https://stackoverflow.com/questions/43705630/how-do-i-revoke-generated-access-tokens-for-dropbox-applications).

After importing your data – which had some inconsistency in them – I was prompted if i would like to fix it.

Probably hard to reconstruct what caused this in the first place. Or do you have any pointers by any chance?