-
Notifications
You must be signed in to change notification settings - Fork 134
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
Blank map when launching example app more than once #318
Comments
Hi @nferrissey, thanks for reporting! We'll look into this issue as soon as possible. Is this issue happening for you also with other example apps? I.e. the "HelloMap" application? And, if possible, can you share which Android Studio version and emulator set-up you are using? Thank you. |
Hi, thanks for the reply. Yes, unfortunately it happens with any app that uses the SDK. I'm running these examples using Android Studio Jellyfish and Android emulator 34.2.14-11834374. I've tried a few versions in case it was a new bug. I have tried these examples, my own native app and a .Net app via a binding library with the same results. Fine on a physical device, but the map will only appear once on an emulator, unless I uninstall (or force stop and clear cache) between runs. The force stop and clearing the cache is a new discovery today which leads me to believe the SDK might have some permissions issues on an emulator? Cheers. |
Hi , Thanks! |
Thanks for trying :) I have updated Android Studio to latest: Android Studio Jellyfish | 2023.3.1 Patch 2 The emulator is 34.2.15-11906825 Run the sample - first time OK, second time heaps of log cat entries along the lines of: 2024-06-12 18:19:47.700 10593-10691 FileSystemPosix com.here.hellomap W [WARN ] FileSystemPosix - Opening directory failed, error=kIOError - No such file or directory, directory_path='/data/user/0/com.here.hellomap/files/v1/FdSKs9s1eYIxEw5lKN2mGQ/ocm-map//ARCHIVES/17' 2024-06-12 18:19:47.700 10593-10691 FileSystemPosix com.here.hellomap W [WARN ] hsdk-FileSystemPosix - Opening directory failed, error=kIOError - No such file or directory, directory_path='/data/user/0/com.here.hellomap/files/v1/FdSKs9s1eYIxEw5lKN2mGQ/ocm-map//ARCHIVES/17' I notice the "//" in the file path before the ARCHIVES folder...that's probably not helping it load cached files, and causing a blank map, but I don't know why it would be doing that. |
Thank you for the information but can you please confirm -
The logs that you have shared are WARN level logs and they are there for just information. In cases like this Error level logs are shown. |
** and 2024-06-14 07:46:21.502 11012-11200 DataRepository com.here.hellomap I [INFO ] DataRepository - GetBlobData not found in cache, hrn='hrn:here:data::olp-here:ocm', key='C72082C2ACD05740F0B00219C9A1C72F.128'
|
Thanks a lot, we are currently investigating the issue. |
I manged to reproduce the issue using an Android emulator with Emulated Performance Graphics: Hardware. It’s an Android emulator issue. There is a log indicated about OpenGL errors: And this is a known issue with the emulator, and it occurs not only on HERE SDK apps: Also I have checked different versions of Android Emulators: Please use Android Emulator (34.1.20) Stable version until Google fixes the issue: https://issuetracker.google.com/issues/345674553 |
Hi, Thanks for investigating and putting so much effort in. Looks like I'll have to put up with clearing the cache before every run for the time being as the location functionality in the Android Emulator is also broken for versions before 34.2.13 ... |
Hello team,
I've run into an issue with 4.18.4.0.109997 of the here SDK for Android, so I thought I would spin up your example app to see what I was doing wrong but found the issue there also.
Running the HelloMapKotlin example from Android Studio on an emulator, the map will only display on the first run. Launching the app more than once results in a blank map and a message in LogCat along the lines of "Unable to open '/data/app/~~FN1KmexT1NahqDEMDdnGrA==/com.here.hellomap-5F3elBTtwt5POHdMiZhrUA==/base.dm': No such file or directory
"
EDIT
It looks like the crux of the issue is that the map is cached on first run but the map tiles can't be read on subsequent runs:
[WARN ] hsdk-FileSystemPosix - Opening directory failed, error=kIOError - No such file or directory, directory_path='/data/user/0/com.here.hellomap/files/v1/FdSKs9s1eYIxEw5lKN2mGQ/ocm-map//ARCHIVES/5e'
Any ideas would be appreciated.
The error does not occur on a real device, only the emulator.
Are there extra steps required to run the examples on an emulator, without having to uninstall before every run?
Thanks :)
The text was updated successfully, but these errors were encountered: