You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When running a custom tile server, in the case of a missing tile we can get back zero bytes. Resulting in the decode function failure in _loadAsync of FlutterMapNetworkImageProvider.
How can we reproduce it?
Use a custom tile server that on a missing tile return zero bytes.
Do you have a potential solution?
Looking at the _loadAsync implementation, the call to the decode function was left out of the try/catch block. Simply moving the decode function call inside the try block fixes the issue - the app no longer crashes on a missing tile.
Platforms
MacOS Ventura 13.5.1 (M1)
Severity
Fatal: Causes the application to crash
The text was updated successfully, but these errors were encountered:
s6o
added
bug
This issue reports broken functionality or another error
needs triage
This new bug report needs reproducing and prioritizing
labels
Sep 10, 2023
JaffaKetchup
changed the title
Crash on uncaught "Invalid image data" exception on MacOS desktop.
Crash on uncaught "Invalid image data" exception
Sep 10, 2023
What is the bug?
When running a custom tile server, in the case of a missing tile we can get back zero bytes. Resulting in the decode function failure in _loadAsync of FlutterMapNetworkImageProvider.
How can we reproduce it?
Use a custom tile server that on a missing tile return zero bytes.
Do you have a potential solution?
Looking at the _loadAsync implementation, the call to the decode function was left out of the try/catch block. Simply moving the decode function call inside the try block fixes the issue - the app no longer crashes on a missing tile.
Platforms
MacOS Ventura 13.5.1 (M1)
Severity
Fatal: Causes the application to crash
The text was updated successfully, but these errors were encountered: