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

Terminating app due to uncaught exception . #12

Open
Omarj opened this issue Mar 15, 2015 · 3 comments
Open

Terminating app due to uncaught exception . #12

Omarj opened this issue Mar 15, 2015 · 3 comments
Labels

Comments

@Omarj
Copy link

Omarj commented Mar 15, 2015

Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** Multiple audio/video AVCaptureInputs are not currently supported.'

this happened when I called [scannerView startCaptureSession]; again after stop the session and the capture ?

self RMScannerView * domain: nil - code: 0 0x15549d30 ???

@Omarj
Copy link
Author

Omarj commented Mar 23, 2015

@Sam-Spencer Any update ?

what i did is stop and startScanSession , without touch "Capture" .
but in this case the Camara will keep alive not frozen on the qr the user read it.

any way when u push view controller and back from it the redLine animation not work ?

@mune83
Copy link

mune83 commented May 9, 2015

Hi @Omarj,
I resolved adding this code at the end of stopCaptureSession (RMScannerView.m):

[self.captureSession removeInput:videoInput];

So, you have to call [self.scannerView stopCaptureSession]; before a new [self.scannerView startCaptureSession]; call.

@anitalanet
Copy link

You can solved this by
[scannerView setVerboseLogging:YES];
if ([scannerView isScanSessionInProgress]) {
[scannerView stopScanSession];
self.sessionToggleButton.title = @"Start";
} else {
[scannerView startScanSession];
self.sessionToggleButton.title = @"Stop";
}

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

No branches or pull requests

4 participants