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

Example App is broken #5

Open
sarbagyastha opened this issue May 21, 2021 · 7 comments
Open

Example App is broken #5

sarbagyastha opened this issue May 21, 2021 · 7 comments

Comments

@sarbagyastha
Copy link

The current example app seems not to be working.

@jtmcdole
Copy link

I believe you have to call "initialize()" before getting the image stream.

@RafaelBarbosatec
Copy link

Keep broken for me

E/flutter ( 6392): [ERROR:flutter/lib/ui/ui_dart_state.cc(199)] Unhandled Exception: RangeError (index): Index out of range: index should be less than 460852: 460852
E/flutter ( 6392): #0      _Int32ArrayView.[] (dart:typed_data-patch/typed_data_patch.dart:4260:7)
E/flutter ( 6392): #1      new RGBLuminanceSource (package:zxing2/src/rgb_luminance_source.dart:28:25)
E/flutter ( 6392): #2      decode (package:zxing2_example/decode.dart:7:28)
E/flutter ( 6392): #3      _CameraAppState.initState.<anonymous closure>.<anonymous closure> (package:zxing2_example/main.dart:37:23)
E/flutter ( 6392): #4      CameraController.startImageStream.<anonymous closure> (package:camera/src/camera_controller.dart:395:20)
E/flutter ( 6392): #5      _rootRunUnary (dart:async/zone.dart:1362:47)
E/flutter ( 6392): #6      _CustomZone.runUnary (dart:async/zone.dart:1265:19)
E/flutter ( 6392): #7      _CustomZone.runUnaryGuarded (dart:async/zone.dart:1170:7)
E/flutter ( 6392): #8      _BufferingStreamSubscription._sendData (dart:async/stream_impl.dart:341:11)
E/flutter ( 6392): #9      _DelayedData.perform (dart:async/stream_impl.dart:591:14)
E/flutter ( 6392): #10     _StreamImplEvents.handleNext (dart:async/stream_impl.dart:706:11)
E/flutter ( 6392): #11     _PendingEvents.schedule.<anonymous closure> (dart:async/stream_impl.dart:663:7)
E/flutter ( 6392): #12     _rootRun (dart:async/zone.dart:1346:47)
E/flutter ( 6392): #13     _CustomZone.run (dart:async/zone.dart:1258:19)
E/flutter ( 6392): #14     _CustomZone.runGuarded (dart:async/zone.dart:1162:7)
E/flutter ( 6392): #15     _CustomZone.bindCallbackGuarded.<anonymous closure> (dart:async/zone.dart:1202:23)
E/flutter ( 6392): #16     _rootRun (dart:async/zone.dart:1354:13)
E/flutter ( 6392): #17     _CustomZone.run (dart:async/zone.dart:1258:19)
E/flutter ( 6392): #18     _CustomZone.runGuarded (dart:async/zone.dart:1162:7)
E/flutter ( 6392): #19     _CustomZone.bindCallbackGuarded.<anonymous closure> (dart:async/zone.dart:1202:23)
E/flutter ( 6392): #20     _microtaskLoop (dart:async/schedule_microtask.dart:40:21)
E/flutter ( 6392): #21     _startMicrotaskLoop (dart:async/schedule_microtask.dart:49:5)

@jtmcdole
Copy link

I'm using the dart image package to get my luminance and I've had it work great.

@RafaelBarbosatec
Copy link

RafaelBarbosatec commented Aug 12, 2021

in brach xha/fix_example only remove this comments:
image

I'm trying use this package with the camera.

@RafaelBarbosatec
Copy link

RafaelBarbosatec commented Aug 12, 2021

Converted fromCameraImage to Image and it worked. But its only work with ResolutionPreset.high.

In this way, there is a lot of lag on the phone. This decode is probably too expensive. Is there any way I can do this process using isolate or something?
Do you have any recommendations?

@RafaelBarbosatec
Copy link

I got it. serialized ImageCamera to work with isolate. and it was beautiful!

@Nashev
Copy link

Nashev commented Oct 4, 2021

https://pub.dev/packages/zxing2/example do not using ZXing at all!! Nice to look it as an example ))

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

4 participants