Skip to content

Asset images are not loading (with Internet Download Manager installed on Microsoft Windows) #124883

@mhbdev

Description

@mhbdev

Is there an existing issue for this?

Steps to reproduce

  1. Create a simple flutter project (Which supports web)
  2. Just create an Image widget and load a png image from your assets
  3. Run your application on chrome

Expected results

I expected flutter to render my asset image normally.

Actual results

Since I have been upgraded to the latest flutter version which is 3.10.0-6.0.pre.9 on master channel I am confronting this issue. First of all my asset images are not loading anywhere in the application.
This is a little bit odd but it might be helpful. When application runs and renders an Image widget which is loading from assets, my IDM application download dialog pops up and asks to download AssetManifest.bin.

Note: All assets images were loading in flutter v3.7.x and my images are not corrupted.

Here is the picture
image

Note: I have IDM installed on my system all the time and this problem is happening after upgrading flutter to the latest version on master channel.

Code sample

Code sample
flutter:
  assets:
    - assets/images/logo.png
Image.asset('assets/images/logo.png', width: 85, height: 85, )

Screenshots or Video

Screenshots / Video demonstration

image

Logs

Logs
The following FormatException was thrown while resolving an image:
Message corrupted

When the exception was thrown, this was the stack: 
dart-sdk/lib/_internal/js_dev_runtime/private/ddc_runtime/errors.dart 288:49  throw_
packages/flutter/src/services/message_codecs.dart 475:7                       readValue
packages/flutter/src/services/message_codecs.dart 342:28                      decodeMessage
packages/flutter/src/services/asset_manifest.dart 57:55                       fromStandardMessageCodecMessage
packages/flutter/src/services/asset_manifest.dart 59:3                        _#fromStandardMessageCodecMessage#tearOff
dart-sdk/lib/async/zone.dart 1661:54                                          runUnary
dart-sdk/lib/async/future_impl.dart 147:18                                    handleValue
dart-sdk/lib/async/future_impl.dart 784:44                                    handleValueCallback
dart-sdk/lib/async/future_impl.dart 813:13                                    _propagateToListeners
dart-sdk/lib/async/future_impl.dart 584:5                                     [_completeWithValue]
dart-sdk/lib/async/future_impl.dart 657:7                                     callback
dart-sdk/lib/async/schedule_microtask.dart 40:11                              _microtaskLoop
dart-sdk/lib/async/schedule_microtask.dart 49:5                               _startMicrotaskLoop
dart-sdk/lib/_internal/js_dev_runtime/patch/async_patch.dart 177:15           <fn>
Image provider: ScrollAwareImageProvider<Object>()
Image configuration: ImageConfiguration(bundle: PlatformAssetBundle#97f8e(), devicePixelRatio: 1.0, locale: en_US, textDirection: TextDirection.ltr, size: Size(135.0, 135.0), platform: windows)

Flutter Doctor output

Doctor output
[√] Flutter (Channel master, 3.10.0-6.0.pre.9, on Microsoft Windows [Version 10.0.19045.2846], locale en-US)
    • Flutter version 3.10.0-6.0.pre.9 on channel master at C:\FlutterSdk\flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 119744a63c (2 hours ago), 2023-04-14 10:43:17 -0700
    • Engine revision ea0e1b1700
    • Dart version 3.1.0 (build 3.1.0-4.0.dev)
    • DevTools version 2.23.1
    • Pub download mirror https://pub.dev

[√] Windows Version (Installed version of Windows is version 10 or higher)

[√] Android toolchain - develop for Android devices (Android SDK version 33.0.1)
    • Android SDK at C:\AndroidSdk
    • Platform android-33, build-tools 33.0.1
    • Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
    • Java version OpenJDK Runtime Environment (build 11.0.13+0-b1751.21-8125866)
    • All Android licenses accepted.

[√] Chrome - develop for the web
    • Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe

[√] Visual Studio - develop for Windows (Visual Studio Community 2022 17.3.5)
    • Visual Studio at C:\Program Files\Microsoft Visual Studio\2022\Community
    • Visual Studio Community 2022 version 17.3.32922.545
    • Windows 10 SDK version 10.0.20348.0

[√] Android Studio (version 2021.3)
    • Android Studio at C:\Program Files\Android\Android Studio
    • 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)

[√] VS Code (version 1.77.0)
    • VS Code at C:\Users\MonoBit\AppData\Local\Programs\Microsoft VS Code
    • Flutter extension version 3.62.0

[√] Connected device (3 available)
    • Windows (desktop) • windows • windows-x64    • Microsoft Windows [Version 10.0.19045.2846]
    • Chrome (web)      • chrome  • web-javascript • Google Chrome 112.0.5615.49
    • Edge (web)        • edge    • web-javascript • Microsoft Edge 112.0.1722.39

[√] Network resources
    • All expected network resources are available.

• No issues found!

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Important issues not at the top of the work lista: assetsPackaging, accessing, or using assetsa: imagesLoading, displaying, rendering imagesc: crashStack traces logged to the consolec: regressionIt was better in the past than it is nowfound in release: 3.10Found to occur in 3.10has reproducible stepsThe issue has been confirmed reproducible and is ready to work onplatform-webWeb applications specificallyr: fixedIssue is closed as already fixed in a newer versionteam-webOwned by Web platform teamtriaged-webTriaged by Web platform team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions