SurveySparrow Flutter SDK enables you to collect feedback from your mobile app. Embed the Classic surveys in your Flutter application seamlessly with few lines of code.
MIT License
2
stars
4
forks
source link
setState() called after dispose: _QuestionsPageState#135cb(lifecycle state: defunct, not mounted) #5
My firebase crashlytics is flooded by these kind of errors, every time a survey is submitted, this error is shown. Its a Non-Fatal exception but populates crashytics/sentry dashboards with errors.
Fix is added in this PR #4
flutter doctor -v :
[✓] Flutter (Channel stable, 3.7.7, on macOS 13.1 22C65 darwin-arm64, locale en-IN)
• Flutter version 3.7.7 on channel stable at /Users/samvitchrungoo/flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision 2ad6cd72c0 (6 weeks ago), 2023-03-08 09:41:59 -0800
• Engine revision 1837b5be5f
• Dart version 2.19.4
• DevTools version 2.20.1
[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.1)
• Android SDK at /Users/samvitchrungoo/Library/Android/sdk
• Platform android-33, build-tools 33.0.1
• Java binary at: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 11.0.15+0-b2043.56-8887301)
• All Android licenses accepted.
[✓] Xcode - develop for iOS and macOS (Xcode 14.2)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Build 14C18
• CocoaPods version 1.12.0
[✓] Chrome - develop for the web
• Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
[✓] Android Studio (version 2022.1)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/6351-dart
• Java version OpenJDK Runtime Environment (build 11.0.15+0-b2043.56-8887301)
[✓] VS Code (version 1.74.3)
• VS Code at /Users/samvitchrungoo/Downloads/Visual Studio Code.app/Contents
• Flutter extension version 3.60.0
[✓] Connected device (2 available)
• macOS (desktop) • macos • darwin-arm64 • macOS 13.1 22C65 darwin-arm64
• Chrome (web) • chrome • web-javascript • Google Chrome 112.0.5615.137
[✓] HTTP Host Availability
• All required HTTP hosts are available
Crashlytics Stacktrace
Crashlytics - Stack trace
Application: in.co.XXXXX.android
Platform: android
Version: 1.9.1 (91)
Issue: fc5e43b931d864c57094ddf101616b0d
Session: 643E6326030E00016E164470B3372987_DNE_0_v2
Date: Tue Apr 18 2023 15:01:16 GMT+0530 (India Standard Time)
Non-fatal Exception: io.flutter.plugins.firebase.crashlytics.FlutterError: Null check operator used on a null value. Error thrown null.
at State.setState(framework.dart:1134)
at _QuestionsPageState.generateQuestionList(eui.dart:453)
at _QuestionsPageState._handleNextQuestion(eui.dart:537)
at _QuestionsPageState.storeAnswers.<fn>(eui.dart:260)
My firebase crashlytics is flooded by these kind of errors, every time a survey is submitted, this error is shown. Its a Non-Fatal exception but populates crashytics/sentry dashboards with errors.
Fix is added in this PR #4
flutter doctor -v :
Crashlytics Stacktrace