Git Product home page Git Product logo

anyline-ocr-flutter-module's People

Contributors

aldrichanyline avatar berndkamplanyline avatar danielalbertini avatar igor-graca avatar michaelkhuber avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar

anyline-ocr-flutter-module's Issues

[iOS] Runtime fatal exception when start scanning -[__NSPlaceholderDictionary initWithObjects:forKeys:count:]: attempt to insert nil object from objects[0]'

Hello,

When performing startScanning the app crashes on iOS. On Android it works fine.

These are the logs:
Launching lib/main.dart on Cosma’s iPhone in debug mode...
Automatically signing iOS for device deployment using specified development team in Xcode project: 6T5FFAQ2H8
Running Xcode build...
Xcode build done. 169.2s
Installing and launching...
(lldb) 2021-11-10 12:11:25.234628+0200 Runner[1777:272860] Errors found! Invalidating cache...
Writing analzed variants.
[VERBOSE-2:FlutterObservatoryPublisher.mm(101)] Failed to register observatory port with mDNS with error -65555.
[VERBOSE-2:FlutterObservatoryPublisher.mm(103)] On iOS 14+, local network broadcast in apps need to be declared in the app's Info.plist. Debug and profile Flutter apps and modules host VM services on the local network to support debugging features such as hot reload and DevTools. To make your Flutter app or module attachable and debuggable, add a '_dartobservatory._tcp' value to the 'NSBonjourServices' key in your Info.plist for the Debug/Profile configurations. For more information, see https://flutter.dev/docs/development/add-to-app/ios/project-setup#local-network-privacy-permissions
[VERBOSE-2:FlutterObservatoryPublisher.mm(101)] Failed to register observatory port with mDNS with error -65555.
[VERBOSE-2:FlutterObservatoryPublisher.mm(103)] On iOS 14+, local network broadcast in apps need to be declared in the app's Info.plist. Debug and profile Flutter apps and modules host VM services on the local network to support debugging features such as hot reload and DevTools. To make your Flutter app or module attachable and debuggable, add a '_dartobservatory._tcp' value to the 'NSBonjourServices' key in your Info.plist for the Debug/Profile configurations. For more information, see https://flutter.dev/docs/development/add-to-app/ios/project-setup#local-network-privacy-permissions
Debug service listening on ws://127.0.0.1:52793/llkbPUM7X94=/ws
Syncing files to device Cosma’s iPhone...
Errors found! Invalidating cache...
[VERBOSE-2:profiler_metrics_ios.mm(203)] Error retrieving thread information: (os/kern) invalid argument
AnylineSDK Version 24.1 (1563)
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[__NSPlaceholderDictionary initWithObjects:forKeys:count:]: attempt to insert nil object from objects[0]'
*** First throw call stack:
(0x182dbc05c 0x19b2d6f54 0x182ec5538 0x182ed0680 0x182d7946c 0x182d97e1c 0x1008e990c 0x1008ce150 0x1008ccc00 0x1008cd0e8 0x10087756c 0x18537ad70 0x18537d824 0x185350438 0x1852256d0 0x18559922c 0x1856a2aa8 0x18548d958 0x185429da0 0x1855a05dc 0x1854b2d84 0x103b00664 0x100870c8c 0x10087be74 0x103fc57f8 0x103b11f00 0x103e1d5f0 0x103dc239c 0x103dc5994 0x182dd1278 0x182d55c50 0x182d5044c 0x182d2ec68 0x182d423c8 0x19e55338c 0x1856e8060 0x185465b8c 0x1002b56a0 0x1017bda24)
libc++abi: terminating with uncaught exception of type NSException

  • thread #1, queue = 'com.apple.main-thread', stop reason = signal SIGABRT
    frame #0: 0x00000001b980d9c4 libsystem_kernel.dylib__pthread_kill + 8 libsystem_kernel.dylib__pthread_kill:
    -> 0x1b980d9c4 <+8>: b.lo 0x1b980d9e4 ; <+40>
    0x1b980d9c8 <+12>: pacibsp
    0x1b980d9cc <+16>: stp x29, x30, [sp, #-0x10]!
    0x1b980d9d0 <+20>: mov x29, sp
    Target 0: (Runner) stopped.
    Lost connection to device.

Thanks,
Andrei

App crashing in release mode as soon as button clicked to open camera

Working fine in debug mode but in release mode when I click to open the camera, it asked for permission, when permission granted in crashes the app and show following error in console.

E/AndroidRuntime(15097): FATAL EXCEPTION: main
E/AndroidRuntime(15097): Process: com.example.mrzapp, PID: 15097
E/AndroidRuntime(15097): java.lang.RuntimeException: Unable to resume activity {com.example.mrzapp/io.anyline.flutter.Anyline4Activity}: java.lang.RuntimeException: Plugin was not initialized
E/AndroidRuntime(15097): at android.app.ActivityThread.performResumeActivity(ActivityThread.java:3919)
E/AndroidRuntime(15097): at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:3951)
E/AndroidRuntime(15097): at android.app.servertransaction.ResumeActivityItem.execute(ResumeActivityItem.java:51)
E/AndroidRuntime(15097): at android.app.servertransaction.TransactionExecutor.executeLifecycleState(TransactionExecutor.java:145)
E/AndroidRuntime(15097): at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:70)
E/AndroidRuntime(15097): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1906)
E/AndroidRuntime(15097): at android.os.Handler.dispatchMessage(Handler.java:106)
E/AndroidRuntime(15097): at android.os.Looper.loop(Looper.java:193)
E/AndroidRuntime(15097): at android.app.ActivityThread.main(ActivityThread.java:6863)
E/AndroidRuntime(15097): at java.lang.reflect.Method.invoke(Native Method)
E/AndroidRuntime(15097): at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:537)
E/AndroidRuntime(15097): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)
E/AndroidRuntime(15097): Caused by: java.lang.RuntimeException: Plugin was not initialized
E/AndroidRuntime(15097): at io.anyline.view.ScanView.k0(Unknown Source:84)
E/AndroidRuntime(15097): at io.anyline.flutter.Anyline4Activity.onResume(Unknown Source:5)
E/AndroidRuntime(15097): at android.app.Instrumentation.callActivityOnResume(Instrumentation.java:1514)
E/AndroidRuntime(15097): at android.app.Activity.performResume(Activity.java:7305)
E/AndroidRuntime(15097): at android.app.ActivityThread.performResumeActivity(ActivityThread.java:3911)
E/AndroidRuntime(15097): ... 11 more

Unhandled Exception

Hi all
I've next issue:

MissingPluginException(No implementation found for method checkPermissionStatus on channel flutter.baseflow.com/permissions/methods)

MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:313:7)
E/flutter (18265):
E/flutter (18265): #1 MethodChannelPermissionHandler.checkPermissionStatus (package:permission_handler_platform_interface/src/method_channel/method_channel_permission_handler.dart:16:20)
E/flutter (18265):
E/flutter (18265): #2 FuturePermissionStatusGetters.isPermanentlyDenied (package:permission_handler_platform_interface/src/permission_status.dart:117:8)
E/flutter (18265):
E/flutter (18265): #3 AnylinePlugin.startScanning (package:anyline_plugin/anyline_plugin.dart:30:9)
E/flutter (18265):
E/flutter (18265): #4 AddBankCardView.scanWithAnyline (package:shymbulak_mobile/src/presentation/pages/general/profile/pages/add_bank_card_view.dart:311:24)
E/flutter (18265):

Document4Activity.java uses or overrides a deprecated API

While compiling, this note gets thrown mentioning that Document4Activity.java is using/overriding a deprecated API.

Note: C:\flutter\.pub-cache\hosted\pub.dartlang.org\anyline_plugin-24.1.0\android\src\main\java\io\anyline\flutter\Document4Activity.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.

Flutter doctor -v:

    • Flutter version 1.22.3 at C:\flutter
    • Framework revision 8874f21e79 (5 weeks ago), 2020-10-29 14:14:35 -0700
    • Engine revision a1440ca392
    • Dart version 2.10.3


[√] Android toolchain - develop for Android devices (Android SDK version 30.0.2)
    • Android SDK at C:\Users\*******\AppData\Local\Android\sdk
    • Platform android-30, build-tools 30.0.2
    • Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)
    • All Android licenses accepted.

[√] Android Studio (version 4.0)
    • Android Studio at C:\Program Files\Android\Android Studio
    • Flutter plugin version 49.0.2
    • Dart plugin version 193.7547
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)

[√] VS Code (version 1.49.0)
    • VS Code at C:\Users\*******\AppData\Local\Programs\Microsoft VS Code
    • Flutter extension version 3.14.1

Update permission handler

Is it possible that you update the permission handler to the newest version. I am not able to use this lib, because an other essential lib uses a higher version of permission_handler.

Thank you very much!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.