Skip to content
This repository was archived by the owner on Aug 8, 2023. It is now read-only.

Crash on MGLPremultipliedImageFromCGImage #13826

Closed

Description

@marcelofabri
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

  1. added
    iOS
    on Jan 30, 2019
  2. friedbunny commented on Jan 30, 2019

    @friedbunny
    Contributor

    @marcelofabri Are you able to say which style was being used during this crash?

  3. marcelofabri commented on Jan 30, 2019

    @marcelofabri
    Author

    @friedbunny sent to [email protected] in an existing thread.

  4. julianrex commented on Jan 30, 2019

    @julianrex
    Contributor

    @friedbunny FYI symbolication in the callstack above seems off (file/line info)

  5. marcelofabri commented on May 22, 2019

    @marcelofabri
    Author

    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.

  6. julianrex commented on May 22, 2019

    @julianrex
    Contributor

    Thanks for the update @marcelofabri - this feels like an out-of-memory issue, do you know if those occurrences were in low-memory situations?

  7. marcelofabri commented on May 22, 2019

    @marcelofabri
    Author

    They had from 15 MB to 100 MB in free RAM, averaging 38.98 MB.

  8. julianrex commented on May 22, 2019

    @julianrex
    Contributor

    That's very little available RAM - any chance you have a memory leak or growth?

  9. added
    archived
    on Jan 14, 2020
  10. stale commented on Jan 14, 2020

    @stale

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

  11. julianrex commented on Jan 14, 2020

    @julianrex
    Contributor

    @marcelofabri just checking in - are you still seeing issues here?

  12. marcelofabri commented on Jan 14, 2020

    @marcelofabri
    Author

    Sorry, we aren't using Mapbox anymore.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    archivedcrashiOS

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions