Repository navigation
Closed
Labels
P2Important issues not at the top of the work listImportant issues not at the top of the work lista: imagesLoading, displaying, rendering imagesLoading, displaying, rendering imagesa: null-safetySupport for Dart's null safety featureSupport for Dart's null safety featurec: crashStack traces logged to the consoleStack traces logged to the consoleframeworkflutter/packages/flutter repository. See also f: labels.flutter/packages/flutter repository. See also f: labels.needs repro infoAutomated crash report whose cause isn't yet knownAutomated crash report whose cause isn't yet knownwaiting for responseThe Flutter team cannot make further progress on this issue until the original reporter respondsThe Flutter team cannot make further progress on this issue until the original reporter responds
Description
Steps to Reproduce
I'm using sentry for the crashlytics and found this crash, I can't reproduce the error on debug mode (or have no idea how to reproduce it). But I can provide the full stacktrace here.
Logs
_AssertionError: 'package:flutter/src/painting/image_stream.dart': Failed assertion: line 920 pos 12: '_nextFrame != null': is not true.
File "errors_patch.dart", line 51, col 61, in _AssertionError._doThrowNew
File "errors_patch.dart", line 40, col 5, in _AssertionError._throwNew
File "image_stream.dart", line 920, col 12, in MultiFrameImageStreamCompleter._handleAppFrame
File "binding.dart", line 1289, col 15, in SchedulerBinding._invokeFrameCallback
File "binding.dart", line 1140, col 11, in SchedulerBinding.handleBeginFrame.<fn>
File "compact_hash.dart", line 625, col 13, in _LinkedHashMapMixin.forEach
File "binding.dart", line 1138, col 17, in SchedulerBinding.handleBeginFrame
File "binding.dart", line 938, col 7, in SchedulerBinding.scheduleWarmUpFrame.<fn>
File "timer_patch.dart", line 18, col 15, in Timer._createTimer.<fn>
File "timer_impl.dart", line 398, col 19, in _Timer._runTimers
File "timer_impl.dart", line 429, col 5, in _Timer._handleMessage
File "isolate_patch.dart", line 192, col 26, in _RawReceivePort._handleMessage
Resolving dependencies... (7.8s)
app_links 3.4.1 (3.4.2 available)
async 2.10.0 (2.11.0 available)
camera 0.10.3 (0.10.3+2 available)
camera_android 0.10.4+1 (0.10.4+3 available)
camera_avfoundation 0.9.11 (0.9.13+1 available)
camera_platform_interface 2.4.0 (2.4.1 available)
camera_web 0.3.1+2 (0.3.1+3 available)
carousel_slider 4.1.1 (4.2.1 available)
characters 1.2.1 (1.3.0 available)
collection 1.17.0 (1.17.1 available)
connectivity_plus 2.2.2 (3.0.3 available)
crypton 2.0.5 (2.1.0 available)
dio 4.0.6 (5.0.2 available)
dotted_border 2.0.0+2 (2.0.0+3 available)
easy_debounce 2.0.2+1 (2.0.3 available)
expand_widget 2.1.0 (3.1.1 available)
facebook_app_events 0.16.0 (0.18.3 available)
file_picker 5.2.0+1 (5.2.6 available)
fl_chart 0.55.0 (0.61.0 available)
flutter_image_compress 1.1.0 (1.1.3 available)
flutter_local_notifications 9.9.1 (13.0.0 available)
flutter_local_notifications_linux 0.5.1 (3.0.0+1 available)
flutter_local_notifications_platform_interface 5.0.0 (6.0.0 available)
flutter_native_splash 2.2.9 (2.2.19 available)
flutter_plugin_android_lifecycle 2.0.7 (2.0.9 available)
flutter_svg 1.1.1+1 (2.0.3 available)
flutter_typeahead 4.0.0 (4.3.7 available)
flutter_widget_from_html_core 0.8.5+3 (0.10.0 available)
fpdart 0.2.0 (0.5.0 available)
fwfh_url_launcher 0.6.1+3 (0.9.0+1 available)
geolocator 9.0.1 (9.0.2 available)
get_storage 2.0.3 (2.1.1 available)
google_fonts 3.0.1 (4.0.3 available)
google_maps_flutter 2.1.8 (2.2.5 available)
google_maps_flutter_platform_interface 2.2.5 (2.2.6 available)
html 0.15.1 (0.15.2 available)
image 3.3.0 (4.0.15 available)
image_picker 0.8.4+11 (0.8.7 available)
image_picker_for_web 2.1.10 (2.1.12 available)
image_picker_platform_interface 2.6.2 (2.6.3 available)
intl 0.17.0 (0.18.0 available)
js 0.6.5 (0.6.7 available)
lint 1.10.0 (2.1.1 available)
loader_overlay 2.0.7 (2.1.0 available)
matcher 0.12.13 (0.12.14 available)
material_color_utilities 0.2.0 (0.3.0 available)
meta 1.8.0 (1.9.0 available)
month_picker_dialog 0.4.0 (1.0.0 available)
mqtt_client 9.7.4 (9.8.0 available)
open_filex 4.1.1 (4.3.2 available)
package_info_plus 1.4.3+1 (3.0.3 available)
package_info_plus_linux 1.0.5 (2.0.0 available)
package_info_plus_macos 1.3.0 (2.0.0 available)
package_info_plus_platform_interface 1.0.2 (2.0.1 available)
package_info_plus_web 1.0.6 (2.0.0 available)
package_info_plus_windows 2.1.0 (3.0.0 available)
path 1.8.2 (1.8.3 available)
path_provider 2.0.5 (2.0.13 available)
path_provider_linux 2.1.8 (2.1.10 available)
path_provider_platform_interface 2.0.5 (2.0.6 available)
path_provider_windows 2.1.3 (2.1.5 available)
percent_indicator 4.2.2 (4.2.3 available)
! permission_handler_android 10.1.0 (overridden) (10.2.0 available)
! permission_handler_apple 9.0.6 (overridden) (9.0.7 available)
petitparser 5.1.0 (5.3.0 available)
plugin_platform_interface 2.1.3 (2.1.4 available)
pretty_dio_logger 1.2.0-beta-1 (1.3.1 available)
provider 6.0.3 (6.0.5 available)
qiscus_chat_sdk 2.0.2 (2.0.3 available)
recase 4.0.0 (4.1.0 available)
riverpod 2.2.0 (2.3.2 available)
rxdart 0.26.0 (0.27.7 available)
+ sentry 7.0.0-rc.2
+ sentry_flutter 7.0.0-rc.2
share 2.0.4 (discontinued)
test_api 0.4.16 (0.4.18 available)
timezone 0.8.0 (0.9.1 available)
tutorial_coach_mark 1.2.5 (1.2.7 available)
universal_html 2.0.9 (2.2.1 available)
url_launcher 6.1.6 (6.1.10 available)
url_launcher_android 6.0.23 (6.0.25 available)
url_launcher_ios 6.1.0 (6.1.2 available)
url_launcher_linux 3.0.2 (3.0.4 available)
url_launcher_macos 3.0.2 (3.0.4 available)
url_launcher_platform_interface 2.1.1 (2.1.2 available)
url_launcher_web 2.0.14 (2.0.16 available)
url_launcher_windows 3.0.3 (3.0.5 available)
uuid 3.0.6 (3.0.7 available)
video_player 2.5.1 (2.6.0 available)
video_player_android 2.3.10 (2.4.2 available)
video_player_avfoundation 2.3.8 (2.4.1 available)
video_player_platform_interface 6.0.1 (6.0.2 available)
video_player_web 2.0.13 (2.0.15 available)
visibility_detector 0.3.3 (0.4.0+2 available)
webview_flutter 3.0.4 (4.0.6 available)
webview_flutter_android 2.10.4 (3.4.2 available)
webview_flutter_platform_interface 1.9.5 (2.1.0 available)
webview_flutter_wkwebview 2.9.5 (3.2.1 available)
win32 3.1.3 (4.1.1 available)
xdg_directories 0.2.0+3 (1.0.0 available)
Warning: You are using these overridden dependencies:
! permission_handler_android 10.1.0 (10.2.0 available)
! permission_handler_apple 9.0.6 (9.0.7 available)
[✓] Flutter (Channel stable, 3.7.0, on macOS 13.2 22D49 darwin-arm64, locale en)
• Flutter version 3.7.0 on channel stable at /Users/efzet/SDKs/flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision b06b8b2710 (7 weeks ago), 2023-01-23 16:55:55 -0800
• Engine revision b24591ed32
• Dart version 2.19.0
• DevTools version 2.20.1
[✓] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
• Android SDK at /Users/efzet/Library/Android/sdk
• Platform android-33, build-tools 31.0.0
• ANDROID_HOME = /Users/efzet/Library/Android/sdk
• Java binary at: /Applications/Android Studio.app/Contents/jre/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 11.0.13+0-b1751.21-8125866)
• 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_EXECUTABLE = /Applications/Brave Browser.app/Contents/MacOS/Brave Browser
[✓] Android Studio (version 2021.3)
• 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.13+0-b1751.21-8125866)
[✓] IntelliJ IDEA Ultimate Edition (version 2021.2.4)
• IntelliJ at /Applications/IntelliJ IDEA.app
• Flutter plugin version 71.2.2
• Dart plugin version 212.5744
[✓] VS Code (version 1.76.1)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension version 3.60.0
[✓] Connected device (2 available)
• Pixel 6a (mobile) • 28271JEGR04021 • android-arm64 • Android 13 (API 33)
• Chrome (web) • chrome • web-javascript • Brave Browser 111.1.49.120
[✓] HTTP Host Availability
• All required HTTP hosts are available
• No issues found!
Metadata
Metadata
Assignees
Labels
P2Important issues not at the top of the work listImportant issues not at the top of the work lista: imagesLoading, displaying, rendering imagesLoading, displaying, rendering imagesa: null-safetySupport for Dart's null safety featureSupport for Dart's null safety featurec: crashStack traces logged to the consoleStack traces logged to the consoleframeworkflutter/packages/flutter repository. See also f: labels.flutter/packages/flutter repository. See also f: labels.needs repro infoAutomated crash report whose cause isn't yet knownAutomated crash report whose cause isn't yet knownwaiting for responseThe Flutter team cannot make further progress on this issue until the original reporter respondsThe Flutter team cannot make further progress on this issue until the original reporter responds
Activity
darshankawar commentedon Mar 14, 2023
@fauzipadlaw
Is there a way for you to verify in your code that a condition might be null somewhere ? Also confirm if you are properly handling null checks everywhere as applicable.
fauzipadlaw commentedon Mar 14, 2023
@darshankawar I'm not sure, since the stacktrace does not point to anywhere in my code. I also have no idea which Widget should I check. From the sentry log, I know that this issue appeared right away after user open the app and the user device is iPhone 7 Plus.
darshankawar commentedon Mar 15, 2023
Thanks for the update. Keeping this issue open and labeling based on the error log and likely no concrete steps to replicate.
mraleph commentedon Mar 15, 2023
The assertion was added by @dnfield, so maybe he knows potential reasons
Though I must admit I find it puzzling that a production build of an application would have assertions enabled.
dnfield commentedon Mar 15, 2023
This kind of error should only happen in debug builds, and Apple would not let you release such a build through the stores. Something seems off here. Did you have a development build that was reporting to crashlytics?
It's possible the assertion is overly eager, since there's a code path in here that would tolerate
_nextFramebeing null just fine. It'd still help to have a reproduction so we can write a proper test case for this.fauzipadlaw commentedon Mar 16, 2023
Sorry, my mistake this error happens on debug mode, just checked again the Sentry error. If this seems not an issue with Flutter I will close this issue.
Thank you.
darshankawar commentedon Mar 16, 2023
@fauzipadlaw If you can provide us a replicable code sample that triggers the error, it will be helpful to properly analyze the issue.
github-actions commentedon Apr 6, 2023
Without additional information, we are unfortunately not sure how to resolve this issue. We are therefore reluctantly going to close this bug for now.
If you find this problem please file a new issue with the same description, what happens, logs and the output of 'flutter doctor -v'. All system setups can be slightly different so it's always better to open new issues and reference the related ones.
Thanks for your contribution.
github-actions commentedon Apr 20, 2023
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of
flutter doctor -vand a minimal reproduction of the issue.