Closed chemsou00 closed 1 year ago
I have the same hot-restart problem.
Doctor summary (to see all details, run flutter doctor -v): [ā] Flutter (Channel master, 3.16.0-14.0.pre.1, on Microsoft Windows [Version 10.0.19045.3570], locale ko-KR) [ā] Windows Version (Installed version of Windows is version 10 or higher) [ā] Android toolchain - develop for Android devices (Android SDK version 33.0.2) [ā] Chrome - develop for the web [!] Visual Studio - develop Windows apps (Visual Studio Build Tools 2017 15.9.50) X Visual Studio 2019 or later is required. Download at https://visualstudio.microsoft.com/downloads/. Please install the "Desktop development with C++" workload, including all of its default components [ā] Android Studio (version 2022.1) [ā] VS Code (version 1.83.1) [ā] Connected device (4 available) [ā] Network resources
@chemsou00 @inpreter I am unable to replicate the app freeze using the plugin example. Can either of you provide complete steps to replicate, platform on which you are seeing this behavior along with any other additional details that'll help to properly address the issue ?
Also, if you downgrade plugin version to any previous ones and run your scenario again, do you still see the app freeze or no ?
Also, if you downgrade plugin version to any previous ones and run your scenario again, do you still see the app freeze or no ? answer : same probleme Ihave old project with version of packages : firebase_core: ^2.17.0 cloud_firestore: ^4.9.3 the app work fine . and i test to update the old app to last version of packages it work fine i remember the last thing i do is update firebase cli to last version 12.7.0 did you think the cofiguation of flutterfire can do some problems?
when the app freez an click back button it give me this :
I encountered a similar issue after upgrading the cloud_firestore package from version 4.9.3 to 4.11.0. The previous version, 4.9.3, was working fine.
Same problem, Hot Reload works, but Restart Freeze the app in emulator. Whatever before calling 'Firebase.initializeApp' works, but not after.
firebase_core: ^2.19.0 firebase_auth: ^4.11.1 firebase_dynamic_links: ^5.4.1 firebase_ui_auth: ^1.9.1 cloud_firestore: ^4.11.0
not only emulator i test it in my phone same thing , and i downgrad firebase cli version and create a simple project and configure it using flutterfire the hot restart work only if i remove package or if i run the app from terminal using "flutter run" and use the key "R" to hot restart.this methode it work fine
Same here
@darshankawar Below is a description of how to reproduce the problem
flutter --version
Flutter 3.16.0-14.0.pre.1 ā¢ channel master ā¢ https://github.com/flutter/flutter.git Framework ā¢ revision cbf50a953b (6 days ago) ā¢ 2023-10-19 03:13:25 +0000 Engine ā¢ revision 8d51b64e94 Tools ā¢ Dart 3.3.0 (build 3.3.0-41.0.dev) ā¢ DevTools 2.28.1
flutterfire -v
0.2.7
pubspec.yaml
firebase_core: ^2.20.0 cloud_firestore: ^4.12.0
create new project by flutter cli
flutter create firebase_test
install 'firebase_core'
flutter pub add firebase_core
configure flutter-fire
flutterfire configure
modify 'main.dart'
void main() async { WidgetsFlutterBinding.ensureInitialized();
print('Firebase init start');
FirebaseApp app = await Firebase.initializeApp( options: DefaultFirebaseOptions.currentPlatform, ); print('Initialized default app $app');
runApp(const MyApp()); }
flutter run
=> no problem
flutter pub add cloud_firestore
Resolving dependencies...
flutterfire configure
flutter run
Do you want to continue with adding multidex support for Android? [y|n]: y Multidex enabled. Retrying build.
Retrying Gradle Build: #1, wait time: 100ms Building with Flutter multidex support enabled. Running Gradle task 'assembleDebug'...
Press 'R'
Performing hot restart... Restarted application in 1,375ms. I/flutter ( 4216): Firebase init start
=> FREEZED!
Thanks for the above reproducible steps and details. I was able to replicate the app freeze as shown below:
https://github.com/firebase/flutterfire/assets/67046386/6f1baeb4-2edd-4421-aa89-603cbe9480db
A related app freeze on iOS is reported in https://github.com/firebase/flutterfire/issues/11755 but it seems to be related to transaction. In this issue, after adding cloud_firestore
, and trying to restart is freezing the app.
/cc @Lyokone
Thanks I was also able to reproduce this, I'm taking a look.
Opened https://github.com/firebase/flutterfire/pull/11776 that will resolve this issue. We'll investigate adding a test with hot reload on Firestore, we currently don't have a setup for that.
Bug report
Describe the bug When i add Cloud fireStor package and i try to hot restart the app freezd ! when i remove and restart again the app work fine
Steps to reproduce
Steps to reproduce the behavior:
Expected behavior
A clear and concise description of what you expected to happen.
Sample project
Providing a minimal example project which demonstrates the bug in isolation from your main App greatly enhances the chance of a timely fix. Please link to the public repository URL.
Additional context
Add any other context about the problem here.
Flutter doctor
Run
flutter doctor
and paste the output below: Doctor summary (to see all details, run flutter doctor -v): [ā] Flutter (Channel stable, 3.13.8, on Microsoft Windows [Version 10.0.19045.3570], locale en-US) [ā] Windows Version (Installed version of Windows is version 10 or higher) [ā] Android toolchain - develop for Android devices (Android SDK version 33.0.0-rc4) [ā] Chrome - develop for the web [ā] Visual Studio - develop Windows apps (Visual Studio Community 2022 17.0.5) [ā] Android Studio (version 2022.1) [ā] IntelliJ IDEA Community Edition (version 2022.1) [ā] VS Code (version 1.83.1) [ā] Connected device (4 available) [ā] Network resourcesClick To Expand
``` Doctor summary (to see all details, run flutter doctor -v): [ā] Flutter (Channel stable, 3.13.8, on Microsoft Windows [Version 10.0.19045.3570], locale en-US) [ā] Windows Version (Installed version of Windows is version 10 or higher) [ā] Android toolchain - develop for Android devices (Android SDK version 33.0.0-rc4) [ā] Chrome - develop for the web [ā] Visual Studio - develop Windows apps (Visual Studio Community 2022 17.0.5) [ā] Android Studio (version 2022.1) [ā] IntelliJ IDEA Community Edition (version 2022.1) [ā] VS Code (version 1.83.1) [ā] Connected device (4 available) [ā] Network resources ā¢ No issues found!```Flutter dependencies
Run
flutter pub deps -- --style=compact
and paste the output below:Dart SDK 3.1.4 Flutter SDK 3.13.8 teste_cloud_firestore 1.0.0+1
dependencies:
dev dependencies:
transitive dependencies:
Click To Expand
``` ```