Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

[android] Bring back OkHTTP #2857

Closed
wants to merge 1 commit into from
Closed

[android] Bring back OkHTTP #2857

wants to merge 1 commit into from

Conversation

ljbade
Copy link
Contributor

@ljbade ljbade commented Oct 29, 2015

Fixes #2856

@ljbade ljbade added in progress Android Mapbox Maps SDK for Android offline labels Oct 29, 2015
@ljbade ljbade added this to the android-v2.3.0 milestone Oct 29, 2015
@ljbade
Copy link
Contributor Author

ljbade commented Oct 29, 2015

@bleege @tobrun Can you give this branch a good stress test. Specifically looking to reproduce #2400

@tobrun
Copy link
Member

tobrun commented Oct 29, 2015

Crash with:

pid: 6260, tid: 8632, name: OkHttp https:// >>> com.mapbox.mapboxgl.testapp <<<
signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x3c

Full stacktrace

@tobrun
Copy link
Member

tobrun commented Oct 29, 2015

Crash with:

Fatal signal 11 (SIGSEGV), code 1, fault addr 0x3c in tid 9178 (nJ_UO_MMZKFEaiA)

Full stacktrace

Update: I'm able to reproduce this crash constantly by following these steps:

  • open a feature activity
  • scroll heavily
  • return to MainActivity before loading stops

@ljbade
Copy link
Contributor Author

ljbade commented Oct 29, 2015

Thanks @tobrun was able to repro it easily.

Here is the ndk-stack log:

********** Crash dump: **********
Build fingerprint: 'samsung/zerofltedv/zeroflte:5.1.1/LMY47X/G920IDVU3DOJ6:user/release-keys'
pid: 14778, tid: 15013, name: OkHttp https://  >>> com.mapbox.mapboxgl.testapp <<<
signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x3c
Stack frame #00 pc 00360cf8  /data/app/com.mapbox.mapboxgl.testapp-2/lib/arm/libmapbox-gl.so (uv_async_send+8): Routine uv_async_send at /home/travis/build/mapbox/mason/mason_packages/.build/libuv-1.7.5/src/unix/async.c:62
Stack frame #01 pc 00205868  /data/app/com.mapbox.mapboxgl.testapp-2/lib/arm/libmapbox-gl.so (mbgl::HTTPAndroidRequest::onResponse(int, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::basic_string<char, std::_: Routine uv::async::send() at /home/leith/mb/mapbox-gl-native/build/android-arm-v7/../../src/mbgl/util/uv_detail.hpp:124
Stack frame #02 pc 002033e0  /data/app/com.mapbox.mapboxgl.testapp-2/lib/arm/libmapbox-gl.so (mbgl::nativeOnResponse(_JNIEnv*, _jobject*, long long, int, _jstring*, _jstring*, _jstring*, _jstring*, _jstring*, _jbyteArray*)+1620): Routine mbgl::nativeOnResponse(_JNIEnv*, _jobject*, long long, int, _jstring*, _jstring*, _jstring*, _jstring*, _jstring*, _jbyteArray*) at /home/leith/mb/mapbox-gl-native/build/android-arm-v7/../../platform/android/http_request_android.cpp:359 (discriminator 6)
Stack frame #03 pc 002798b7  /data/dalvik-cache/arm/data@[email protected]@[email protected]

@ljbade
Copy link
Contributor Author

ljbade commented Oct 29, 2015

Looks like we still have #2400

@zugaldia
Copy link
Member

zugaldia commented Nov 3, 2015

I can still reproduce the crash as @tobrun describes here: #2857 (comment)

Anecdotally, monkey fails to create a crash no matter how many times I try (adb shell monkey -p com.mapbox.mapboxgl.testapp -v 1000)

@tobrun
Copy link
Member

tobrun commented Nov 3, 2015

@zugaldia is monkey able to scroll/zoom/pan?
To make it easier to crash: Maybe start with an already zoomed in map? The problem occurs with fetching data, if you are on highest zoomlevel and pan you won't fetch any data.

@ljbade
Copy link
Contributor Author

ljbade commented Nov 3, 2015

Hmm monkey, going to have to look that one up.

@zugaldia did you see the PR #2905

@zugaldia
Copy link
Member

zugaldia commented Nov 4, 2015

@tobrun I believe so. It's what monkey calls a "motion event" (motion events consist of a down event somewhere on the screen, a series of pseudo-random movements, and an up event). You can add more with the --pct-motion <percent> flag.

@ljbade On it. Also, you can just start with a plain adb shell monkey -p com.mapbox.mapboxgl.testapp -v 1000.

@ljbade
Copy link
Contributor Author

ljbade commented Nov 10, 2015

Closing as this was replaced by #2857

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Android Mapbox Maps SDK for Android offline
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants