Skip to content

After reloading and open the network image, it's show a error #15

@ArvinCS

Description

@ArvinCS

I don't know what happens
After reloading my app, and the network image became error
Error Log:
E/flutter ( 2576): [ERROR:topaz/lib/tonic/logging/dart_error.cc(16)] Unhandled exception: E/flutter ( 2576): 'package:flutter/src/painting/image_stream.dart': Failed assertion: line 362 pos 12: '_codec != null': is not true. E/flutter ( 2576): #0 _AssertionError._doThrowNew (dart:core-patch/dart:core/errors_patch.dart:37) E/flutter ( 2576): #1 _AssertionError._throwNew (dart:core-patch/dart:core/errors_patch.dart:33) E/flutter ( 2576): #2 MultiFrameImageStreamCompleter._handleCodecReady (package:flutter/src/painting/image_stream.dart:362:12) E/flutter ( 2576): #3 _RootZone.runUnary (dart:async/zone.dart:1381) E/flutter ( 2576): #4 _FutureListener.handleValue (dart:async/future_impl.dart:129) E/flutter ( 2576): #5 _Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:633) E/flutter ( 2576): #6 _Future._propagateToListeners (dart:async/future_impl.dart:662) E/flutter ( 2576): #7 _Future._completeError (dart:async/future_impl.dart:485) E/flutter ( 2576): #8 _SyncCompleter._completeError (dart:async/future_impl.dart:55) E/flutter ( 2576): #9 _Completer.completeError (dart:async/future_impl.dart:27) E/flutter ( 2576): #10 CachedNetworkImageProvider._loadAsync (package:cached_network_image/cached_network_image.dart) E/flutter ( 2576): <asynchronous suspension> E/flutter ( 2576): #11 CachedNetworkImageProvider.load (package:cached_network_image/cached_network_image.dart:452:16) E/flutter ( 2576): #12 ImageProvider.resolve.<anonymous closure>.<anonymous closure> (package:flutter/src/painting/image_provider.dart:266:86) E/flutter ( 2576): #13 ImageCache.putIfAbsent (package:flutter/src/painting/image_cache.dart:82:22) E/flutter ( 2576): #14 ImageProvider.resolve.<anonymous closure> (package:flutter/src/painting/image_provider.dart:266:63) E/flutter ( 2576): #15 SynchronousFuture.then (package:flutter/src/foundation/synchronous_future.dart:38:29) E/flutter ( 2576): #16 ImageProvider.resolve (package:flutter/src/painting/image_provider.dart:264:30) E/flutter ( 2576): #17 _ImageProviderResolver.resolve (package:cached_network_image/cached_network_image.dart:190:29) E/flutter ( 2576): #18 _CachedNetworkImageState._resolveImage (package:cached_network_image/cached_network_image.dart:276:20) E/flutter ( 2576): #19 _CachedNetworkImageState.didChangeDependencies (package:cached_network_image/cached_network_image.dart:258:5) E/flutter ( 2576): #20 StatefulElement._firstBuild (package:flutter/src/widgets/framework.dart:3734:12) E/flutter ( 2576): #21 ComponentElement.mount (package:flutter/src/widgets/framework.dart:3595:5) E/flutter ( 2576): #22 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2885:14) E/flutter ( 2576): #23 Element.updateChild (package:flutter/src/widgets/framework.dart:2688:12) E/flutter ( 2576): #24 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3631:16) E/flutter ( 2576): #25 Element.rebuild (package:flutter/src/widgets/framework.dart:3473:5) E/flutter ( 2576): #26 ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:3600:5) E/flutter ( 2576): #27 ComponentElement.mount (package:flutter/src/widgets/framework.dart:3595:5) E/flutter ( 2576): #28 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2885:14) E/flutter ( 2576): #29 Element.updateChild (package:flutter/src/widgets/framework.dart:2688:12) E/flutter ( 2576): #30 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3631:16) E/flutter ( 2576): #31 Element.rebuild (package:flutter/src/widgets/framework.dart:3473:5) E/flutter ( 2576): #32 ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:3600:5) E/flutter ( 2576): #33 ComponentElement.mount (package:flutter/src/widgets/framework.dart:3595:5) E/flutter ( 2576): #34 ParentDataElement.mount (package:flutter/src/widgets/framework.dart:3911:16) E/flutter ( 2576): #35 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2885:14) E/flutter ( 2576): #36 MultiChildRenderObjectElement.mount (package:flutter/src/widgets/framework.dart:4711:32) E/flutter ( 2576): #37 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2885:14) E/flutter ( 2576): #38 Element.updateChild (package:flutter/src/widgets/framework.dart:2688:12) E/flutter ( 2576): #39 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3631:16) E/flutter ( 2576): #40 Element.rebuild (package:flutter/src/widgets/framework.dart:3473:5) E/flutter ( 2576): #41 ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:3600:5) E/flutter ( 2576): #42 ComponentElement.mount (package:flutter/src/widgets/framework.dart:3595:5) E/flutter ( 2576): #43 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2885:14) E/flutter ( 2576): #44

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions