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

[BUG] Flutter Module crashing when going to native / entering the module again #92

Open
josipk-cinnamon opened this issue Aug 23, 2021 · 3 comments
Assignees
Labels
new issue New issue which has not been checked yet

Comments

@josipk-cinnamon
Copy link

Describe the bug
I'm creating a Flutter Module that is triggered while pressing the FAB inside the native Android app.
Using Alice in the Module in order to track API calls I make there.

Everything works as intended, but if I go back to native app using the back button and then go to the Module again by tapping on the FAB, the module crashes.

Disabling Alice completely (even from pubspec.yaml) fixes the issue.

To Reproduce
Steps to reproduce the behavior:

  1. Open the Flutter Module from the native app
  2. Tap the back button and get back to the native app
  3. Open the Module again
  4. Module crashes and brings you to the native app

Expected behavior
Exiting and entering the Module shouldn't crash it.

Flutter doctor

Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 2.2.3, on macOS 11.4 20F71 darwin-x64, locale
    en-HR)
[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
[✓] Xcode - develop for iOS and macOS
[✓] Chrome - develop for the web
[✓] Android Studio (version 4.2)
[✓] VS Code (version 1.56.2)
[✓] Connected device (2 available)

Alice version

  • Version: 0.2.4

Smartphone (please complete the following information):

  • Device: Pixel 3a
  • OS: Android 11
@josipk-cinnamon josipk-cinnamon added the new issue New issue which has not been checked yet label Aug 23, 2021
@wapoywapa
Copy link

I can confirm this issue, and it makes it impossible to include Alice in any project that is integrated into an existing Android app as you can only ever open a Flutter screen once without crashing the entire app. Any advice on solving this asap would be great. Thanks

@jhomlala
Copy link
Owner

jhomlala commented Nov 7, 2021

Thanks for reporting this issue. Can you provide minimal reproducible example for this issue? This will help debug this issue on my side.

@josipk-cinnamon
Copy link
Author

Hey, after investigating a bit more thoroughly, I came to the conclusion that using FlutterBoost is what caused the issue.

Removed it and all was working without issues.

I apologize for taking this long to update here, but I think this issue can be resolved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new issue New issue which has not been checked yet
Projects
None yet
Development

No branches or pull requests

3 participants