tangram-es icon indicating copy to clipboard operation
tangram-es copied to clipboard

Non-clickable quest markers in StreetComplete

Open wolfgang42 opened this issue 3 years ago • 1 comments

Follow-on from https://github.com/streetcomplete/StreetComplete/issues/2711, whence I was redirected here by the app developer.

StreetComplete uses Tangram-ES to show a map with clickable “quest markers”. On one device, I can't click on any of the quest markers, but everything else works—I can drag the map around, click on other UI elements, etc; just not open any quests. I have a phone with the same version of StreetComplete installed and working, so this is presumably some sort of device-specific bug. It's also been like this for more than a year now (I've just not bothered to report it), so it's not a recent regression in StreetComplete/Tangram-ES, either.

Debugging on StreetComplete told me that app's onSingleTapConfirmed is being called, but when it tries to find out from the map what is at those coordinates it seems that pickResult is always null. I also tried investigating pickLabel, but quickly ran into com.mapzen.tangram.NativeMap and was unable to step any further in the debugger.

Since this problem seems to be particular to my device, I'm happy to dig in with Android Studio and a debugger to figure out what the issue is. However, I've never done anything with native code on Android before and I’m not sure where to start with my investigation.

TO REPRODUCE THE ISSUE, FOLLOW THESE STEPS:

  1. Install StreetComplete from F-Droid (or probably other sources) - but only on the one device
  2. Scan for quests
  3. Try to tap a quest marker

RESULT:

Nothing happens.

EXPECTED RESULT:

The quest marker opens.

ENVIRONMENT:

  • What operating system and device did you produce this issue on? Verizon QTAQTZ tablet, running Android 5.1.1.
  • If you used a released version, what is the version number? App appears to be built with implementation("com.mapzen.tangram:tangram:0.16.1").

OTHER:

If you are able to record the log output from tangram-es, please attach it as a text file or share it using a site like https://hastebin.com/

Would be happy to try, where would I find docs on how to do that?

wolfgang42 avatar Jun 14 '21 03:06 wolfgang42

Hi, thanks for the detailed report! This is an odd issue for sure, especially because it seems to be particular to this device.

First, the tangram log messages will be in the logcat output from the app. It's possible that some useful information is printed in logcat when this issue occurs.

The next test that would be helpful is to try the same operation in the Tangram ES demo app. Since you already seem comfortable with Android Studio, here's a debug APK of the app: https://www.dropbox.com/s/25oiup9gl5w869g/tangram-demo-debug-2888511.apk?dl=0

Install the app on your tablet, run it, and try tapping on the labels and icons on the map. Let me know what you see and if possible please save the logcat output. Thank you!

matteblair avatar Jun 26 '21 21:06 matteblair