Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exception: Array mutated while being enumerated #182

Open
guthriec opened this issue Jan 20, 2020 · 3 comments
Open

Exception: Array mutated while being enumerated #182

guthriec opened this issue Jan 20, 2020 · 3 comments

Comments

@guthriec
Copy link

guthriec commented Jan 20, 2020

An issue came up in our app's Crashlytics that unfortunately I haven't been able to reproduce. No info on context, other than it's on an iPhone X running iOS 12.4.1.

Screen Shot 2020-01-20 at 9 08 54 AM

Any thoughts would be great.

@yannickl
Copy link
Owner

Very interesting.

The only place where the metadataObjectTypes are mutating is during the initialisation. Maybe a race condition during the init workflow?

Needs more investigation.

@lm2s
Copy link

lm2s commented Jan 23, 2020

I also got this crash reported today (see attachment). I've been trying to reproduce it with no luck.

One thing I noticed on the QRCodeReader init (and raised some suspicion regarding the race condition that you mentioned) is the use of a queue to perform the session configuration asynchronously. Is there a particular reason for dispatching in a queue instead of doing "directly"?

sessionQueue.async {
    self.configureDefaultComponents(withCaptureDevicePosition: captureDevicePosition)
}

Screen Shot 2020-01-23 at 13 57 01

@dvertovsek
Copy link

dvertovsek commented Apr 22, 2020

Getting the same crash on crashlytics in QRCodeReader.init

sessionQueue.async {
    self.configureDefaultComponents(withCaptureDevicePosition: captureDevicePosition)
}

Im unable to reproduce it
@lm2s @yannickl Any news regarding that one ?

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

No branches or pull requests

4 participants