-
Notifications
You must be signed in to change notification settings - Fork 30.3k
[image_picker with google_maps_flutter] Emulator Crash after getImage - Failed to setup Skia Gr context. #63663
Copy link
Copy link
Closed
flutter/engine
#21258Labels
P0Critical issues such as a build break or regressionCritical issues such as a build break or regressionc: crashStack traces logged to the consoleStack traces logged to the consoleengineflutter/engine related. See also e: labels.flutter/engine related. See also e: labels.found in release: 1.20Found to occur in 1.20Found to occur in 1.20found in release: 1.21Found to occur in 1.21Found to occur in 1.21has reproducible stepsThe issue has been confirmed reproducible and is ready to work onThe issue has been confirmed reproducible and is ready to work onp: image_pickerThe Image Picker plugin.The Image Picker plugin.p: local_authPlugin for local authentificationPlugin for local authentificationp: mapsGoogle Maps pluginGoogle Maps pluginpackageflutter/packages repository. See also p: labels.flutter/packages repository. See also p: labels.platform-androidAndroid applications specificallyAndroid applications specificallywaiting for PR to land (fixed)A fix is in flightA fix is in flight
Milestone
Metadata
Metadata
Assignees
Labels
P0Critical issues such as a build break or regressionCritical issues such as a build break or regressionc: crashStack traces logged to the consoleStack traces logged to the consoleengineflutter/engine related. See also e: labels.flutter/engine related. See also e: labels.found in release: 1.20Found to occur in 1.20Found to occur in 1.20found in release: 1.21Found to occur in 1.21Found to occur in 1.21has reproducible stepsThe issue has been confirmed reproducible and is ready to work onThe issue has been confirmed reproducible and is ready to work onp: image_pickerThe Image Picker plugin.The Image Picker plugin.p: local_authPlugin for local authentificationPlugin for local authentificationp: mapsGoogle Maps pluginGoogle Maps pluginpackageflutter/packages repository. See also p: labels.flutter/packages repository. See also p: labels.platform-androidAndroid applications specificallyAndroid applications specificallywaiting for PR to land (fixed)A fix is in flightA fix is in flight
Usage
PickedFile imageFile = await _imagePicker.getImage(source: ImageSource.camera, maxHeight: 1024, maxWidth: 1024, imageQuality: 100);Expected results:
i can work completely with emulator like before.
Actual results:
very short time after i confirmed the taken photo, the app crashes. between confirm and crash i see black screen.
the crash thrown with image_picker: ^0.6.3+1 and image_picker: ^0.6.7+4.
it crashes because a null pointer. possible reason is the Skia Gr context. i tested Pixel 2 , Pixel 3 and Nexus 5X with API 29 as emulator.
for some weeks, i haven't any issue to take photo. i think it was before Flutter 1.20.1.
Crash Log