-
Notifications
You must be signed in to change notification settings - Fork 240
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
Crash in nativeOnUrlComplete with 0.9.0 - 0.9.6 #1772
Comments
I am happy to see that the development of tangram-es gained some momentum again and I would love to upgrade to 0.9.6, but I am stuck on 0.8.1 because of this issue here. IIRC it happened quite often. |
@westnordost Do you mean that this crash does not occur on version 0.8.1 but does occur on higher versions? I'd love to finally get to the bottom of this. |
I also did some refactor to android network handling which are not released yet, we should try these changes also, though if there is a race in core cpp side then it will be still present. |
Well, it doesn't happen with the latest 0.8 version but does with 0.9.0. I didn't try any later versions because it hasn't been announced that this was fixed. |
Will see if I can get to run streetcomplete with a debug version of tangram to get a proper native stack trace. |
Any luck with this? IIRC I never experienced the crash myself but only saw it on the Google Play Console. If nothing turns up, I might just use the newest tangram version for the next beta release and see if beta-people are still experiencing the crash. (ETA: 2 weeks) |
The change to move the suspect condition variable did get merged into master: cfb25f0 So it's possible that this is fixed in the latest release. However, we haven't been able to reproduce your crash either :\ |
I got this crash right now with 0.9.6 while debugging. I did not really do anything (with the map), iirc I did not even move it when the crash happened:
|
I had another shot to this on Though I learned a few things here which might help everyone :D.
|
Will do and report back! |
Hmm sorry, I did not work with NDK before, what do you mean with
? So I built it, and I got the By the way, I was completely flabbergasted to see that it compiles, out of the box, with no additional software or configuration required on Windows. Never had that before for a C++ application, cool! Also, it is funny to watch, because during build, a cascade of console windows pops up and vanishes right after several times ;-) |
Nevermind! |
I have been trying several hours to reproduce this now with a debugable tangram-es version but to no avail. To be honest, also before plugging in the debugable tangram-es, I haven't been experiencing that crash for quite some while. It seems as if the crash only happened the days after migrating from 0.8.1 to 0.9.6. Perhaps this is not coincidence: Is it possible that this is actually a migration issue? I.e. a caching data format changed so very slightly or something? |
I released now a new StreetComplete beta with the new 0.9.6 built in one day ago. I got this crash report now:
But this is probably not that much of a help, is it? Is there any chance that I can somehow include somethiing in a beta version of StreetComplete to get a proper full stacktrace of native code? Also, since I seem to be the only user of tangram-es to report this problem, maybe it is only reproducible with the vector tile server I use because of an oddity there(?) |
Hi @westnordost I would say if you can get a
|
I should have checked this before, but we did have a major URL handler change in 0.9.0: |
@tallytalwar Hmm this is only eligible when you have access to the device, so, the same as with simply running an APK with a debuggable |
@tallytalwar I got now this crash report from an Android 9 device, perhaps Google now built-in a better stack-tracing for native code?
|
HA that's cool, looks like a native stack trace of the Java runtime! |
@westnordost could you try if this change already resolves the issue? I'll dig into this further here |
@hjanetzek the problem is that I have never been able to reproduce this crash in a debug environment, it seems to happen very rarely. But if you maybe fixed it, you can maybe tell me under which circumstances it would be reproducible. |
By the way, StreetComplete v8 with the new tangram-es 0.9.6 is now public. I figured the crash happens rarely enough that it can be released. Only 12 times during the beta phase last week. |
It was definitely possible that the UrlCallback got called after the call to MapController.dispose(). Do you know at which points during runtime the crash happend? |
No |
I get no more crash reports when using the new version of tangram-es! |
The new beta of StreetComplete 4.0 is out and I can see in the Google Play console a few crashes in native code from tangram-es 0.9.0 that various people get.
The stacktrace I get looks like this:
The text was updated successfully, but these errors were encountered: