Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: InvalidStateError: Failed to execute 'transaction' on 'IDBDatabase': The database connection is closing. #1281

Closed
eliepa opened this issue Jun 7, 2021 · 1 comment

Comments

@eliepa
Copy link

eliepa commented Jun 7, 2021

Steps to Reproduce

  1. Application was running but no tasks were tracked for a while (~ 4h);
  2. Open application window;
  3. Press "Start/stop tracking time" in the right upper corner;
  4. Application crashes.

Error Log (Desktop only)

...
[2021-06-08 00:53:36.002] [info] { enabled: null, showDevTools: false, mode: 'bottom' }
[2021-06-08 00:53:36.886] [info] Saving backups to /home/user/snap/superproductivity/1241/.config/superProductivity/backups
[2021-06-08 00:53:37.996] [info] No custom styles detected at /home/user/snap/superproductivity/1241/.config/superProductivity/styles.css
....

Console Output

Stacktrace

await (webpack:///src/app/core/persistence/database.service.ts:58:12)
Ur (file:///snap/superproductivity/1237/resources/app.asar/dist/main.cc3925b96cf833956e9a.js:1:2326827)
invoke (webpack:///node_modules/zone.js/dist/zone-evergreen.js:372:25)
onInvoke (webpack:///node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js:28553:32)
invoke (webpack:///node_modules/zone.js/dist/zone-evergreen.js:371:51)
run (webpack:///node_modules/zone.js/dist/zone-evergreen.js:134:42)
zone.scheduleMicroTask(source, (webpack:///node_modules/zone.js/dist/zone-evergreen.js:1276:35)
invokeTask (webpack:///node_modules/zone.js/dist/zone-evergreen.js:406:30)
onInvokeTask (webpack:///node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js:28540:32)

Meta Info

META: SP7.0.0 Electron – en-US – Linux x86_64 – Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) superProductivity/7.0.0 Chrome/89.0.4389.128 Electron/12.0.7 Safari/537.36

Actions Before Error

1623102584669: [Persistence] Save to DB 
1623102584670: [Persistence] Save to DB 
1623102585651: [Task] Add time spent 
1623102585653: [Tag] Update Work End for Tag 
1623102585666: [Persistence] Save to DB 
1623102585668: [Persistence] Save to DB 
1623102586651: [Task] Add time spent 
1623102586653: [Tag] Update Work End for Tag 
1623102586668: [Persistence] Save to DB 
1623102586668: [Persistence] Save to DB 
1623102587651: [Task] Add time spent 
1623102587651: [Tag] Update Work End for Tag 
1623102587655: [Persistence] Save to DB 
1623102587655: [Persistence] Save to DB 
1623102588651: [Task] Add time spent 
1623102588654: [Tag] Update Work End for Tag 
1623102588674: [Persistence] Save to DB 
1623102588675: [Persistence] Save to DB 
1623102589651: [Task] Add time spent 
1623102589653: [Tag] Update Work End for Tag 
1623102589682: [Persistence] Save to DB 
1623102589683: [Persistence] Save to DB 
1623102590651: [Task] Add time spent 
1623102590653: [Tag] Update Work End for Tag 
1623102590670: [Persistence] Save to DB 
1623102590671: [Persistence] Save to DB 
1623102593715: [Task] Add time spent 
1623102593717: [Tag] Update Work End for Tag 
1623102593726: [Persistence] Save to DB 
1623102593726: [Persistence] Save to DB
@johannesjo
Copy link
Owner

Thanks for opening this up. Looks like a duplicate to me: #816

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants