RMScannerView icon indicating copy to clipboard operation
RMScannerView copied to clipboard

Terminating app due to uncaught exception .

Open Omarj opened this issue 10 years ago • 3 comments

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 avatar Mar 15 '15 11:03 Omarj

@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 ?

Omarj avatar Mar 23 '15 10:03 Omarj

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.

mune83 avatar May 09 '15 01:05 mune83

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

anitalanet avatar Nov 09 '15 03:11 anitalanet