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
[Deferred components] Always stuck when executing loadLibrary()
#145876
Comments
I've made a repository to reproduce the issue: https://github.com/mrhabibi/deferred_component_example which following the deferred component guideline. The |
@mrhabibi |
Hi @darshankawar, thanks for your suggestion, I'm using flutter 3.7.12 to maintain the project which hasn't been ready to use the newer version. But after I adapt the flutter 3.19.5 SDK on my example repository (the changes have been pushed as well) and I uploaded the AAB to the internal app sharing, the problem still persists. So I guess flutter version isn't the culprit, seems like I miss adding a small config to make the deferred component works. Here's the screen recording showing it's stuck when executing screencast-Genymotion-2024-04-01_11.01.22.39.webmHere's my new flutter doctor output
|
loadLibrary()
Thanks for the update. |
@darshankawar after reading the issue until the last reply, I think it's a bit different where my issue occurs every time since the first download, where the issue you mentioned occurs next app launch after the first successful download. I've tried some solutions given on the replies, but unfortunately none works. |
from android triage: @darshankawar were ever able to reproduce this following the getting started documentation? |
@gmackall Hello, no, I wasn't able to replicate it. I tried locally in release mode but maybe we need to upload it on playstore and then install it on device to check if it persists or not. |
Exactly that's where the problem occurs, I couldn't reproduce the problem as well when testing locally with |
I am facing the same problem here. |
Steps to reproduce
Simply following https://docs.flutter.dev/perf/deferred-components on a simple flutter app, and upload the AAB to internal app sharing. (No issue when testing locally using bundletool)
Install the app and open the app normally, and when downloading the dynamic module, it's stuck on infinite loading (while executing
loadLibrary()
). When force closing the app, the dynamic module is listed as downloaded. When reopening the app, the app's stuck on the splash screen and can never be opened again (theloadLibrary()
is now done in startup because the dynamic module has been downloaded).Notes:
loadLibrary()
Expected results
loadLibrary()
can be finished bringing the downloaded dynamic module and I can normally use the feature inside the dynamic module.Actual results
Stuck on infinite loading when executing
loadLibrary()
regardless the dynamic module has been downloaded or not.Code sample
Content of deferred_components_loading_units.yaml
Minimum reproducible example repository
https://github.com/mrhabibi/deferred_component_example
Screenshots or Video
Video demonstration
evidence.mp4
Logs
Suspicious logs
Flutter Doctor output
Doctor output
The text was updated successfully, but these errors were encountered: