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
iOS - App Crashes When Using RecognisedText #188
Comments
I also get the same error |
@prafull2001 , I did some changes in xcode, |
@prafull2001 , change IDE from studio to Visual Code, everything will be okay then |
@lala-naibova why does that work for you? There should be no difference between IDEs especially if Android Studios is maintained by Google. Is the google_ml_kit plugin even maintained by google officially? It doesn't seem to have any official flutter support. |
Now everything is okay with all IDE for me, after doing some changes in xcode I had to close the project in studio, |
Are you talking about Android Studio? And could you please describe the changes you had to do? |
Open runner in xcode, and add FirebaseApp.configure(); -to the appdelegate , |
Actually I didn't know why this happening, I also got this red lines ( I ll share with u if find some info about that). Anyway just try to build your app in xcode then go to android studio and continue coding , This error doesnt affect to build operation |
For me it does, my app crashes upon startup I'm not sure why, can't find anything relevant on the topic. |
adding FirebaseApp.configure() doesn't work for me, app crash with the error "firebase already configured" at launch. |
sry for it's for another reason #195 |
Hi, I edited the RecognisedText class and is working now.
|
I also faced the same issue. |
Try the latest version. Also note that More details here:
You can find more details on why you those issues here: |
I am trying to run a simple program that takes an image from a user's gallery and converts it into text. 'imageToText()' takes an image as input and is supposed to parse the detected text. As of now the program is able to print "loaded textDetector" but then immediately crashes when trying to set up the recognisedText object as shown below the code.
I have also included the Xcode Output that I get when trying to run the app on a physical device. I am not sure what the error could be at this point as I have followed everything in the official package documentation. Any help would be greatly appreciated since I've been stuck on this for days.
imageToText()
XCode Output
2022-01-13 13:53:48.202214-0500 Runner[21400:1972252] Metal GPU Frame Capture Enabled 2022-01-13 13:53:48.202333-0500 Runner[21400:1972252] Metal API Validation Enabled 2022-01-13 13:53:48.599642-0500 Runner[21400:1972526] flutter: Observatory listening on http://127.0.0.1:56271/miwaCqXFTX8=/ 2022-01-13 13:53:49.561937-0500 Runner[21400:1972513] fopen failed for data file: errno = 2 (No such file or directory) 2022-01-13 13:53:49.561998-0500 Runner[21400:1972513] Errors found! Invalidating cache... 2022-01-13 13:53:49.713065-0500 Runner[21400:1972513] fopen failed for data file: errno = 2 (No such file or directory) 2022-01-13 13:53:49.713167-0500 Runner[21400:1972513] Errors found! Invalidating cache... 2022-01-13 13:53:57.278499-0500 Runner[21400:1972499] [core] "Error returned from daemon: Error Domain=com.apple.accounts Code=7 "(null)"" 2022-01-13 13:53:57.354180-0500 Runner[21400:1972512] flutter: starting 2022-01-13 13:53:57.354418-0500 Runner[21400:1972512] flutter: loaded textDetector 2022-01-13 13:53:57.361475-0500 Runner[21400:1972508] 8.10.0 - [Firebase/Core][I-COR000003] The default Firebase app has not yet been configured. Add `FirebaseApp.configure()` to your application initialization. This can be done in in the App Delegate's application(_:didFinishLaunchingWithOptions:)` (or the `@main` struct's initializer in SwiftUI). Read more: https://goo.gl/ctyzm8. 2022-01-13 13:53:57.365819-0500 Runner[21400:1972252] *** Terminating app due to uncaught exception 'FIRAppNotConfigured', reason: 'The default Firebase app instance must be configured. To configure, call `[FIRApp configure];` (`FirebaseApp.configure()` in Swift) in the App Delegate's `application:didFinishLaunchingWithOptions:` (`application(_:didFinishLaunchingWithOptions:)` in Swift).' *** First throw call stack: (0x19d09adc0 0x1b1bf77a8 0x19cf8fe74 0x101b1efe8 0x101b2085c 0x101b207dc 0x1009d1e8c 0x1009d20dc 0x1009d25fc 0x100b369f4 0x100b35e8c 0x100b360e4 0x100b34548 0x100b343ec 0x102467bcc 0x104954e4c 0x104954cd8 0x104950418 0x107c6594c 0x1077b6120 0x107b32aec 0x107a60204 0x107a63f5c 0x19d0158c0 0x19d0154bc 0x19d01490c 0x19d00e6c0 0x19d00d9f4 0x1b46e3734 0x19fa8c75c 0x19fa91fcc 0x1009d0abc 0x19ccc9cf8) libc++abi: terminating with uncaught exception of type NSException *** Terminating app due to uncaught exception 'FIRAppNotConfigured', reason: 'The default Firebase app instance must be configured. To configure, call `[FIRApp configure];` (`FirebaseApp.configure()` in Swift) in the App Delegate's `application:didFinishLaunchingWithOptions:` (`application(_:didFinishLaunchingWithOptions:)` in Swift).' terminating with uncaught exception of type NSException (lldb) ` 2022-01-13 13:53:48.202214-0500 Runner[21400:1972252] Metal GPU Frame Capture Enabled 2022-01-13 13:53:48.202333-0500 Runner[21400:1972252] Metal API Validation Enabled 2022-01-13 13:53:48.599642-0500 Runner[21400:1972526] flutter: Observatory listening on http://127.0.0.1:56271/miwaCqXFTX8=/ 2022-01-13 13:53:49.561937-0500 Runner[21400:1972513] fopen failed for data file: errno = 2 (No such file or directory) 2022-01-13 13:53:49.561998-0500 Runner[21400:1972513] Errors found! Invalidating cache... 2022-01-13 13:53:49.713065-0500 Runner[21400:1972513] fopen failed for data file: errno = 2 (No such file or directory) 2022-01-13 13:53:49.713167-0500 Runner[21400:1972513] Errors found! Invalidating cache... 2022-01-13 13:53:57.278499-0500 Runner[21400:1972499] [core] "Error returned from daemon: Error Domain=com.apple.accounts Code=7 "(null)"" 2022-01-13 13:53:57.354180-0500 Runner[21400:1972512] flutter: starting 2022-01-13 13:53:57.354418-0500 Runner[21400:1972512] flutter: loaded textDetector 2022-01-13 13:53:57.361475-0500 Runner[21400:1972508] 8.10.0 - [Firebase/Core][I-COR000003] The default Firebase app has not yet been configured. Add `FirebaseApp.configure()` to your application initialization. This can be done in in the App Delegate's application(_:didFinishLaunchingWithOptions:)` (or the `@main` struct's initializer in SwiftUI). Read more: https://goo.gl/ctyzm8. 2022-01-13 13:53:57.365819-0500 Runner[21400:1972252] *** Terminating app due to uncaught exception 'FIRAppNotConfigured', reason: 'The default Firebase app instance must be configured. To configure, call `[FIRApp configure];` (`FirebaseApp.configure()` in Swift) in the App Delegate's `application:didFinishLaunchingWithOptions:` (`application(_:didFinishLaunchingWithOptions:)` in Swift).' *** First throw call stack: (0x19d09adc0 0x1b1bf77a8 0x19cf8fe74 0x101b1efe8 0x101b2085c 0x101b207dc 0x1009d1e8c 0x1009d20dc 0x1009d25fc 0x100b369f4 0x100b35e8c 0x100b360e4 0x100b34548 0x100b343ec 0x102467bcc 0x104954e4c 0x104954cd8 0x104950418 0x107c6594c 0x1077b6120 0x107b32aec 0x107a60204 0x107a63f5c 0x19d0158c0 0x19d0154bc 0x19d01490c 0x19d00e6c0 0x19d00d9f4 0x1b46e3734 0x19fa8c75c 0x19fa91fcc 0x1009d0abc 0x19ccc9cf8) libc++abi: terminating with uncaught exception of type NSException *** Terminating app due to uncaught exception 'FIRAppNotConfigured', reason: 'The default Firebase app instance must be configured. To configure, call `[FIRApp configure];` (`FirebaseApp.configure()` in Swift) in the App Delegate's `application:didFinishLaunchingWithOptions:` (`application(_:didFinishLaunchingWithOptions:)` in Swift).' terminating with uncaught exception of type NSException (lldb)Podfile
The text was updated successfully, but these errors were encountered: