★ wanayoo — archive 1999 https://github.com/Baseflow/flutter_cache_manager/issues/13Nouvelle recherche | Portail wanayoo
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unsupported operation: Cannot set value in unmodifiable Map #13

Closed
long1eu opened this issue Apr 30, 2018 · 7 comments
Closed

Unsupported operation: Cannot set value in unmodifiable Map #13

long1eu opened this issue Apr 30, 2018 · 7 comments

Comments

@long1eu
Copy link

@long1eu long1eu commented Apr 30, 2018

flutter: ══╡ EXCEPTION CAUGHT BY SERVICES ╞══════════════════════════════════════════════════════════════════
flutter: The following UnsupportedError was thrown resolving an image codec:
flutter: Unsupported operation: Cannot set value in unmodifiable Map
flutter:
flutter: When the exception was thrown, this was the stack:
flutter: #0      _ImmutableMap.[]= (dart:core/runtime/libimmutable_map.dart:78:5)
flutter: #1      CacheManager._downloadFile (package:flutter_cache_manager/flutter_cache_manager.dart:268:14)
flutter: <asynchronous suspension>
flutter: #2      CacheManager.getFile.<anonymous closure> (package:flutter_cache_manager/flutter_cache_manager.dart:236:34)
flutter: <asynchronous suspension>
flutter: #3      SynchronizedLock._runTask.<anonymous closure>.<anonymous closure> (package:synchronized/src/synchronized_impl.dart:189:29)
flutter: #7      SynchronizedLock._runTask.<anonymous closure> (package:synchronized/src/synchronized_impl.dart:187:14)
flutter: #9      SynchronizedLock._runTask (package:synchronized/src/synchronized_impl.dart:186:16)
flutter: #10     LockBase._createAndRunTask.run (package:synchronized/src/synchronized_impl.dart:61:14)
flutter: #11     LockBase._createAndRunTask (package:synchronized/src/synchronized_impl.dart:71:17)
flutter: #12     SynchronizedLock.synchronized (package:synchronized/src/synchronized_impl.dart:222:12)
flutter: #13     synchronized (package:synchronized/src/synchronized_impl.dart:284:19)
flutter: #14     synchronized (package:synchronized/synchronized.dart:47:15)
flutter: #15     CacheManager.getFile (package:flutter_cache_manager/flutter_cache_manager.dart:199:11)
flutter: <asynchronous suspension>
flutter: #16     CachedNetworkImageProvider._loadAsync (package:cached_network_image/cached_network_image.dart:472:35)
flutter: <asynchronous suspension>
flutter: #17     CachedNetworkImageProvider.load (package:cached_network_image/cached_network_image.dart:462:16)
flutter: #18     ImageProvider.resolve.<anonymous closure>.<anonymous closure> (package:flutter/src/painting/image_provider.dart:265:86)
flutter: #19     ImageCache.putIfAbsent (package:flutter/src/painting/image_cache.dart:82:22)
flutter: #20     ImageProvider.resolve.<anonymous closure> (package:flutter/src/painting/image_provider.dart:265:63)
flutter: #21     SynchronousFuture.then (package:flutter/src/foundation/synchronous_future.dart:38:29)
flutter: #22     ImageProvider.resolve (package:flutter/src/painting/image_provider.dart:263:30)
flutter: #23     DecorationImagePainter.paint (package:flutter/src/painting/decoration_image.dart:239:55)
flutter: #24     _BoxDecorationPainter._paintBackgroundImage (package:flutter/src/painting/box_decoration.dart:397:19)
flutter: #25     _BoxDecorationPainter.paint (package:flutter/src/painting/box_decoration.dart:415:5)

@renefloor
Copy link
Collaborator

@renefloor renefloor commented May 1, 2018

Do you get this with the latest version? I had such a problem with the release candidate of 0.4.0, but fixed that in the final release. 0.4.1 also contains some bug fixes.

@long1eu
Copy link
Author

@long1eu long1eu commented May 1, 2018

I got this on the cached network image package. So I don't know which version of the manager it uses.

@renefloor
Copy link
Collaborator

@renefloor renefloor commented May 1, 2018

Sorry, I also meant the version of cached network image.

@long1eu
Copy link
Author

@long1eu long1eu commented May 1, 2018

0.4.1

@renefloor
Copy link
Collaborator

@renefloor renefloor commented May 1, 2018

I'll have a look at it

@renefloor
Copy link
Collaborator

@renefloor renefloor commented May 1, 2018

I see I left a mistake in CachedNetworkImageProvider. Are you using that directly? I cannot fix it right now, but will do it soon. As a workaround for now you can set headers: new Map().

@renefloor
Copy link
Collaborator

@renefloor renefloor commented May 1, 2018

Should be fixed in 0.4.1+1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.