Closed kw2019ltd closed 3 years ago
@kw2019ltd Can you share the full app that you are using ?
yes easy i take you example folder and replace main.dart with below main and run it you will face this issue main.zip
once you take it just press the Button "open Qiblah" , Qiblah page will load , press back to go to main screen you will see below in consol
I/_qiblah_exampl(27331): Waiting for a blocking GC ProfileSaver
I/_qiblah_exampl(27331): WaitForGcToComplete blocked ProfileSaver on ProfileSaver for 14.214ms
W/IInputConnectionWrapper(27331): getExtractedText on inactive InputConnection
W/IInputConnectionWrapper(27331): getTextBeforeCursor on inactive InputConnection
D/DecorView(27331): onWindowFocusChangedFromViewRoot hasFocus: true, DecorView@288388a[]
E/flutter (27331): [ERROR:flutter/lib/ui/ui_dart_state.cc(157)] Unhandled Exception: Bad state: You cannot close the subject while items are being added from addStream
E/flutter (27331): #0 Subject.close (package:rxdart/src/subjects/subject.dart:152:7)
E/flutter (27331): #1 FlutterCompass.dispose (package:flutter_compass/flutter_compass.dart:35:21)
E/flutter (27331): #2 FlutterQiblah.dispose (package:flutter_qiblah/flutter_qiblah.dart:87:22)
E/flutter (27331): #3 _QiblahCompassState.dispose (package:flutter_qiblah_example/qiblah_compass.dart:86:21)
E/flutter (27331): #4 StatefulElement.unmount (package:flutter/src/widgets/framework.dart:4729:12)
E/flutter (27331): #5 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1922:13)
E/flutter (27331): #6 _InactiveElements._unmount.
salam, did you tried it?
Yes. It's caused by the flutter_compass dispose method, it never happened to me before. Will try to test it more in the next couple of days, in the meantime you can wrap it in a try catch block .
By the way, I already have an app in the play store and it uses the plugin and it has no errors
i can't wrap it with try catch as its failing in the plugin code not in my code , its not carshe causing.
better to fix it maybe it can cause memory leaks
I am currently busy, but will try to have a deep look into the problem this weekend.
Thanks by the way what is your app name in Google play store?
On Wed, Jun 10, 2020, 22:49 medyas notifications@github.com wrote:
I am currently busy, but will try to have a deep look into the problem this weekend.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/medyas/flutter_qiblah/issues/4#issuecomment-642221046, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALJEI6TSM23AA66XTQYIOPLRV7PUNANCNFSM4NZULCPA .
Thanks by the way what is your app name in Google play store? … On Wed, Jun 10, 2020, 22:49 medyas @.***> wrote: I am currently busy, but will try to have a deep look into the problem this weekend. — You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub <#4 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALJEI6TSM23AA66XTQYIOPLRV7PUNANCNFSM4NZULCPA .
Here is the play store link.
Hi did you had a chance to check the issue
On Wed, Jun 10, 2020, 23:15 medyas notifications@github.com wrote:
Thanks by the way what is your app name in Google play store? … <#m3628161360176631821> On Wed, Jun 10, 2020, 22:49 medyas @.***> wrote: I am currently busy, but will try to have a deep look into the problem this weekend. — You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub <#4 (comment) https://github.com/medyas/flutter_qiblah/issues/4#issuecomment-642221046>, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALJEI6TSM23AA66XTQYIOPLRV7PUNANCNFSM4NZULCPA .
Here is the play store link https://play.google.com/store/apps/details?id=de.nbsev.darassalam.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/medyas/flutter_qiblah/issues/4#issuecomment-642233794, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALJEI6T5L2VF5XRZFOJT6U3RV7SXVANCNFSM4NZULCPA .
@kw2019ltd unfortunately i didn't. I currently have a lot of work but will try to take a look at this in next couple of days and inform you of any updates.
@kw2019ltd Hi, So i have tested this issue and turns out it's the flutter_compass
package bug, as when trying to call it's dispose method the crash happens. I have filled an issue in the github repo and hopefully will get some feedback soon.
Thnx
hi i copied the example you provided , i am getting below error in logs while trying to press back button.
see below