WerWolv / ImHex

🔍 A Hex Editor for Reverse Engineers, Programmers and people who value their retinas when working at 3 AM.
https://imhex.werwolv.net
GNU General Public License v2.0
44.61k stars 1.94k forks source link

[Bug] 1.26.0 Crashes on startup on macOS #854

Closed dopplershift closed 1 year ago

dopplershift commented 1 year ago

Operating System

MacOS

What's the issue you encountered?

Tried to update to 1.26.0, but this version crashes on startup for me.

How can the issue be reproduced?

  1. Install 1.26.0
  2. Start imhex
  3. Get crash dialog

ImHex Version

1.26.0

ImHex Build Type

Installation type

Installed from macOS dmg (GPU version) on GitHub

Additional context?

macOS 12.6.2

WerWolv commented 1 year ago

Hey Please provide some more information such as the crash log. I don't have a mac so I can't debug this at all otherwise

dopplershift commented 1 year ago

Sure. I didn't include initially because it's not particularly informative and I was hoping you'd be able to test directly more easily.

Full crash report:

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

Process:               imhex [23233]
Path:                  /Applications/imhex.app/Contents/MacOS/imhex
Identifier:            net.WerWolv.ImHex
Version:               1.26 (1.26.0)
Code Type:             X86-64 (Native)
Parent Process:        launchd [1]
User ID:               502

Date/Time:             2023-01-04 10:41:58.7547 -0700
OS Version:            macOS 12.6.2 (21G320)
Report Version:        12
Bridge OS Version:     7.1 (20P2059)
Anonymous UUID:        447792BE-9EDE-60CE-9CF2-C07962BE2B59

Sleep/Wake UUID:       28AD2725-7669-4EF8-9B6F-AADA2812A601

Time Awake Since Boot: 330000 seconds
Time Since Wake:       2746 seconds

System Integrity Protection: enabled

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

Exception Type:        EXC_CRASH (SIGABRT)
Exception Codes:       0x0000000000000000, 0x0000000000000000
Exception Note:        EXC_CORPSE_NOTIFY

Application Specific Information:
abort() called

Thread 0 Crashed::  Dispatch queue: com.apple.main-thread
0   libsystem_kernel.dylib              0x7ff80b64d00e __pthread_kill + 10
1   libsystem_pthread.dylib             0x7ff80b6831ff pthread_kill + 263
2   libsystem_c.dylib                   0x7ff80b5ced24 abort + 123
3   libstdc++.6.dylib                      0x10a8631b1 __gnu_cxx::__verbose_terminate_handler() (.cold) + 92

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

Thread 2:
0   libsystem_pthread.dylib             0x7ff80b67ef48 start_wqthread + 0

Thread 3:
0   libsystem_pthread.dylib             0x7ff80b67ef48 start_wqthread + 0

Thread 4:
0   libsystem_pthread.dylib             0x7ff80b67ef48 start_wqthread + 0

Thread 5:: com.apple.NSEventThread
0   libsystem_kernel.dylib              0x7ff80b64697a mach_msg_trap + 10
1   libsystem_kernel.dylib              0x7ff80b646ce8 mach_msg + 56
2   CoreFoundation                      0x7ff80b74a36d __CFRunLoopServiceMachPort + 319
3   CoreFoundation                      0x7ff80b7489f8 __CFRunLoopRun + 1276
4   CoreFoundation                      0x7ff80b747e3c CFRunLoopRunSpecific + 562
5   AppKit                              0x7ff80e2ef9ce _NSEventThread + 132
6   libsystem_pthread.dylib             0x7ff80b6834e1 _pthread_start + 125
7   libsystem_pthread.dylib             0x7ff80b67ef6b thread_start + 15

Thread 6:
0   libsystem_kernel.dylib              0x7ff80b6493ea __psynch_cvwait + 10
1   libsystem_pthread.dylib             0x7ff80b683a6f _pthread_cond_wait + 1249
2   libimhex.1.26.0.dylib                  0x10aee72bb hex::TaskManager::runner(std::stop_token const&) + 411
3   libimhex.1.26.0.dylib                  0x10aee7120 0x10ae93000 + 344352

Thread 7:
0   libsystem_kernel.dylib              0x7ff80b6493ea __psynch_cvwait + 10
1   libsystem_pthread.dylib             0x7ff80b683a6f _pthread_cond_wait + 1249
2   libimhex.1.26.0.dylib                  0x10aee72bb hex::TaskManager::runner(std::stop_token const&) + 411
3   libimhex.1.26.0.dylib                  0x10aee7120 0x10ae93000 + 344352

Thread 8:
0   libsystem_kernel.dylib              0x7ff80b6493ea __psynch_cvwait + 10
1   libsystem_pthread.dylib             0x7ff80b683a6f _pthread_cond_wait + 1249
2   libimhex.1.26.0.dylib                  0x10aee72bb hex::TaskManager::runner(std::stop_token const&) + 411
3   libimhex.1.26.0.dylib                  0x10aee7120 0x10ae93000 + 344352

Thread 9:
0   libsystem_kernel.dylib              0x7ff80b6493ea __psynch_cvwait + 10
1   libsystem_pthread.dylib             0x7ff80b683a6f _pthread_cond_wait + 1249
2   libimhex.1.26.0.dylib                  0x10aee72bb hex::TaskManager::runner(std::stop_token const&) + 411
3   libimhex.1.26.0.dylib                  0x10aee7120 0x10ae93000 + 344352

Thread 10:
0   libsystem_kernel.dylib              0x7ff80b6493ea __psynch_cvwait + 10
1   libsystem_pthread.dylib             0x7ff80b683a6f _pthread_cond_wait + 1249
2   libimhex.1.26.0.dylib                  0x10aee72bb hex::TaskManager::runner(std::stop_token const&) + 411
3   libimhex.1.26.0.dylib                  0x10aee7120 0x10ae93000 + 344352

Thread 11:
0   libsystem_kernel.dylib              0x7ff80b6493ea __psynch_cvwait + 10
1   libsystem_pthread.dylib             0x7ff80b683a6f _pthread_cond_wait + 1249
2   libimhex.1.26.0.dylib                  0x10aee72bb hex::TaskManager::runner(std::stop_token const&) + 411
3   libimhex.1.26.0.dylib                  0x10aee7120 0x10ae93000 + 344352

Thread 12:
0   libsystem_kernel.dylib              0x7ff80b6493ea __psynch_cvwait + 10
1   libsystem_pthread.dylib             0x7ff80b683a6f _pthread_cond_wait + 1249
2   libimhex.1.26.0.dylib                  0x10aee72bb hex::TaskManager::runner(std::stop_token const&) + 411
3   libimhex.1.26.0.dylib                  0x10aee7120 0x10ae93000 + 344352

Thread 13:
0   libsystem_kernel.dylib              0x7ff80b6493ea __psynch_cvwait + 10
1   libsystem_pthread.dylib             0x7ff80b683a6f _pthread_cond_wait + 1249
2   libimhex.1.26.0.dylib                  0x10aee72bb hex::TaskManager::runner(std::stop_token const&) + 411
3   libimhex.1.26.0.dylib                  0x10aee7120 0x10ae93000 + 344352

Thread 14:
0   libsystem_kernel.dylib              0x7ff80b6493ea __psynch_cvwait + 10
1   libsystem_pthread.dylib             0x7ff80b683a6f _pthread_cond_wait + 1249
2   libimhex.1.26.0.dylib                  0x10aee72bb hex::TaskManager::runner(std::stop_token const&) + 411
3   libimhex.1.26.0.dylib                  0x10aee7120 0x10ae93000 + 344352

Thread 15:
0   libsystem_kernel.dylib              0x7ff80b6493ea __psynch_cvwait + 10
1   libsystem_pthread.dylib             0x7ff80b683a6f _pthread_cond_wait + 1249
2   libimhex.1.26.0.dylib                  0x10aee72bb hex::TaskManager::runner(std::stop_token const&) + 411
3   libimhex.1.26.0.dylib                  0x10aee7120 0x10ae93000 + 344352

Thread 16:
0   libsystem_kernel.dylib              0x7ff80b6493ea __psynch_cvwait + 10
1   libsystem_pthread.dylib             0x7ff80b683a6f _pthread_cond_wait + 1249
2   libimhex.1.26.0.dylib                  0x10aee72bb hex::TaskManager::runner(std::stop_token const&) + 411
3   libimhex.1.26.0.dylib                  0x10aee7120 0x10ae93000 + 344352

Thread 17:
0   libsystem_kernel.dylib              0x7ff80b6493ea __psynch_cvwait + 10
1   libsystem_pthread.dylib             0x7ff80b683a6f _pthread_cond_wait + 1249
2   libimhex.1.26.0.dylib                  0x10aee72bb hex::TaskManager::runner(std::stop_token const&) + 411
3   libimhex.1.26.0.dylib                  0x10aee7120 0x10ae93000 + 344352

Thread 18:
0   libsystem_kernel.dylib              0x7ff80b6493ea __psynch_cvwait + 10
1   libsystem_pthread.dylib             0x7ff80b683a6f _pthread_cond_wait + 1249
2   libimhex.1.26.0.dylib                  0x10aee72bb hex::TaskManager::runner(std::stop_token const&) + 411
3   libimhex.1.26.0.dylib                  0x10aee7120 0x10ae93000 + 344352

Thread 19:
0   libsystem_kernel.dylib              0x7ff80b6493ea __psynch_cvwait + 10
1   libsystem_pthread.dylib             0x7ff80b683a6f _pthread_cond_wait + 1249
2   libimhex.1.26.0.dylib                  0x10aee72bb hex::TaskManager::runner(std::stop_token const&) + 411
3   libimhex.1.26.0.dylib                  0x10aee7120 0x10ae93000 + 344352

Thread 20:
0   libsystem_kernel.dylib              0x7ff80b6493ea __psynch_cvwait + 10
1   libsystem_pthread.dylib             0x7ff80b683a6f _pthread_cond_wait + 1249
2   libimhex.1.26.0.dylib                  0x10aee72bb hex::TaskManager::runner(std::stop_token const&) + 411
3   libimhex.1.26.0.dylib                  0x10aee7120 0x10ae93000 + 344352

Thread 21:
0   libsystem_kernel.dylib              0x7ff80b6493ea __psynch_cvwait + 10
1   libsystem_pthread.dylib             0x7ff80b683a6f _pthread_cond_wait + 1249
2   libimhex.1.26.0.dylib                  0x10aee72bb hex::TaskManager::runner(std::stop_token const&) + 411
3   libimhex.1.26.0.dylib                  0x10aee7120 0x10ae93000 + 344352

Thread 0 crashed with X86 Thread State (64-bit):
  rax: 0x0000000000000000  rbx: 0x000000010c3d2600  rcx: 0x00007ff7b5fa86b8  rdx: 0x0000000000000000
  rdi: 0x0000000000000103  rsi: 0x0000000000000006  rbp: 0x00007ff7b5fa86e0  rsp: 0x00007ff7b5fa86b8
   r8: 0x00007ff84cdd6c98   r9: 0x0000000000000000  r10: 0x0000000000000000  r11: 0x0000000000000246
  r12: 0x0000000000000103  r13: 0x00007fdb2f2a0340  r14: 0x0000000000000006  r15: 0x0000000000000016
  rip: 0x00007ff80b64d00e  rfl: 0x0000000000000246  cr2: 0x000000010a8631b1

Logical CPU:     0
Error Code:      0x02000148 
Trap Number:     133

Binary Images:
    0x7ff80b645000 -     0x7ff80b67cfff libsystem_kernel.dylib (*) <07ad083c-2835-3d18-bb6d-6f081840c8a4> /usr/lib/system/libsystem_kernel.dylib
    0x7ff80b67d000 -     0x7ff80b688fff libsystem_pthread.dylib (*)  /usr/lib/system/libsystem_pthread.dylib
    0x7ff80b54d000 -     0x7ff80b5d5fff libsystem_c.dylib (*)  /usr/lib/system/libsystem_c.dylib
       0x10a754000 -        0x10a903fff libstdc++.6.dylib (*) <7e4c9182-5306-3451-a083-6709e715872a> /Applications/imhex.app/Contents/Frameworks/libstdc++.6.dylib
    0x7ff80b6ca000 -     0x7ff80bbccfff com.apple.CoreFoundation (6.9) <93c48919-68af-367e-9a67-db4159bc962c> /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
    0x7ff80e143000 -     0x7ff80efd2fff com.apple.AppKit (6.9)  /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit
       0x10ae93000 -        0x10bad2fff libimhex.1.26.0.dylib (*) <418054ed-e4a7-39c5-b4c7-b05548da0487> /Applications/imhex.app/Contents/Frameworks/libimhex.1.26.0.dylib

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: 0
    thread_create: 0
    thread_set_state: 0

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

                                VIRTUAL   REGION 
REGION TYPE                        SIZE    COUNT (non-coalesced) 
===========                     =======  ======= 
Accelerate framework               128K        1 
Activity Tracing                   256K        1 
CG backing stores                 9024K        8 
ColorSync                          212K       24 
CoreAnimation                        4K        1 
CoreGraphics                        16K        3 
CoreServices                        16K        1 
Dispatch continuations           128.0M        1 
Foundation                          16K        1 
Kernel Alloc Once                    8K        1 
MALLOC                           284.0M       67 
MALLOC guard page                   48K       10 
MALLOC_MEDIUM (reserved)           1.3G       11         reserved VM address space (unallocated)
ObjC additional data                15K        1 
OpenGL GLSL                        256K        3 
STACK GUARD                       56.1M       22 
Stack                             18.7M       22 
VM_ALLOCATE                        504K       29 
__CTF                               756        1 
__DATA                            34.8M      317 
__DATA_CONST                      13.8M      181 
__DATA_DIRTY                       541K       98 
__FONT_DATA                          4K        1 
__GLSLBUILTINS                    5176K        1 
__LINKEDIT                       650.4M       24 
__TEXT                           259.2M      325 
__UNICODE                          592K        1 
dyld private memory               1088K        3 
mapped file                      153.5M       18 
shared memory                     1284K       17 
===========                     =======  ======= 
TOTAL                              2.9G     1194 
TOTAL, minus reserved VM space     1.6G     1194 

-----------
Full Report
-----------

{"app_name":"imhex","timestamp":"2023-01-04 10:41:58.00 -0700","app_version":"1.26","slice_uuid":"052d18c5-4d96-31cf-8a74-770e3eb50d06","build_version":"1.26.0","platform":1,"bundleID":"net.WerWolv.ImHex","share_with_app_devs":1,"is_first_party":0,"bug_type":"309","os_version":"macOS 12.6.2 (21G320)","incident_id":"D9F963E4-C157-4CEA-898F-7A72B05BD3FC","name":"imhex"}
{
  "uptime" : 330000,
  "procLaunch" : "2023-01-04 10:41:55.1362 -0700",
  "procRole" : "Foreground",
  "version" : 2,
  "userID" : 502,
  "deployVersion" : 210,
  "modelCode" : "MacBookPro16,4",
  "procStartAbsTime" : 338801265972487,
  "coalitionID" : 76776,
  "osVersion" : {
    "train" : "macOS 12.6.2",
    "build" : "21G320",
    "releaseType" : "User"
  },
  "captureTime" : "2023-01-04 10:41:58.7547 -0700",
  "incident" : "D9F963E4-C157-4CEA-898F-7A72B05BD3FC",
  "bug_type" : "309",
  "pid" : 23233,
  "procExitAbsTime" : 338804883650777,
  "cpuType" : "X86-64",
  "procName" : "imhex",
  "procPath" : "\/Applications\/imhex.app\/Contents\/MacOS\/imhex",
  "bundleInfo" : {"CFBundleShortVersionString":"1.26","CFBundleVersion":"1.26.0","CFBundleIdentifier":"net.WerWolv.ImHex"},
  "storeInfo" : {"deviceIdentifierForVendor":"EC236AEE-F9EB-52BA-96D5-33F3D3865C78","thirdParty":true},
  "parentProc" : "launchd",
  "parentPid" : 1,
  "coalitionName" : "net.WerWolv.ImHex",
  "crashReporterKey" : "447792BE-9EDE-60CE-9CF2-C07962BE2B59",
  "wakeTime" : 2746,
  "bridgeVersion" : {"build":"20P2059","train":"7.1"},
  "sleepWakeUUID" : "28AD2725-7669-4EF8-9B6F-AADA2812A601",
  "sip" : "enabled",
  "isCorpse" : 1,
  "exception" : {"codes":"0x0000000000000000, 0x0000000000000000","rawCodes":[0,0],"type":"EXC_CRASH","signal":"SIGABRT"},
  "asi" : {"libsystem_c.dylib":["abort() called"]},
  "extMods" : {"caller":{"thread_create":0,"thread_set_state":0,"task_for_pid":0},"system":{"thread_create":0,"thread_set_state":0,"task_for_pid":0},"targeted":{"thread_create":0,"thread_set_state":0,"task_for_pid":0},"warnings":0},
  "faultingThread" : 0,
  "threads" : [{"triggered":true,"id":5886187,"threadState":{"r13":{"value":140579365847872},"rax":{"value":0},"rflags":{"value":582},"cpu":{"value":0},"r14":{"value":6},"rsi":{"value":6},"r8":{"value":140704418196632,"symbolLocation":456,"symbol":"__sFX"},"cr2":{"value":4471534001},"rdx":{"value":0},"r10":{"value":0},"r9":{"value":0},"r15":{"value":22},"rbx":{"value":4500301312,"symbolLocation":0,"symbol":"_main_thread"},"trap":{"value":133},"err":{"value":33554760},"r11":{"value":582},"rip":{"value":140703319773198,"matchesCrashFrame":1},"rbp":{"value":140701886744288},"rsp":{"value":140701886744248},"r12":{"value":259},"rcx":{"value":140701886744248},"flavor":"x86_THREAD_STATE","rdi":{"value":259}},"queue":"com.apple.main-thread","frames":[{"imageOffset":32782,"symbol":"__pthread_kill","symbolLocation":10,"imageIndex":0},{"imageOffset":25087,"symbol":"pthread_kill","symbolLocation":263,"imageIndex":1},{"imageOffset":531748,"symbol":"abort","symbolLocation":123,"imageIndex":2},{"imageOffset":1110449,"symbol":"__gnu_cxx::__verbose_terminate_handler() (.cold)","symbolLocation":92,"imageIndex":3}]},{"id":5886237,"frames":[{"imageOffset":8008,"symbol":"start_wqthread","symbolLocation":0,"imageIndex":1}]},{"id":5886238,"frames":[{"imageOffset":8008,"symbol":"start_wqthread","symbolLocation":0,"imageIndex":1}]},{"id":5886246,"frames":[{"imageOffset":8008,"symbol":"start_wqthread","symbolLocation":0,"imageIndex":1}]},{"id":5886247,"frames":[{"imageOffset":8008,"symbol":"start_wqthread","symbolLocation":0,"imageIndex":1}]},{"id":5886258,"name":"com.apple.NSEventThread","frames":[{"imageOffset":6522,"symbol":"mach_msg_trap","symbolLocation":10,"imageIndex":0},{"imageOffset":7400,"symbol":"mach_msg","symbolLocation":56,"imageIndex":0},{"imageOffset":525165,"symbol":"__CFRunLoopServiceMachPort","symbolLocation":319,"imageIndex":4},{"imageOffset":518648,"symbol":"__CFRunLoopRun","symbolLocation":1276,"imageIndex":4},{"imageOffset":515644,"symbol":"CFRunLoopRunSpecific","symbolLocation":562,"imageIndex":4},{"imageOffset":1755598,"symbol":"_NSEventThread","symbolLocation":132,"imageIndex":5},{"imageOffset":25825,"symbol":"_pthread_start","symbolLocation":125,"imageIndex":1},{"imageOffset":8043,"symbol":"thread_start","symbolLocation":15,"imageIndex":1}]},{"id":5886261,"frames":[{"imageOffset":17386,"symbol":"__psynch_cvwait","symbolLocation":10,"imageIndex":0},{"imageOffset":27247,"symbol":"_pthread_cond_wait","symbolLocation":1249,"imageIndex":1},{"imageOffset":344763,"symbol":"hex::TaskManager::runner(std::stop_token const&)","symbolLocation":411,"imageIndex":6},{"imageOffset":344352,"imageIndex":6}]},{"id":5886262,"frames":[{"imageOffset":17386,"symbol":"__psynch_cvwait","symbolLocation":10,"imageIndex":0},{"imageOffset":27247,"symbol":"_pthread_cond_wait","symbolLocation":1249,"imageIndex":1},{"imageOffset":344763,"symbol":"hex::TaskManager::runner(std::stop_token const&)","symbolLocation":411,"imageIndex":6},{"imageOffset":344352,"imageIndex":6}]},{"id":5886263,"frames":[{"imageOffset":17386,"symbol":"__psynch_cvwait","symbolLocation":10,"imageIndex":0},{"imageOffset":27247,"symbol":"_pthread_cond_wait","symbolLocation":1249,"imageIndex":1},{"imageOffset":344763,"symbol":"hex::TaskManager::runner(std::stop_token const&)","symbolLocation":411,"imageIndex":6},{"imageOffset":344352,"imageIndex":6}]},{"id":5886264,"frames":[{"imageOffset":17386,"symbol":"__psynch_cvwait","symbolLocation":10,"imageIndex":0},{"imageOffset":27247,"symbol":"_pthread_cond_wait","symbolLocation":1249,"imageIndex":1},{"imageOffset":344763,"symbol":"hex::TaskManager::runner(std::stop_token const&)","symbolLocation":411,"imageIndex":6},{"imageOffset":344352,"imageIndex":6}]},{"id":5886265,"frames":[{"imageOffset":17386,"symbol":"__psynch_cvwait","symbolLocation":10,"imageIndex":0},{"imageOffset":27247,"symbol":"_pthread_cond_wait","symbolLocation":1249,"imageIndex":1},{"imageOffset":344763,"symbol":"hex::TaskManager::runner(std::stop_token const&)","symbolLocation":411,"imageIndex":6},{"imageOffset":344352,"imageIndex":6}]},{"id":5886266,"frames":[{"imageOffset":17386,"symbol":"__psynch_cvwait","symbolLocation":10,"imageIndex":0},{"imageOffset":27247,"symbol":"_pthread_cond_wait","symbolLocation":1249,"imageIndex":1},{"imageOffset":344763,"symbol":"hex::TaskManager::runner(std::stop_token const&)","symbolLocation":411,"imageIndex":6},{"imageOffset":344352,"imageIndex":6}]},{"id":5886267,"frames":[{"imageOffset":17386,"symbol":"__psynch_cvwait","symbolLocation":10,"imageIndex":0},{"imageOffset":27247,"symbol":"_pthread_cond_wait","symbolLocation":1249,"imageIndex":1},{"imageOffset":344763,"symbol":"hex::TaskManager::runner(std::stop_token const&)","symbolLocation":411,"imageIndex":6},{"imageOffset":344352,"imageIndex":6}]},{"id":5886268,"frames":[{"imageOffset":17386,"symbol":"__psynch_cvwait","symbolLocation":10,"imageIndex":0},{"imageOffset":27247,"symbol":"_pthread_cond_wait","symbolLocation":1249,"imageIndex":1},{"imageOffset":344763,"symbol":"hex::TaskManager::runner(std::stop_token const&)","symbolLocation":411,"imageIndex":6},{"imageOffset":344352,"imageIndex":6}]},{"id":5886269,"frames":[{"imageOffset":17386,"symbol":"__psynch_cvwait","symbolLocation":10,"imageIndex":0},{"imageOffset":27247,"symbol":"_pthread_cond_wait","symbolLocation":1249,"imageIndex":1},{"imageOffset":344763,"symbol":"hex::TaskManager::runner(std::stop_token const&)","symbolLocation":411,"imageIndex":6},{"imageOffset":344352,"imageIndex":6}]},{"id":5886270,"frames":[{"imageOffset":17386,"symbol":"__psynch_cvwait","symbolLocation":10,"imageIndex":0},{"imageOffset":27247,"symbol":"_pthread_cond_wait","symbolLocation":1249,"imageIndex":1},{"imageOffset":344763,"symbol":"hex::TaskManager::runner(std::stop_token const&)","symbolLocation":411,"imageIndex":6},{"imageOffset":344352,"imageIndex":6}]},{"id":5886271,"frames":[{"imageOffset":17386,"symbol":"__psynch_cvwait","symbolLocation":10,"imageIndex":0},{"imageOffset":27247,"symbol":"_pthread_cond_wait","symbolLocation":1249,"imageIndex":1},{"imageOffset":344763,"symbol":"hex::TaskManager::runner(std::stop_token const&)","symbolLocation":411,"imageIndex":6},{"imageOffset":344352,"imageIndex":6}]},{"id":5886272,"frames":[{"imageOffset":17386,"symbol":"__psynch_cvwait","symbolLocation":10,"imageIndex":0},{"imageOffset":27247,"symbol":"_pthread_cond_wait","symbolLocation":1249,"imageIndex":1},{"imageOffset":344763,"symbol":"hex::TaskManager::runner(std::stop_token const&)","symbolLocation":411,"imageIndex":6},{"imageOffset":344352,"imageIndex":6}]},{"id":5886273,"frames":[{"imageOffset":17386,"symbol":"__psynch_cvwait","symbolLocation":10,"imageIndex":0},{"imageOffset":27247,"symbol":"_pthread_cond_wait","symbolLocation":1249,"imageIndex":1},{"imageOffset":344763,"symbol":"hex::TaskManager::runner(std::stop_token const&)","symbolLocation":411,"imageIndex":6},{"imageOffset":344352,"imageIndex":6}]},{"id":5886274,"frames":[{"imageOffset":17386,"symbol":"__psynch_cvwait","symbolLocation":10,"imageIndex":0},{"imageOffset":27247,"symbol":"_pthread_cond_wait","symbolLocation":1249,"imageIndex":1},{"imageOffset":344763,"symbol":"hex::TaskManager::runner(std::stop_token const&)","symbolLocation":411,"imageIndex":6},{"imageOffset":344352,"imageIndex":6}]},{"id":5886275,"frames":[{"imageOffset":17386,"symbol":"__psynch_cvwait","symbolLocation":10,"imageIndex":0},{"imageOffset":27247,"symbol":"_pthread_cond_wait","symbolLocation":1249,"imageIndex":1},{"imageOffset":344763,"symbol":"hex::TaskManager::runner(std::stop_token const&)","symbolLocation":411,"imageIndex":6},{"imageOffset":344352,"imageIndex":6}]},{"id":5886276,"frames":[{"imageOffset":17386,"symbol":"__psynch_cvwait","symbolLocation":10,"imageIndex":0},{"imageOffset":27247,"symbol":"_pthread_cond_wait","symbolLocation":1249,"imageIndex":1},{"imageOffset":344763,"symbol":"hex::TaskManager::runner(std::stop_token const&)","symbolLocation":411,"imageIndex":6},{"imageOffset":344352,"imageIndex":6}]}],
  "usedImages" : [
  {
    "source" : "P",
    "arch" : "x86_64",
    "base" : 140703319740416,
    "size" : 229376,
    "uuid" : "07ad083c-2835-3d18-bb6d-6f081840c8a4",
    "path" : "\/usr\/lib\/system\/libsystem_kernel.dylib",
    "name" : "libsystem_kernel.dylib"
  },
  {
    "source" : "P",
    "arch" : "x86_64",
    "base" : 140703319969792,
    "size" : 49152,
    "uuid" : "b5454e27-e8c7-3fdb-b77f-714f1e82e70b",
    "path" : "\/usr\/lib\/system\/libsystem_pthread.dylib",
    "name" : "libsystem_pthread.dylib"
  },
  {
    "source" : "P",
    "arch" : "x86_64",
    "base" : 140703318724608,
    "size" : 561152,
    "uuid" : "e42e9d7a-03b4-340b-b61e-dcd45fd4acc0",
    "path" : "\/usr\/lib\/system\/libsystem_c.dylib",
    "name" : "libsystem_c.dylib"
  },
  {
    "source" : "P",
    "arch" : "x86_64",
    "base" : 4470423552,
    "size" : 1769472,
    "uuid" : "7e4c9182-5306-3451-a083-6709e715872a",
    "path" : "\/Applications\/imhex.app\/Contents\/Frameworks\/libstdc++.6.dylib",
    "name" : "libstdc++.6.dylib"
  },
  {
    "source" : "P",
    "arch" : "x86_64h",
    "base" : 140703320285184,
    "CFBundleShortVersionString" : "6.9",
    "CFBundleIdentifier" : "com.apple.CoreFoundation",
    "size" : 5255168,
    "uuid" : "93c48919-68af-367e-9a67-db4159bc962c",
    "path" : "\/System\/Library\/Frameworks\/CoreFoundation.framework\/Versions\/A\/CoreFoundation",
    "name" : "CoreFoundation",
    "CFBundleVersion" : "1866"
  },
  {
    "source" : "P",
    "arch" : "x86_64",
    "base" : 140703364820992,
    "CFBundleShortVersionString" : "6.9",
    "CFBundleIdentifier" : "com.apple.AppKit",
    "size" : 15269888,
    "uuid" : "af3d9501-0abf-3c79-955c-c42c29af6351",
    "path" : "\/System\/Library\/Frameworks\/AppKit.framework\/Versions\/C\/AppKit",
    "name" : "AppKit",
    "CFBundleVersion" : "2113.60.148"
  },
  {
    "source" : "P",
    "arch" : "x86_64",
    "base" : 4478021632,
    "size" : 12845056,
    "uuid" : "418054ed-e4a7-39c5-b4c7-b05548da0487",
    "path" : "\/Applications\/imhex.app\/Contents\/Frameworks\/libimhex.1.26.0.dylib",
    "name" : "libimhex.1.26.0.dylib"
  }
],
  "sharedCache" : {
  "base" : 140703316713472,
  "size" : 19331678208,
  "uuid" : "3172f8f5-c412-3210-95e0-1cfd89e01f8a"
},
  "vmSummary" : "ReadOnly portion of Libraries: Total=909.6M resident=0K(0%) swapped_out_or_unallocated=909.6M(100%)\nWritable regions: Total=1.7G written=0K(0%) resident=0K(0%) swapped_out=0K(0%) unallocated=1.7G(100%)\n\n                                VIRTUAL   REGION \nREGION TYPE                        SIZE    COUNT (non-coalesced) \n===========                     =======  ======= \nAccelerate framework               128K        1 \nActivity Tracing                   256K        1 \nCG backing stores                 9024K        8 \nColorSync                          212K       24 \nCoreAnimation                        4K        1 \nCoreGraphics                        16K        3 \nCoreServices                        16K        1 \nDispatch continuations           128.0M        1 \nFoundation                          16K        1 \nKernel Alloc Once                    8K        1 \nMALLOC                           284.0M       67 \nMALLOC guard page                   48K       10 \nMALLOC_MEDIUM (reserved)           1.3G       11         reserved VM address space (unallocated)\nObjC additional data                15K        1 \nOpenGL GLSL                        256K        3 \nSTACK GUARD                       56.1M       22 \nStack                             18.7M       22 \nVM_ALLOCATE                        504K       29 \n__CTF                               756        1 \n__DATA                            34.8M      317 \n__DATA_CONST                      13.8M      181 \n__DATA_DIRTY                       541K       98 \n__FONT_DATA                          4K        1 \n__GLSLBUILTINS                    5176K        1 \n__LINKEDIT                       650.4M       24 \n__TEXT                           259.2M      325 \n__UNICODE                          592K        1 \ndyld private memory               1088K        3 \nmapped file                      153.5M       18 \nshared memory                     1284K       17 \n===========                     =======  ======= \nTOTAL                              2.9G     1194 \nTOTAL, minus reserved VM space     1.6G     1194 \n",
  "legacyInfo" : {
  "threadTriggered" : {
    "queue" : "com.apple.main-thread"
  }
},
  "trialInfo" : {
  "rollouts" : [
    {
      "rolloutId" : "6112e14f37f5d11121dcd519",
      "factorPackIds" : {
        "SIRI_TEXT_TO_SPEECH" : "634710168e8be655c1316aaa"
      },
      "deploymentId" : 240000231
    },
    {
      "rolloutId" : "60186475825c62000ccf5450",
      "factorPackIds" : {

      },
      "deploymentId" : 240000026
    }
  ],
  "experiments" : [

  ]
}
}

