Crash in the debugger
Opened this issue · 3 comments
Hi,
My app crashes frequently since I use the ATDebugger (SDK 2.2.1).
The crash occurs in ATDebugger::getEventsList: at line 600. I think it is a problem of concurrent access on receivedEvents array because another thread is adding an event (ATDebugger::addEvent:icon: line 184).
Main thread stacktrace:
1 MyApp main + 0,
2 MyApp -[ATDebugger getEventsList:] + 2047,
3 MyApp -[ATDebugger updateEventList] + 100,
4 MyApp -[ATDebugger setViewController:] + 125,
5 MyApp -[ATTracker setDebugger:] + 83,
6 MyApp +[BanqueAccordStats displayDebuggerInViewController:] + 142,
7 MyApp -[GenericViewController viewWillAppear:] + 114,
8 MyApp -[HomeViewController viewWillAppear:] + 69,
Background thread stacktrace:
1 MyApp main + 0,
2 libdispatch.dylib _dispatch_barrier_sync_f_slow + 830,
3 MyApp -[ATDebugger addEvent:icon:] + 269,
4 MyApp -[ATSender sendWithCompletionHandler:]_block_invoke + 1375,
Hi,
We will try to reproduce your problem. We will let you know as soon as we fix the issue.
Regards
Hello,
Same issue here.
Debugger is crashing at line 600 in ATDebugger.m
for(ATDebuggerEvent* event in self.receivedEvents) {
2016-08-03 17:01:51.153 Pum-iOS Int[3810:81320] * Terminating app due to uncaught exception 'NSGenericException', reason: '* Collection <__NSArrayM: 0x7fd2c35dea40> was mutated while being enumerated.'