flutter_cached_network_image icon indicating copy to clipboard operation
flutter_cached_network_image copied to clipboard

BaseCacheManager.getFile (package:flutter_cache_manager/src/cache_manager.dart:120:11)

Open yxwandroid opened this issue 7 years ago • 11 comments

image

yxwandroid avatar Jul 30 '19 09:07 yxwandroid

What's the problem? Does the app crash or do you not want this to get printed in the logs?

renefloor avatar Aug 14 '19 16:08 renefloor

Is there a way to hide these sorts of errors (also 404s)?

hillelcoren avatar Aug 16 '19 06:08 hillelcoren

@renefloor The exception thrown by method BaseCacheManager.getFile was unhandled as expected.

yrom avatar Aug 23 '19 10:08 yrom

+1, we're having the same issue occurring on many of our sessions. We don't fully grasp what this leads to currently.

Non-fatal Exception: java.lang.Exception
Connection closed while receiving data
BaseCacheManager.getFile (cache_manager.dart:120)
CachedNetworkImageState._animatedWidget (cached_image_widget.dart:270)

JulianHorst avatar Aug 28 '19 08:08 JulianHorst

Furthermore, we are not quite sure how and where we should handle it correctly.

Gi-lo avatar Aug 28 '19 08:08 Gi-lo

I found this issue was happend in this case: the CachedNetworkImageState rebuild with a new image url, for e.g., in a fastscrolling listview, and then the underlying Stream of getting file for the old url in StreamBuilder has been unsubscribed, but that Stream may throw an exception, the unhandled exception. The getFile stream should be cancelled, not unsubscribed.

yrom avatar Aug 29 '19 04:08 yrom

Any update on this issue? Seeing this error on console all the time is really annoying.

dungnv2602 avatar Sep 03 '19 22:09 dungnv2602

same problem

babang1da avatar Sep 05 '19 09:09 babang1da

Same...

FCMHUB avatar Sep 06 '19 00:09 FCMHUB

@yrom's pull request fixes the problem for me.

Here's a temporary solution until the pull request gets merged or until further discussion.

dependencies:
  cached_network_image: ^1.1.1
  flutter_cache_manager: ^1.1.1

dependency_overrides:
  flutter_cache_manager:
    git:
      url: https://github.com/yrom/flutter_cache_manager
      ref: feature/close-stream-on-cancel

charleshan avatar Sep 17 '19 18:09 charleshan

duplicate of #273

renefloor avatar Feb 21 '20 14:02 renefloor