Model: MacBookPro16,4, BootROM 1916.60.2.0.0 (iBridge: 20.16.2059.0.0,0), 8 processors, 8-Core Intel Core i9, 2.4 GHz, 64 GB, SMC 
Graphics: Intel UHD Graphics 630, Intel UHD Graphics 630, Built-In
Graphics: AMD Radeon Pro 5600M, AMD Radeon Pro 5600M, PCIe, 8 GB
Display: LG HDR 4K, 6016 x 3384, Main, MirrorOff, Online
Display: LG HDR 4K, 6016 x 3384, MirrorOff, Online
Memory Module: BANK 0/ChannelA-DIMM0, 32 GB, DDR4, 2667 MHz, Micron, MT40A4G8BAF-062E:B
Memory Module: BANK 2/ChannelB-DIMM0, 32 GB, DDR4, 2667 MHz, Micron, MT40A4G8BAF-062E:B
AirPort: spairport_wireless_card_type_wifi (0x14E4, 0x7BF), wl0: Jul 12 2021 18:02:56 version 9.30.464.0.32.5.76 FWID 01-c081cfed
Bluetooth: Version (null), 0 services, 0 devices, 0 incoming serial ports
Network Service: Wi-Fi, AirPort, en0
PCI Card: pci1b73,1100, USB eXtensible Host Controller, Thunderbolt@72,0,0
PCI Card: ethernet, Ethernet Controller, Thunderbolt@71,0,0
USB Device: USB31Bus
USB Device: USB30Bus
USB Device: NS1066
USB Device: USB audio CODEC
USB Device: HD Pro Webcam C920
USB Device: T2Bus
USB Device: composite_device
USB Device: Touch Bar Backlight
USB Device: Touch Bar Display
USB Device: Apple Internal Keyboard / Trackpad
USB Device: Headset
USB Device: Ambient Light Sensor
USB Device: FaceTime HD Camera (Built-in)
USB Device: Apple T2 Controller
Thunderbolt Bus: MacBook Pro, Apple Inc., 63.5
Thunderbolt Device: Thunderbolt 3 Express Dock HD, Belkin International, Inc., 1, 19.1
Thunderbolt Bus: MacBook Pro, Apple Inc., 63.5

I'll note that the previous mac installers were ~35MB, while for 1.26.0 they're ~20MB; no other imhex packages seemed to have a similar decrease in size for 1.26.0. When I look inside the mac app directory, on the 1.26.0 package, the layout seems is missing the Python framework:

❯ tree -L 3 imhex.app
imhex.app
└── Contents
    ├── Frameworks
    │   ├── libcrypto.1.1.dylib
    │   ├── libfreetype.6.dylib
    │   ├── libgcc_s.1.1.dylib
    │   ├── libglfw.3.3.dylib
    │   ├── libglfw.3.dylib -> libglfw.3.3.dylib
    │   ├── libimhex.1.26.0.dylib
    │   ├── libmagic.1.dylib
    │   ├── libmbedcrypto.12.dylib -> libmbedcrypto.3.2.1.dylib
    │   ├── libmbedcrypto.3.2.1.dylib
    │   ├── libmbedtls.18.dylib -> libmbedtls.3.2.1.dylib
    │   ├── libmbedtls.3.2.1.dylib
    │   ├── libmbedx509.3.2.1.dylib
    │   ├── libmbedx509.4.dylib -> libmbedx509.3.2.1.dylib
    │   ├── libpng16.16.dylib
    │   ├── libssh2.1.dylib
    │   ├── libssl.1.1.dylib
    │   └── libstdc++.6.dylib
    ├── Info.plist
    ├── MacOS
    │   ├── config
    │   ├── constants
    │   ├── encodings
    │   ├── imhex
    │   ├── includes
    │   ├── logs
    │   ├── magic
    │   ├── patterns
    │   ├── plugins
    │   ├── recent
    │   ├── resources
    │   ├── scripts
    │   ├── themes
    │   └── yara
    └── Resources
        └── AppIcon.icns

For 1.25.0:

❯ tree -L 3 imhex.app
imhex.app
└── Contents
    ├── Frameworks
    │   ├── Python.framework
    │   ├── libcrypto.1.1.dylib
    │   ├── libfreetype.6.dylib
    │   ├── libgcc_s.1.1.dylib
    │   ├── libglfw.3.3.dylib
    │   ├── libglfw.3.dylib -> libglfw.3.3.dylib
    │   ├── libimhex.1.25.0.dylib
    │   ├── libmagic.1.dylib
    │   ├── libmbedcrypto.12.dylib -> libmbedcrypto.3.2.1.dylib
    │   ├── libmbedcrypto.3.2.1.dylib
    │   ├── libmbedtls.18.dylib -> libmbedtls.3.2.1.dylib
    │   ├── libmbedtls.3.2.1.dylib
    │   ├── libmbedx509.3.2.1.dylib
    │   ├── libmbedx509.4.dylib -> libmbedx509.3.2.1.dylib
    │   ├── libpng16.16.dylib
    │   ├── libssh2.1.dylib
    │   ├── libssl.1.1.dylib
    │   └── libstdc++.6.dylib
    ├── Info.plist
    ├── MacOS
    │   ├── constants
    │   ├── encodings
    │   ├── imhex
    │   ├── includes
    │   ├── magic
    │   ├── patterns
    │   └── plugins
    └── Resources
        └── AppIcon.icns
WerWolv commented 1 year ago

It looks like an exception is thrown which makes std::terminate to be called. The crashlog regarding this is indeed pretty useless besides that. Could you attach a debugger perhaps? That should tell you what exactly that exception was.

Python is gone because I removed it from all builds. It was a leftover from about a year ago and was completely unused

yossizahn commented 1 year ago

Same issue here This is the output from running it in terminal:

➜  ~ /Applications/imhex.app/Contents/MacOS/imhex
[23:47:50] [INFO]  [main] Welcome to ImHex 1.26.0!
[23:47:50] [INFO]  [main] Native scaling set to: 1.0
[23:47:50] [ERROR] [main] GLFW Error [65544] : Cocoa: Cannot query workarea without screen
[23:47:50] [ERROR] [main] GLFW Error [65544] : Cocoa: Cannot query content scale without screen
[23:47:50] [INFO]  [main] Task 'Setting up environment' finished in 0 ms
[23:47:50] [INFO]  [main] Task 'Creating directories' finished in 2 ms
[23:47:50] [INFO]  [main] Task 'Loading settings' finished in 1 ms
[23:47:50] [ERROR] [libimhex] Theme 'Dark' does not exist and no other themes are available!
[23:47:50] [ERROR] [main] Init task 'Loading plugins' threw an exception: [json.exception.parse_error.101] parse error at line 145, column 2: syntax error while parsing value - invalid literal; last read: '"#008080FF"<U+000A>        }<U+000A>    }<U+000A>}�'; expected end of input
[23:47:51] [INFO]  [main] Task 'Checking for updates' finished in 817 ms
[23:47:51] [INFO]  [main] Task 'Loading fonts' finished in 1062 ms
[23:47:52] [ERROR] [main] GLFW Error [65544] : Cocoa: Cannot query workarea without screen
[23:47:52] [ERROR] [main] GLFW Error [65544] : Cocoa: Cannot query content scale without screen
[23:47:52] [ERROR] [libimhex] Theme 'Dark' does not exist and no other themes are available!
terminate called after throwing an instance of 'std::out_of_range'
  what():  map::at
[1]    44631 abort      /Applications/imhex.app/Contents/MacOS/imhex
WerWolv commented 1 year ago

Thanks a lot! I found the issue with that. It also appeared on Linux.

GitHub currently builds the new version so once it's done, if one of you could verify that it works on MacOS as well now, I'll release a new version tomorrow. https://github.com/WerWolv/ImHex/actions/runs/3842263024

yossizahn commented 1 year ago

Thanks. The new version doesn't crash on startup, but it crashes on closing.

Terminal output
[10:00:57] [INFO]  [main] Welcome to ImHex 1.26.0!
[10:00:57] [INFO]  [main] Native scaling set to: 1.0
[10:00:57] [ERROR] [main] GLFW Error [65544] : Cocoa: Cannot query workarea without screen
[10:00:57] [ERROR] [main] GLFW Error [65544] : Cocoa: Cannot query content scale without screen
[10:00:57] [INFO]  [main] Task 'Setting up environment' finished in 0 ms
[10:00:57] [INFO]  [main] Task 'Creating directories' finished in 1 ms
[10:00:57] [INFO]  [main] Task 'Loading settings' finished in 0 ms
[10:00:57] [ERROR] [libimhex] Theme 'Light' does not exist and no other themes are available!
[10:00:57] [INFO]  [main] Task 'Loading plugins' finished in 76 ms
[10:00:58] [INFO]  [main] Task 'Checking for updates' finished in 743 ms
[10:00:59] [INFO]  [main] Task 'Loading fonts' finished in 1060 ms
[10:00:59] [ERROR] [main] GLFW Error [65544] : Cocoa: Cannot query workarea without screen
[10:00:59] [ERROR] [main] GLFW Error [65544] : Cocoa: Cannot query content scale without screen
[10:01:03] [FATAL] [main] Terminating with signal 'SIGSEGV' (11)
[1]    47493 segmentation fault  /Applications/imhex.app/Contents/MacOS/imhex
Crash report
-------------------------------------
Translated Report (Full Report Below)
-------------------------------------

Process:               imhex [47747]
Path:                  /Applications/imhex.app/Contents/MacOS/imhex
Identifier:            net.WerWolv.ImHex
Version:               1.26 (1.26.0)
Code Type:             X86-64 (Translated)
Parent Process:        launchd [1]
User ID:               501

Date/Time:             2023-01-05 10:06:01.7736 +0200
OS Version:            macOS 13.1 (22C65)
Report Version:        12
Anonymous UUID:        31C8C0EF-6E89-D636-1B49-7DDA5D1B8000

Sleep/Wake UUID:       D1FF6778-0FE3-4EE7-A595-AE3EC87EBEE0

Time Awake Since Boot: 100000 seconds
Time Since Wake:       1269 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 0x0000000119199cc0
Exception Codes:       0x0000000000000001, 0x0000000119199cc0

VM Region Info: 0x119199cc0 is not in any region.  Bytes after previous region: 3087553  Bytes before following region: 16724800
      REGION TYPE                    START - END         [ VSIZE] PRT/MAX SHRMOD  REGION DETAIL
      Rosetta IndirectBranch      118da8000-118ea8000    [ 1024K] rw-/rwx SM=PRV  
--->  GAP OF 0x12e5000 BYTES
      mapped file                 11a18d000-11a1bd000    [  192K] r--/rwx SM=COW  ...t_id=53af72e3

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
VM - pmap_enter retried due to resource shortage

Thread 0 Crashed::  Dispatch queue: com.apple.main-thread
0            0x100b36a90 ???
1   libimhex.1.26.0.dylib                  0x109d38f47 0x109cd1000 + 425799
2   libsystem_platform.dylib            0x7ff804383c33 _sigtramp + 51

Thread 1:: com.apple.rosetta.exceptionserver
0   runtime                             0x7ff7ffc02614 0x7ff7ffbfe000 + 17940
1   runtime                             0x7ff7ffc0e530 0x7ff7ffbfe000 + 66864
2   runtime                             0x7ff7ffc0ff30 0x7ff7ffbfe000 + 73520

Thread 2:
0   runtime                             0x7ff7ffc2087c 0x7ff7ffbfe000 + 141436

Thread 3:
0   runtime                             0x7ff7ffc2087c 0x7ff7ffbfe000 + 141436

Thread 4:
0   runtime                             0x7ff7ffc2087c 0x7ff7ffbfe000 + 141436

Thread 5:
0   runtime                             0x7ff7ffc2087c 0x7ff7ffbfe000 + 141436

Thread 6:
0   runtime                             0x7ff7ffc2087c 0x7ff7ffbfe000 + 141436

Thread 7:: com.apple.NSEventThread
0   ???                                 0x7ff89368e9a8 ???
1   libsystem_kernel.dylib              0x7ff80431a5c2 mach_msg2_trap + 10
2   libsystem_kernel.dylib              0x7ff804328604 mach_msg2_internal + 82
3   libsystem_kernel.dylib              0x7ff804321635 mach_msg_overwrite + 723
4   libsystem_kernel.dylib              0x7ff80431a8a8 mach_msg + 19
5   CoreFoundation                      0x7ff80443401b __CFRunLoopServiceMachPort + 145
6   CoreFoundation                      0x7ff804432a74 __CFRunLoopRun + 1387
7   CoreFoundation                      0x7ff804431e8f CFRunLoopRunSpecific + 560
8   AppKit                              0x7ff807619299 _NSEventThread + 132
9   libsystem_pthread.dylib             0x7ff804359259 _pthread_start + 125
10  libsystem_pthread.dylib             0x7ff804354c7b thread_start + 15

Thread 0 crashed with X86 Thread State (64-bit):
  rax: 0x0000000119199cc0  rbx: 0x00006000022b5380  rcx: 0x00007ff8479c5b28  rdx: 0x0000000000000003
  rdi: 0x00006000022b5720  rsi: 0x00006000022b5720  rbp: 0x00006000022b56e0  rsp: 0x00000003054dd7f8
   r8: 0x00007f8883008e00   r9: 0x0000000000000003  r10: 0x00007ff8479c5b20  r11: 0x0000600000438e18
  r12: 0x0000000000000000  r13: 0x0000000000000060  r14: 0x0000000000000000  r15: 0x0000000000000000
  rip:        rfl: 0x0000000000000202
 tmp0: 0x0000000000000000 tmp1: 0x0000000119199cc0 tmp2: 0x000000010ac78da8

Binary Images:
               0x0 - 0xffffffffffffffff ??? (*) <00000000-0000-0000-0000-000000000000> ???
       0x109cd1000 -        0x10a910fff libimhex.1.26.0.dylib (*) <77dada76-5ae4-3ca1-ac07-d4a97f2d3b57> /Applications/imhex.app/Contents/Frameworks/libimhex.1.26.0.dylib
    0x7ff804380000 -     0x7ff804389ff7 libsystem_platform.dylib (*)  /usr/lib/system/libsystem_platform.dylib
    0x7ff7ffbfe000 -     0x7ff7ffc2dfff runtime (*)  /usr/libexec/rosetta/runtime
    0x7ff804319000 -     0x7ff804352ff7 libsystem_kernel.dylib (*) <7c3dcc95-9f42-3c7c-8796-476ff67b9cf7> /usr/lib/system/libsystem_kernel.dylib
    0x7ff8043b5000 -     0x7ff80484cfff com.apple.CoreFoundation (6.9)  /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
    0x7ff80747b000 -     0x7ff808482fff com.apple.AppKit (6.9) <00f4aa78-a19f-3a8e-9650-9f90b7beefd6> /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit
    0x7ff804353000 -     0x7ff80435eff7 libsystem_pthread.dylib (*) <5920e36f-53ec-33f0-b675-8ae48b58418c> /usr/lib/system/libsystem_pthread.dylib

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: 0
    thread_create: 0
    thread_set_state: 0

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

                                VIRTUAL   REGION 
REGION TYPE                        SIZE    COUNT (non-coalesced) 
===========                     =======  ======= 
Accelerate framework               128K        1 
Activity Tracing                   256K        1 
CG backing stores                 5440K        8 
CG image                            48K        6 
ColorSync                          236K       27 
CoreAnimation                       68K        8 
CoreGraphics                        16K        3 
CoreUI image data                 1116K        8 
Foundation                          56K        2 
Kernel Alloc Once                    8K        1 
MALLOC                           379.0M       53 
MALLOC guard page                  192K        9 
MALLOC_MEDIUM (reserved)         560.0M        5         reserved VM address space (unallocated)
MALLOC_NANO (reserved)           384.0M        1         reserved VM address space (unallocated)
OpenGL GLSL                        256K        3 
Rosetta Arena                     4096K        2 
Rosetta Generic                   1288K      319 
Rosetta IndirectBranch            1024K        1 
Rosetta JIT                      128.0M        1 
Rosetta Return Stack               140K       14 
Rosetta Thread Context             140K       14 
STACK GUARD                         20K        5 
Stack                             11.1M        7 
Stack Guard                       56.0M        2 
VM_ALLOCATE                       3468K       37 
VM_ALLOCATE (reserved)              32K        5         reserved VM address space (unallocated)
__CTF                               756        1 
__DATA                            25.3M      495 
__DATA_CONST                      29.3M      319 
__DATA_DIRTY                      1413K      170 
__FONT_DATA                        2352        1 
__GLSLBUILTINS                    5174K        1 
__LINKEDIT                       171.0M       24 
__OBJC_RO                         65.4M        1 
__OBJC_RW                         1985K        2 
__TEXT                           441.9M      513 
dyld private memory                320K        3 
mapped file                        4.3G     1290 
shared memory                      816K       17 
unshared pmap                     12.3M        9 
===========                     =======  ======= 
TOTAL                              6.5G     3389 
TOTAL, minus reserved VM space     5.6G     3389 

-----------
Full Report
-----------

