This repository has been archived by the owner on Aug 8, 2023. It is now read-only.
Crash when loading map for the first time when there's no intern #16149
Labels
archived
Archived because of inactivity
We are integrating MapBox iOS SDK in our app.
If in the first time the map view is opened and the map is loaded, there's no internet connection (offline mode), the app crashes.
Full Stack Trace:
* thread #1, queue = 'com.apple.main-thread', stop reason = signal SIGABRT frame #0: 0x000000018e87fd74 libsystem_kernel.dylib
__abort_with_payload + 8frame #1: 0x000000018e87c4d0 libsystem_kernel.dylib
abort_with_payload_wrapper_internal + 100 frame #2: 0x000000018e87c46c libsystem_kernel.dylib
abort_with_reason + 36frame #3: 0x000000018e2e7ea4 libobjc.A.dylib
_objc_fatalv(unsigned long long, unsigned long long, char const*, char*) + 112 frame #4: 0x000000018e2e7dfc libobjc.A.dylib
_objc_fatal(char const*, ...) + 44frame #5: 0x000000018e2f16a4 libobjc.A.dylib
rwlock_tt<false>::read() + 140 frame #6: 0x000000018e2f1424 libobjc.A.dylib
lookUpImpOrForward + 84frame #7: 0x000000018e2fc478 libobjc.A.dylib`_objc_msgSend_uncached + 56
MGLMapViewImpl::onDidFailLoadingMap(this=0x00000001702898d0, mapError=<unavailable>, what=<unavailable>) at MGLMapView+Impl.mm:69:5 [opt] frame #9: 0x0000000100d2707c Mapbox
mbgl::Map::Impl::onStyleError(this=0x0000000106092410, error=) at map_impl.cpp:111:14 [opt]frame clarify use of GLFW #10: 0x0000000100ef4680 Mapbox
std::__1::__function::__func<mbgl::style::Style::Impl::loadURL(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)::$_0, std::__1::allocator<mbgl::style::Style::Impl::loadURL(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)::$_0>, void (mbgl::Response)>::operator()(mbgl::Response&&) at style_impl.cpp:67:23 [opt] frame #11: 0x0000000100ef45d8 Mapbox
std::__1::__function::__func<mbgl::style::Style::Impl::loadURL(std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > const&)::$_0, std::__1::allocator<mbgl::style::Style::Impl::loadURL(std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > const&)::$_0>, void (mbgl::Response)>::operator()(mbgl::Response&&) [inlined] decltype(__f=, __args=)::$_0&>(fp)(std::__1::forwardmbgl::Response(fp0))) std::__1::__invoke<mbgl::style::Style::Impl::loadURL(std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > const&)::$_0&, mbgl::Response>(mbgl::style::Style::Impl::loadURL(std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > const&)::$_0&, mbgl::Response&&) at type_traits:4361 [opt]frame get libllmr.a building for ARM architectures #12: 0x0000000100ef45d8 Mapbox
std::__1::__function::__func<mbgl::style::Style::Impl::loadURL(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)::$_0, std::__1::allocator<mbgl::style::Style::Impl::loadURL(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)::$_0>, void (mbgl::Response)>::operator()(mbgl::Response&&) [inlined] void std::__1::__invoke_void_return_wrapper<void>::__call<mbgl::style::Style::Impl::loadURL(__args=<unavailable>, __args=<unavailable>)::$_0&, mbgl::Response>(mbgl::style::Style::Impl::loadURL(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)::$_0&, mbgl::Response&&) at __functional_base:349 [opt] frame #13: 0x0000000100ef45d8 Mapbox
std::__1::__function::__func<mbgl::style::Style::Impl::loadURL(std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > const&)::$_0, std::__1::allocator<mbgl::style::Style::Impl::loadURL(std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > const&)::$_0>, void (mbgl::Response)>::operator()(mbgl::Response&&) [inlined] std::__1::__function::__alloc_func<mbgl::style::Style::Impl::loadURL(std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > const&)::$_0, std::__1::allocator<mbgl::style::Style::Impl::loadURL(std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > const&)::$_0>, void (mbgl::Response)>::operator(this=, __arg=)(mbgl::Response&&) at functional:1527 [opt]frame Tile wrapping #14: 0x0000000100ef45d8 Mapbox
std::__1::__function::__func<mbgl::style::Style::Impl::loadURL(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)::$_0, std::__1::allocator<mbgl::style::Style::Impl::loadURL(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)::$_0>, void (mbgl::Response)>::operator(this=<unavailable>, __arg=<unavailable>)(mbgl::Response&&) at functional:1651 [opt] frame #15: 0x0000000100cafe68 Mapbox
mbgl::FileSourceRequest::setResponse(mbgl::Response const&) [inlined] std::__1::__function::__value_func<void (mbgl::Response)>::operator(this=, __args=)(mbgl::Response&&) const at functional:1799:16 [opt]frame Textured lines #16: 0x0000000100cafe50 Mapbox
mbgl::FileSourceRequest::setResponse(mbgl::Response const&) [inlined] std::__1::function<void (mbgl::Response)>::operator(this=<unavailable>)(mbgl::Response) const at functional:2347 [opt] frame #17: 0x0000000100cafe50 Mapbox
mbgl::FileSourceRequest::setResponse(this=, response=0x00000001702e88a0) at file_source_request.cpp:30 [opt]frame Switch to GYP (over cmake) #18: 0x0000000100ccedf8 Mapbox
mbgl::Mailbox::receive(this=0x000000010614b768) at mailbox.cpp:84:5 [opt] frame #19: 0x0000000100ccf908 Mapbox
std::__1::__function::__func<mbgl::Mailbox::makeClosure(std::__1::weak_ptrmbgl::Mailbox)::$_0, std::__1::allocator<mbgl::Mailbox::makeClosure(std::__1::weak_ptrmbgl::Mailbox)::$_0>, void ()>::operator()() at mailbox.cpp:94:17 [opt]frame Bundle boost #20: 0x0000000100ccf8ec Mapbox
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()() [inlined] mbgl::Mailbox::makeClosure(this=<unavailable>)::$_0::operator()() const at mailbox.cpp:100 [opt] frame #21: 0x0000000100ccf8cc Mapbox
std::__1::__function::__func<mbgl::Mailbox::makeClosure(std::__1::weak_ptrmbgl::Mailbox)::$_0, std::__1::allocator<mbgl::Mailbox::makeClosure(std::__1::weak_ptrmbgl::Mailbox)::$_0>, void ()>::operator()() [inlined] decltype(__f=)::$_0&>(fp)()) std::__1::__invoke<mbgl::Mailbox::makeClosure(std::__1::weak_ptrmbgl::Mailbox)::$_0&>(mbgl::Mailbox::makeClosure(std::__1::weak_ptrmbgl::Mailbox)::$_0&) at type_traits:4361 [opt]frame Port scanline algorithm from _getCoveringTiles() #22: 0x0000000100ccf8cc Mapbox
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()() [inlined] void std::__1::__invoke_void_return_wrapper<void>::__call<mbgl::Mailbox::makeClosure(__args=<unavailable>)::$_0&>(mbgl::Mailbox::makeClosure(std::__1::weak_ptr<mbgl::Mailbox>)::$_0&) at __functional_base:349 [opt] frame #23: 0x0000000100ccf8cc Mapbox
std::__1::__function::__func<mbgl::Mailbox::makeClosure(std::__1::weak_ptrmbgl::Mailbox)::$_0, std::__1::allocator<mbgl::Mailbox::makeClosure(std::__1::weak_ptrmbgl::Mailbox)::$_0>, void ()>::operator()() [inlined] std::__1::__function::__alloc_func<mbgl::Mailbox::makeClosure(std::__1::weak_ptrmbgl::Mailbox)::$_0, std::__1::allocator<mbgl::Mailbox::makeClosure(std::__1::weak_ptrmbgl::Mailbox)::$_0>, void ()>::operator(this=)() at functional:1527 [opt]frame build iOS runnable app in the style of the OS X one #24: 0x0000000100ccf8cc Mapbox
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(this=<unavailable>)() at functional:1651 [opt] frame #25: 0x0000000100c9e1ac Mapbox
mbgl::WorkTaskImpl<std::__1::function<void ()>, std::__1::tuple<> >::operator()() [inlined] std::__1::__function::__value_func<void ()>::operator(this=)() const at functional:1799:16 [opt]frame Remove use of designated initializers #26: 0x0000000100c9e198 Mapbox
mbgl::WorkTaskImpl<std::__1::function<void ()>, std::__1::tuple<> >::operator()() [inlined] std::__1::function<void ()>::operator(this=<unavailable>)() const at functional:2347 [opt] frame #27: 0x0000000100c9e198 Mapbox
mbgl::WorkTaskImpl<std::__1::function<void ()>, std::__1::tuple<> >::operator()() [inlined] void mbgl::WorkTaskImpl<std::__1::function<void ()>, std::__1::tuple<> >::invoke<>(this=) at work_task_impl.hpp:43 [opt]frame Switch build system to gyp #28: 0x0000000100c9e198 Mapbox
mbgl::WorkTaskImpl<std::__1::function<void ()>, std::__1::tuple<> >::operator(this=0x000000017012d3f8)() at work_task_impl.hpp:23 [opt] frame #29: 0x0000000100c9d4fc Mapbox
mbgl::util::RunLoop::process(this=0x0000000101125318) at run_loop.hpp:114:13 [opt]frame animated scaleBy #30: 0x000000018f83542c CoreFoundation
__CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 24 frame #31: 0x000000018f834d9c CoreFoundation
__CFRunLoopDoSources0 + 540frame tile seam issue on iOS hardware #32: 0x000000018f8329a8 CoreFoundation
__CFRunLoopRun + 744 frame #33: 0x000000018f762da4 CoreFoundation
CFRunLoopRunSpecific + 424frame decelerated panning on iOS #34: 0x00000001911cc074 GraphicsServices
GSEventRunModal + 100 frame #35: 0x0000000195a1d058 UIKit
UIApplicationMain + 208frame iOS line shader issue #36: 0x0000000100024930 WideBridgeAPP
main at AppDelegate.swift:17:7 frame #37: 0x000000018e77159c libdyld.dylib
start + 4`
Steps to reproduce
Expected behavior
Map should not load, but app should not crash
Actual behavior
App crashes
Configuration
Mapbox SDK versions: 5.3
iOS/macOS versions: 10.3
Device/simulator models: iPhone 7
Xcode version: 11.3
The text was updated successfully, but these errors were encountered: