Skip to content

[BUG] [OLPNetworkIOS] libc++abi: terminating due to uncaught exception of type std::__1::system_error: mutex lock failed: Invalid argument #1613

Open
@LukeDelaCruz

Description

@LukeDelaCruz

Describe the bug

On both earlier and the latest version of the HERE SDK (4.22.3.0 - Navigate Edition) our users are getting a crash that occurs on iOS (seen on iOS 18.1.1, 18.4.1, 18.5.0 and iPadOS 17.2.0, 18.3.2, etc.) when going offline while initially navigating while being online.

It looks like the Cleanup() in OLPNetworkIOS is throwing.

TRACE level logs?

libsystem_kernel.dylib`__pthread_kill:
    0x1d42961d4 <+0>:  mov    x16, #0x148               ; =328 
    0x1d42961d8 <+4>:  svc    #0x80
->  0x1d42961dc <+8>:  b.lo   0x1d42961fc               ; <+40>
    0x1d42961e0 <+12>: pacibsp 
    0x1d42961e4 <+16>: stp    x29, x30, [sp, #-0x10]!
    0x1d42961e8 <+20>: mov    x29, sp
    0x1d42961ec <+24>: bl     0x1d4291750               ; cerror_nocancel
    0x1d42961f0 <+28>: mov    sp, x29
    0x1d42961f4 <+32>: ldp    x29, x30, [sp], #0x10
    0x1d42961f8 <+36>: retab  
    0x1d42961fc <+40>: ret    

heresdk`olp::http::OLPNetworkIOS::~OLPNetworkIOS:
    0x110430d34 <+0>:  stp    x20, x19, [sp, #-0x20]!
    0x110430d38 <+4>:  stp    x29, x30, [sp, #0x10]
    0x110430d3c <+8>:  add    x29, sp, #0x10
    0x110430d40 <+12>: mov    x19, x0
    0x110430d44 <+16>: adrp   x8, 2872
    0x110430d48 <+20>: add    x8, x8, #0xc10            ; vtable for olp::http::OLPNetworkIOS + 16
    0x110430d4c <+24>: str    x8, [x0]
    0x110430d50 <+28>: bl     0x110433334               ; olp::http::OLPNetworkIOS::Cleanup at OLPNetworkIOS.mm:348
    0x110430d54 <+32>: add    x0, x19, #0x18
    0x110430d58 <+36>: bl     0x1106c5cb0               ; symbol stub for: std::__1::mutex::~mutex()
    0x110430d5c <+40>: ldr    x0, [x19, #0x10]
    0x110430d60 <+44>: bl     0x1106c6a90               ; symbol stub for: objc_release
    0x110430d64 <+48>: mov    x0, x19
    0x110430d68 <+52>: ldp    x29, x30, [sp, #0x10]
    0x110430d6c <+56>: ldp    x20, x19, [sp], #0x20
    0x110430d70 <+60>: ret    
    0x110430d74 <+64>: mov    x20, x0
    0x110430d78 <+68>: add    x0, x19, #0x18             <- Thread 1: signal SIGABRT
    0x110430d7c <+72>: bl     0x1106c5cb0               ; symbol stub for: std::__1::mutex::~mutex()
    0x110430d80 <+76>: ldr    x0, [x19, #0x10]
    0x110430d84 <+80>: bl     0x1106c6a90               ; symbol stub for: objc_release
    0x110430d88 <+84>: mov    x0, x20
    0x110430d8c <+88>: bl     0x10ddde504               ; __clang_call_terminate

Xcode logs prior to the crash

Image

Other Logs

Image

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions