[GH-ISSUE #787] PWA on iOS sometimes crashes with an IndexedDB error #562

Open
opened 2026-05-07 00:25:26 +02:00 by BreizhHardware · 1 comment

Originally created by @nimbleghost on GitHub (Jun 28, 2023).
Original GitHub issue: https://github.com/binwiederhier/ntfy/issues/787

🐞 Describe the bug

When resuming the installed PWA from the background, it sometimes crashes with an error from IndexedDB/Dexie:

UnknownError: Attempt to get count from database without an in-progress transaction

💻 Components impacted

Web app, iOS only

💡 Screenshots and/or logs

UnknownError: Attempt to get count from database without an in-progress transaction
 UnknownError: Attempt to get count from database without an in-progress transaction
  at undefined (UnknownError: Attempt to get count from database without an in-progress transaction:undefined:undefined)
  at undefined ( UnknownError: Attempt to get count from database without an in-progress transaction:undefined:undefined)
  at timeout (https://staging.ntfy.sh/static/media/index-06629207.js:62485:222)
  at t (https://staging.ntfy.sh/static/media/index-06629207.js:4036:221)
  at zh ([native code]:undefined:undefined)
  at timeout (https://staging.ntfy.sh/static/media/index-06629207.js:24470:222)
  at t (https://staging.ntfy.sh/static/media/index-06629207.js:5832:221)
 
UnknownError: Attempt to get count from database without an in-progress transaction
 UnknownError: Attempt to get count from database without an in-progress transaction
  at Rq@https://staging.ntfy.sh/static/media/index-06629207.js:336:71367
  at x8@https://staging.ntfy.sh/static/media/index-06629207.js:240:3960
  at O8@https://staging.ntfy.sh/static/media/index-06629207.js:240:6876
  at QH@https://staging.ntfy.sh/static/media/index-06629207.js:317:5812
  at withI18nextTranslation(QH)@https://staging.ntfy.sh/static/media/index-06629207.js:268:3139
  at i$@https://staging.ntfy.sh/static/media/index-06629207.js:61:18625
  at s$@https://staging.ntfy.sh/static/media/index-06629207.js:61:19028
  at Q$@https://staging.ntfy.sh/static/media/index-06629207.js:61:29591
  at A8@https://staging.ntfy.sh/static/media/index-06629207.js:240:6337
  at M8@https://staging.ntfy.sh/static/media/index-06629207.js:249:781
  at Suspense
  at Aq@https://staging.ntfy.sh/static/media/index-06629207.js:336:70571

🔮 Additional context

WebKit Bug: https://bugs.webkit.org/show_bug.cgi?id=197050

Other projects that ran into the same or similar issue

Originally created by @nimbleghost on GitHub (Jun 28, 2023). Original GitHub issue: https://github.com/binwiederhier/ntfy/issues/787 :lady_beetle: **Describe the bug** <!-- A clear and concise description of the problem. --> When resuming the installed PWA from the background, it sometimes crashes with an error from IndexedDB/Dexie: `UnknownError: Attempt to get count from database without an in-progress transaction` :computer: **Components impacted** <!-- ntfy server, Android app, iOS app, web app --> Web app, iOS only :bulb: **Screenshots and/or logs** <!-- If applicable, add screenshots or share logs help explain your problem. To get logs from the ... - ntfy server: Enable "log-level: trace" in your server.yml file - Android app: Go to "Settings" -> "Record logs", then eventually "Copy/upload logs" - web app: Press "F12" and find the "Console" window --> ``` UnknownError: Attempt to get count from database without an in-progress transaction UnknownError: Attempt to get count from database without an in-progress transaction at undefined (UnknownError: Attempt to get count from database without an in-progress transaction:undefined:undefined) at undefined ( UnknownError: Attempt to get count from database without an in-progress transaction:undefined:undefined) at timeout (https://staging.ntfy.sh/static/media/index-06629207.js:62485:222) at t (https://staging.ntfy.sh/static/media/index-06629207.js:4036:221) at zh ([native code]:undefined:undefined) at timeout (https://staging.ntfy.sh/static/media/index-06629207.js:24470:222) at t (https://staging.ntfy.sh/static/media/index-06629207.js:5832:221) UnknownError: Attempt to get count from database without an in-progress transaction UnknownError: Attempt to get count from database without an in-progress transaction at Rq@https://staging.ntfy.sh/static/media/index-06629207.js:336:71367 at x8@https://staging.ntfy.sh/static/media/index-06629207.js:240:3960 at O8@https://staging.ntfy.sh/static/media/index-06629207.js:240:6876 at QH@https://staging.ntfy.sh/static/media/index-06629207.js:317:5812 at withI18nextTranslation(QH)@https://staging.ntfy.sh/static/media/index-06629207.js:268:3139 at i$@https://staging.ntfy.sh/static/media/index-06629207.js:61:18625 at s$@https://staging.ntfy.sh/static/media/index-06629207.js:61:19028 at Q$@https://staging.ntfy.sh/static/media/index-06629207.js:61:29591 at A8@https://staging.ntfy.sh/static/media/index-06629207.js:240:6337 at M8@https://staging.ntfy.sh/static/media/index-06629207.js:249:781 at Suspense at Aq@https://staging.ntfy.sh/static/media/index-06629207.js:336:70571 ``` :crystal_ball: **Additional context** <!-- Add any other context about the problem here. --> WebKit Bug: <https://bugs.webkit.org/show_bug.cgi?id=197050> Other projects that ran into the same or similar issue - <https://github.com/firebase/firebase-js-sdk/issues/2232> - <https://github.com/pouchdb/pouchdb/issues/8329>
Author
Owner

@multicolorist commented on GitHub (Jan 19, 2024):

Yes, this happens almost every day so would be nice for it to be fixed.

<!-- gh-comment-id:1900412596 --> @multicolorist commented on GitHub (Jan 19, 2024): Yes, this happens almost every day so would be nice for it to be fixed.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/ntfy#562
No description provided.