Skip to content
This repository was archived by the owner on Jan 19, 2018. It is now read-only.

Crash in the debugger #9

Open
jdrevet opened this issue Jun 8, 2016 · 3 comments
Open

Crash in the debugger #9

jdrevet opened this issue Jun 8, 2016 · 3 comments

Comments

@jdrevet
Copy link

jdrevet commented Jun 8, 2016

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,

@evixar
Copy link

evixar commented Jun 8, 2016

Hi,

We will try to reproduce your problem. We will let you know as soon as we fix the issue.

Regards

@giln
Copy link

giln commented Aug 3, 2016

Hello,

Same issue here.
Debugger is crashing at line 600 in ATDebugger.m

for(ATDebuggerEvent* event in self.receivedEvents) {

@giln
Copy link

giln commented Aug 3, 2016

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.'

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants