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

Systematic crash with .gemf files #850

Closed
monsieurtanuki opened this Issue Jan 6, 2018 · 1 comment

Comments

Projects
None yet
2 participants
@monsieurtanuki
Collaborator

monsieurtanuki commented Jan 6, 2018

Issue Type

[v] Bug

Description and/or steps/code to reproduce the problem

  • I have a .gemf file (usgssat-jpg.gemf) in my osmdroid folder: basically, USA at zoom 2 or 3.
  • each time I go to the USA map at zoom 2 or 3, I have a glimpse of the tiles, then within 10ths of second a crash like that:
E/StrictMode: A resource was acquired at attached stack trace but never released. See java.io.Closeable for information on avoiding resource leaks.
              java.lang.Throwable: Explicit termination method 'close' not called
                  at dalvik.system.CloseGuard.open(CloseGuard.java:184)
                  at java.io.RandomAccessFile.<init>(RandomAccessFile.java:127)
                  at java.io.RandomAccessFile.<init>(RandomAccessFile.java:149)
                  at org.osmdroid.util.GEMFFile$GEMFInputStream.<init>(GEMFFile.java:675)
                  at org.osmdroid.util.GEMFFile.getInputStream(GEMFFile.java:617)
                  at org.osmdroid.tileprovider.modules.GEMFFileArchive.getInputStream(GEMFFileArchive.java:39)
                  at org.osmdroid.tileprovider.modules.MapTileFileArchiveProvider.getInputStream(MapTileFileArchiveProvider.java:181)
                  at org.osmdroid.tileprovider.modules.MapTileFileArchiveProvider.access$100(MapTileFileArchiveProvider.java:30)
                  at org.osmdroid.tileprovider.modules.MapTileFileArchiveProvider$TileLoader.loadTile(MapTileFileArchiveProvider.java:222)
                  at org.osmdroid.tileprovider.modules.MapTileModuleProviderBase$TileLoader.run(MapTileModuleProviderBase.java:317)
                  at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
                  at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
                  at java.lang.Thread.run(Thread.java:818)

I don't know what the StrictMode of the log message represents. Maybe this bug appeared first when I recently upgraded Android Studio and had to have it modify some compilation parameters.

Version of osmdroid the issue relates to:

6.0.0

@spyhunter99

This comment has been minimized.

Collaborator

spyhunter99 commented Jan 6, 2018

on it

spyhunter99 added a commit that referenced this issue Jan 6, 2018

#850 should fix resource leaks related to gemf files, offline archive…
…s and the demo app. adds some test files sources from US national aviation charts at zoom 4

@spyhunter99 spyhunter99 added the bug label Jan 6, 2018

@spyhunter99 spyhunter99 added this to the v6.0.0 milestone Jan 6, 2018

@spyhunter99 spyhunter99 closed this Jan 7, 2018

spyhunter99 added a commit that referenced this issue Jan 7, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment