question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

TypeError: Cannot destructure property 'task' of 'c' as it is null after hibernation

See original GitHub issue

Steps to Reproduce

  1. Start tracing time with a task
  2. Hibernate PC
  3. Soon after resuming error appears

Seems to be rather reproducible - seen I has seen it two times yet.

Error Log (Desktop only)

obraz

Console Output

Stacktrace

TypeError: Cannot destructure property 'task' of 'c' as it is null.
    at b._next (file:///C:/Program%20Files/WindowsApps/53707johannesjo.SuperProductivity_7.8.0.0_x64__ch45amy23cdv6/app/resources/app.asar/dist/main.1e9942faffaf603d.js:1:2107790)
    at b.__tryOrUnsub (file:///C:/Program%20Files/WindowsApps/53707johannesjo.SuperProductivity_7.8.0.0_x64__ch45amy23cdv6/app/resources/app.asar/dist/main.1e9942faffaf603d.js:1:956876)
    at b.next (file:///C:/Program%20Files/WindowsApps/53707johannesjo.SuperProductivity_7.8.0.0_x64__ch45amy23cdv6/app/resources/app.asar/dist/main.1e9942faffaf603d.js:1:956105)
    at T._next (file:///C:/Program%20Files/WindowsApps/53707johannesjo.SuperProductivity_7.8.0.0_x64__ch45amy23cdv6/app/resources/app.asar/dist/main.1e9942faffaf603d.js:1:955288)
    at T.next (file:///C:/Program%20Files/WindowsApps/53707johannesjo.SuperProductivity_7.8.0.0_x64__ch45amy23cdv6/app/resources/app.asar/dist/main.1e9942faffaf603d.js:1:955062)
    at v._next (file:///C:/Program%20Files/WindowsApps/53707johannesjo.SuperProductivity_7.8.0.0_x64__ch45amy23cdv6/app/resources/app.asar/dist/main.1e9942faffaf603d.js:1:975388)
    at v.next (file:///C:/Program%20Files/WindowsApps/53707johannesjo.SuperProductivity_7.8.0.0_x64__ch45amy23cdv6/app/resources/app.asar/dist/main.1e9942faffaf603d.js:1:955062)
    at O.next (file:///C:/Program%20Files/WindowsApps/53707johannesjo.SuperProductivity_7.8.0.0_x64__ch45amy23cdv6/app/resources/app.asar/dist/main.1e9942faffaf603d.js:1:952809)
    at b._next (file:///C:/Program%20Files/WindowsApps/53707johannesjo.SuperProductivity_7.8.0.0_x64__ch45amy23cdv6/app/resources/app.asar/dist/main.1e9942faffaf603d.js:1:1716081)
    at b.__tryOrUnsub (file:///C:/Program%20Files/WindowsApps/53707johannesjo.SuperProductivity_7.8.0.0_x64__ch45amy23cdv6/app/resources/app.asar/dist/main.1e9942faffaf603d.js:1:956876)

Meta Info

META: SP7.8.0 Electron – pl – Win32 – Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) superProductivity/7.8.0 Chrome/93.0.4577.82 Electron/14.1.1 Safari/537.36

Actions Before Error

1638119757085: [Tag] Update Work End for Tag (3) 
1638119757092: [Persistence] Save to DB (5) 
1638119817070: [Task] Add time spent 
1638119817072: [Project] Update Work End 
1638119817127: [Tag] Update Work End for Tag (3) 
1638119817141: [Persistence] Save to DB (5) 
1638119877124: [Task] Add time spent 
1638119877129: [Project] Update Work End 
1638119877162: [Tag] Update Work End for Tag (3) 
1638119877169: [Persistence] Save to DB (5) 
1638119937060: [Task] Add time spent 
1638119937061: [Project] Update Work End 
1638119937078: [Tag] Update Work End for Tag (3) 
1638119937086: [Persistence] Save to DB (5) 
1638119997072: [Task] Add time spent 
1638119997073: [Project] Update Work End 
1638119997096: [Tag] Update Work End for Tag (3) 
1638119997113: [Persistence] Save to DB (5) 
1638120894657: [Pomodoro] Finish Pomodoro Session 
1638120894887: [Task] UnsetCurrentTask 
1638120895457: [Idle] Trigger Idle 
1638120895496: [Idle] Set idle time 
1638120895607: [Idle] Trigger Idle 
1638120897556: [Idle] Set idle time (2) 
1638120898445: [Pomodoro] Skip Break 
1638120898450: [Task] Toggle start 
1638120898452: [Persistence] Save to DB 
1638120898452: [Task] SetCurrentTask 
1638120898454: [Pomodoro] Start Pomodoro 
1638120898667: [Idle] Set idle time

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
jpalczewskicommented, Dec 12, 2021

I have been testing since your comment, recorded about 6 pomodoros and had the app opened in the background a lot longer - I haven’t spotted this nor #1745 error anymore(ocasionally I was looking in the console few times, but haven’t seen anything). Works much better now, thanks!

1reaction
jpalczewskicommented, Dec 5, 2021

I haven’t yet built a master release(but I will do it now), so this issue also appeared on another pc, and no hibernation were involved. This time error happened after ending a pomodoro break:

Stacktrace

TypeError: Cannot destructure property 'task' of 'c' as it is null.
    at b._next (file:///C:/Program%20Files/WindowsApps/53707johannesjo.SuperProductivity_7.8.0.0_x64__ch45amy23cdv6/app/resources/app.asar/dist/main.1e9942faffaf603d.js:1:2107790)
    at b.__tryOrUnsub (file:///C:/Program%20Files/WindowsApps/53707johannesjo.SuperProductivity_7.8.0.0_x64__ch45amy23cdv6/app/resources/app.asar/dist/main.1e9942faffaf603d.js:1:956876)
    at b.next (file:///C:/Program%20Files/WindowsApps/53707johannesjo.SuperProductivity_7.8.0.0_x64__ch45amy23cdv6/app/resources/app.asar/dist/main.1e9942faffaf603d.js:1:956105)
    at T._next (file:///C:/Program%20Files/WindowsApps/53707johannesjo.SuperProductivity_7.8.0.0_x64__ch45amy23cdv6/app/resources/app.asar/dist/main.1e9942faffaf603d.js:1:955288)
    at T.next (file:///C:/Program%20Files/WindowsApps/53707johannesjo.SuperProductivity_7.8.0.0_x64__ch45amy23cdv6/app/resources/app.asar/dist/main.1e9942faffaf603d.js:1:955062)
    at v._next (file:///C:/Program%20Files/WindowsApps/53707johannesjo.SuperProductivity_7.8.0.0_x64__ch45amy23cdv6/app/resources/app.asar/dist/main.1e9942faffaf603d.js:1:975388)
    at v.next (file:///C:/Program%20Files/WindowsApps/53707johannesjo.SuperProductivity_7.8.0.0_x64__ch45amy23cdv6/app/resources/app.asar/dist/main.1e9942faffaf603d.js:1:955062)
    at O.next (file:///C:/Program%20Files/WindowsApps/53707johannesjo.SuperProductivity_7.8.0.0_x64__ch45amy23cdv6/app/resources/app.asar/dist/main.1e9942faffaf603d.js:1:952809)
    at b._next (file:///C:/Program%20Files/WindowsApps/53707johannesjo.SuperProductivity_7.8.0.0_x64__ch45amy23cdv6/app/resources/app.asar/dist/main.1e9942faffaf603d.js:1:1716081)
    at b.__tryOrUnsub (file:///C:/Program%20Files/WindowsApps/53707johannesjo.SuperProductivity_7.8.0.0_x64__ch45amy23cdv6/app/resources/app.asar/dist/main.1e9942faffaf603d.js:1:956876)

Meta Info

META: SP7.8.0 Electron – pl – Win32 – Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) superProductivity/7.8.0 Chrome/93.0.4577.82 Electron/14.1.1 Safari/537.36

Actions Before Error

1638723772676: [Task] Add time spent 
1638723772677: [Project] Update Work End 
1638723772680: [Tag] Update Work End for Tag 
1638723772684: [Persistence] Save to DB (3) 
1638723773677: [Task] Add time spent 
1638723773678: [Project] Update Work End 
1638723773682: [Tag] Update Work End for Tag 
1638723773684: [Persistence] Save to DB (3) 
1638723774676: [Task] Add time spent 
1638723774677: [Project] Update Work End 
1638723774681: [Tag] Update Work End for Tag 
1638723774685: [Persistence] Save to DB (3) 
1638723775676: [Task] Add time spent 
1638723775679: [Project] Update Work End 
1638723775684: [Tag] Update Work End for Tag 
1638723775688: [Persistence] Save to DB (3) 
1638723776675: [Pomodoro] Finish Pomodoro Session 
1638723776695: [Task] UnsetCurrentTask 
1638724086449: [Idle] Trigger Idle 
1638724086456: [Idle] Set idle time 
1638724086472: [Pomodoro] Finish Pomodoro Session 
1638724086474: [Task] Toggle start 
1638724086476: [Persistence] Save to DB 
1638724086477: [Task] SetCurrentTask 
1638724086478: [Pomodoro] Start Pomodoro 
1638724086529: [Task] Add time spent 
1638724086532: [Project] Update Work End 
1638724086545: [Tag] Update Work End for Tag 
1638724086555: [Persistence] Save to DB (3)

but if I remember correctly, this cannot be run without pushing it to the store. You can install it locally, but you neeed to sign it with a locally trusted key. Well designed by MS, but greatly annoying for developers.

Read more comments on GitHub >

github_iconTop Results From Across the Web

TypeError: Cannot destructure property 'task' of 'c' as it is null ...
Steps to Reproduce I only noticed the error when returning to the app, so I'm not sure about the steps to reproduce.
Read more >
TypeError: Cannot destructure property 'tasks' of 'Object ...
js I want to build a home page which loads components based on the content in the local storage, but I keep getting...
Read more >
Cannot destructure Property of Null Error in JavaScript
The "Cannot destructure property of null" error occurs when we try to destructure a property from a value that is equal to `null`....
Read more >
Internal Server Error & TypeError: Cannot destructure property ...
The error means that request.bodyParser is undefined, which makes sense, since there's no such property on request object. Most likely it'd be body...
Read more >
Cannot destructure property 'styles' of 'this.context' as it is null
The error happens if you are using the Head component from next/document instead of next/head . The Head component from next/document should ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found