-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
workaround crash using android ndk>22
The crash occurs in exception handling at osmscout::FileScanner::Close() line 267: >> throw IOException(filename,"Cannot close file","File already closed"); So workaround calling FileScanner::CloseFailsafe(), which is noexcept
- Loading branch information
Showing
8 changed files
with
25 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
diff --git a/libosmscout/src/osmscout/db/LocationIndex.cpp b/libosmscout/src/osmscout/db/LocationIndex.cpp | ||
index 991eead42..d34241f43 100644 | ||
--- a/libosmscout/src/osmscout/db/LocationIndex.cpp | ||
+++ b/libosmscout/src/osmscout/db/LocationIndex.cpp | ||
@@ -133,12 +133,7 @@ namespace osmscout { | ||
|
||
void LocationIndex::FileScannerPool::Destroy(FileScanner* o) noexcept | ||
{ | ||
- try{ | ||
- o->Close(); | ||
- } catch (const IOException& e) { | ||
- log.Error() << e.GetDescription(); | ||
- o->CloseFailsafe(); | ||
- } | ||
+ o->CloseFailsafe(); | ||
delete o; | ||
} | ||
|
This file was deleted.
Oops, something went wrong.