stats: Regularly closes/crashes

For a few days now I noticed that the app regularly quit itself without any crash notification.

After some investigation I found crash reports in Console.app:

Screenshot 2024-02-19 at 14 35 24

I attached the latest report here:

Stats-Crash-Report.txt

Crashed Thread Stack:

Thread 11 Crashed::  Dispatch queue: eu.exelban.Stats.Repeater
0   libswiftCore.dylib            	       0x191979da4 closure #1 in closure #1 in closure #1 in _assertionFailure(_:_:file:line:flags:) + 240
1   libswiftCore.dylib            	       0x191979c6c closure #1 in closure #1 in _assertionFailure(_:_:file:line:flags:) + 344
2   libswiftCore.dylib            	       0x1919795e8 _assertionFailure(_:_:file:line:flags:) + 188
3   libswiftCore.dylib            	       0x19195998c Array._checkSubscript(_:wasNativeTypeChecked:) + 160
4   libswiftCore.dylib            	       0x1919afd54 Array<A>.encode(to:) + 316
5   libswiftCore.dylib            	       0x1919aff44 protocol witness for Encodable.encode(to:) in conformance <A> [A] + 32
6   libswiftCore.dylib            	       0x191c8d428 dispatch thunk of Encodable.encode(to:) + 32
7   Foundation                    	       0x183438828 closure #1 in __JSONEncoder.wrapGeneric<A, B>(_:for:_:) + 148
8   Foundation                    	       0x18343caa8 partial apply for closure #1 in __JSONEncoder.wrapGeneric<A, B>(_:for:_:) + 28
9   Foundation                    	       0x183438cac __JSONEncoder._wrapGeneric<A>(_:for:_:) + 304
10  Foundation                    	       0x18342c430 __JSONEncoder.wrapGeneric<A, B>(_:for:_:) + 2024
11  Foundation                    	       0x183430dbc _JSONKeyedEncodingContainer.encode<A>(_:forKey:) + 336
12  Foundation                    	       0x183432804 protocol witness for KeyedEncodingContainerProtocol.encode<A>(_:forKey:) in conformance _JSONKeyedEncodingContainer<A> + 32
13  libswiftCore.dylib            	       0x19199b2c4 _KeyedEncodingContainerBox.encode<A, B>(_:forKey:) + 352
14  libswiftCore.dylib            	       0x19198f320 KeyedEncodingContainer.encode<A>(_:forKey:) + 68
15  Disk                          	       0x100bc9d20 0x100bc4000 + 23840
16  Disk                          	       0x100bcb768 0x100bc4000 + 30568
17  libswiftCore.dylib            	       0x191c8d428 dispatch thunk of Encodable.encode(to:) + 32
18  Foundation                    	       0x18343876c specialized closure #1 in __JSONEncoder.wrapGeneric<A, B>(_:for:_:) + 148
19  Foundation                    	       0x18343bfa4 partial apply for specialized closure #1 in __JSONEncoder.wrapGeneric<A, B>(_:for:_:) + 24
20  Foundation                    	       0x183438970 specialized __JSONEncoder._wrapGeneric<A>(_:for:_:) + 288
21  Foundation                    	       0x18342bab4 specialized __JSONEncoder.wrapGeneric<A, B>(_:for:_:) + 2044
22  Foundation                    	       0x18342b2ac partial apply for closure #1 in JSONEncoder.encode<A>(_:) + 56
23  Foundation                    	       0x18342c948 JSONEncoder._encode<A>(_:value:) + 424
24  Foundation                    	       0x18342b268 JSONEncoder.encode<A>(_:) + 64
25  Foundation                    	       0x18343a844 dispatch thunk of JSONEncoder.encode<A>(_:) + 56
26  Kit                           	       0x100fff1f4 0x100f70000 + 586228
27  Kit                           	       0x100fe1498 0x100f70000 + 464024
28  Disk                          	       0x100be0378 0x100bc4000 + 115576
29  Kit                           	       0x100fe1dc8 0x100f70000 + 466376
30  Kit                           	       0x100fda1d4 0x100f70000 + 434644
31  Kit                           	       0x100f81d54 0x100f70000 + 73044
32  libdispatch.dylib             	       0x181ec0910 _dispatch_client_callout + 20
33  libdispatch.dylib             	       0x181ec3dc8 _dispatch_continuation_pop + 600
34  libdispatch.dylib             	       0x181ed7be4 _dispatch_source_latch_and_call + 420
35  libdispatch.dylib             	       0x181ed67b4 _dispatch_source_invoke + 832
36  libdispatch.dylib             	       0x181ec7d28 _dispatch_lane_serial_drain + 368
37  libdispatch.dylib             	       0x181ec89d4 _dispatch_lane_invoke + 380
38  libdispatch.dylib             	       0x181ed361c _dispatch_root_queue_drain_deferred_wlh + 288
39  libdispatch.dylib             	       0x181ed2e90 _dispatch_workloop_worker_thread + 404
40  libsystem_pthread.dylib       	       0x18206e114 _pthread_wqthread + 288
41  libsystem_pthread.dylib       	       0x18206ce30 start_wqthread + 8

Details:

  • Device: Mac mini M1 16GB
  • macOS: macOS 14.3.1
  • Application version: 2.10.1

About this issue

  • Original URL
  • State: closed
  • Created 4 months ago
  • Comments: 20 (9 by maintainers)

Commits related to this issue

Most upvoted comments

how many drives do you have?

  • 1 internal SSD (1 Partition) - APFS
  • 1 external HDD (1 Partition) - APFS
  • 1 external SSD (2 Partitions) - APFS
  • Multiple SMB shares

if the app crashes right on start or after some time?

Usually after some time, seemingly at random. When restarting Stats it’ll work for a couple of hours until it closes/crashes again.


However after disabling the Disk module I’m still up and running after almost 2 days now.

Indeed this build has been running smoothly since installation this am.

I normally only have 1 physical drive/ 2 partitions connected via a dock.

Usually crashes when waking up laptop afters its been sleeping overnight.

thx. I will need some help with debug builds to define where is the problem. hope that someone can help with that) I will share the debug build in a few days