-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Closed
Labels
a: platform-viewsEmbedding Android/iOS views in Flutter appsEmbedding Android/iOS views in Flutter appsc: crashStack traces logged to the consoleStack traces logged to the consoleengineflutter/engine related. See also e: labels.flutter/engine related. See also e: labels.f: routesNavigator, Router, and related APIs.Navigator, Router, and related APIs.frameworkflutter/packages/flutter repository. See also f: labels.flutter/packages/flutter repository. See also f: labels.platform-androidAndroid applications specificallyAndroid applications specificallyr: fixedIssue is closed as already fixed in a newer versionIssue is closed as already fixed in a newer versionworkaround availableThere is a workaround available to overcome the issueThere is a workaround available to overcome the issue
Description
Android 11, Oneplus 9 Pro. Sometimes, after Naviagator.pop call, Flutter throws an exception:
I/flutter (25931): Failed to rasterize a picture: unable to create render target at specified size.
I/flutter (25931): #0 Canvas.drawImageRect (dart:ui/painting.dart:5174)
I/flutter (25931): #1 _drawImageScaledAndCentered (package:flutter/src/material/page_transitions_theme.dart:760)
I/flutter (25931): #2 _ZoomExitTransitionPainter.paintSnapshot (package:flutter/src/material/page_transitions_theme.dart:930)
I/flutter (25931): #3 _RenderSnapshotWidget.paint (package:flutter/src/widgets/snapshot_widget.dart:351)
I/flutter (25931): #4 RenderObject._paintWithContext (package:flutter/src/rendering/object.dart:2853)
I/flutter (25931): #5 PaintingContext.paintChild (package:flutter/src/rendering/object.dart:253)
I/flutter (25931): #6 RenderProxyBoxMixin.paint (package:flutter/src/rendering/proxy_box.dart:144)
I/flutter (25931): #7 _ZoomEnterTransitionPainter.paint (package:flutter/src/material/page_transitions_theme.dart:866)
I/flutter (25931): #8 _RenderSnapshotWidget.paint (package:flutter/src/widgets/snapshot_widget.dart:335)
I/flutter (25931): #9 RenderObject._paintWithContext (package:flutter/src/rendering/object.dart:2853)
I/flutter (25931): #10 PaintingContext.paintChild (package:flutter/src/rendering/object.dart:253)
I/flutter (25931): #11 RenderProxyBoxMixin.paint (package:flutter/src/rendering/proxy_box.dart:144)
I/flutter (25931): #12 RenderObject._paintWithContext (package:flutter/src/rendering/object.dart:2853)
I/flutter (25931): #13 PaintingContext._repaintCompositedChild (package:flutter/src/rendering/object.dart:169)
I/flutter (25931): #14 PaintingContext.repaintCompositedChild (package:flutter/src/rendering/object.dart:112)
I/flutter (25931): #15 PipelineOwner.flushPaint (package:flutter/src/rendering/object.dart:1137)
I/flutter (25931): #16 RendererBinding.drawFrame (package:flutter/src/rendering/binding.dart:518)
I/flutter (25931): #17 WidgetsBinding.drawFrame (package:flutter/src/widgets/binding.dart:865)
I/flutter (25931): #18 RendererBinding._handlePersistentFrameCallback (package:flutter/src/rendering/binding.dart:381)
I/flutter (25931): #19 SchedulerBinding._invokeFrameCallback (package:flutter/src/scheduler/binding.dart:1289)
I/flutter (25931): #20 SchedulerBinding.handleDrawFrame (package:flutter/src/scheduler/binding.dart:1218)
I/flutter (25931): #21 SchedulerBinding._handleDrawFrame (package:flutter/src/scheduler/binding.dart:1076)
I/flutter (25931): #22 _invoke (dart:ui/hooks.dart:145)
I/flutter (25931): #23 PlatformDispatcher._drawFrame (dart:ui/platform_dispatcher.dart:338)
I/flutter (25931): #24 _drawFrame (dart:ui/hooks.dart:112)
It seems nothing else happens, app does not crash. It's completly random and also I am not able to reproduce it on Android emulator in debug mode.
Additionally, sometimes I'm also getting a few exceptions like that:
I/flutter (25931): Another exception was thrown: Instance of 'DiagnosticsProperty<void>'
I/flutter (25931): Another exception was thrown: Instance of 'DiagnosticsProperty<void>'
I/flutter (25931): Another exception was thrown: Instance of 'DiagnosticsProperty<void>'
I/flutter (25931): Another exception was thrown: Instance of 'DiagnosticsProperty<void>'
In this case, app does not crash too, but transition does not work at all, I'm getting black screen for a while and no any transition while pop page.
flutter doctor -v
[✓] Flutter (Channel stable, 3.7.5, on Debian GNU/Linux bookworm/sid 6.1.0-10.slh.1-aptosid-amd64, locale pl_PL.UTF-8)
• Flutter version 3.7.5 on channel stable at /home/michal2/Android/flutter/flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision c07f788888 (4 dni temu), 2023-02-22 17:52:33 -0600
• Engine revision 0f359063c4
• Dart version 2.19.2
• DevTools version 2.20.1
[!] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
• Android SDK at /home/michal2/Android/Sdk
✗ cmdline-tools component is missing
Run `path/to/sdkmanager --install "cmdline-tools;latest"`
See https://developer.android.com/studio/command-line for more details.
✗ Android license status unknown.
Run `flutter doctor --android-licenses` to accept the SDK licenses.
See https://flutter.dev/docs/get-started/install/linux#android-setup for more details.
[✓] Chrome - develop for the web
• Chrome at google-chrome
[✓] Linux toolchain - develop for Linux desktop
• Debian clang version 14.0.6
• cmake version 3.25.1
• ninja version 1.11.1
• pkg-config version 1.8.1
[✓] Android Studio (version 4.2)
• Android Studio at /home/michal2/android/studio
• Flutter plugin version 57.0.2
• Dart plugin version 202.8488
• Java version OpenJDK Runtime Environment (build 11.0.8+0-b944-P17168821)
[✓] IntelliJ IDEA Community Edition (version 2019.2)
• IntelliJ at /home/michal2/Pobrane/intelij/ideaIC-2019.2/idea-IC-192.5728.98
• Flutter plugin version 38.2.4
• Dart plugin version 192.6262.13
[✓] Connected device (3 available)
• LE2120 (mobile) • eaef19cf • android-arm64 • Android 11 (API 30)
• Linux (desktop) • linux • linux-x64 • Debian GNU/Linux bookworm/sid 6.1.0-10.slh.1-aptosid-amd64
• Chrome (web) • chrome • web-javascript • Google Chrome 110.0.5481.77
[✓] HTTP Host Availability
• All required HTTP hosts are available
moodstubos and Toasbi
Metadata
Metadata
Assignees
Labels
a: platform-viewsEmbedding Android/iOS views in Flutter appsEmbedding Android/iOS views in Flutter appsc: crashStack traces logged to the consoleStack traces logged to the consoleengineflutter/engine related. See also e: labels.flutter/engine related. See also e: labels.f: routesNavigator, Router, and related APIs.Navigator, Router, and related APIs.frameworkflutter/packages/flutter repository. See also f: labels.flutter/packages/flutter repository. See also f: labels.platform-androidAndroid applications specificallyAndroid applications specificallyr: fixedIssue is closed as already fixed in a newer versionIssue is closed as already fixed in a newer versionworkaround availableThere is a workaround available to overcome the issueThere is a workaround available to overcome the issue