mobile_scanner
                                
                                 mobile_scanner copied to clipboard
                                
                                    mobile_scanner copied to clipboard
                            
                            
                            
                        macOS - MobileScannerPlugin.swift:93: Fatal error: Unexpectedly found nil while implicitly unwrapping an Optional value
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.
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
this happens all the time on macos if it doesn't detect a qr code
Please check the PR for this issue: #429
@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?
I have released version 3.0.0 which should fix this issue.