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

Crash on memory.cpp #13820

Closed
Closed

Description

@marcelofabri

Crash reporting is listing this crash, 100% in the foreground. Doesn't seem like the app is being terminated from the logs.

EXC_BAD_ACCESS KERN_INVALID_ADDRESS 0x0000000000000000

Crashed: com.mapbox.mbgl.Worker 2
0  libsystem_platform.dylib       0x181541d68 _platform_memset + 136
1  Mapbox                         0x106af74b8 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>) (memory:2097)
2  Mapbox                         0x106af74b8 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>) (memory:2097)
3  Mapbox                         0x106af6a44 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)
4  Mapbox                         0x106a17350 mbgl::Mailbox::maybeReceive(std::__1::weak_ptr<mbgl::Mailbox>) (mailbox.cpp:87)
5  Mapbox                         0x106a14d20 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)
6  libsystem_pthread.dylib        0x18154c2b4 _pthread_body + 308
7  libsystem_pthread.dylib        0x18154c180 _pthread_body + 310
8  libsystem_pthread.dylib        0x18154ab74 thread_start + 4

Steps to reproduce

Not sure.

Expected behavior

Doesn't crash

Actual behavior

A crash

Configuration

Mapbox SDK versions: 4.7.0
iOS/macOS versions: iOS 11 and 12
Device/simulator models: All
Xcode version: 10.1

Activity

  1. added
    Core
    iOS
    on Jan 29, 2019
  2. julianrex commented on Jan 29, 2019

    @julianrex
    Contributor

    @marcelofabri thanks for reporting - any sense if this is happening on app termination?

    @mapbox/gl-native wondering if this is the result of the null observer ptr here:

    void SpriteLoader::onParsed(std::vector<std::unique_ptr<style::Image>>&& result) {
    observer->onSpriteLoaded(std::move(result));
    }
    void SpriteLoader::onError(std::exception_ptr err) {
    observer->onSpriteError(err);
    }

  3. marcelofabri commented on Jan 29, 2019

    @marcelofabri
    Author

    any sense if this is happening on app termination?

    This crash is only happening in foreground and it doesn't seem like the app was getting terminated via the logs.

  4. marcelofabri commented on May 22, 2019

    @marcelofabri
    Author

    This is still happening, but all occurrences on the past 7 days were on iOS 11.

  5. julianrex commented on May 28, 2019

    @julianrex
    Contributor

    @tmpsantos any thoughts on this one?

  6. tmpsantos commented on May 29, 2019

    @tmpsantos
    Contributor

    @tmpsantos any thoughts on this one?

    Not really. Do we have a good way to reproduce it?

  7. added
    archived
    on Mar 17, 2020
  8. stale commented on Mar 17, 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.

  9. stale commented on Mar 17, 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.

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

Metadata

Metadata

Labels

CorearchivedcrashiOS

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions