mobile_scanner icon indicating copy to clipboard operation
mobile_scanner copied to clipboard

macOS - MobileScannerPlugin.swift:93: Fatal error: Unexpectedly found nil while implicitly unwrapping an Optional value

Open craigbrown-nist opened this issue 3 years ago • 1 comments

What

Every so often I get a fatal crash and:

mobile_scanner/MobileScannerPlugin.swift:93: Fatal error: Unexpectedly found nil while implicitly unwrapping an Optional value
Lost connection to device.

craigbrown-nist avatar Aug 01 '22 21:08 craigbrown-nist

Same issue on iOS, current master branch:

Passing empty image buffer data.
[api] -[CIRenderDestination initWithBitmapData:width:height:bytesPerRow:format:] requires a valid data argument.
[api] -[CIContext(CIRenderDestination) _startTaskToRender:toDestination:forPrepareRender:forClear:error:] The destination is nil.
mobile_scanner/Util.swift:24: Fatal error: Unexpectedly found nil while unwrapping an Optional value
mobile_scanner/Util.swift:24: Fatal error: Unexpectedly found nil while unwrapping an Optional value

iklochko avatar Sep 20 '22 15:09 iklochko

this happens all the time on macos if it doesn't detect a qr code

imtoori avatar Dec 01 '22 12:12 imtoori

Please check the PR for this issue: #429

zhengcan avatar Dec 19 '22 07:12 zhengcan

@zhengcan 's fix in the PR looks good to me but shouldn't it also be applied in the corresponding place in ios/Classes/MobileScanner.swift ? Or is the underlying issue of null texture ids only a MacOS problem?

patniemeyer avatar Feb 01 '23 16:02 patniemeyer

I have released version 3.0.0 which should fix this issue.

juliansteenbakker avatar Feb 09 '23 21:02 juliansteenbakker