This repository was archived by the owner on Aug 8, 2023. It is now read-only.
Crash on MGLPremultipliedImageFromCGImage #13826
Copy link
Copy link
Closed
Description
EXC_BAD_ACCESS KERN_INVALID_ADDRESS 0x0000000000000000
Crashed: com.mapbox.mbgl.Worker 3
0 libsystem_platform.dylib 0x181541c84 __bzero + 36
1 Mapbox 0x10716e10c MGLPremultipliedImageFromCGImage(CGImage*) (memory:2097)
2 Mapbox 0x10716e10c MGLPremultipliedImageFromCGImage(CGImage*) (memory:2097)
3 Mapbox 0x10716e2f8 mbgl::decodeImage(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) (CFHandle.hpp:23)
4 Mapbox 0x107257130 mbgl::SpriteLoaderWorker::parse(std::__1::shared_ptr<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const>, std::__1::shared_ptr<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const>) (document.h:2052)
5 Mapbox 0x107256a44 mbgl::MessageImpl<mbgl::SpriteLoaderWorker, void (mbgl::SpriteLoaderWorker::*)(std::__1::shared_ptr<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const>, std::__1::shared_ptr<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const>), std::__1::tuple<std::__1::shared_ptr<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const>, std::__1::shared_ptr<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const> > >::operator()() (memory:4467)
6 Mapbox 0x107177350 mbgl::Mailbox::maybeReceive(std::__1::weak_ptr<mbgl::Mailbox>) (mailbox.cpp:87)
7 Mapbox 0x107174d20 std::__1::__thread_proxy<std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct> >, mbgl::ThreadPool::ThreadPool(unsigned long)::$_0> >(void*, void*) (default_thread_pool.cpp:29)
8 libsystem_pthread.dylib 0x18154c2b4 _pthread_body + 308
9 libsystem_pthread.dylib 0x18154c180 _pthread_body + 310
10 libsystem_pthread.dylib 0x18154ab74 thread_start + 4
Steps to reproduce
Caught by crash reporting. 0% in background.
Expected behavior
No crash
Actual behavior
Crash
Configuration
Mapbox SDK versions: 4.7.0
iOS/macOS versions: iOS 11 and 12
Device/simulator models: several (7+, 8+, XR, 6s,...)
Xcode version: 10.1
Activity
friedbunny commentedon Jan 30, 2019
@marcelofabri Are you able to say which style was being used during this crash?
marcelofabri commentedon Jan 30, 2019
@friedbunny sent to [email protected] in an existing thread.
julianrex commentedon Jan 30, 2019
@friedbunny FYI symbolication in the callstack above seems off (file/line info)
marcelofabri commentedon May 22, 2019
FYI this is still valid, but most users are on iOS 11. We had about 60 occurrences of this crash in the past 7 days.
julianrex commentedon May 22, 2019
Thanks for the update @marcelofabri - this feels like an out-of-memory issue, do you know if those occurrences were in low-memory situations?
marcelofabri commentedon May 22, 2019
They had from 15 MB to 100 MB in free RAM, averaging 38.98 MB.
julianrex commentedon May 22, 2019
That's very little available RAM - any chance you have a memory leak or growth?
stale commentedon Jan 14, 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.
julianrex commentedon Jan 14, 2020
@marcelofabri just checking in - are you still seeing issues here?
marcelofabri commentedon Jan 14, 2020
Sorry, we aren't using Mapbox anymore.