Skip to content
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

Closed
Yoni-Reiss opened this issue Jan 27, 2020 · 1 comment
Closed

Crash when loading map for the first time when there's no intern #16149

Yoni-Reiss opened this issue Jan 27, 2020 · 1 comment
Labels
archived Archived because of inactivity

Comments

@Yoni-Reiss
Copy link

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 + 8
frame #1: 0x000000018e87c4d0 libsystem_kernel.dylibabort_with_payload_wrapper_internal + 100 frame #2: 0x000000018e87c46c libsystem_kernel.dylibabort_with_reason + 36
frame #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*, ...) + 44
frame #5: 0x000000018e2f16a4 libobjc.A.dylibrwlock_tt<false>::read() + 140 frame #6: 0x000000018e2f1424 libobjc.A.dyliblookUpImpOrForward + 84
frame #7: 0x000000018e2fc478 libobjc.A.dylib`_objc_msgSend_uncached + 56

  • frame pinch zoom & finger rotate on OS X #8: 0x0000000100f77318 MapboxMGLMapViewImpl::onDidFailLoadingMap(this=0x00000001702898d0, mapError=<unavailable>, what=<unavailable>) at MGLMapView+Impl.mm:69:5 [opt] frame #9: 0x0000000100d2707c Mapboxmbgl::Map::Impl::onStyleError(this=0x0000000106092410, error=) at map_impl.cpp:111:14 [opt]
    frame clarify use of GLFW #10: 0x0000000100ef4680 Mapboxstd::__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 Mapboxstd::__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 Mapboxstd::__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 Mapboxstd::__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 Mapboxstd::__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 Mapboxmbgl::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 Mapboxmbgl::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 Mapboxmbgl::FileSourceRequest::setResponse(this=, response=0x00000001702e88a0) at file_source_request.cpp:30 [opt]
    frame Switch to GYP (over cmake) #18: 0x0000000100ccedf8 Mapboxmbgl::Mailbox::receive(this=0x000000010614b768) at mailbox.cpp:84:5 [opt] frame #19: 0x0000000100ccf908 Mapboxstd::__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 Mapboxstd::__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 Mapboxstd::__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 Mapboxstd::__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 Mapboxstd::__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 Mapboxstd::__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 Mapboxmbgl::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 Mapboxmbgl::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 Mapboxmbgl::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 Mapboxmbgl::WorkTaskImpl<std::__1::function<void ()>, std::__1::tuple<> >::operator(this=0x000000017012d3f8)() at work_task_impl.hpp:23 [opt] frame #29: 0x0000000100c9d4fc Mapboxmbgl::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 + 540
    frame tile seam issue on iOS hardware #32: 0x000000018f8329a8 CoreFoundation__CFRunLoopRun + 744 frame #33: 0x000000018f762da4 CoreFoundationCFRunLoopRunSpecific + 424
    frame decelerated panning on iOS #34: 0x00000001911cc074 GraphicsServicesGSEventRunModal + 100 frame #35: 0x0000000195a1d058 UIKitUIApplicationMain + 208
    frame iOS line shader issue #36: 0x0000000100024930 WideBridgeAPPmain at AppDelegate.swift:17:7 frame #37: 0x000000018e77159c libdyld.dylibstart + 4
    `

Steps to reproduce

  1. Open viewController containing MapView without internet connection

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

@stale stale bot added the archived Archived because of inactivity label Jul 25, 2020
@stale
Copy link

stale bot commented Jul 25, 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 Jul 25, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
archived Archived because of inactivity
Projects
None yet
Development

No branches or pull requests

1 participant