melonDS-emu / melonDS

DS emulator, sorta
https://melonds.kuribo64.net
GNU General Public License v3.0
3.27k stars 542 forks source link

crashes sometimes when importing a savefile #2035

Open andrewjc03 opened 6 months ago

andrewjc03 commented 6 months ago

Hi,

Does anyone know why the app is crashing for me sometimes when I import a savefile? I am using an M2 Macbook Pro, and I tried this on both melonDS 0.9.5 and the latest version on the master branch but both crash for me.

Here is part of the crash report logs:

-------------------------------------
Translated Report (Full Report Below)
-------------------------------------

Process:               melonDS [82363]
Path:                  /Users/USER/*/melonDS.app/Contents/MacOS/melonDS
Identifier:            net.kuribo64.melonDS
Version:               0.9.5 (0.9.5)
Code Type:             ARM-64 (Native)
Parent Process:        launchd [1]
User ID:               501

Date/Time:             2024-05-10 19:10:37.8072 -0700
OS Version:            macOS 14.3 (23D56)
Report Version:        12
Anonymous UUID:        79D026AB-A969-0E73-2ABC-4A28B526FD50

Sleep/Wake UUID:       6F1072A3-3CF4-4542-A38C-5F3C5A08FAE9

Time Awake Since Boot: 2800000 seconds
Time Since Wake:       29796 seconds

System Integrity Protection: enabled

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

Exception Type:        EXC_BAD_ACCESS (SIGBUS)
Exception Codes:       KERN_PROTECTION_FAILURE at 0x0000000106243998
Exception Codes:       0x0000000000000002, 0x0000000106243998

Termination Reason:    Namespace SIGNAL, Code 10 Bus error: 10
Terminating Process:   exc handler [82363]

VM Region Info: 0x106243998 is in 0x106234000-0x106244000;  bytes after start: 63896  bytes before end: 1639
      REGION TYPE                    START - END         [ VSIZE] PRT/MAX SHRMOD  REGION DETAIL
      CoreAnimation               10621c000-106234000    [   96K] rw-/rwx SM=PRV  
--->  VM_ALLOCATE                 106234000-106244000    [   64K] rwx/rwx SM=PRV  
      CoreUI image data           106244000-106280000    [  240K] r--/r-- SM=PRV  

Thread 0 Crashed::  Dispatch queue: com.apple.main-thread
0   ???                                    0x106243998 ???
1   libpcre2-16.0.dylib                    0x10226d27c pcre2_jit_match_16 + 264
2   libpcre2-16.0.dylib                    0x1022894d8 pcre2_match_16 + 500
3   QtCore                                 0x1039d0a28 safe_pcre2_match_16(pcre2_real_code_16 const*, unsigned short const*, long long, long long, int, pcre2_real_match_data_16*, pcre2_real_match_context_16*) + 60
4   QtCore                                 0x1039d0830 QRegularExpressionPrivate::doMatch(QRegularExpressionMatchPrivate*, long long, QRegularExpressionPrivate::CheckSubjectStringOption, QRegularExpressionMatchPrivate const*) const + 428
5   QtCore                                 0x1039d1670 QRegularExpression::match(QString const&, long long, QRegularExpression::MatchType, QFlags<QRegularExpression::MatchOption>) const + 176
6   QtGui                                  0x103f4507c QPlatformFileDialogHelper::cleanFilterList(QString const&) + 96
7   libqcocoa.dylib                        0x101d5c5d0 -[QNSOpenSavePanelDelegate initWithAcceptMode:options:helper:] + 368
8   libqcocoa.dylib                        0x101d5fbac QCocoaFileDialogHelper::createNSOpenSavePanelDelegate() + 184
9   libqcocoa.dylib                        0x101d5fad0 QCocoaFileDialogHelper::show(QFlags<Qt::WindowType>, Qt::WindowModality, QWindow*) + 36
10  QtWidgets                              0x103360c90 QDialogPrivate::setNativeDialogVisible(bool) + 116
11  QtWidgets                              0x10336ab1c QFileDialogPrivate::setVisible(bool) + 52
12  QtWidgets                              0x103361260 QDialog::exec() + 144
13  QtWidgets                              0x10336e334 QFileDialog::getOpenFileUrl(QWidget*, QString const&, QUrl const&, QString const&, QString*, QFlags<QFileDialog::Option>, QList<QString> const&) + 260
14  QtWidgets                              0x10336e188 QFileDialog::getOpenFileName(QWidget*, QString const&, QString const&, QString const&, QString*, QFlags<QFileDialog::Option>) + 184
15  melonDS                                0x1006cf774 MainWindow::onImportSavefile() + 316
16  QtCore                                 0x1038bdca8 void doActivate<false>(QObject*, int, void**) + 728
17  QtGui                                  0x10418d008 QAction::activate(QAction::ActionEvent) + 368
18  QtCore                                 0x1038b87dc QObject::event(QEvent*) + 284
19  QtWidgets                              0x10318c7f4 QApplicationPrivate::notify_helper(QObject*, QEvent*) + 272
20  QtWidgets                              0x10318d65c QApplication::notify(QObject*, QEvent*) + 512
21  QtCore                                 0x1038820ec QCoreApplication::notifyInternal2(QObject*, QEvent*) + 204
22  QtCore                                 0x103882e7c QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) + 528
23  libqcocoa.dylib                        0x101d0e168 QCocoaEventDispatcherPrivate::processPostedEvents() + 192
24  libqcocoa.dylib                        0x101d0ee18 QCocoaEventDispatcherPrivate::postedEventsSourceCallback(void*) + 412
25  CoreFoundation                         0x18254f9dc __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 28
26  CoreFoundation                         0x18254f970 __CFRunLoopDoSource0 + 176
27  CoreFoundation                         0x18254f6e0 __CFRunLoopDoSources0 + 244
28  CoreFoundation                         0x18254e2d0 __CFRunLoopRun + 828
29  CoreFoundation                         0x18254d93c CFRunLoopRunSpecific + 608
30  HIToolbox                              0x18cb16448 RunCurrentEventLoopInMode + 292
31  HIToolbox                              0x18cb160d8 ReceiveNextEventCommon + 220
32  HIToolbox                              0x18cb15fdc _BlockUntilNextEventMatchingListInModeWithFilter + 76
33  AppKit                                 0x185d2ced0 _DPSNextEvent + 660
34  AppKit                                 0x186517eec -[NSApplication(NSEventRouting) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 716
35  AppKit                                 0x185d2037c -[NSApplication run] + 476
36  libqcocoa.dylib                        0x101d0d27c QCocoaEventDispatcher::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) + 1936
37  QtCore                                 0x1038898a0 QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) + 448
38  QtCore                                 0x103882620 QCoreApplication::exec() + 112
39  melonDS                                0x1006c1128 main + 2364
40  dyld                                   0x1820f10e0 start + 2360

Thread 1:
0   libsystem_pthread.dylib                0x18246ce28 start_wqthread + 0

Thread 2:: caulk.messenger.shared:17
0   libsystem_kernel.dylib                 0x1824317f0 semaphore_wait_trap + 8
1   caulk                                  0x18c812690 caulk::semaphore::timed_wait(double) + 212
2   caulk                                  0x18c812544 caulk::concurrent::details::worker_thread::run() + 36
3   caulk                                  0x18c812244 void* caulk::thread_proxy<std::__1::tuple<caulk::thread::attributes, void (caulk::concurrent::details::worker_thread::*)(), std::__1::tuple<caulk::concurrent::details::worker_thread*>>>(void*) + 96
4   libsystem_pthread.dylib                0x182472034 _pthread_start + 136
5   libsystem_pthread.dylib                0x18246ce3c thread_start + 8

Thread 3:: caulk.messenger.shared:high
0   libsystem_kernel.dylib                 0x1824317f0 semaphore_wait_trap + 8
1   caulk                                  0x18c812690 caulk::semaphore::timed_wait(double) + 212
2   caulk                                  0x18c812544 caulk::concurrent::details::worker_thread::run() + 36
3   caulk                                  0x18c812244 void* caulk::thread_proxy<std::__1::tuple<caulk::thread::attributes, void (caulk::concurrent::details::worker_thread::*)(), std::__1::tuple<caulk::concurrent::details::worker_thread*>>>(void*) + 96
4   libsystem_pthread.dylib                0x182472034 _pthread_start + 136
5   libsystem_pthread.dylib                0x18246ce3c thread_start + 8

Thread 4:: com.apple.CFSocket.private
0   libsystem_kernel.dylib                 0x18243c9d4 __select + 8
1   CoreFoundation                         0x182578db4 __CFSocketManager + 636
2   libsystem_pthread.dylib                0x182472034 _pthread_start + 136
3   libsystem_pthread.dylib                0x18246ce3c thread_start + 8

Thread 5:: EmuThread
0   libsystem_kernel.dylib                 0x182434e68 __semwait_signal + 8
1   libsystem_c.dylib                      0x1823142f8 nanosleep + 220
2   libSDL2-2.0.0.dylib                    0x10267a65c SDL_Delay_REAL + 80
3   melonDS                                0x1006dab70 EmuThread::run() + 2300
4   QtCore                                 0x1039aab54 QThreadPrivate::start(void*) + 336
5   libsystem_pthread.dylib                0x182472034 _pthread_start + 136
6   libsystem_pthread.dylib                0x18246ce3c thread_start + 8

Thread 6:: QThread
0   libsystem_kernel.dylib                 0x18243f85c __ulock_wait2 + 8
1   QtCore                                 0x1039b043c bool futexSemaphoreTryAcquire_loop<false>(QBasicAtomicInteger<unsigned long long>&, unsigned long long, unsigned long long, QDeadlineTimer) + 96
2   melonDS                                0x100797dc4 std::__1::__function::__func<melonDS::SoftRenderer::SetupRenderThread(melonDS::GPU&)::$_0, std::__1::allocator<melonDS::SoftRenderer::SetupRenderThread(melonDS::GPU&)::$_0>, void ()>::operator()() + 180
3   melonDS                                0x100718bdc std::__1::__deferred_assoc_state<void, std::__1::__async_func<QThread* QThread::create<std::__1::function<void ()>&>(std::__1::function<void ()>&)::'lambda'(auto&&...)>>::__execute() + 40
4   libc++.1.dylib                         0x182399f3c std::__1::__assoc_sub_state::copy() + 56
5   libc++.1.dylib                         0x18239a2e0 std::__1::future<void>::get() + 32
6   QtCore                                 0x1039aab54 QThreadPrivate::start(void*) + 336
7   libsystem_pthread.dylib                0x182472034 _pthread_start + 136
8   libsystem_pthread.dylib                0x18246ce3c thread_start + 8

Thread 7:: AudioQueue thread
0   libsystem_kernel.dylib                 0x182431874 mach_msg2_trap + 8
1   libsystem_kernel.dylib                 0x182443cf0 mach_msg2_internal + 80
2   libsystem_kernel.dylib                 0x18243a4b0 mach_msg_overwrite + 476
3   libsystem_kernel.dylib                 0x182431bf8 mach_msg + 24
4   CoreFoundation                         0x18254fb84 __CFRunLoopServiceMachPort + 160
5   CoreFoundation                         0x18254e44c __CFRunLoopRun + 1208
6   CoreFoundation                         0x18254d93c CFRunLoopRunSpecific + 608
7   libSDL2-2.0.0.dylib                    0x102671ec4 audioqueue_thread + 1136
8   libSDL2-2.0.0.dylib                    0x1026049d4 SDL_RunThread + 48
9   libSDL2-2.0.0.dylib                    0x10265d72c RunThread + 12
10  libsystem_pthread.dylib                0x182472034 _pthread_start + 136
11  libsystem_pthread.dylib                0x18246ce3c thread_start + 8

Thread 8:: caulk::deferred_logger
0   libsystem_kernel.dylib                 0x1824317f0 semaphore_wait_trap + 8
1   caulk                                  0x18c812690 caulk::semaphore::timed_wait(double) + 212
2   caulk                                  0x18c812544 caulk::concurrent::details::worker_thread::run() + 36
3   caulk                                  0x18c812244 void* caulk::thread_proxy<std::__1::tuple<caulk::thread::attributes, void (caulk::concurrent::details::worker_thread::*)(), std::__1::tuple<caulk::concurrent::details::worker_thread*>>>(void*) + 96
4   libsystem_pthread.dylib                0x182472034 _pthread_start + 136
5   libsystem_pthread.dylib                0x18246ce3c thread_start + 8

Thread 9:: AQConverterThread
0   libsystem_kernel.dylib                 0x18243506c __psynch_cvwait + 8
1   libsystem_pthread.dylib                0x1824725fc _pthread_cond_wait + 1228
2   libAudioToolboxUtility.dylib           0x1910b8ce4 CADeprecated::CAGuard::Wait() + 76
3   AudioToolbox                           0x192397cc8 AQConverterManager::AQConverterThread::ConverterThreadEntry(void*) + 572
4   libAudioToolboxUtility.dylib           0x1910951b0 CADeprecated::CAPThread::Entry(CADeprecated::CAPThread*) + 92
5   libsystem_pthread.dylib                0x182472034 _pthread_start + 136
6   libsystem_pthread.dylib                0x18246ce3c thread_start + 8

Thread 10:: com.apple.audio.IOThread.client
0   libsystem_kernel.dylib                 0x182431874 mach_msg2_trap + 8
1   libsystem_kernel.dylib                 0x182443cf0 mach_msg2_internal + 80
2   libsystem_kernel.dylib                 0x18243a4b0 mach_msg_overwrite + 476
3   libsystem_kernel.dylib                 0x182431bf8 mach_msg + 24
4   CoreAudio                              0x184dbd860 HALB_MachPort::SendSimpleMessageWithSimpleReply(unsigned int, unsigned int, int, int&, bool, unsigned int) + 96
5   CoreAudio                              0x184c943c4 HALC_ProxyIOContext::IOWorkLoop() + 4260
6   CoreAudio                              0x184c92bf0 invocation function for block in HALC_ProxyIOContext::HALC_ProxyIOContext(unsigned int, unsigned int) + 108
7   CoreAudio                              0x184e11f2c HALC_IOThread::Entry(void*) + 88
8   libsystem_pthread.dylib                0x182472034 _pthread_start + 136
9   libsystem_pthread.dylib                0x18246ce3c thread_start + 8

Thread 11:: com.apple.NSEventThread
0   libsystem_kernel.dylib                 0x182431874 mach_msg2_trap + 8
1   libsystem_kernel.dylib                 0x182443cf0 mach_msg2_internal + 80
2   libsystem_kernel.dylib                 0x18243a4b0 mach_msg_overwrite + 476
3   libsystem_kernel.dylib                 0x182431bf8 mach_msg + 24
4   CoreFoundation                         0x18254fb84 __CFRunLoopServiceMachPort + 160
5   CoreFoundation                         0x18254e44c __CFRunLoopRun + 1208
6   CoreFoundation                         0x18254d93c CFRunLoopRunSpecific + 608
7   AppKit                                 0x185e56160 _NSEventThread + 144
8   libsystem_pthread.dylib                0x182472034 _pthread_start + 136
9   libsystem_pthread.dylib                0x18246ce3c thread_start + 8

Thread 12:: Thread (pooled)
0   libsystem_kernel.dylib                 0x18243506c __psynch_cvwait + 8
1   libsystem_pthread.dylib                0x1824725fc _pthread_cond_wait + 1228
2   QtCore                                 0x1039b5610 QWaitConditionPrivate::wait_relative(QDeadlineTimer) + 140
3   QtCore                                 0x1039b533c QWaitConditionPrivate::wait(QDeadlineTimer) + 84
4   QtCore                                 0x1039b5280 QWaitCondition::wait(QMutex*, QDeadlineTimer) + 108
5   QtCore                                 0x1039b0808 QThreadPoolThread::run() + 564
6   QtCore                                 0x1039aab54 QThreadPrivate::start(void*) + 336
7   libsystem_pthread.dylib                0x182472034 _pthread_start + 136
8   libsystem_pthread.dylib                0x18246ce3c thread_start + 8

Thread 13:: Thread (pooled)
0   libsystem_kernel.dylib                 0x18243506c __psynch_cvwait + 8
1   libsystem_pthread.dylib                0x1824725fc _pthread_cond_wait + 1228
2   QtCore                                 0x1039b5610 QWaitConditionPrivate::wait_relative(QDeadlineTimer) + 140
3   QtCore                                 0x1039b533c QWaitConditionPrivate::wait(QDeadlineTimer) + 84
4   QtCore                                 0x1039b5280 QWaitCondition::wait(QMutex*, QDeadlineTimer) + 108
5   QtCore                                 0x1039b0808 QThreadPoolThread::run() + 564
6   QtCore                                 0x1039aab54 QThreadPrivate::start(void*) + 336
7   libsystem_pthread.dylib                0x182472034 _pthread_start + 136
8   libsystem_pthread.dylib                0x18246ce3c thread_start + 8

Thread 14:: Thread (pooled)
0   libsystem_kernel.dylib                 0x18243506c __psynch_cvwait + 8
1   libsystem_pthread.dylib                0x1824725fc _pthread_cond_wait + 1228
2   QtCore                                 0x1039b5610 QWaitConditionPrivate::wait_relative(QDeadlineTimer) + 140
3   QtCore                                 0x1039b533c QWaitConditionPrivate::wait(QDeadlineTimer) + 84
4   QtCore                                 0x1039b5280 QWaitCondition::wait(QMutex*, QDeadlineTimer) + 108
5   QtCore                                 0x1039b0808 QThreadPoolThread::run() + 564
6   QtCore                                 0x1039aab54 QThreadPrivate::start(void*) + 336
7   libsystem_pthread.dylib                0x182472034 _pthread_start + 136
8   libsystem_pthread.dylib                0x18246ce3c thread_start + 8

Thread 15:
0   libsystem_pthread.dylib                0x18246ce28 start_wqthread + 0

Thread 16:
0   libsystem_pthread.dylib                0x18246ce28 start_wqthread + 0

Thread 17:: SaveManager
0   libsystem_kernel.dylib                 0x182434e68 __semwait_signal + 8
1   libsystem_c.dylib                      0x1823142f8 nanosleep + 220
2   QtCore                                 0x1039aaf10 QThread::sleep(std::__1::chrono::duration<long long, std::__1::ratio<1l, 1000000000l>>) + 68
3   melonDS                                0x100721134 SaveManager::run() + 72
4   QtCore                                 0x1039aab54 QThreadPrivate::start(void*) + 336
5   libsystem_pthread.dylib                0x182472034 _pthread_start + 136
6   libsystem_pthread.dylib                0x18246ce3c thread_start + 8

Thread 18:: SaveManager
0   libsystem_kernel.dylib                 0x182434e68 __semwait_signal + 8
1   libsystem_c.dylib                      0x1823142f8 nanosleep + 220
2   QtCore                                 0x1039aaf10 QThread::sleep(std::__1::chrono::duration<long long, std::__1::ratio<1l, 1000000000l>>) + 68
3   melonDS                                0x100721134 SaveManager::run() + 72
4   QtCore                                 0x1039aab54 QThreadPrivate::start(void*) + 336
5   libsystem_pthread.dylib                0x182472034 _pthread_start + 136
6   libsystem_pthread.dylib                0x18246ce3c thread_start + 8

Thread 19:
0   libsystem_pthread.dylib                0x18246ce28 start_wqthread + 0

Thread 0 crashed with ARM Thread State (64-bit):
    x0: 0x000000016f74d350   x1: 0x0000000106243998   x2: 0x000000000000001d   x3: 0x0000000000000000
    x4: 0x0000000000000000   x5: 0x00006000034b4f00   x6: 0x0000600002115d40   x7: 0x0000000000000000
    x8: 0x000000016f745308   x9: 0x0000000000008030  x10: 0x0000000000000001  x11: 0x0000000000000000
   x12: 0x0000000000000029  x13: 0x0000000000000000  x14: 0x00000000000007fb  x15: 0x00000000dd823819
   x16: 0x000000018246ce40  x17: 0x0000600002b04e00  x18: 0x0000000000000000  x19: 0x00006000034b4f00
   x20: 0x000000000000001d  x21: 0x000060000262aef0  x22: 0x0000600003c3e920  x23: 0x0000600002612e40
   x24: 0x0000000000000000  x25: 0x0000000000000003  x26: 0x0000600002115d40  x27: 0x0000000000000000
   x28: 0x000060000262aef0   fp: 0x000000016f74d340   lr: 0x000000010226d328
    sp: 0x000000016f745300   pc: 0x0000000106243998 cpsr: 0x20001000
   far: 0x0000000106243998  esr: 0x8200000f (Instruction Abort) Permission fault

Binary Images:
       0x105b68000 -        0x105b6bfff com.apple.TextInputUIMac.axbundle (1.0) <7a4ba625-9dff-382b-b8c3-7bb5e6552180> /System/Library/Accessibility/BundlesBase/com.apple.TextInputUIMac.axbundle/Versions/A/com.apple.TextInputUIMac
       0x106324000 -        0x10632bfff com.apple.AppKit.axbundle (1.0) <a3a9547f-661f-3d31-8332-e3a6420bff94> /System/Library/Accessibility/BundlesBase/com.apple.AppKit.axbundle/Versions/A/com.apple.AppKit
       0x1229a4000 -        0x123373fff com.apple.audio.AudioDSPComponents (1.0) <dc182fc2-dd27-39e3-b3fd-acfb178f67f0> /System/Library/Components/AudioDSP.component/Contents/MacOS/AudioDSP
       0x1132f0000 -        0x113427fff com.apple.audio.units.Components (1.14) <ad1547a3-5cdf-3a4b-8348-c8a3a7c78cc9> /System/Library/Components/CoreAudio.component/Contents/MacOS/CoreAudio
       0x1047b0000 -        0x1047b7fff libqtga.dylib (*) <3565d0dc-290b-3734-9599-390db6bbb5dd> /opt/homebrew/*/libqtga.dylib
       0x103ea4000 -        0x103eabfff libqicns.dylib (*) <1c0ab266-54d4-396b-b93e-6a6fafd38e0f> /opt/homebrew/*/libqicns.dylib
       0x103e5c000 -        0x103e63fff libqpdf.dylib (*) <57fb6f2c-e83a-3be9-a7af-b2e73d11b5f4> /opt/homebrew/*/libqpdf.dylib
       0x114984000 -        0x115017fff org.qt-project.QtPdf (6.7) <b3901f1d-1e7d-3150-9dc9-5163f08a1047> /opt/homebrew/*/QtPdf.framework/Versions/A/QtPdf
       0x103e8c000 -        0x103e93fff libqjp2.dylib (*) <b87519e7-98e3-33e8-9ad5-eb629de9f627> /opt/homebrew/*/libqjp2.dylib
       0x112144000 -        0x112177fff libjasper.7.0.0.dylib (*) <c894456f-4072-37db-b2b6-aa124a333599> /opt/homebrew/*/libjasper.7.0.0.dylib
       0x103e74000 -        0x103e7bfff libqmng.dylib (*) <fefc382a-12f7-3155-9de2-250cf365d289> /opt/homebrew/*/libqmng.dylib
       0x106464000 -        0x1064a3fff libmng.2.dylib (*) <8b090163-9197-32c5-a098-b3e584295f9c> /opt/homebrew/*/libmng.2.dylib
       0x104808000 -        0x104843fff liblcms2.2.dylib (*) <e7a6ea33-e47c-3548-90d4-1eed45091886> /opt/homebrew/*/liblcms2.2.dylib
       0x103138000 -        0x10313ffff libqsvg.dylib (*) <69137ccf-de55-32ba-8237-3dac722e149f> /opt/homebrew/*/libqsvg.dylib
       0x1063e8000 -        0x10642bfff org.qt-project.QtSvg (6.7) <9edd4844-60f8-3913-b230-e49466886ba4> /opt/homebrew/*/QtSvg.framework/Versions/A/QtSvg
       0x103e40000 -        0x103e47fff libqtiff.dylib (*) <82943ec0-1a11-3fdb-9309-3b307f48decb> /opt/homebrew/*/libqtiff.dylib
       0x106364000 -        0x1063c7fff libtiff.6.dylib (*) <f96096fe-e34a-333a-979b-8b71c1e3d073> /opt/homebrew/*/libtiff.6.dylib
       0x103154000 -        0x10315bfff libqjpeg.dylib (*) <a0282b94-b4da-3fff-9ac2-c978dda8d761> /opt/homebrew/*/libqjpeg.dylib
       0x10473c000 -        0x104797fff libjpeg.8.3.2.dylib (*) <b897070d-bb2a-366d-8826-97bb84d1a638> /opt/homebrew/*/libjpeg.8.3.2.dylib
       0x103124000 -        0x10312bfff libqmacheif.dylib (*) <e036e7d0-8677-367e-b038-466a6f147c8a> /opt/homebrew/*/libqmacheif.dylib
       0x103110000 -        0x103117fff libqico.dylib (*) <fc4881dd-5b6b-31e3-aa3c-ac2427dd25d2> /opt/homebrew/*/libqico.dylib
       0x1030e4000 -        0x1030ebfff libqwebp.dylib (*) <c2501543-b511-3e24-ad4c-0ebfaab479e3> /opt/homebrew/*/libqwebp.dylib
       0x102da4000 -        0x102da7fff libwebpdemux.2.0.15.dylib (*) <69a0a47f-7837-3343-9007-ff29f1836d2a> /opt/homebrew/*/libwebpdemux.2.0.15.dylib
       0x1030cc000 -        0x1030d3fff libwebpmux.3.1.0.dylib (*) <a18155e2-fd5b-3735-9604-f964f0ab8683> /opt/homebrew/*/libwebpmux.3.1.0.dylib
       0x103de8000 -        0x103e27fff libwebp.7.1.9.dylib (*) <b244e1ca-e3fe-3897-a0a3-d14ed220a88b> /opt/homebrew/*/libwebp.7.1.9.dylib
       0x1030fc000 -        0x1030fffff libsharpyuv.0.1.0.dylib (*) <62623b16-60a4-32f6-81a4-585016484956> /opt/homebrew/*/libsharpyuv.0.1.0.dylib
       0x1030b8000 -        0x1030bffff libqwbmp.dylib (*) <c5f0b489-6437-389a-af98-231d59de2e7f> /opt/homebrew/*/libqwbmp.dylib
       0x102d90000 -        0x102d97fff libqgif.dylib (*) <ae0552a3-3607-38f0-8325-63c3ae103b42> /opt/homebrew/*/libqgif.dylib
       0x102bc0000 -        0x102bcbfff libobjc-trampolines.dylib (*) <39d1d8d0-6996-3bd4-8ce9-39512bb65c82> /usr/lib/libobjc-trampolines.dylib
       0x103074000 -        0x103097fff libqmacstyle.dylib (*) <089c3060-27a4-39fa-8ef0-c8469583c4e2> /opt/homebrew/*/libqmacstyle.dylib
       0x101cf8000 -        0x101d8bfff libqcocoa.dylib (*) <3c95b528-fe41-3b01-b868-f2f227e330e3> /opt/homebrew/*/libqcocoa.dylib
       0x102b84000 -        0x102ba3fff com.apple.security.csparser (3.0) <8349e35f-20c6-3332-899f-37b802eb7948> /System/Library/Frameworks/Security.framework/Versions/A/PlugIns/csparser.bundle/Contents/MacOS/csparser
       0x1020b8000 -        0x10213bfff org.qt-project.QtMultimedia (6.7) <c0b5d3bb-1394-3db9-8461-432dd94c55dd> /opt/homebrew/*/QtMultimedia.framework/Versions/A/QtMultimedia
       0x101fc0000 -        0x101fc7fff org.qt-project.QtOpenGLWidgets (6.7) <91e93c39-8c25-3a60-9b53-8163f2c154e0> /opt/homebrew/*/QtOpenGLWidgets.framework/Versions/A/QtOpenGLWidgets
       0x10200c000 -        0x102023fff libslirp.0.dylib (*) <c488e6f5-fb87-3f9d-aed1-7fb137245313> /opt/homebrew/*/libslirp.0.dylib
       0x1022f8000 -        0x1023e7fff libglib-2.0.0.dylib (*) <80aa0559-f78c-3932-a57a-cd80e140e154> /opt/homebrew/*/libglib-2.0.0.dylib
       0x102038000 -        0x10204ffff libintl.8.dylib (*) <9924fd2d-8556-34b2-add9-ab2838b3359b> /opt/homebrew/*/libintl.8.dylib
       0x1025a0000 -        0x1026b7fff libSDL2-2.0.0.dylib (*) <ca8dc759-506f-39fa-888e-a0e0bbd014e4> /opt/homebrew/*/libSDL2-2.0.0.dylib
       0x102420000 -        0x1024a3fff libarchive.13.dylib (*) <7ba4aa17-0a0e-327c-8172-268f20280e64> /opt/homebrew/*/libarchive.13.dylib
       0x1024c8000 -        0x102553fff libzstd.1.5.6.dylib (*) <d90ee661-7526-37bb-a50c-b5d85dfc63ce> /opt/homebrew/*/libzstd.1.5.6.dylib
       0x102908000 -        0x102a0ffff org.qt-project.QtNetwork (6.7) <2e80450c-ed71-3d7a-ae0d-d7639adc84df> /opt/homebrew/*/QtNetwork.framework/Versions/A/QtNetwork
       0x103180000 -        0x10355ffff org.qt-project.QtWidgets (6.7) <c505cc33-5ce7-3ee7-a689-0aa750f7ebee> /opt/homebrew/*/QtWidgets.framework/Versions/A/QtWidgets
       0x102720000 -        0x102777fff org.qt-project.QtOpenGL (6.7) <69cc08d2-312e-3c83-9f76-8d72b60ebac8> /opt/homebrew/*/QtOpenGL.framework/Versions/A/QtOpenGL
       0x103ec0000 -        0x1042cffff org.qt-project.QtGui (6.7) <2e507a85-693c-3662-a420-fbadfbeb356e> /opt/homebrew/*/QtGui.framework/Versions/A/QtGui
       0x10380c000 -        0x103bc3fff org.qt-project.QtCore (6.7) <170c1f76-7124-303e-88c1-eba1582fc2be> /opt/homebrew/*/QtCore.framework/Versions/A/QtCore
       0x101fe0000 -        0x101febfff libbrotlidec.1.1.0.dylib (*) <2b673811-9400-3f1c-8ec0-d2a7d4b75e2c> /opt/homebrew/*/libbrotlidec.1.1.0.dylib
       0x102db4000 -        0x102f43fff libicui18n.74.2.dylib (*) <f5b73e4a-b5ac-3b12-99e2-c29789a77fd2> /opt/homebrew/*/libicui18n.74.2.dylib
       0x104580000 -        0x1046affff libicuuc.74.2.dylib (*) <970eb52f-1e1f-3acf-9ff9-92999dd585e1> /opt/homebrew/*/libicuuc.74.2.dylib
       0x1064dc000 -        0x10823bfff libicudata.74.2.dylib (*) <f2d1da67-e7db-31c5-85e3-8d04b644c63a> /opt/homebrew/*/libicudata.74.2.dylib
       0x102060000 -        0x10206bfff libdouble-conversion.3.3.0.dylib (*) <d80a902c-3014-32f2-9a49-b1efcc044bc1> /opt/homebrew/*/libdouble-conversion.3.3.0.dylib
       0x101ff8000 -        0x101ffffff libb2.1.dylib (*) <95a79095-a543-353b-bae3-757af7c0115b> /opt/homebrew/*/libb2.1.dylib
       0x102250000 -        0x1022bbfff libpcre2-16.0.dylib (*) <fcbed3c0-ae3b-3ae5-915d-1cb3bf09daf6> /opt/homebrew/*/libpcre2-16.0.dylib
       0x101fb0000 -        0x101fb3fff libgthread-2.0.0.dylib (*) <cddf5913-7fc7-37fc-8906-cc173bfb8c9b> /opt/homebrew/*/libgthread-2.0.0.dylib
       0x10284c000 -        0x1028bffff libpcre2-8.0.dylib (*) <0e90f358-d449-3571-95ad-690078c20228> /opt/homebrew/*/libpcre2-8.0.dylib
       0x1021d0000 -        0x1021effff libbrotlicommon.1.1.0.dylib (*) <d6d17b55-1cd9-3744-8d06-c9990225fa39> /opt/homebrew/*/libbrotlicommon.1.1.0.dylib
       0x102be8000 -        0x102c57fff org.qt-project.QtDBus (6.7) <fbc83c74-276c-3c18-ad0d-1fd9a48e5f49> /opt/homebrew/*/QtDBus.framework/Versions/A/QtDBus
       0x1021fc000 -        0x10221ffff libpng16.16.dylib (*) <51fea3a8-c0b1-3c56-8123-899206473dd2> /opt/homebrew/*/libpng16.16.dylib
       0x104860000 -        0x10491bfff libharfbuzz.0.dylib (*) <9e922861-3898-3c69-820e-f1f11ca96a2b> /opt/homebrew/*/libharfbuzz.0.dylib
       0x102094000 -        0x10209ffff libmd4c.0.5.2.dylib (*) <a43306ad-7575-3a2c-96ee-8c2348239077> /opt/homebrew/*/libmd4c.0.5.2.dylib
       0x102cdc000 -        0x102d57fff libfreetype.6.dylib (*) <166fea07-2eb1-3cc6-bd74-1f25515bc9e0> /opt/homebrew/*/libfreetype.6.dylib
       0x102af4000 -        0x102b23fff libdbus-1.3.dylib (*) <4d0182b6-21b7-31d9-bef6-a89e75b9a93c> /opt/homebrew/*/libdbus-1.3.dylib
       0x102570000 -        0x102583fff libgraphite2.3.2.1.dylib (*) <a9d77a8a-aea1-3721-8e2a-52965c1167e9> /opt/homebrew/*/libgraphite2.3.2.1.dylib
       0x1027f4000 -        0x102813fff liblzma.5.dylib (*) <1e29dfad-90c2-3d94-889d-7a212125b52b> /opt/homebrew/*/liblzma.5.dylib
       0x1028d4000 -        0x1028f3fff liblz4.1.9.4.dylib (*) <fab75602-2a38-3cbd-827a-7e04e6c34176> /opt/homebrew/*/liblz4.1.9.4.dylib
       0x1006b0000 -        0x100907fff net.kuribo64.melonDS (0.9.5) <0a2940ed-bbf0-304e-b045-297e58a7d446> /Users/USER/*/melonDS.app/Contents/MacOS/melonDS
               0x0 - 0xffffffffffffffff ??? (*) <00000000-0000-0000-0000-000000000000> ???
       0x1824d2000 -        0x1829a9fff com.apple.CoreFoundation (6.9) <6030a572-b731-3f46-b3a0-2598fbb98c9a> /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
       0x18cae6000 -        0x18cda5fff com.apple.HIToolbox (2.1.1) <db8a8b63-7bfb-384b-b0a9-c124675fbb39> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.framework/Versions/A/HIToolbox
       0x185cf3000 -        0x18701efff com.apple.AppKit (6.9) <873e5da0-bc01-399b-bf60-4066922d6a17> /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit
       0x1820eb000 -        0x18217f387 dyld (*) <50746901-db0e-39a0-b391-baaa6b82ad0f> /usr/lib/dyld
       0x18246b000 -        0x182477ff3 libsystem_pthread.dylib (*) <449bbad3-f7ef-371d-9a59-fd4ffa78289b> /usr/lib/system/libsystem_pthread.dylib
       0x182430000 -        0x18246afff libsystem_kernel.dylib (*) <a7228b5d-53c7-3fe9-84e4-2a8c04dcf051> /usr/lib/system/libsystem_kernel.dylib
       0x18c810000 -        0x18c839fff com.apple.audio.caulk (1.0) <f3096db3-a767-3de6-b0ba-a9b44476c5f2> /System/Library/PrivateFrameworks/caulk.framework/Versions/A/caulk
       0x182307000 -        0x182385ffb libsystem_c.dylib (*) <cc7a439e-f104-3047-995c-9a5a3cc4a442> /usr/lib/system/libsystem_c.dylib
       0x182386000 -        0x182413ff7 libc++.1.dylib (*) <f9b004fe-f1d6-307e-b399-568b8ac0cb6f> /usr/lib/libc++.1.dylib
       0x191088000 -        0x1910c0fff libAudioToolboxUtility.dylib (*) <edb994d5-39e4-30bb-9e0a-8761e5f0bb22> /usr/lib/libAudioToolboxUtility.dylib
       0x19236f000 -        0x1924edfff com.apple.audio.toolbox.AudioToolbox (1.14) <50940143-822f-34d4-a722-3f9ecb6aa708> /System/Library/Frameworks/AudioToolbox.framework/Versions/A/AudioToolbox
       0x184aa9000 -        0x18519cfff com.apple.audio.CoreAudio (5.0) <b309c860-61a6-3c72-8ec6-98d944053025> /System/Library/Frameworks/CoreAudio.framework/Versions/A/CoreAudio

External Modification Summary:
  Calls made by other processes targeting this process:
    task_for_pid: 0
    thread_create: 0
    thread_set_state: 0
  Calls made by this process:
    task_for_pid: 0
    thread_create: 0
    thread_set_state: 0
  Calls made by all processes on this machine:
    task_for_pid: 11
    thread_create: 0
    thread_set_state: 282

VM Region Summary:
ReadOnly portion of Libraries: Total=1.4G resident=0K(0%) swapped_out_or_unallocated=1.4G(100%)
Writable regions: Total=2.6G written=0K(0%) resident=0K(0%) swapped_out=0K(0%) unallocated=2.6G(100%)

                                VIRTUAL   REGION 
REGION TYPE                        SIZE    COUNT (non-coalesced) 
===========                     =======  ======= 
Accelerate framework               256K        2 
Activity Tracing                   256K        1 
Audio                             10.0M        1 
CG image                           336K       19 
ColorSync                          624K       29 
CoreAnimation                     1072K       57 
CoreGraphics                        48K        3 
CoreUI image data                 3392K       21 
Foundation                          16K        1 
Kernel Alloc Once                   32K        1 
MALLOC                             2.5G       85 
MALLOC guard page                  384K       24 
STACK GUARD                       56.3M       20 
Stack                             18.1M       20 
VM_ALLOCATE                       33.4M       25 
__AUTH                            1688K      320 
__AUTH_CONST                      22.7M      513 
__CTF                               824        1 
__DATA                            22.8M      554 
__DATA_CONST                      27.1M      578 
__DATA_DIRTY                      1351K      165 
__FONT_DATA                          4K        1 
__INFO_FILTER                         8        1 
__LINKEDIT                       911.5M       66 
__OBJC_RO                         71.2M        1 
__OBJC_RW                         2171K        1 
__TEXT                           528.5M      595 
dyld private memory                272K        2 
mapped file                      366.0M       37 
shared memory                      992K       18 
===========                     =======  ======= 
TOTAL                              4.5G     3162 

Any help on this would be appreciated.

Thanks, Andrew

nadiaholmquist commented 6 months ago

This is a known issue with a library dependency and there's currently no workaround. If you quit melonDS and open it again It shouldn't happen on the first try.

I'll try to get it worked out with the package manager melonDS macOS builds use.

andrewjc03 commented 6 months ago

Got it, thank you!

SilentSparrow02 commented 5 months ago

Just wanted to mention, this is happening for me on Windows (11) as well...