Occasional crash when starting

Hi,

I get this occasional crash when starting. It seems like a timing thing because it crashes once or twice and then starts.

I see some things in console

error 21:49:04.670027-0500 Fire Enumeration modified during enumeration
error 21:49:04.670053-0500 Fire (
0 CoreFoundation 0x00000001916a81cc exceptionPreprocess + 240
1 libobjc.A.dylib 0x00000001913f97b8 objc_exception_throw + 60
2 CoreFoundation 0x00000001916a8018 +[NSException exceptionWithName:reason:userInfo:] + 0
3 Fire 0x0000000102bda268 RaiseInvalidCastException + 0
4 Fire 0x000000010382ac40 -[Project b] + 1632
5 Fire 0x0000000103857840 Project
<>c__DisplayClass24 b__1$0 + 256
6 libdispatch.dylib 0x000000019139ce60 _dispatch_call_block_and_release + 32
7 libdispatch.dylib 0x000000019139ebac _dispatch_client_callout + 20
8 libdispatch.dylib 0x00000001913a6330 _dispatch_lane_serial_drain + 672
9 libdispatch.dylib 0x00000001913a6ea4 _dispatch_lane_invoke + 392
10 libdispatch.dylib 0x00000001913b1708 _dispatch_workloop_worker_thread + 656
11 libsystem_pthread.dylib 0x0000000191559304 _pthread_wqthread + 288
12 libsystem_pthread.dylib 0x0000000191558018 start_wqthread + 8
)
default 21:49:04.670470-0500 Fire *** Terminating app due to uncaught exception ‘ModifiedDuringEnumeration’, reason: ‘Enumeration modified during enumeration’
*** First throw call stack:
(
0 CoreFoundation 0x00000001916a81cc exceptionPreprocess + 240
1 libobjc.A.dylib 0x00000001913f97b8 objc_exception_throw + 60
2 CoreFoundation 0x00000001916a8018 +[NSException exceptionWithName:reason:userInfo:] + 0
3 Fire 0x0000000102bda268 RaiseInvalidCastException + 0
4 Fire 0x000000010382ac40 -[Project b] + 1632
5 Fire 0x0000000103857840 Project
<>c__DisplayClass24 b__1$0 + 256
6 libdispatch.dylib 0x000000019139ce60 _dispatch_call_block_and_release + 32
7 libdispatch.dylib 0x000000019139ebac _dispatch_client_callout + 20
8 libdispatch.dylib 0x00000001913a6330 _dispatch_lane_serial_drain + 672
9 libdispatc<…>
default 21:49:04.671070-0500 Fire Entering exit handler.
default 21:49:04.671113-0500 Fire Exiting exit handler.

Cheers,
John

Hmm, damn, that’s not much to go on :frowning:

What’s confusing to me is the two different/conflictiung messages, “Enumeration modified during enumeration” vs " RaiseInvalidCastException"…

How often does this happen to you? i.e. if i’d send you a build that does not obfuscate -[Project b] and ** Project <>c**, are the chances high that you’ll see this again soon?

Can you see if this still happens with 20220112-123647-fire-develop, once that’s done? Does the solution you’re opening use Shared projects?

I would say quite high. I currently have 2 solutions open, one with a multi target project, the other with 4 console apps and a shared project.

1 Like

I tried a few times with that build but couldnt reproduce. I then reopened the previous build and it crashed :frowning:

1 Like

I think this is ok now. I tried with 2707 and cant reproduce.

1 Like

Perfect.