Skip to content

Picture.toImage/Scene.toImage does not work if Android app is in background and GPU images are in picture. #73675

@jonasN5

Description

@jonasN5

Problem already existed here #27438, but got closed. As of today, I still have the same bug, e.g. canvas.drawImage draws nothing and only works if I use intent.putExtra("enable-software-rendering", true), which in turn causes the camera to crash.

I need canvas.drawImage to circle crop an image to display in my notification tray for push notifications.

Logs

[√] Flutter (Channel stable, 1.22.5, on Microsoft Windows [Version 10.0.19041.685], locale fr-FR)
• Flutter version 1.22.5 at E:\Flutter
• Framework revision 7891006 (4 weeks ago), 2020-12-10 11:54:40 -0800
• Engine revision ae90085a84
• Dart version 2.10.4

[!] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
• Android SDK at C:\Users\MrJ\AppData\Local\Android\sdk
• Platform android-30, build-tools 29.0.2
• Java binary at: E:\Android\Android Studio\jre\bin\java
• Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)

[!] Android Studio (version 4.1.0)
• Android Studio at E:\Android\Android Studio
X Flutter plugin not installed; this adds Flutter specific functionality.
X Dart plugin not installed; this adds Dart specific functionality.
• Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)

[√] Connected device (2 available)
• sdk gphone x86 (mobile) • emulator-5554 • android-x86 • Android 11 (API 30) (emulator)
• Android SDK built for x86 (mobile) • emulator-5556 • android-x86 • Android 10 (API 29) (emulator)

! Doctor found issues in 2 categories.

Metadata

Metadata

Assignees

Labels

P1High-priority issues at the top of the work lista: imagesLoading, displaying, rendering imagesdependency: dartDart team may need to help usengineflutter/engine related. See also e: labels.found in release: 1.25Found to occur in 1.25has reproducible stepsThe issue has been confirmed reproducible and is ready to work onplatform-androidAndroid applications specificallyr: fixedIssue is closed as already fixed in a newer versionwaiting for PR to land (fixed)A fix is in flight

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions