-
Notifications
You must be signed in to change notification settings - Fork 29.2k
Closed
Labels
e: impellerImpeller rendering backend issues and features requestsImpeller rendering backend issues and features requestsengineflutter/engine related. See also e: labels.flutter/engine related. See also e: labels.found in release: 3.10Found to occur in 3.10Found to occur in 3.10
Description
Is there an existing issue for this?
- I have searched the existing issues
- I have read the guide to filing a bug
Steps to reproduce
- Create a new flutter project or open an existing one
- Try showing an image using
Image.Network
orImage.asset
on iOS simulator
It happens on different ios simulator with any images from network or assets. Using cached_network_image package also produces the same result.
This bug produced after upgrading from Flutter 3.3.0 to 3.10
Update: It works fine until 3.7.12
Expected results
Showing the image successfully
Actual results
Following exception throws:
======== Exception caught by image resource service ================================================
The following _Exception was thrown resolving an image frame:
Exception: Codec failed to produce an image, possibly due to invalid image data.
When the exception was thrown, this was the stack:
Image provider: NetworkImage("https://picsum.photos/200/300", scale: 1.0)
Image key: NetworkImage("https://picsum.photos/200/300", scale: 1.0)
====================================================================================================
Code sample
Code sample
import 'package:flutter/material.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({super.key});
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Flutter Demo',
home: Scaffold(
body: Center(
child: Image.network(
'https://picsum.photos/200/300',
),
),
),
);
}
}
Screenshots or Video
Logs
Logs
[ +816 ms] com.example.images: 64717
[ ] Waiting for VM Service port to be available...
[ +899 ms] VM Service URL on device: http://127.0.0.1:55892/U1waQeMPT4c=/
[ +6 ms] Caching compiled dill
[ +255 ms] Connecting to service protocol: http://127.0.0.1:55892/U1waQeMPT4c=/
[ +347 ms] Launching a Dart Developer Service (DDS) instance at http://127.0.0.1:0, connecting to VM service at http://127.0.0.1:55892/U1waQeMPT4c=/.
[ +256 ms] DDS is listening at http://127.0.0.1:55895/LMq3joqnDbk=/.
[ +95 ms] Successfully connected to service protocol: http://127.0.0.1:55892/U1waQeMPT4c=/
[ +91 ms] DevFS: Creating new filesystem on the device (null)
[ +95 ms] DevFS: Created new filesystem on the device
(file:///Users/flutter/Library/Developer/CoreSimulator/Devices/D4909C3C-EA95-4F22-A52C-62D212410360/data/Containers/Data/Application/A70E296E-62C3-420B-849C-DF75398898BA/t
mp/imagesgj5pit/images/)
[ +2 ms] Updating assets
[ +356 ms] Manifest contained wildcard assets. Inserting missing file into build graph to force rerun. for more information see #56466.
[ +8 ms] Syncing files to device iPhone 13 Pro...
[ +3 ms] Compiling dart to kernel with 0 updated files
[ ] Processing bundle.
[ +1 ms] <- recompile package:images/main.dart 7793d8de-8aba-442e-9871-f95e67dd6cd1
[ ] <- 7793d8de-8aba-442e-9871-f95e67dd6cd1
[ +11 ms] Bundle processing done.
[ +154 ms] Updating files.
[ ] DevFS: Sync finished
[ +2 ms] Syncing files to device iPhone 13 Pro... (completed in 173ms)
[ +1 ms] Synced 0.0MB.
[ +2 ms] <- accept
[ +18 ms] Connected to _flutterView/0x7ff36102ca20.
[ +206 ms] Flutter run key commands.
[ +15 ms] r Hot reload. 🔥🔥🔥
[ +2 ms] R Hot restart.
[ ] h List all available interactive commands.
[ +91 ms] d Detach (terminate "flutter run" but leave application running).
[ ] c Clear the screen
[ ] q Quit (terminate the application on the device).
[ +1 ms] A Dart VM Service on iPhone 13 Pro is available at: http://127.0.0.1:55895/LMq3joqnDbk=/
[ +53 ms] The Flutter DevTools debugger and profiler on iPhone 13 Pro is available at: http://127.0.0.1:9100?uri=http://127.0.0.1:55895/LMq3joqnDbk=/
[+1704 ms] ══╡ EXCEPTION CAUGHT BY IMAGE RESOURCE SERVICE ╞════════════════════════════════════════════════════
The following _Exception was thrown resolving an image frame:
Exception: Codec failed to produce an image, possibly due to invalid image data.
When the exception was thrown, this was the stack
Image provider: NetworkImage("https://picsum.photos/200/300", scale: 1.0)
Image key: NetworkImage("https://picsum.photos/200/300", scale: 1.0)
════════════════════════════════════════════════════════════════════════════════════════════════════
Complete flutter run --verbose
:
https://pastebin.com/w1gyiz9M
Flutter Doctor output
Doctor output
[✓] Flutter (Channel stable, 3.10.0, on macOS 12.6 21G115 darwin-x64, locale en-US)
• Flutter version 3.10.0 on channel stable at /Users/flutter/Downloads/flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision 84a1e904f4 (5 days ago), 2023-05-09 07:41:44 -0700
• Engine revision d44b5a94c9
• Dart version 3.0.0
• DevTools version 2.23.1
[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.0)
• Android SDK at /Users/flutter/Library/Android/sdk
• Platform android-33, build-tools 33.0.0
• Java binary at: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 17.0.6+0-17.0.6b802.4-9586694)
• All Android licenses accepted.
[✓] Xcode - develop for iOS and macOS (Xcode 14.0)
• Xcode at /Users/flutter/Downloads/Xcode14/Xcode.app/Contents/Developer
• Build 14A309
• CocoaPods version 1.12.1
[✓] Chrome - develop for the web
• Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
[✓] Android Studio (version 2022.2)
• 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 17.0.6+0-17.0.6b802.4-9586694)
[✓] Connected device (3 available)
• iPhone 13 Pro (mobile) • D4909C3C-EA95-4F22-A52C-62D212410360 • ios • com.apple.CoreSimulator.SimRuntime.iOS-16-0 (simulator)
• macOS (desktop) • macos • darwin-x64 • macOS 12.6 21G115 darwin-x64
• Chrome (web) • chrome • web-javascript • Google Chrome 113.0.5672.92
[✓] Network resources
• All expected network resources are available.
• No issues found!
nimafallah79, EnduringBeta, HasanAlqaisi, 10ndavis, Juliotati and 4 more
Metadata
Metadata
Assignees
Labels
e: impellerImpeller rendering backend issues and features requestsImpeller rendering backend issues and features requestsengineflutter/engine related. See also e: labels.flutter/engine related. See also e: labels.found in release: 3.10Found to occur in 3.10Found to occur in 3.10