Camera crashes after 3 recordAsync in a row

The expo camera component seems to crash after three recordAsync/stopRecording calls in a row. This is only occurring on iPhone (iPhone 7, iOS 11.1, expo client, not Android.

There is a similar post of this issue here: Camera: Unable to take 2nd picture. Fail to connect to camera service error

But unlike that thread, this occurs even without react navigation.

See the snack here:

Try pushing the “start” and “stop” buttons three times in sequence, and then try to “go to screen two”. Screen two is simply a state, and all it does is hide the camera component, which is enough to crash the app.

Am I doing something wrong here? Thanks.

cc: @aalices any ideas?

Thanks for reporting this, I found the cause and this should be fixed with SDK 23.

1 Like