mateuszmigas / painting-droid

AI-powered cross-platform painting app inspired by the legendary MS Paint.
https://www.paintingdroid.com
GNU General Public License v3.0
95 stars 2 forks source link

Preserving app state sometimes loses images #1

Closed mateuszmigas closed 4 weeks ago

mateuszmigas commented 3 months ago

Describe the bug When switching tabs it's possible to loose produced images (Blobs).

To Reproduce Steps to reproduce the behavior:

  1. Open app in two Safari tabs
  2. Generate/draw some images in both
  3. Keep switching tabs
  4. Sometimes images get lost

Expected behavior Images should be preserved

Screenshots N/A

Platform (please complete the following information):

Additional context It's most likely an issue with the IndexedDB transaction not being finished. Even though the promise is resolved, the transaction is still pending in the browser and might fail when switching tabs.

mateuszmigas commented 4 weeks ago

This issue should be resolved now. Please reopen if it happens again.