{"app_name":"imhex","timestamp":"2023-01-05 10:06:02.00 +0200","app_version":"1.26","slice_uuid":"052d18c5-4d96-31cf-8a74-770e3eb50d06","build_version":"1.26.0","platform":1,"bundleID":"net.WerWolv.ImHex","share_with_app_devs":0,"is_first_party":0,"bug_type":"309","os_version":"macOS 13.1 (22C65)","roots_installed":0,"name":"imhex","incident_id":"1FCCD868-F10B-48A9-A97D-905D7FB5F328"}
{
  "uptime" : 100000,
  "procRole" : "Foreground",
  "version" : 2,
  "userID" : 501,
  "deployVersion" : 210,
  "modelCode" : "MacBookAir10,1",
  "coalitionID" : 16434,
  "osVersion" : {
    "train" : "macOS 13.1",
    "build" : "22C65",
    "releaseType" : "User"
  },
  "captureTime" : "2023-01-05 10:06:01.7736 +0200",
  "incident" : "1FCCD868-F10B-48A9-A97D-905D7FB5F328",
  "pid" : 47747,
  "translated" : true,
  "cpuType" : "X86-64",
  "roots_installed" : 0,
  "bug_type" : "309",
  "procLaunch" : "2023-01-05 10:05:56.6573 +0200",
  "procStartAbsTime" : 2458840585101,
  "procExitAbsTime" : 2458963149482,
  "procName" : "imhex",
  "procPath" : "\/Applications\/imhex.app\/Contents\/MacOS\/imhex",
  "bundleInfo" : {"CFBundleShortVersionString":"1.26","CFBundleVersion":"1.26.0","CFBundleIdentifier":"net.WerWolv.ImHex"},
  "storeInfo" : {"deviceIdentifierForVendor":"7CD6763E-77C8-5DCF-9071-F7E8040A1BD5","thirdParty":true},
  "parentProc" : "launchd",
  "parentPid" : 1,
  "coalitionName" : "net.WerWolv.ImHex",
  "crashReporterKey" : "31C8C0EF-6E89-D636-1B49-7DDA5D1B8000",
  "throttleTimeout" : 2147483647,
  "wakeTime" : 1269,
  "sleepWakeUUID" : "D1FF6778-0FE3-4EE7-A595-AE3EC87EBEE0",
  "sip" : "enabled",
  "vmRegionInfo" : "0x119199cc0 is not in any region.  Bytes after previous region: 3087553  Bytes before following region: 16724800\n      REGION TYPE                    START - END         [ VSIZE] PRT\/MAX SHRMOD  REGION DETAIL\n      Rosetta IndirectBranch      118da8000-118ea8000    [ 1024K] rw-\/rwx SM=PRV  \n--->  GAP OF 0x12e5000 BYTES\n      mapped file                 11a18d000-11a1bd000    [  192K] r--\/rwx SM=COW  ...t_id=53af72e3",
  "exception" : {"codes":"0x0000000000000001, 0x0000000119199cc0","rawCodes":[1,4716076224],"type":"EXC_BAD_ACCESS","signal":"SIGSEGV","subtype":"KERN_INVALID_ADDRESS at 0x0000000119199cc0"},
  "ktriageinfo" : "VM - pmap_enter retried due to resource shortage\nVM - pmap_enter retried due to resource shortage\nVM - pmap_enter retried due to resource shortage\nVM - pmap_enter retried due to resource shortage\nVM - pmap_enter retried due to resource shortage\n",
  "vmregioninfo" : "0x119199cc0 is not in any region.  Bytes after previous region: 3087553  Bytes before following region: 16724800\n      REGION TYPE                    START - END         [ VSIZE] PRT\/MAX SHRMOD  REGION DETAIL\n      Rosetta IndirectBranch      118da8000-118ea8000    [ 1024K] rw-\/rwx SM=PRV  \n--->  GAP OF 0x12e5000 BYTES\n      mapped file                 11a18d000-11a1bd000    [  192K] r--\/rwx SM=COW  ...t_id=53af72e3",
  "extMods" : {"caller":{"thread_create":0,"thread_set_state":0,"task_for_pid":0},"system":{"thread_create":0,"thread_set_state":0,"task_for_pid":0},"targeted":{"thread_create":0,"thread_set_state":0,"task_for_pid":0},"warnings":0},
  "faultingThread" : 0,
  "threads" : [{"triggered":true,"id":1432069,"threadState":{"flavor":"x86_THREAD_STATE","rbp":{"value":105553152661216},"r12":{"value":0},"rosetta":{"tmp2":{"value":4475817384},"tmp1":{"value":4716076224},"tmp0":{"value":0}},"rbx":{"value":105553152660352},"r8":{"value":140224290131456},"r15":{"value":0},"r10":{"value":140704330046240,"symbolLocation":24,"symbol":"atexit_mutex"},"rdx":{"value":3},"rdi":{"value":105553152661280},"r9":{"value":3},"r13":{"value":96},"rflags":{"value":514},"rax":{"value":4716076224},"rsp":{"value":12973889528},"r11":{"value":105553120693784},"rcx":{"value":140704330046248,"symbolLocation":32,"symbol":"atexit_mutex"},"r14":{"value":0},"rsi":{"value":105553152661280}},"queue":"com.apple.main-thread","frames":[{"imageOffset":4306725520,"region":"","imageIndex":0},{"imageOffset":425799,"imageIndex":1},{"imageOffset":15411,"symbol":"_sigtramp","symbolLocation":51,"imageIndex":2}]},{"id":1432078,"name":"com.apple.rosetta.exceptionserver","frames":[{"imageOffset":17940,"imageIndex":3},{"imageOffset":66864,"imageIndex":3},{"imageOffset":73520,"imageIndex":3}]},{"id":1432089,"frames":[{"imageOffset":141436,"imageIndex":3}]},{"id":1432090,"frames":[{"imageOffset":141436,"imageIndex":3}]},{"id":1432097,"frames":[{"imageOffset":141436,"imageIndex":3}]},{"id":1432106,"frames":[{"imageOffset":141436,"imageIndex":3}]},{"id":1432129,"frames":[{"imageOffset":141436,"imageIndex":3}]},{"id":1432140,"name":"com.apple.NSEventThread","frames":[{"imageOffset":140705601743272,"imageIndex":0},{"imageOffset":5570,"symbol":"mach_msg2_trap","symbolLocation":10,"imageIndex":4},{"imageOffset":62980,"symbol":"mach_msg2_internal","symbolLocation":82,"imageIndex":4},{"imageOffset":34357,"symbol":"mach_msg_overwrite","symbolLocation":723,"imageIndex":4},{"imageOffset":6312,"symbol":"mach_msg","symbolLocation":19,"imageIndex":4},{"imageOffset":520219,"symbol":"__CFRunLoopServiceMachPort","symbolLocation":145,"imageIndex":5},{"imageOffset":514676,"symbol":"__CFRunLoopRun","symbolLocation":1387,"imageIndex":5},{"imageOffset":511631,"symbol":"CFRunLoopRunSpecific","symbolLocation":560,"imageIndex":5},{"imageOffset":1696409,"symbol":"_NSEventThread","symbolLocation":132,"imageIndex":6},{"imageOffset":25177,"symbol":"_pthread_start","symbolLocation":125,"imageIndex":7},{"imageOffset":7291,"symbol":"thread_start","symbolLocation":15,"imageIndex":7}]}],
  "usedImages" : [
  {
    "size" : 0,
    "source" : "A",
    "base" : 0,
    "uuid" : "00000000-0000-0000-0000-000000000000"
  },
  {
    "source" : "P",
    "arch" : "x86_64",
    "base" : 4459401216,
    "size" : 12845056,
    "uuid" : "77dada76-5ae4-3ca1-ac07-d4a97f2d3b57",
    "path" : "\/Applications\/imhex.app\/Contents\/Frameworks\/libimhex.1.26.0.dylib",
    "name" : "libimhex.1.26.0.dylib"
  },
  {
    "source" : "P",
    "arch" : "x86_64",
    "base" : 140703199395840,
    "size" : 40952,
    "uuid" : "f314b62b-98f4-3a7c-8296-8739f8b6855a",
    "path" : "\/usr\/lib\/system\/libsystem_platform.dylib",
    "name" : "libsystem_platform.dylib"
  },
  {
    "source" : "P",
    "arch" : "arm64",
    "base" : 140703124414464,
    "size" : 196608,
    "uuid" : "d592bc4a-4a21-348f-a406-e12f9cd2f27c",
    "path" : "\/usr\/libexec\/rosetta\/runtime",
    "name" : "runtime"
  },
  {
    "source" : "P",
    "arch" : "x86_64",
    "base" : 140703198973952,
    "size" : 237560,
    "uuid" : "7c3dcc95-9f42-3c7c-8796-476ff67b9cf7",
    "path" : "\/usr\/lib\/system\/libsystem_kernel.dylib",
    "name" : "libsystem_kernel.dylib"
  },
  {
    "source" : "P",
    "arch" : "x86_64",
    "base" : 140703199612928,
    "CFBundleShortVersionString" : "6.9",
    "CFBundleIdentifier" : "com.apple.CoreFoundation",
    "size" : 4816896,
    "uuid" : "f3846a86-644b-3bcd-acce-fc7b751105c1",
    "path" : "\/System\/Library\/Frameworks\/CoreFoundation.framework\/Versions\/A\/CoreFoundation",
    "name" : "CoreFoundation",
    "CFBundleVersion" : "1953.300"
  },
  {
    "source" : "P",
    "arch" : "x86_64",
    "base" : 140703250755584,
    "CFBundleShortVersionString" : "6.9",
    "CFBundleIdentifier" : "com.apple.AppKit",
    "size" : 16809984,
    "uuid" : "00f4aa78-a19f-3a8e-9650-9f90b7beefd6",
    "path" : "\/System\/Library\/Frameworks\/AppKit.framework\/Versions\/C\/AppKit",
    "name" : "AppKit",
    "CFBundleVersion" : "2299.30.116"
  },
  {
    "source" : "P",
    "arch" : "x86_64",
    "base" : 140703199211520,
    "size" : 49144,
    "uuid" : "5920e36f-53ec-33f0-b675-8ae48b58418c",
    "path" : "\/usr\/lib\/system\/libsystem_pthread.dylib",
    "name" : "libsystem_pthread.dylib"
  }
],
  "sharedCache" : {
  "base" : 140703195250688,
  "size" : 21474836480,
  "uuid" : "16923f88-e9fc-38d2-947c-df242e486636"
},
  "vmSummary" : "ReadOnly portion of Libraries: Total=612.9M resident=0K(0%) swapped_out_or_unallocated=612.9M(100%)\nWritable regions: Total=1.5G written=0K(0%) resident=0K(0%) swapped_out=0K(0%) unallocated=1.5G(100%)\n\n                                VIRTUAL   REGION \nREGION TYPE                        SIZE    COUNT (non-coalesced) \n===========                     =======  ======= \nAccelerate framework               128K        1 \nActivity Tracing                   256K        1 \nCG backing stores                 5440K        8 \nCG image                            48K        6 \nColorSync                          236K       27 \nCoreAnimation                       68K        8 \nCoreGraphics                        16K        3 \nCoreUI image data                 1116K        8 \nFoundation                          56K        2 \nKernel Alloc Once                    8K        1 \nMALLOC                           379.0M       53 \nMALLOC guard page                  192K        9 \nMALLOC_MEDIUM (reserved)         560.0M        5         reserved VM address space (unallocated)\nMALLOC_NANO (reserved)           384.0M        1         reserved VM address space (unallocated)\nOpenGL GLSL                        256K        3 \nRosetta Arena                     4096K        2 \nRosetta Generic                   1288K      319 \nRosetta IndirectBranch            1024K        1 \nRosetta JIT                      128.0M        1 \nRosetta Return Stack               140K       14 \nRosetta Thread Context             140K       14 \nSTACK GUARD                         20K        5 \nStack                             11.1M        7 \nStack Guard                       56.0M        2 \nVM_ALLOCATE                       3468K       37 \nVM_ALLOCATE (reserved)              32K        5         reserved VM address space (unallocated)\n__CTF                               756        1 \n__DATA                            25.3M      495 \n__DATA_CONST                      29.3M      319 \n__DATA_DIRTY                      1413K      170 \n__FONT_DATA                        2352        1 \n__GLSLBUILTINS                    5174K        1 \n__LINKEDIT                       171.0M       24 \n__OBJC_RO                         65.4M        1 \n__OBJC_RW                         1985K        2 \n__TEXT                           441.9M      513 \ndyld private memory                320K        3 \nmapped file                        4.3G     1290 \nshared memory                      816K       17 \nunshared pmap                     12.3M        9 \n===========                     =======  ======= \nTOTAL                              6.5G     3389 \nTOTAL, minus reserved VM space     5.6G     3389 \n",
  "legacyInfo" : {
  "threadTriggered" : {
    "queue" : "com.apple.main-thread"
  }
},
  "trialInfo" : {
  "rollouts" : [
    {
      "rolloutId" : "5fb4245a1bbfe8005e33a1e1",
      "factorPackIds" : {

      },
      "deploymentId" : 240000021
    },
    {
      "rolloutId" : "60da5e84ab0ca017dace9abf",
      "factorPackIds" : {

      },
      "deploymentId" : 240000008
    }
  ],
  "experiments" : [

  ]
}
}

