ruuvi / com.ruuvi.station.ios

iOS Ruuvi Station
BSD 3-Clause "New" or "Revised" License
34 stars 21 forks source link

Crash within charts library #1998

Closed priyonto closed 7 months ago

priyonto commented 7 months ago

Stack trace:

# Crashlytics - Stack trace
# Version: 2.7.0 (2403012040)
# Issue: 1cc2d6efa458d44ee3632d1f5640032b
# Session: f07d81d472d74f1d8d6c0d649bb5822e_DNE_0_v2
# Date: Sat Mar 16 2024 12:22:31 GMT+0100 (Central European Standard Time)

Crashed: com.apple.main-thread
0  station                        0x2ea26c YAxisRenderer.drawYLabels(context:fixedPosition:positions:offset:textAlign:) + 4303069804 (<compiler-generated>:4303069804)
1  station                        0x2e99f0 YAxisRenderer.renderAxisLabels(context:) + 76 (YAxisRenderer.swift:76)
2  station                        0x250a2c BarLineChartViewBase.draw(_:) + 274 (BarLineChartViewBase.swift:274)
3  station                        0x250c08 @objc BarLineChartViewBase.draw(_:) + 4302441480 (<compiler-generated>:4302441480)
4  UIKitCore                      0x15a8f0 -[UIView(CALayerDelegate) drawLayer:inContext:] + 508
5  QuartzCore                     0x683fc CABackingStoreUpdate_ + 252
6  QuartzCore                     0x682f4 invocation function for block in CA::Layer::display_() + 64
7  QuartzCore                     0x677ac -[CALayer _display] + 1636
8  QuartzCore                     0x66ac0 CA::Layer::layout_and_display_if_needed(CA::Transaction*) + 416
9  QuartzCore                     0x6cbb4 CA::Context::commit_transaction(CA::Transaction*, double, double*) + 464
10 QuartzCore                     0x661bc CA::Transaction::commit() + 648
11 QuartzCore                     0x65e64 CA::Transaction::flush_as_runloop_observer(bool) + 88
12 UIKitCore                      0xab260 _UIApplicationFlushCATransaction + 52
13 UIKitCore                      0xaad78 _UIUpdateSequenceRun + 84
14 UIKitCore                      0xaa468 schedulerStepScheduledMainSection + 144
15 UIKitCore                      0xaa524 runloopSourceCallback + 92
16 CoreFoundation                 0x3762c __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 28
17 CoreFoundation                 0x368a8 __CFRunLoopDoSource0 + 176
18 CoreFoundation                 0x35058 __CFRunLoopDoSources0 + 244
19 CoreFoundation                 0x33d88 __CFRunLoopRun + 828
20 CoreFoundation                 0x33968 CFRunLoopRunSpecific + 608
21 GraphicsServices               0x34e0 GSEventRunModal + 164
22 UIKitCore                      0x22aedc -[UIApplication _run] + 888
23 UIKitCore                      0x22a518 UIApplicationMain + 340
24 UIKitCore                      0x463734 __swift_destroy_boxed_opaque_existential_1Tm + 12004
25 station                        0x16948 main + 4300106056 (AppDelegate.swift:4300106056)
26 ???                            0x1b746ed84 (Missing)

com.apple.uikit.eventfetch-thread
0  libsystem_kernel.dylib         0x1af8 mach_msg2_trap + 8
1  libsystem_kernel.dylib         0x1890 mach_msg2_internal + 80
2  libsystem_kernel.dylib         0x17a8 mach_msg_overwrite + 436
3  libsystem_kernel.dylib         0x15e8 mach_msg + 24
4  CoreFoundation                 0x3601c __CFRunLoopServiceMachPort + 160
5  CoreFoundation                 0x33f04 __CFRunLoopRun + 1208
6  CoreFoundation                 0x33968 CFRunLoopRunSpecific + 608
7  Foundation                     0x2b4a8 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 212
8  Foundation                     0x554e8 -[NSRunLoop(NSRunLoop) runUntilDate:] + 64
9  UIKitCore                      0x18dac8 -[UIEventFetcher threadMain] + 420
10 Foundation                     0x9ca9c __NSThread__start__ + 732
11 libsystem_pthread.dylib        0x2a90 _pthread_start + 136
12 libsystem_pthread.dylib        0x1fcc thread_start + 8

com.google.firebase.crashlytics.MachExceptionServer
0  station                        0x3cfa24 FIRCLSProcessRecordAllThreads + 393 (FIRCLSProcess.c:393)
1  station                        0x3cfe04 FIRCLSProcessRecordAllThreads + 424 (FIRCLSProcess.c:424)
2  station                        0x3dd858 FIRCLSHandler + 34 (FIRCLSHandler.m:34)
3  station                        0x3de05c FIRCLSMachExceptionServer + 521 (FIRCLSMachException.c:521)
4  libsystem_pthread.dylib        0x2a90 _pthread_start + 136
5  libsystem_pthread.dylib        0x1fcc thread_start + 8

Thread
0  libsystem_kernel.dylib         0x1af8 mach_msg2_trap + 8
1  libsystem_kernel.dylib         0x1890 mach_msg2_internal + 80
2  libsystem_kernel.dylib         0x17a8 mach_msg_overwrite + 436
3  libsystem_kernel.dylib         0x15e8 mach_msg + 24
4  CoreFoundation                 0x3601c __CFRunLoopServiceMachPort + 160
5  CoreFoundation                 0x33f04 __CFRunLoopRun + 1208
6  CoreFoundation                 0x33968 CFRunLoopRunSpecific + 608
7  Foundation                     0x2b4a8 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 212
8  RuuviDaemon                    0x7978 __swift_memcpy9_8 + 2896
9  RuuviDaemon                    0x70dc __swift_memcpy9_8 + 692
10 Foundation                     0x9ca9c __NSThread__start__ + 732
11 libsystem_pthread.dylib        0x2a90 _pthread_start + 136
12 libsystem_pthread.dylib        0x1fcc thread_start + 8

com.apple.NSURLConnectionLoader
0  libsystem_kernel.dylib         0x1af8 mach_msg2_trap + 8
1  libsystem_kernel.dylib         0x1890 mach_msg2_internal + 80
2  libsystem_kernel.dylib         0x17a8 mach_msg_overwrite + 436
3  libsystem_kernel.dylib         0x15e8 mach_msg + 24
4  CoreFoundation                 0x3601c __CFRunLoopServiceMachPort + 160
5  CoreFoundation                 0x33f04 __CFRunLoopRun + 1208
6  CoreFoundation                 0x33968 CFRunLoopRunSpecific + 608
7  CFNetwork                      0x25ac48 estimatedPropertyListSize + 38228
8  Foundation                     0x9ca9c __NSThread__start__ + 732
9  libsystem_pthread.dylib        0x2a90 _pthread_start + 136
10 libsystem_pthread.dylib        0x1fcc thread_start + 8

GRDB.DatabasePool.reader.7
0  libsystem_kernel.dylib           0x2654 pread + 8
1  libsqlite3.dylib                 0x92e70 sqlite3_sourceid + 7600
2  libsqlite3.dylib                 0x7508 sqlite3_snprintf + 7840
3  libsqlite3.dylib                 0x1a918 sqlite3_log + 3472
4  libsqlite3.dylib                 0x9cee0 sqlite3_sourceid + 48672
5  libsqlite3.dylib                 0xa97dc sqlite3_sourceid + 100124
6  libsqlite3.dylib                 0x37a44 sqlite3_step + 49544
7  libsqlite3.dylib                 0x38fd0 sqlite3_value_text + 4060
8  libsqlite3.dylib                 0x2d9cc sqlite3_step + 8464
9  libsqlite3.dylib                 0x2bc80 sqlite3_step + 964
10 GRDB_5DC4DB053_PackageProduct    0xb4748 block_destroy_helper + 19560
11 GRDB_5DC4DB053_PackageProduct    0xb1c3c block_destroy_helper + 8540
12 GRDB_5DC4DB053_PackageProduct    0xb7738 block_destroy_helper + 31832
13 GRDB_5DC4DB053_PackageProduct    0x9f14 __swift_memcpy1_1 + 9908
14 GRDB_5DC4DB053_PackageProduct    0x1eda54 objectdestroyTm + 12064
15 GRDB_5DC4DB053_PackageProduct    0x1edde8 objectdestroyTm + 12980
16 GRDB_5DC4DB053_PackageProduct    0x1ed240 objectdestroyTm + 9996
17 RuuviPersistence                 0x85c0 objectdestroy.9Tm + 6020
18 RuuviPersistence                 0x15b90 __swift_allocate_boxed_opaque_existential_1 + 3172
19 RuuviPersistence                 0x15570 __swift_allocate_boxed_opaque_existential_1 + 1604
20 RuuviPersistence                 0x16064 block_destroy_helper.93 + 116
21 RuuviPersistence                 0x15e9c __swift_allocate_boxed_opaque_existential_1 + 3952
22 RuuviPersistence                 0x15ba4 __swift_allocate_boxed_opaque_existential_1 + 3192
23 GRDB_5DC4DB053_PackageProduct    0x51298 __swift_mutable_project_boxed_opaque_existential_1 + 12848
24 GRDB_5DC4DB053_PackageProduct    0x5628c objectdestroy.62Tm + 168
25 GRDB_5DC4DB053_PackageProduct    0x357f8 __swift_memcpy64_8 + 46656
26 GRDB_5DC4DB053_PackageProduct    0x442e8 __swift_memcpy25_8 + 1192
27 GRDB_5DC4DB053_PackageProduct    0x442b8 __swift_memcpy25_8 + 1144
28 GRDB_5DC4DB053_PackageProduct    0x333e0 __swift_memcpy64_8 + 37416
29 GRDB_5DC4DB053_PackageProduct    0x2fe64 __swift_memcpy64_8 + 23724
30 GRDB_5DC4DB053_PackageProduct    0x35698 __swift_memcpy64_8 + 46304
31 GRDB_5DC4DB053_PackageProduct    0x56268 objectdestroy.62Tm + 132
32 GRDB_5DC4DB053_PackageProduct    0xaddfc __swift_memcpy49_8 + 19204
33 GRDB_5DC4DB053_PackageProduct    0xafa90 __swift_memcpy49_8 + 26520
34 GRDB_5DC4DB053_PackageProduct    0xafbac block_destroy_helper + 204
35 libswiftDispatch.dylib           0x1d4c partial apply for thunk for @callee_guaranteed () -> (@out A, @error @owned Error) + 28
36 libswiftDispatch.dylib           0x9ea0 thunk for @callee_guaranteed () -> (@out A, @error @owned Error)partial apply + 16
37 libswiftDispatch.dylib           0x1c80 closure #1 in closure #1 in OS_dispatch_queue._syncHelper<A>(fn:execute:rescue:) + 192
38 libswiftDispatch.dylib           0x1bb4 partial apply for thunk for @callee_guaranteed () -> () + 28
39 libswiftDispatch.dylib           0x1b8c thunk for @escaping @callee_guaranteed () -> () + 28
40 libdispatch.dylib                0x3dd4 _dispatch_client_callout + 20
41 libdispatch.dylib                0x132c4 _dispatch_lane_barrier_sync_invoke_and_complete + 56
42 libswiftDispatch.dylib           0x2788 implicit closure #2 in implicit closure #1 in OS_dispatch_queue.asyncAndWait<A>(execute:) + 192
43 libswiftDispatch.dylib           0x26c0 partial apply for implicit closure #2 in implicit closure #1 in OS_dispatch_queue.sync<A>(execute:) + 76
44 libswiftDispatch.dylib           0x2540 OS_dispatch_queue._syncHelper<A>(fn:execute:rescue:) + 404
45 libswiftDispatch.dylib           0x237c OS_dispatch_queue.asyncAndWait<A>(execute:) + 140
46 libswiftDispatch.dylib           0x22e8 OS_dispatch_queue.sync<A>(execute:) + 64
47 GRDB_5DC4DB053_PackageProduct    0xaba58 __swift_memcpy49_8 + 10080
48 GRDB_5DC4DB053_PackageProduct    0x55758 __swift_mutable_project_boxed_opaque_existential_1 + 30448
49 GRDB_5DC4DB053_PackageProduct    0x55650 __swift_mutable_project_boxed_opaque_existential_1 + 30184
50 GRDB_5DC4DB053_PackageProduct    0x2150ec objectdestroyTm + 53808
51 GRDB_5DC4DB053_PackageProduct    0x5094c __swift_mutable_project_boxed_opaque_existential_1 + 10468
52 GRDB_5DC4DB053_PackageProduct    0x501c4 __swift_mutable_project_boxed_opaque_existential_1 + 8540
53 RuuviPersistence                 0x81b4 objectdestroy.9Tm + 4984
54 RuuviPersistence                 0x5f38 __swift_destroy_boxed_opaque_existential_1 + 5928
55 libdispatch.dylib                0x213c _dispatch_call_block_and_release + 32
56 libdispatch.dylib                0x3dd4 _dispatch_client_callout + 20
57 libdispatch.dylib                0xb400 _dispatch_lane_serial_drain + 748
58 libdispatch.dylib                0xbf30 _dispatch_lane_invoke + 380
59 libdispatch.dylib                0x16cb4 _dispatch_root_queue_drain_deferred_wlh + 288
60 libdispatch.dylib                0x16528 _dispatch_workloop_worker_thread + 404
61 libsystem_pthread.dylib          0x1f20 _pthread_wqthread + 288
62 libsystem_pthread.dylib          0x1fc0 start_wqthread + 8

Thread
0  libsystem_kernel.dylib         0x1af8 mach_msg2_trap + 8
1  libsystem_kernel.dylib         0x1890 mach_msg2_internal + 80
2  libsystem_kernel.dylib         0x17a8 mach_msg_overwrite + 436
3  libsystem_kernel.dylib         0x15e8 mach_msg + 24
4  CoreFoundation                 0x3601c __CFRunLoopServiceMachPort + 160
5  CoreFoundation                 0x33f04 __CFRunLoopRun + 1208
6  CoreFoundation                 0x33968 CFRunLoopRunSpecific + 608
7  Foundation                     0x2b4a8 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 212
8  RuuviDaemon                    0x7978 __swift_memcpy9_8 + 2896
9  RuuviDaemon                    0x70dc __swift_memcpy9_8 + 692
10 Foundation                     0x9ca9c __NSThread__start__ + 732
11 libsystem_pthread.dylib        0x2a90 _pthread_start + 136
12 libsystem_pthread.dylib        0x1fcc thread_start + 8

Thread
0  libsystem_kernel.dylib         0x1af8 mach_msg2_trap + 8
1  libsystem_kernel.dylib         0x1890 mach_msg2_internal + 80
2  libsystem_kernel.dylib         0x17a8 mach_msg_overwrite + 436
3  libsystem_kernel.dylib         0x15e8 mach_msg + 24
4  CoreFoundation                 0x3601c __CFRunLoopServiceMachPort + 160
5  CoreFoundation                 0x33f04 __CFRunLoopRun + 1208
6  CoreFoundation                 0x33968 CFRunLoopRunSpecific + 608
7  Foundation                     0x2b4a8 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 212
8  RuuviDaemon                    0x7978 __swift_memcpy9_8 + 2896
9  RuuviDaemon                    0x70dc __swift_memcpy9_8 + 692
10 Foundation                     0x9ca9c __NSThread__start__ + 732
11 libsystem_pthread.dylib        0x2a90 _pthread_start + 136
12 libsystem_pthread.dylib        0x1fcc thread_start + 8

Thread
0  libsystem_pthread.dylib        0x1fb8 start_wqthread + 438

Thread
0  libsystem_kernel.dylib         0xa084 __workq_kernreturn + 8
1  libsystem_pthread.dylib        0x1f6c _pthread_wqthread + 364
2  libsystem_pthread.dylib        0x1fc0 start_wqthread + 8

Thread
0  libsystem_pthread.dylib        0x1fb8 start_wqthread + 438

Thread
0  libsystem_kernel.dylib         0xa084 __workq_kernreturn + 8
1  libsystem_pthread.dylib        0x1f6c _pthread_wqthread + 364
2  libsystem_pthread.dylib        0x1fc0 start_wqthread + 8

Thread
0  libsystem_pthread.dylib        0x1fb8 start_wqthread + 438
priyonto commented 7 months ago

This crash is not reproducible on my end. However, the commit should fix the issue although its purely based on investigating the stack trace. So, we might actually have to wait until we push this into a public beta and observe crash logs.

markoaamunkajo commented 7 months ago

QA passed, not reproduced