Kontakt 7.1.3 and 6 crash after exiting Logic Pro

danielete
danielete Member Posts: 4 Member
edited October 22 in Kontakt

I am using Logic Pro 10.7.5 on a M1Max Macbook. I see crash reports in the Mac console every time I exit Logic. They tend to go this way

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread

0  Kontakt 7                             0x2919cfb94 NI_6_3_1_R2::QApplication::~QApplication() + 820

1  Kontakt 7                             0x2919cfad8 NI_6_3_1_R2::QApplication::~QApplication() + 632

2  Kontakt 7                             0x2919cfd10 NI_6_3_1_R2::QApplication::~QApplication() + 12

3  Kontakt 7                             0x290eaea4c ni::qt::Module::~Module() + 60

4  Kontakt 7                             0x28fffa2e8 std::__1::unique_ptr<ni::qt::Module, std::__1::default_delete<ni::qt::Module> >::~unique_ptr() + 32

5  libsystem_c.dylib                     0x19944c05c __cxa_finalize_ranges + 464


But some others are a bit different

Thread 0:: Dispatch queue: com.apple.main-thread

0  libsystem_malloc.dylib                0x1993c0040 _szone_free + 12

1  Kontakt                               0x28047d978 std::__1::__tree<std::__1::__value_type<char const*, int>, std::__1::__map_value_compare<char const*, std::__1::__value_type<char const*, int>, BAO_DETAIL::ParTagToString::strcmpless, true>, std::__1::allocator<std::__1::__value_type<char const*, int> > >::destroy(std::__1::__tree_node<std::__1::__value_type<char const*, int>, void*>*) + 32

2  Kontakt                               0x28047d978 std::__1::__tree<std::__1::__value_type<char const*, int>, std::__1::__map_value_compare<char const*, std::__1::__value_type<char const*, int>, BAO_DETAIL::ParTagToString::strcmpless, true>, std::__1::allocator<std::__1::__value_type<char const*, int> > >::destroy(std::__1::__tree_node<std::__1::__value_type<char const*, int>, void*>*) + 32

3  Kontakt                               0x28047d984 std::__1::__tree<std::__1::__value_type<char const*, int>, std::__1::__map_value_compare<char const*, std::__1::__value_type<char const*, int>, BAO_DETAIL::ParTagToString::strcmpless, true>, std::__1::allocator<std::__1::__value_type<char const*, int> > >::destroy(std::__1::__tree_node<std::__1::__value_type<char const*, int>, void*>*) + 44

4  Kontakt                               0x28047d978 std::__1::__tree<std::__1::__value_type<char const*, int>, std::__1::__map_value_compare<char const*, std::__1::__value_type<char const*, int>, BAO_DETAIL::ParTagToString::strcmpless, true>, std::__1::allocator<std::__1::__value_type<char const*, int> > >::destroy(std::__1::__tree_node<std::__1::__value_type<char const*, int>, void*>*) + 32


The crashed program is apparently AUHostingServiceXPC_arrow. If I run Logic opening a program with no Kontakt, there is no problem. I also have this problem if I load a different project in Logic, by closing the previous project.

Any ideas on how to solve this?

Cheers

Daniel

Best Answer