Model: MacBookAir10,1, BootROM 8419.60.44, proc 8:4:4 processors, 16 GB, SMC 
Graphics: Apple M1, Apple M1, Built-In
Display: Dummy For S24H85X, 4352 x 2448, Main, MirrorOn, Online
Display: Color LCD, 2560 x 1600 Retina, MirrorOff, Online
Display: S24H85x, 4352 x 2448, MirrorOn, Online
Memory Module: LPDDR4, Hynix
AirPort: spairport_wireless_card_type_wifi (0x14E4, 0x4378), wl0: Sep  3 2022 03:37:22 version 18.20.379.4.7.8.143 FWID 01-e3c71b50
Bluetooth: Version (null), 0 services, 0 devices, 0 incoming serial ports
Network Service: Wi-Fi, AirPort, en0
USB Device: USB31Bus
USB Device: USB3.0 Hub
USB Device: USB2.0 Hub
USB Device: USB 2.0 Hub
USB Device: USB 10/100 LAN
USB Device: USB31Bus
USB Device: 4-Port USB 2.0 Hub
USB Device: BillBoard Device
Thunderbolt Bus: MacBook Air, Apple Inc.
Thunderbolt Bus: MacBook Air, Apple Inc.
WerWolv commented 1 year ago

Thank you! Latest commit should also resolve this now

dopplershift commented 1 year ago

For completeness, I can confirm that 1.26.2 fixes the problem for me as well. Thanks for the quick fix!

hstxmgzY commented 1 year ago

Hello, I download 1.26.1 (both macOS and macOS GPU) on my macOS12.3, but I find the same problem, I can open ImHex but it quit unexpectedly. This is the output from running it in terminal:

Last login: Fri Jan  6 08:40:41 on ttys000
/Applications/imhex.app/Contents/MacOS/imhex ; exit;                            
(base) iron@gooeydeMacBook-Air ~ % /Applications/imhex.app/Contents/MacOS/imhex ; exit;
[08:56:37] [INFO]  [main] Welcome to ImHex 1.26.1!
[08:56:37] [INFO]  [main] Native scaling set to: 1.0
[08:56:37] [INFO]  [main] Task 'Setting up environment' finished in 0 ms
[08:56:37] [INFO]  [main] Task 'Creating directories' finished in 2 ms
[08:56:37] [INFO]  [main] Task 'Loading settings' finished in 1 ms
[08:56:37] [ERROR] [libimhex] Theme 'Dark' does not exist and no other themes are available!
[08:56:37] [ERROR] [main] Init task 'Loading plugins' threw an exception: [json.exception.parse_error.101] parse error at line 145, column 2: syntax error while parsing value - invalid literal; last read: '"#008080FF"<U+000A>        }<U+000A>    }<U+000A>}?'; expected end of input
[08:56:37] [INFO]  [main] Task 'Checking for updates' finished in 0 ms
[08:56:38] [INFO]  [main] Task 'Loading fonts' finished in 1135 ms
[08:56:39] [ERROR] [libimhex] Theme 'Dark' does not exist and no other themes are available!
terminate called after throwing an instance of 'std::out_of_range'
  what():  map::at
zsh: abort      /Applications/imhex.app/Contents/MacOS/imhex

Saving session...

What should I do to solve this problem? Thank you so much!

dopplershift commented 1 year ago

@hstxmgzY I would try upgrading to 1.26.2, which was released (I think) to fix that very problem.