This repository was archived by the owner on Aug 8, 2023. It is now read-only.
Repository navigation
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
Switching style crash #8273
Copy link
Copy link
Closed
Milestone
Description
When trying to reproduce #8200 with f1e3c32, I was able to produce a random crash.
********** Crash dump: **********
Build fingerprint: 'google/mantaray/manta:5.1.1/LMY49H/2554704:user/release-keys'
pid: 11223, tid: 11223, name: pboxsdk.testapp >>> com.mapbox.mapboxsdk.testapp <<<
signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x20
Stack frame #00 pc 000c3adc /data/app/com.mapbox.mapboxsdk.testapp-1/lib/arm/libmapbox-gl.so: Routine std::__ndk1::__bucket_list_deallocator<std::__ndk1::allocator<std::__ndk1::__hash_node<std::__ndk1::__hash_value_type<mbgl::style::ClassID, mbgl::style::PropertyValue<mbgl::style::CirclePitchScaleType> >, void*>*> >::size() const at /Users/Nurbot/mapbox-gl-native/mason_packages/osx-x86_64/android-ndk/arm-v7-9-r13b/bin/../lib/gcc/arm-linux-androideabi/4.9.x/../../../../include/c++/4.9.x/__hash_table:838
Stack frame #01 pc 000ead73 /data/app/com.mapbox.mapboxsdk.testapp-1/lib/arm/libmapbox-gl.so: Routine unsigned int std::__ndk1::__hash_table<unsigned int, std::__ndk1::hash<unsigned int>, std::__ndk1::equal_to<unsigned int>, std::__ndk1::allocator<unsigned int> >::__erase_unique<unsigned int>(unsigned int const&) at /Users/Nurbot/mapbox-gl-native/mason_packages/osx-x86_64/android-ndk/arm-v7-9-r13b/bin/../lib/gcc/arm-linux-androideabi/4.9.x/../../../../include/c++/4.9.x/__hash_table:2366 (discriminator 1)
Stack frame #02 pc 000e9ea3 /data/app/com.mapbox.mapboxsdk.testapp-1/lib/arm/libmapbox-gl.so: Routine std::__ndk1::unordered_set<unsigned int, std::__ndk1::hash<unsigned int>, std::__ndk1::equal_to<unsigned int>, std::__ndk1::allocator<unsigned int> >::erase(unsigned int const&) at /Users/Nurbot/mapbox-gl-native/mason_packages/osx-x86_64/android-ndk/arm-v7-9-r13b/bin/../lib/gcc/arm-linux-androideabi/4.9.x/../../../../include/c++/4.9.x/unordered_set:545
Stack frame #03 pc 001d458f /data/app/com.mapbox.mapboxsdk.testapp-1/lib/arm/libmapbox-gl.so: Routine ~GeometryTileWorker at /Users/Nurbot/mapbox-gl-native/src/mbgl/tile/geometry_tile_worker.cpp:40
Stack frame #04 pc 001d18d5 /data/app/com.mapbox.mapboxsdk.testapp-1/lib/arm/libmapbox-gl.so: Routine ~Actor at /Users/Nurbot/mapbox-gl-native/build/android-arm-v7-9/Debug/../../../src/mbgl/actor/actor.hpp:57
Stack frame #05 pc 001d189b /data/app/com.mapbox.mapboxsdk.testapp-1/lib/arm/libmapbox-gl.so: Routine ~GeometryTile at /Users/Nurbot/mapbox-gl-native/src/mbgl/tile/geometry_tile.cpp:38 (discriminator 7)
Stack frame #06 pc 001d10d1 /data/app/com.mapbox.mapboxsdk.testapp-1/lib/arm/libmapbox-gl.so: Routine ~GeoJSONTile at /Users/Nurbot/mapbox-gl-native/build/android-arm-v7-9/Debug/../../../src/mbgl/tile/geojson_tile.hpp:12
Stack frame #07 pc 000eeaa9 /data/app/com.mapbox.mapboxsdk.testapp-1/lib/arm/libmapbox-gl.so: Routine std::__ndk1::default_delete<mbgl::Tile>::operator()(mbgl::Tile*) const at /Users/Nurbot/mapbox-gl-native/mason_packages/osx-x86_64/android-ndk/arm-v7-9-r13b/bin/../lib/gcc/arm-linux-androideabi/4.9.x/../../../../include/c++/4.9.x/memory:2540 (discriminator 1)
Stack frame #08 pc 000b8aa5 /data/app/com.mapbox.mapboxsdk.testapp-1/lib/arm/libmapbox-gl.so: Routine mbgl::style::Source::Impl::removeStaleTiles(std::__ndk1::set<mbgl::OverscaledTileID, std::__ndk1::less<mbgl::OverscaledTileID>, std::__ndk1::allocator<mbgl::OverscaledTileID> > const&) at /Users/Nurbot/mapbox-gl-native/src/mbgl/style/source_impl.cpp:171
Stack frame #09 pc 000b88d9 /data/app/com.mapbox.mapboxsdk.testapp-1/lib/arm/libmapbox-gl.so: Routine mbgl::style::Source::Impl::updateTiles(mbgl::style::UpdateParameters const&) at /Users/Nurbot/mapbox-gl-native/src/mbgl/style/source_impl.cpp:151
Stack frame #10 pc 000bc345 /data/app/com.mapbox.mapboxsdk.testapp-1/lib/arm/libmapbox-gl.so: Routine mbgl::style::Style::updateTiles(mbgl::style::UpdateParameters const&) at /Users/Nurbot/mapbox-gl-native/src/mbgl/style/style.cpp:269 (discriminator 2)
Stack frame #11 pc 0009b7a7 /data/app/com.mapbox.mapboxsdk.testapp-1/lib/arm/libmapbox-gl.so: Routine mbgl::Map::Impl::render(mbgl::View&) at /Users/Nurbot/mapbox-gl-native/src/mbgl/map/map.cpp:258 (discriminator 1)
Stack frame #12 pc 000709d3 /data/app/com.mapbox.mapboxsdk.testapp-1/lib/arm/libmapbox-gl.so: Routine mbgl::android::NativeMapView::render(_JNIEnv&) at /Users/Nurbot/mapbox-gl-native/platform/android/src/native_map_view.cpp:211
Stack frame #13 pc 0007c4f7 /data/app/com.mapbox.mapboxsdk.testapp-1/lib/arm/libmapbox-gl.so: Routine operator()<jni::jobject *> at /Users/Nurbot/mapbox-gl-native/build/android-arm-v7-9/Debug/../../../mason_packages/headers/jni.hpp/3.0.0/include/jni/native_method.hpp:59
Stack frame #14 pc 001793f7 /data/dalvik-cache/arm/data@[email protected]1@[email protected]
Activity
tobrun commentedon Mar 3, 2017
I was able to find a way to reproduce this on demand:
Code in #8274.
ivovandongen commentedon Mar 7, 2017
Reproducing this locally led to:
Which indicates that the problem is that the
Sourceholds references to theGeometryTilewhich holds a reference to the old style. Clearing theSourcethroughinvalidateTiles()fixes this.