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

Updating local mbtiles file causes crash #2523

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

nnhubbard
Copy link
Contributor

This is a fix for issue #100 where updating a local mbtiles file with a new version will cause a crash.

The use case for this is for users that have mbtiles files on the filesystem an update that with a newer version of the file, such as downloading an updated map file. Previously this would crash.

Copy link
Collaborator

@louwers louwers left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you add a test?

@nnhubbard
Copy link
Contributor Author

Could you add a test?

I would be happy to, but is there documentation somewhere on how to do this?

@louwers
Copy link
Collaborator

louwers commented Jun 23, 2024

You would need to add it here: https://github.com/maplibre/maplibre-native/blob/main/test/storage/mbtiles_file_source.test.cpp

What platform are you on? For CMake there is the mbgl-test-runner target (Linux, Windows), for iOS you need to run the CppUnitTests.

@nnhubbard
Copy link
Contributor Author

You would need to add it here: https://github.com/maplibre/maplibre-native/blob/main/test/storage/mbtiles_file_source.test.cpp

What platform are you on? For CMake there is the mbgl-test-runner target (Linux, Windows), for iOS you need to run the CppUnitTests.

I am on iOS. Thanks for the tip on where to start.

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

Successfully merging this pull request may close these issues.

None yet

3 participants