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

App freezes after X seconds of usage #6

Closed
Nik99 opened this issue Sep 17, 2018 · 4 comments
Closed

App freezes after X seconds of usage #6

Nik99 opened this issue Sep 17, 2018 · 4 comments

Comments

@Nik99
Copy link

Nik99 commented Sep 17, 2018

I downloaded the example sketch provided by @facundomedica , and i just removed the main async function and putted in a real async function called before all the sketch. The page starts, but after 2-3 seconds, the preview image just freezes, while the animation keeps going.

This is the error:

E/MethodChannel#fast_qr_reader_view(18859): Failed to handle method call
E/MethodChannel#fast_qr_reader_view(18859): java.lang.NullPointerException: Attempt to invoke virtual method 'void android.media.Image.close()' on a null object reference
E/MethodChannel#fast_qr_reader_view(18859): 	at co.apperto.fastqrreaderview.FastQrReaderViewPlugin.startScanning(FastQrReaderViewPlugin.java:315)
E/MethodChannel#fast_qr_reader_view(18859): 	at co.apperto.fastqrreaderview.FastQrReaderViewPlugin.onMethodCall(FastQrReaderViewPlugin.java:220)
E/MethodChannel#fast_qr_reader_view(18859): 	at io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler.onMessage(MethodChannel.java:191)
E/MethodChannel#fast_qr_reader_view(18859): 	at io.flutter.view.FlutterNativeView.handlePlatformMessage(FlutterNativeView.java:163)
E/MethodChannel#fast_qr_reader_view(18859): 	at android.os.MessageQueue.nativePollOnce(Native Method)
E/MethodChannel#fast_qr_reader_view(18859): 	at android.os.MessageQueue.next(MessageQueue.java:379)
E/MethodChannel#fast_qr_reader_view(18859): 	at android.os.Looper.loop(Looper.java:144)
E/MethodChannel#fast_qr_reader_view(18859): 	at android.app.ActivityThread.main(ActivityThread.java:7425)
E/MethodChannel#fast_qr_reader_view(18859): 	at java.lang.reflect.Method.invoke(Native Method)
E/MethodChannel#fast_qr_reader_view(18859): 	at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:245)
E/MethodChannel#fast_qr_reader_view(18859): 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:921)
E/FlutterNativeView(18859): Uncaught exception in binary message listener
E/FlutterNativeView(18859): java.lang.IllegalStateException: Reply already submitted
E/FlutterNativeView(18859): 	at io.flutter.view.FlutterNativeView$1.reply(FlutterNativeView.java:174)
E/FlutterNativeView(18859): 	at io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler.onMessage(MethodChannel.java:209)
E/FlutterNativeView(18859): 	at io.flutter.view.FlutterNativeView.handlePlatformMessage(FlutterNativeView.java:163)
E/FlutterNativeView(18859): 	at android.os.MessageQueue.nativePollOnce(Native Method)
E/FlutterNativeView(18859): 	at android.os.MessageQueue.next(MessageQueue.java:379)
E/FlutterNativeView(18859): 	at android.os.Looper.loop(Looper.java:144)
E/FlutterNativeView(18859): 	at android.app.ActivityThread.main(ActivityThread.java:7425)
E/FlutterNativeView(18859): 	at java.lang.reflect.Method.invoke(Native Method)
E/FlutterNativeView(18859): 	at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:245)
E/FlutterNativeView(18859): 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:921)
W/GrallocMapperPassthrough(18859): buffer descriptor with invalid usage bits 0x2080000
W/GrallocMapperPassthrough(18859): buffer descriptor with invalid usage bits 0x2080000
W/GrallocMapperPassthrough(18859): buffer descriptor with invalid usage bits 0x2080000
W/GrallocMapperPassthrough(18859): buffer descriptor with invalid usage bits 0x2080000
@facundomedica
Copy link
Owner

facundomedica commented Sep 17, 2018

This is caused by an attempt of fixing #3, I'm working to fix it 👍

@facundomedica
Copy link
Owner

I'm closing this, check my last comment on #3!

@Nik99
Copy link
Author

Nik99 commented Sep 18, 2018

So, i've updated the app and it won't start anymore. I've tryed to remove it from pubspec but nothing, the app shows me a white screen and nothing happens.
Do you know how to help me ?

Edit: it gives me this error if i try to hot-reload it Error -32601 received from application: Method not found

@Nik99
Copy link
Author

Nik99 commented Sep 18, 2018

Never mind, there was a problem with the intl package. thanks for the fix! :)

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

2 participants