Answers

  • Jeremy_NI
    Jeremy_NI Customer Care Posts: 12,971 mod

    @danielete Make sure that both Logic and Kontakt have Full Disk Access: How to Enable Full Disk Access on macOS Restart your computer, do these crashes still happen? Are you using Logic in Rosetta or Silicon native mode?

  • danielete
    danielete Member Posts: 4 Member
    edited December 2022

    Thanks for your answer @Jeremy_NI

    I am using Logic in native mode indeed. I will check giving full disk access to both Logic (Native Access or Kontakt itself?) but funnily enough I have another computer (a 13" M1 Macbook) where I cannot seem to reproduce the error, even with the standard "Files and Folders" setup.

    Anyway, I will try tonight and see if the Full Access makes any difference. Will copy the same project to both computers to make sure it's an apples-to-apples situation

  • danielete
    danielete Member Posts: 4 Member
    edited December 2022

    Ok just tried to give full access to both Logic and Kontakt 7 and no change whatsoever. Still the same error on existing Logic or on switching to another project by closing the original project. I had started the computer from scratch too..

    Will try exactly the same project in my other computer (the M1 13") to see if that's still the case..

    -------------------------------------

    Translated Report (Full Report Below)

    -------------------------------------


    Process:              AUHostingServiceXPC_arrow [1131]

    Path:                 /System/Library/Frameworks/AudioToolbox.framework/XPCServices/AUHostingServiceXPC_arrow.xpc/Contents/MacOS/AUHostingServiceXPC_arrow

    Identifier:           com.apple.audio.AUHostingService.arm64e

    Version:              1.0 (1)

    Build Info:           CoreAudioServices_AUHostingServiceXPC_arrow-1318042000000000~2

    Code Type:            ARM-64 (Native)

    Parent Process:       launchd [1]

    Responsible:          Logic Pro X [1124]

    User ID:              501


    Date/Time:            2022-12-15 19:24:31.6898 +0000

    OS Version:           macOS 13.1 (22C65)

    Report Version:       12

    Anonymous UUID:       C17FE52F-1EF8-8273-7D05-170839C26511



    Time Awake Since Boot: 420 seconds


    System Integrity Protection: enabled


    Crashed Thread:       0 Dispatch queue: com.apple.main-thread


    Exception Type:       EXC_BAD_ACCESS (SIGSEGV)

    Exception Codes:      KERN_INVALID_ADDRESS at 0x0000000000000000

    Exception Codes:      0x0000000000000001, 0x0000000000000000


    Termination Reason:   Namespace SIGNAL, Code 11 Segmentation fault: 11

    Terminating Process:  exc handler [1131]


    VM Region Info: 0 is not in any region. Bytes before following region: 4341039104

         REGION TYPE                   START - END        [ VSIZE] PRT/MAX SHRMOD REGION DETAIL

         UNUSED SPACE AT START

    ---> 

         __TEXT                     102bf0000-102bf8000   [  32K] r-x/r-x SM=COW ...viceXPC_arrow


    Kernel Triage:

    VM - pmap_enter retried due to resource shortage

    VM - pmap_enter retried due to resource shortage

    VM - pmap_enter retried due to resource shortage

    VM - pmap_enter retried due to resource shortage



    Thread 0 Crashed:: Dispatch queue: com.apple.main-thread

    0  Kontakt 7                             0x29e7cfb94 NI_6_3_1_R2::QApplication::~QApplication() + 820

    1  Kontakt 7                             0x29e7cfad8 NI_6_3_1_R2::QApplication::~QApplication() + 632

    2  Kontakt 7                             0x29e7cfd10 NI_6_3_1_R2::QApplication::~QApplication() + 12

    3  Kontakt 7                             0x29dcaea4c ni::qt::Module::~Module() + 60

    4  Kontakt 7                             0x29cdfa2e8 std::__1::unique_ptr<ni::qt::Module, std::__1::default_delete<ni::qt::Module> >::~unique_ptr() + 32

    5  libsystem_c.dylib                     0x1a592005c __cxa_finalize_ranges + 464

    6  libsystem_c.dylib                     0x1a591fdf0 exit + 44

    7  AudioToolboxCore                      0x1a786c2b0 AUHostingService_exit_handler()::$_2::operator()() const + 20

    8  AudioToolboxCore                      0x1a786c29c decltype(static_cast<AUHostingService_exit_handler()::$_2&>(fp)()) std::__1::__invoke<AUHostingService_exit_handler()::

  • Jeremy_NI
    Jeremy_NI Customer Care Posts: 12,971 mod

    @danielete I contacted you by email regarding this.

  • Laurent Top
    Laurent Top Member Posts: 1 Member

    I have exactly the same crash problem at auhosting do you have the solution because Full disk access does not change anything Thank you

  • Jeremy_NI
    Jeremy_NI Customer Care Posts: 12,971 mod

    @Laurent Top Have you tried these steps? KONTAKT Crashes

  • Jeremy_NI
    Jeremy_NI Customer Care Posts: 12,971 mod

    @Laurent Top Any update on the issue? Do you still need help?

  • danielete
    danielete Member Posts: 4 Member

    The error still happens...

  • Gee_Flat
    Gee_Flat Member Posts: 906 Guru
    edited February 2023

    I don't want to get into this discussion, but one question that hasn't been raised here is whether these crashes are happening with Kontakt loaded as an empty plugin, or loaded with instruments.

    My older software crashes with Play Series instruments like Analog Dreams, Hybrid Keys in a 32 bit environment. So I just don't use them. They work fine as a standalone.

    Point being, could it be instrument specific?

  • orchetect
    orchetect Member Posts: 1 Member
    edited July 2023

    I've been getting this same crash report for months as well. None of the troubleshooting steps make any difference.

    For the record, it is happening even with a completely empty instance of Kontakt.

    While most crash reports have had fairly short stack traces in the crashed thread, I was able to get a more verbose stack trace at one point. It shows more calls related to Metal and pointer releasing.

    Crash log:

    Thread 0 Crashed::  Dispatch queue: com.apple.main-thread
    0   libobjc.A.dylib       0x7ff807e3b429 objc_msgSend + 41
    1   Metal                 0x7ff8109e91f6 -[MTLVertexAttributeInternal dealloc] + 29
    2   libobjc.A.dylib       0x7ff807e5ae98 objc_object::sidetable_release(bool, bool) + 238
    3   CoreFoundation        0x7ff808035007 -[__NSArrayI dealloc] + 73
    4   libobjc.A.dylib       0x7ff807e5ae98 objc_object::sidetable_release(bool, bool) + 238
    5   Metal                 0x7ff8109768a1 -[_MTLFunction dealloc] + 96
    6   Metal                 0x7ff81097671a -[_MTLFunctionInternal dealloc] + 227
    7   libobjc.A.dylib       0x7ff807e5ae98 objc_object::sidetable_release(bool, bool) + 238
    8   Kontakt 7             0x12c24af56 NI_6_3_2_R9::QMetalShader::destroy() + 182
    9   Kontakt 7             0x12c24a655 NI_6_3_2_R9::QRhiMetal::destroy() + 245
    10  Kontakt 7             0x12c06fae8 NI_6_3_2_R9::QRhi::~QRhi() + 616
    11  Kontakt 7             0x12b83f4f0 NI_6_3_2_R9::QSGRhiSupport::destroyRhi(NI_6_3_2_R9::QRhi*) + 304
    12  Kontakt 7             0x12b827189 NI_6_3_2_R9::QSGGuiThreadRenderLoop::windowDestroyed(NI_6_3_2_R9::QQuickWindow*) + 281
    13  Kontakt 7             0x12b7ae70d NI_6_3_2_R9::QQuickWindow::~QQuickWindow() + 125
    14  Kontakt 7             0x12992a0e7 BHybridQuickWindow::~BHybridQuickWindow() + 55
    15  Kontakt 7             0x12a1d8412 NI::AB::EditorQt::releaseQWindow() + 146
    16  Kontakt 7             0x12a1d7a82 NI::AB::EditorWindow<NI::UIA::Window>::destroyQtPluginView() + 82
    17  Kontakt 7             0x12a1d79aa NI::AB::EditorWindow<NI::UIA::Window>::onViewBeingDetached() + 74
    18  Kontakt 7             0x12a1ade18 non-virtual thunk to NI::VST3::EditorInterface::removed() + 24
    19  Blue Cat's PatchWork  0x10e846afd 0x10e1ca000 + 6802173
    20  Blue Cat's PatchWork  0x10e9527ff 0x10e1ca000 + 7899135
    21  Blue Cat's PatchWork  0x10e8d8f89 0x10e1ca000 + 7401353
    22  Blue Cat's PatchWork  0x10e8dbf60 0x10e1ca000 + 7413600
    23  Blue Cat's PatchWork  0x10e8db994 0x10e1ca000 + 7412116
    24  CoreFoundation        0x7ff80806473c __CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER__ + 12
    25  CoreFoundation        0x7ff808101b32 ___CFXRegistrationPost_block_invoke + 49
    26  CoreFoundation        0x7ff808101ab0 _CFXRegistrationPost + 496
    27  CoreFoundation        0x7ff8080363c8 _CFXNotificationPost + 735
    28  Foundation            0x7ff808e757ee -[NSNotificationCenter postNotificationName:object:userInfo:] + 82
    29  AppKit                0x7ff80b333f48 -[NSWindow _finishClosingWindow] + 120
    30  AppKit                0x7ff80adc02d4 -[NSWindow _close] + 336
    31  AppKit                0x7ff80ae0b0bf -[NSWindow __close] + 284
    32  AppKit                0x7ff80acac08e -[NSApplication(NSResponder) sendAction:to:from:] + 288
    33  AppKit                0x7ff80acabf34 -[NSControl sendAction:to:] + 86
    34  AppKit                0x7ff80acabe66 __26-[NSCell _sendActionFrom:]_block_invoke + 131
    35  AppKit                0x7ff80acabd6f -[NSCell _sendActionFrom:] + 171
    36  AppKit                0x7ff80acabcb7 -[NSButtonCell _sendActionFrom:] + 96
    37  AppKit                0x7ff80aca8b2f NSControlTrackMouse + 1813
    38  AppKit                0x7ff80aca83f6 -[NSCell trackMouse:inRect:ofView:untilMouseUp:] + 121
    39  AppKit                0x7ff80aca82c6 -[NSButtonCell trackMouse:inRect:ofView:untilMouseUp:] + 679
    40  AppKit                0x7ff80aca7696 -[NSControl mouseDown:] + 678
    41  AppKit                0x7ff80aca5b81 -[NSWindow(NSEventRouting) _handleMouseDownEvent:isDelayedEvent:] + 4859
    42  AppKit                0x7ff80ac19d3e -[NSWindow(NSEventRouting) _reallySendEvent:isDelayedEvent:] + 2582
    43  AppKit                0x7ff80ac1910e -[NSWindow(NSEventRouting) sendEvent:] + 352
    44  AppKit                0x7ff80ac174e4 -[NSApplication(NSEvent) sendEvent:] + 352
    45  AppKit                0x7ff80aed014b -[NSApplication _handleEvent:] + 65
    46  AppKit                0x7ff80aa98cfe -[NSApplication run] + 623
    47  Blue Cat's PatchWork  0x10e896540 0x10e1ca000 + 7128384
    48  Blue Cat's PatchWork  0x10e1cc0e4 0x10e1ca000 + 8420
    
    
  • Jeremy_NI
    Jeremy_NI Customer Care Posts: 12,971 mod
    Answer ✓

    @orchetect If the solutions provided in this article did not work: KONTAKT Crashes Please get in touch with our Kontakt specialists here: http://bit.ly/NIsupport_kontakt

This discussion has been closed.
Back To Top