hape42 / dailygammon

DailyGammon-app is free and ad-free client for the long-running DailyGammon web-based application.
https://hape42.de/RoadMap
16 stars 6 forks source link

Strange crash when (re)opening app #65

Closed kagsteiner closed 1 year ago

kagsteiner commented 1 year ago

Steps I did, all in simulator for iPad Pro, connected to xcode

  1. log out test user, logged in as darkhelmet
  2. hit refresh, no new games.
  3. Put mac to sleep, waited an hour or so
  4. woke up mac from sleep, opened simulator window
  5. (maybe hit refresh?)

xcode stopped in exception breakpoint, trying to read count from Rating in sqlite3 db. See screenshot.

Bildschirm­foto 2023-01-02 um 13 08 37
kagsteiner commented 1 year ago

Thread 1#0 0x000000018274231c in sqlite3MutexMisuseAssert ()

1 0x0000000182742178 in checkMutexEnter ()

2 0x0000000182726ff0 in sqlite3LockAndPrepare ()

3 0x0000000102c17030 in -[DbConnect countRating] at /Users/D029598/Documents/iosdev/DailyGammon/dailygammon/DailyGammon/Tools/DB/DbConnect.m:138

4 0x0000000102c05e08 in -[TopPageVC makeHeader] at /Users/D029598/Documents/iosdev/DailyGammon/dailygammon/DailyGammon/iPad/HeaderInclude.h:28

5 0x0000000102bfd118 in -[TopPageVC reDrawHeader] at /Users/D029598/Documents/iosdev/DailyGammon/dailygammon/DailyGammon/TopPage/TopPageVC.m:138

6 0x0000000102c05c48 in -[TopPageVC refreshAction:] at /Users/D029598/Documents/iosdev/DailyGammon/dailygammon/DailyGammon/TopPage/TopPageVC.m:1143

7 0x000000010b3736c8 in -[UIApplication sendAction:to:from:forEvent:] ()