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

Raster mode tile cancellation #205

Open
stefcon opened this issue May 6, 2024 · 1 comment
Open

Raster mode tile cancellation #205

stefcon opened this issue May 6, 2024 · 1 comment

Comments

@stefcon
Copy link

stefcon commented May 6, 2024

Whenever I do fast zoom in/out, I'm getting following error:

══╡ EXCEPTION CAUGHT BY IMAGE RESOURCE SERVICE ╞════════════════════════════════════════════════════
The following CancellationException was thrown:
Cancelled

When the exception was thrown, this was the stack:
#0      TileLoader._renderTile (package:vector_map_tiles/src/raster/tile_loader.dart:72:7)
#1      TileLoader._renderJob (package:vector_map_tiles/src/raster/tile_loader.dart:66:40)
#2      ImmediateExecutor.submit (package:executor_lib/src/immdediate_executor.dart:17:44)
#3      ConcurrencyExecutor._startJob (package:executor_lib/src/concurrency_executor.dart:71:10)
#4      ConcurrencyExecutor._startJobs (package:executor_lib/src/concurrency_executor.dart:57:7)
#5      ConcurrencyExecutor.submit (package:executor_lib/src/concurrency_executor.dart:39:5)
#6      TileLoader.loadTile (package:vector_map_tiles/src/raster/tile_loader.dart:61:22)
<asynchronous suspension>
#7      _FutureImageProvider._load.<anonymous closure> (package:vector_map_tiles/src/raster/future_tile_provider.dart:64:47)
<asynchronous suspension>
════════════════════════════════════════════════════════════════════════════════════════════════════

I saw that in latest release note for 7.3.1 it is noted that it has something to do with that:

  • support cancellation in raster tile provider

The problem is that visibly slows down the map when it happens, and in addition it also overflows my crashlytics service. Is there some way that this is supposed to be handled outside the library and is it something that is being worked on currently? Also, If someone would like to explain why this feature is now being handled this way and what it enables generally would be great.

@PatrickWulfe
Copy link

I'm also having issues with the package overflowing my crashlytics service.

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

No branches or pull requests

2 participants