Skip to content

std::__ndk1::condition_variable::notify_one() #3975

@grab-liyanjin

Description

@grab-liyanjin

MapLibre Android Version

12.1.0

Android SDK Version

Android 15

Device

IQOO Z10 Turbo Pro

What happened?

Android native crash

Steps to reproduce

No way to reproduce, only happens in PROD environment

Renderer

No response

Relevant log output

Thread:
#00 pc 0xd0384 libc.so (BuildId: 149570c5a3f4ce308df2510a18d4b568)
#01 pc 0xb8f28 libc.so (BuildId: 149570c5a3f4ce308df2510a18d4b568)
#02 pc 0xbe547c libmaplibre.so (std::__ndk1::condition_variable::notify_one() [pthread.h:115]) (BuildId: dea72d96a89fe1d6989fdcf254077afb03030067)
#03 pc 0x93ed24 libmaplibre.so (mbgl::ThreadedSchedulerBase::schedule(mbgl::util::SimpleIdentity, std::__ndk1::function<void ()>&&) [thread_pool.cpp:142]) (BuildId: dea72d96a89fe1d6989fdcf254077afb03030067)
#04 pc 0x640398 libmaplibre.so (mbgl::Mailbox::scheduleToRecieve(std::__ndk1::optional<mbgl::util::SimpleIdentity> const&) [mailbox.cpp:163]) (BuildId: dea72d96a89fe1d6989fdcf254077afb03030067)
#05 pc 0x640764 libmaplibre.so (mbgl::Mailbox::push(std::__ndk1::unique_ptr<mbgl::Message, std::__ndk1::default_delete<mbgl::Message> >) [mailbox.cpp:109]) (BuildId: dea72d96a89fe1d6989fdcf254077afb03030067)
#06 pc 0x628e8c libmaplibre.so (auto mbgl::ActorRef<mbgl::android::FeatureConverter>::ask<void (mbgl::android::FeatureConverter::*)(std::__ndk1::shared_ptr<jni::Unique<jni::Object<mbgl::android::geojson::Feature>, jni::EnvAttachingDeleter<&_JNIEnv::DeleteGlobalRef> > >, mbgl::ActorRef<std::__ndk1::function<void (std::__ndk1::shared_ptr<mbgl::style::GeoJSONData>)> >), std::__ndk1::shared_ptr<jni::Unique<jni::Object<mbgl::android::geojson::Feature>, jni::EnvAttachingDeleter<&_JNIEnv::DeleteGlobalRef> > > const&, mbgl::ActorRef<std::__ndk1::function<void (std::__ndk1::shared_ptr<mbgl::style::GeoJSONData>)> >&>(void (mbgl::android::FeatureConverter::*)(std::__ndk1::shared_ptr<jni::Unique<jni::Object<mbgl::android::geojson::Feature>, jni::EnvAttachingDeleter<&_JNIEnv::DeleteGlobalRef> > >, mbgl::ActorRef<std::__ndk1::function<void (std::__ndk1::shared_ptr<mbgl::style::GeoJSONData>)> >), std::__ndk1::shared_ptr<jni::Unique<jni::Object<mbgl::android::geojson::Feature>, jni::EnvAttachingDeleter<&_JNIEnv::DeleteGlobalRef> > > const&, mbgl::ActorRef<std::__ndk1::function<void (std::__ndk1::shared_ptr<mbgl::style::GeoJSONData>)> >&) const [actor_ref.hpp:47]) (BuildId: dea72d96a89fe1d6989fdcf254077afb03030067)
#07 pc 0x628cdc libmaplibre.so (std::__ndk1::__invoke<(lambda at /home/runner/work/maplibre-native/maplibre-native/platform/android/MapLibreAndroid/src/cpp/style/sources/geojson_source.cpp:238:37) &, mbgl::ActorRef<std::__ndk1::function<void (std::__ndk1::shared_ptr<mbgl::style::GeoJSONData>)> > > [geojson_source.cpp:239]) (BuildId: dea72d96a89fe1d6989fdcf254077afb03030067)
#08 pc 0x629d88 libmaplibre.so (std::__ndk1::__function::__func<mbgl::android::GeoJSONSource::setAsync(std::__ndk1::function<void (mbgl::ActorRef<std::__ndk1::function<void (std::__ndk1::shared_ptr<mbgl::style::GeoJSONData>)> >)>)::$_0, std::__ndk1::allocator<mbgl::android::GeoJSONSource::setAsync(std::__ndk1::function<void (mbgl::ActorRef<std::__ndk1::function<void (std::__ndk1::shared_ptr<mbgl::style::GeoJSONData>)> >)>)::$_0>, void (std::__ndk1::shared_ptr<mbgl::style::GeoJSONData>)>::operator()(std::__ndk1::shared_ptr<mbgl::style::GeoJSONData>&&) [function.h:428]) (BuildId: dea72d96a89fe1d6989fdcf254077afb03030067)
#09 pc 0x62c12c libmaplibre.so (mbgl::MessageImpl<std::__ndk1::function<void (std::__ndk1::shared_ptr<mbgl::style::GeoJSONData>)>, void (std::__ndk1::function<void (std::__ndk1::shared_ptr<mbgl::style::GeoJSONData>)>::*)(std::__ndk1::shared_ptr<mbgl::style::GeoJSONData>) const, std::__ndk1::tuple<std::__ndk1::shared_ptr<mbgl::style::GeoJSONData> > >::operator()() [message.hpp:29]) (BuildId: dea72d96a89fe1d6989fdcf254077afb03030067)
#10 pc 0x64091c libmaplibre.so (mbgl::Mailbox::receive() [mailbox.cpp:145]) (BuildId: dea72d96a89fe1d6989fdcf254077afb03030067)
#11 pc 0x64157c libmaplibre.so (std::__ndk1::__function::__func<mbgl::Mailbox::scheduleToRecieve(std::__ndk1::optional<mbgl::util::SimpleIdentity> const&)::$_0, std::__ndk1::allocator<mbgl::Mailbox::scheduleToRecieve(std::__ndk1::optional<mbgl::util::SimpleIdentity> const&)::$_0>, void ()>::operator()() [mailbox.cpp:159]) (BuildId: dea72d96a89fe1d6989fdcf254077afb03030067)
#12 pc 0x97c37c libmaplibre.so (mbgl::WorkTaskImpl<std::__ndk1::function<void ()>, std::__ndk1::tuple<> >::operator()() [function.h:428]) (BuildId: dea72d96a89fe1d6989fdcf254077afb03030067)
#13 pc 0x97b778 libmaplibre.so (mbgl::util::RunLoop::process() [run_loop.hpp:132]) (BuildId: dea72d96a89fe1d6989fdcf254077afb03030067)
#14 pc 0x97a418 libmaplibre.so ((anonymous namespace)::looperCallbackDefault(int, int, void*) [run_loop.cpp:282]) (BuildId: dea72d96a89fe1d6989fdcf254077afb03030067)
#15 pc 0x1214c libutils.so (BuildId: a903a3277aae926002993193f4c30d35)
#16 pc 0x11c14 libutils.so (BuildId: a903a3277aae926002993193f4c30d35)
#17 pc 0x195914 libandroid_runtime.so (BuildId: 8d34eac7e71a7564a70c02d299526f63)
#18 pc 0x8d5c00 boot-framework.oat (BuildId: f7de1ca73b097889c165d4ed98887370e2c8495d)
#19 pc 0x8d2000 boot-framework.oat (BuildId: f7de1ca73b097889c165d4ed98887370e2c8495d)
#20 pc 0x8d1f1c boot-framework.oat (BuildId: f7de1ca73b097889c165d4ed98887370e2c8495d)
#21 pc 0x4f0638 boot-framework.oat (BuildId: f7de1ca73b097889c165d4ed98887370e2c8495d)
#22 pc 0xc1046c libart.so (BuildId: 44f426f69d598df2264efa5890b5b18f)
#23 pc 0x210a40 libart.so (BuildId: 44f426f69d598df2264efa5890b5b18f)
#24 pc 0x47b560 libart.so (BuildId: 44f426f69d598df2264efa5890b5b18f)
#25 pc 0xe33940 boot-framework.oat (BuildId: f7de1ca73b097889c165d4ed98887370e2c8495d)
#26 pc 0xe3f974 boot-framework.oat (BuildId: f7de1ca73b097889c165d4ed98887370e2c8495d)
#27 pc 0xe2f740 boot-framework.oat (BuildId: f7de1ca73b097889c165d4ed98887370e2c8495d)
#28 pc 0xe3c1e0 boot-framework.oat (BuildId: f7de1ca73b097889c165d4ed98887370e2c8495d)
#29 pc 0x525de libart.so (BuildId: 44f426f69d598df2264efa5890b5b18f)
#30 pc 0xc10464 libart.so (BuildId: 44f426f69d598df2264efa5890b5b18f)
#31 pc 0xc09f34 libart.so (BuildId: 44f426f69d598df2264efa5890b5b18f)
#32 pc 0x210a40 libart.so (BuildId: 44f426f69d598df2264efa5890b5b18f)
#33 pc 0x47b560 libart.so (BuildId: 44f426f69d598df2264efa5890b5b18f)
#34 pc 0x525de libart.so (BuildId: 44f426f69d598df2264efa5890b5b18f)
#35 pc 0x54a3c libart.so (BuildId: 44f426f69d598df2264efa5890b5b18f)
#36 pc 0x525de libart.so (BuildId: 44f426f69d598df2264efa5890b5b18f)
#37 pc 0x7f112 libart.so (BuildId: 44f426f69d598df2264efa5890b5b18f)
#38 pc 0x85779 libart.so (BuildId: 44f426f69d598df2264efa5890b5b18f)
#39 pc 0x7337f libandroid_runtime.so (BuildId: 8d34eac7e71a7564a70c02d299526f63)
#40 pc 0x259f4c libandroid_runtime.so (BuildId: 8d34eac7e71a7564a70c02d299526f63)
#41 pc 0x28f27c libandroid_runtime.so (BuildId: 8d34eac7e71a7564a70c02d299526f63)
#42 pc 0x707c libnativehelper.so (BuildId: 6d56e612151861326427b79a925a7713)
#43 pc 0x17b1 app_process64 (BuildId: 23512dab93eb4f7ab46039e607de026f)
#44 pc 0x78f25 libandroid_runtime.so (BuildId: 8d34eac7e71a7564a70c02d299526f63)
#45 pc 0x17b1 app_process64 (BuildId: 23512dab93eb4f7ab46039e607de026f)
#46 pc 0x404c app_process64 (BuildId: 23512dab93eb4f7ab46039e607de026f)
#47 pc 0x404c app_process64 (BuildId: 23512dab93eb4f7ab46039e607de026f)
#48 pc 0x400c app_process64 (BuildId: 23512dab93eb4f7ab46039e607de026f)
#49 pc 0x26e2c4 libandroid_runtime.so (BuildId: 8d34eac7e71a7564a70c02d299526f63)
#50 pc 0x404c app_process64 (BuildId: 23512dab93eb4f7ab46039e607de026f)

Additional context

The crashlytics also output the information: Crashed: Pure virtual function called!
Same as the issue #3967

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions