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

Random Crash on start MapBox: Mapbox was compiled with optimization - stepping may behave oddly; variables may not be available. #192

Closed
pingus-nikalex opened this issue Mar 4, 2020 · 5 comments
Labels
archived bug Something isn't working status: triage

Comments

@pingus-nikalex
Copy link

pingus-nikalex commented Mar 4, 2020

Steps to reproduce

  1. Start Application with MapBox View

Actual behavior

Application crashed with message
Mapbox was compiled with optimization - stepping may behave oddly; variables may not be available.

Configuration

**Mapbox SDK versions:

  • Mapbox-iOS-SDK (5.5.1)
    • MapboxCoreNavigation (0.39.0):
      • MapboxDirections.swift (~> 0.30.0)
      • MapboxMobileEvents (~> 0.9.5)
      • MapboxNavigationNative (~> 6.2.1)
      • Turf (~> 0.3.0)
    • MapboxDirections.swift (0.30.0):
      • Polyline (~> 4.2)
    • MapboxMobileEvents (0.9.5)
    • MapboxNavigation (0.39.0):
      • Mapbox-iOS-SDK (= 5.5.1)
      • MapboxCoreNavigation (= 0.39.0)
      • MapboxSpeech (~> 0.1.0)
      • Solar (~> 2.1)
    • MapboxNavigationNative (6.2.1)
    • MapboxSpeech (0.1.1)

**iOS/macOS versions:
13.3.1
**Device/simulator models:
iPhone XS Max
**Xcode version:
11.3.1

Crashed thread:
com.mapbox.mbgl.DefaultFileSource (10)

Stack:

#0	0x0000000104c0b058 in mbgl::Mailbox::push(std::__1::unique_ptr<mbgl::Message, std::__1::default_delete<mbgl::Message> >) at /Users/distiller/project/vendor/mapbox-gl-native/src/mbgl/actor/mailbox.cpp:60
#1	0x0000000104be4564 in void mbgl::ActorRef<mbgl::FileSourceRequest>::invoke<void (mbgl::FileSourceRequest::*)(mbgl::Response const&), mbgl::Response const&>(void (mbgl::FileSourceRequest::*)(mbgl::Response const&), mbgl::Response const&) const at /Users/distiller/project/vendor/mapbox-gl-native/include/mbgl/actor/actor_ref.hpp:34
#2	0x0000000104be185c in mbgl::DefaultFileSource::Impl::request(mbgl::AsyncRequest*, mbgl::Resource, mbgl::ActorRef<mbgl::FileSourceRequest>)::'lambda'(mbgl::Response const&)::operator()(mbgl::Response const&) const [inlined] at /Users/distiller/project/vendor/mapbox-gl-native/platform/default/src/mbgl/storage/default_file_source.cpp:108
#3	0x0000000104be1848 in mbgl::DefaultFileSource::Impl::request(mbgl::AsyncRequest*, mbgl::Resource, mbgl::ActorRef<mbgl::FileSourceRequest>) at /Users/distiller/project/vendor/mapbox-gl-native/platform/default/src/mbgl/storage/default_file_source.cpp:147
#4	0x0000000104be7b94 in void mbgl::MessageImpl<mbgl::DefaultFileSource::Impl, void (mbgl::DefaultFileSource::Impl::*)(mbgl::AsyncRequest*, mbgl::Resource, mbgl::ActorRef<mbgl::FileSourceRequest>), std::__1::tuple<mbgl::FileSourceRequest*, mbgl::Resource, mbgl::ActorRef<mbgl::FileSourceRequest> > >::invoke<0ul, 1ul, 2ul>(std::__1::integer_sequence<unsigned long, 0ul, 1ul, 2ul>) at /Users/distiller/project/vendor/mapbox-gl-native/include/mbgl/actor/message.hpp:34
#5	0x0000000104c0b250 in mbgl::Mailbox::receive() at /Users/distiller/project/vendor/mapbox-gl-native/src/mbgl/actor/mailbox.cpp:84
#6	0x0000000104c0bd60 in mbgl::Mailbox::maybeReceive(std::__1::weak_ptr<mbgl::Mailbox>) [inlined] at /Users/distiller/project/vendor/mapbox-gl-native/src/mbgl/actor/mailbox.cpp:94
#7	0x0000000104c0bd44 in mbgl::Mailbox::makeClosure(std::__1::weak_ptr<mbgl::Mailbox>)::$_0::operator()() const [inlined] at /Users/distiller/project/vendor/mapbox-gl-native/src/mbgl/actor/mailbox.cpp:100
#8	0x0000000104c0bd24 in decltype(std::__1::forward<mbgl::Mailbox::makeClosure(std::__1::weak_ptr<mbgl::Mailbox>)::$_0&>(fp)()) std::__1::__invoke<mbgl::Mailbox::makeClosure(std::__1::weak_ptr<mbgl::Mailbox>)::$_0&>(mbgl::Mailbox::makeClosure(std::__1::weak_ptr<mbgl::Mailbox>)::$_0&) [inlined] at /Applications/Xcode-11.GM.Seed.2.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/type_traits:4361
#9	0x0000000104c0bd24 in void std::__1::__invoke_void_return_wrapper<void>::__call<mbgl::Mailbox::makeClosure(std::__1::weak_ptr<mbgl::Mailbox>)::$_0&>(mbgl::Mailbox::makeClosure(std::__1::weak_ptr<mbgl::Mailbox>)::$_0&) [inlined] at /Applications/Xcode-11.GM.Seed.2.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/__functional_base:349
#10	0x0000000104c0bd24 in std::__1::__function::__alloc_func<mbgl::Mailbox::makeClosure(std::__1::weak_ptr<mbgl::Mailbox>)::$_0, std::__1::allocator<mbgl::Mailbox::makeClosure(std::__1::weak_ptr<mbgl::Mailbox>)::$_0>, void ()>::operator()() [inlined] at /Applications/Xcode-11.GM.Seed.2.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/functional:1527
#11	0x0000000104c0bd24 in std::__1::__function::__func<mbgl::Mailbox::makeClosure(std::__1::weak_ptr<mbgl::Mailbox>)::$_0, std::__1::allocator<mbgl::Mailbox::makeClosure(std::__1::weak_ptr<mbgl::Mailbox>)::$_0>, void ()>::operator()() at /Applications/Xcode-11.GM.Seed.2.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/functional:1651
#12	0x0000000104bd9364 in std::__1::__function::__value_func<void ()>::operator()() const [inlined] at /Applications/Xcode-11.GM.Seed.2.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/functional:1799
#13	0x0000000104bd9350 in std::__1::function<void ()>::operator()() const [inlined] at /Applications/Xcode-11.GM.Seed.2.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/functional:2347
#14	0x0000000104bd9350 in void mbgl::WorkTaskImpl<std::__1::function<void ()>, std::__1::tuple<> >::invoke<>(std::__1::integer_sequence<unsigned long>) [inlined] at /Users/distiller/project/vendor/mapbox-gl-native/include/mbgl/util/work_task_impl.hpp:43
#15	0x0000000104bd9350 in mbgl::WorkTaskImpl<std::__1::function<void ()>, std::__1::tuple<> >::operator()() at /Users/distiller/project/vendor/mapbox-gl-native/include/mbgl/util/work_task_impl.hpp:23
#16	0x0000000104bd86b4 in mbgl::util::RunLoop::process() at /Users/distiller/project/vendor/mapbox-gl-native/include/mbgl/util/run_loop.hpp:114
#17	0x000000018c6f8108 in __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ ()
#18	0x000000018c6f805c in __CFRunLoopDoSource0 ()
#19	0x000000018c6f77c8 in __CFRunLoopDoSources0 ()
#20	0x000000018c6f2694 in __CFRunLoopRun ()
#21	0x000000018c6f1f40 in CFRunLoopRunSpecific ()
#22	0x000000018c6f2c70 in CFRunLoopRun ()
#23	0x0000000104be6340 in mbgl::util::Thread<mbgl::DefaultFileSource::Impl>::Thread<std::__1::shared_ptr<mbgl::FileSource> const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&>(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::shared_ptr<mbgl::FileSource> const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)::'lambda'()::operator()() at /Users/distiller/project/vendor/mapbox-gl-native/include/mbgl/util/thread.hpp:69
#24	0x0000000104be61c4 in decltype(std::__1::forward<mbgl::util::Thread<mbgl::DefaultFileSource::Impl>::Thread<std::__1::shared_ptr<mbgl::FileSource> const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&>(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::shared_ptr<mbgl::FileSource> const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)::'lambda'()>(fp)()) std::__1::__invoke<mbgl::util::Thread<mbgl::DefaultFileSource::Impl>::Thread<std::__1::shared_ptr<mbgl::FileSource> const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&>(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::shared_ptr<mbgl::FileSource> const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)::'lambda'()>(mbgl::util::Thread<mbgl::DefaultFileSource::Impl>::Thread<std::__1::shared_ptr<mbgl::FileSource> const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&>(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::shared_ptr<mbgl::FileSource> const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)::'lambda'()&&) [inlined] at /Applications/Xcode-11.GM.Seed.2.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/type_traits:4361
#25	0x0000000104be61c0 in void std::__1::__thread_execute<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct> >, mbgl::util::Thread<mbgl::DefaultFileSource::Impl>::Thread<std::__1::shared_ptr<mbgl::FileSource> const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&>(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::shared_ptr<mbgl::FileSource> const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)::'lambda'()>(std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct> >, mbgl::util::Thread<mbgl::DefaultFileSource::Impl>::Thread<std::__1::shared_ptr<mbgl::FileSource> const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&>(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::shared_ptr<mbgl::FileSource> const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)::'lambda'()>&, std::__1::__tuple_indices<>) [inlined] at /Applications/Xcode-11.GM.Seed.2.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/thread:342
#26	0x0000000104be61bc in void* std::__1::__thread_proxy<std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct> >, mbgl::util::Thread<mbgl::DefaultFileSource::Impl>::Thread<std::__1::shared_ptr<mbgl::FileSource> const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&>(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::shared_ptr<mbgl::FileSource> const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)::'lambda'()> >(void*) at /Applications/Xcode-11.GM.Seed.2.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/thread:352
@pingus-nikalex pingus-nikalex changed the title Random Crash on start mapbox Random Crash on start MapBox: Mapbox was compiled with optimization - stepping may behave oddly; variables may not be available. Mar 4, 2020
@julianrex
Copy link
Contributor

Thanks for the report @pingus-nikalex - can you supply the whole crash report please?

@pozdnyakov this looks like a gl-native issue, rather than platform specific - any sense what might be happening here?

@julianrex julianrex added the bug Something isn't working label Mar 5, 2020
@markrxc
Copy link

markrxc commented Mar 6, 2020

We are also seeing this problem - it's new to this release and crashing our production app that's been on Mapbox for 3 years = Severity 1!

Mapbox was compiled with optimization - stepping may behave oddly; variables may not be available.
Message from debugger: Terminated due to memory issue

I'll get a crash report uploaded, but want to make a couple comments to see if this can be resolved quickly:

  • It crashes within 1 minute of launch as we add a polyline to track the users location - so .follow is on and we are adding a simple polyline to the map. Super basic usage.
  • IF we start tracking and perform any interaction with the map (quickly zoom, for example), it doesn't crash. So, possibly related to the default map state (no user interaction)
  • I think the problem is a race condition that leads to an out of memory condition. I think the error "compiled with optimization" is actually related to the fact that we have 'break on exception' turned on and it can't access the failure in your production-built library.

@knov
Copy link
Contributor

knov commented Mar 13, 2020

@pozdnyakov any thoughts here?

@stale stale bot added the archived label Oct 4, 2020
@stale
Copy link

stale bot commented Oct 4, 2020

This issue has been automatically detected as stale because it has not had recent activity and will be archived. Thank you for your contributions.

@stale stale bot closed this as completed Oct 4, 2020
@SalihZinaty
Copy link

any news? i got the same issue here in rc9 with react native 0.63.3

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
archived bug Something isn't working status: triage
Projects
None yet
Development

No branches or pull requests

5 participants