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

Crash iOS app when create new controller #740

Closed
definev opened this issue Aug 29, 2023 · 4 comments
Closed

Crash iOS app when create new controller #740

definev opened this issue Aug 29, 2023 · 4 comments

Comments

@definev
Copy link

definev commented Aug 29, 2023

It throwing

* thread #1, queue = 'com.apple.main-thread', stop reason = Swift runtime failure: Unexpectedly found nil while implicitly unwrapping an Optional value
    frame #1: 0x0000000102bb7b04 WinMONEY_DEV`closure #1 in closure #1 in MobileScanner.start(completion=0x0000000102bc4ddc WinMONEY_DEV`partial apply forwarder for closure #2 (mobile_scanner.MobileScanner.MobileScannerStartParameters) -> () in mobile_scanner.SwiftMobileScannerPlugin.start(__C.FlutterMethodCall, (Swift.Optional<Any>) -> ()) -> () at <compiler-generated>, dimensions=CoreMedia.CMVideoDimensions @ 0x000000030665e670, self=0x0000000281a5c820) at MobileScanner.swift:224:40 [opt]
   221 	                    MobileScannerStartParameters(
   222 	                        width: Double(dimensions.height),
   223 	                        height: Double(dimensions.width),
-> 224 	                        hasTorch: self.device.hasTorch,
    	                                       ^
   225 	                        textureId: self.textureId
   226 	                    )
   227 	                )
@llfoo119
Copy link

llfoo119 commented Sep 1, 2023

It's my same case.

@navaronbracke
Copy link
Collaborator

navaronbracke commented Sep 6, 2023

Ths is a duplicate of #720

@definev
Copy link
Author

definev commented Sep 7, 2023

In my case, because of layout phase is so long so it affect the UI thread and the texture id not ready yet. Solved the layout problem and it run ok

@definev definev closed this as completed Sep 7, 2023
@llfoo119
Copy link

llfoo119 commented Sep 7, 2023

I've create the solution that it works fine.

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

No branches or pull requests

3 participants