Gnurou / tagainijisho

A free Japanese dictionary and learning assistant
http://www.tagaini.net
GNU General Public License v3.0
364 stars 51 forks source link

Build works but app crash in MacOS 13.6.3 #268

Open fakufaku opened 10 months ago

fakufaku commented 10 months ago

I successfully built the app under MacOS 13.6.3 on an M1 MacBook Pro. However, the app crashes when I open it. I include the OS report below.

Could this be related to #241 or is the new apple architecture now supported ?

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

Process:               Tagaini Jisho [6088]
Path:                  /Users/USER/*/Tagaini Jisho.app/Contents/MacOS/Tagaini Jisho
Identifier:            net.tagaini.TagainiJisho
Version:               1.2.2 (1.2.2)
Code Type:             ARM-64 (Native)
Parent Process:        launchd [1]
User ID:               503

Date/Time:             2024-02-04 12:31:09.3326 +0900
OS Version:            macOS 13.6.3 (22G436)
Report Version:        12
Anonymous UUID:        66B503B7-57C8-3390-6783-148CD35ACC3A

Sleep/Wake UUID:       991150F2-FF3F-4F7A-87A7-9088AC324763

Time Awake Since Boot: 1000000 seconds
Time Since Wake:       12453 seconds

System Integrity Protection: enabled

Crashed Thread:        0

Exception Type:        EXC_BAD_ACCESS (SIGKILL (Code Signature Invalid))
Exception Codes:       UNKNOWN_0x32 at 0x0000000104fdc000
Exception Codes:       0x0000000000000032, 0x0000000104fdc000

Termination Reason:    Namespace CODESIGNING, Code 2 Invalid Page

VM Region Info: 0x104fdc000 is in 0x104fdc000-0x105008000;  bytes after start: 0  bytes before end: 180223
      REGION TYPE                    START - END         [ VSIZE] PRT/MAX SHRMOD  REGION DETAIL
      mapped file                 104f84000-104fdc000    [  352K] r--/rwx SM=COW  ...t_id=9a183c21
--->  mapped file                 104fdc000-105008000    [  176K] r-x/rwx SM=COW  ...t_id=9a183c21
      VM_ALLOCATE (reserved)      105008000-105034000    [  176K] rw-/rwx SM=NUL  ...(unallocated)

Thread 0 Crashed:
0   dyld                                   0x1996b2e40 dyld3::MachOFile::isMachO(Diagnostics&, unsigned long long) const + 40
1   dyld                                   0x19967b0e0 dyld4::Loader::mapSegments(Diagnostics&, dyld4::RuntimeState&, char const*, unsigned long long, dyld4::Loader::CodeSignatureInFile const&, bool, dyld3::Array<dyld4::Loader::Region> const&, bool, bool, dyld4::Loader::FileValidationInfo const&) + 984
2   dyld                                   0x19968394c invocation function for block in dyld4::JustInTimeLoader::makeJustInTimeLoaderDisk(Diagnostics&, dyld4::RuntimeState&, char const*, dyld4::Loader::LoadOptions const&, bool, unsigned int, mach_o::Layout const*) + 88
3   dyld                                   0x1996832e8 dyld4::JustInTimeLoader::withRegions(dyld3::MachOFile const*, void (dyld3::Array<dyld4::Loader::Region> const&) block_pointer) + 292
4   dyld                                   0x199683890 invocation function for block in dyld4::JustInTimeLoader::makeJustInTimeLoaderDisk(Diagnostics&, dyld4::RuntimeState&, char const*, dyld4::Loader::LoadOptions const&, bool, unsigned int, mach_o::Layout const*) + 456
5   dyld                                   0x19968a68c dyld4::SyscallDelegate::withReadOnlyMappedFile(Diagnostics&, char const*, bool, void (void const*, unsigned long, bool, dyld4::FileID const&, char const*) block_pointer) const + 132
6   dyld                                   0x199683694 dyld4::JustInTimeLoader::makeJustInTimeLoaderDisk(Diagnostics&, dyld4::RuntimeState&, char const*, dyld4::Loader::LoadOptions const&, bool, unsigned int, mach_o::Layout const*) + 208
7   dyld                                   0x19967a40c invocation function for block in dyld4::Loader::getLoader(Diagnostics&, dyld4::RuntimeState&, char const*, dyld4::Loader::LoadOptions const&) + 1680
8   dyld                                   0x199679754 dyld4::Loader::forEachResolvedAtPathVar(dyld4::RuntimeState&, char const*, dyld4::Loader::LoadOptions const&, dyld4::ProcessConfig::PathOverrides::Type, bool&, void (char const*, dyld4::ProcessConfig::PathOverrides::Type, bool&) block_pointer) + 776
9   dyld                                   0x199666f54 dyld4::ProcessConfig::PathOverrides::forEachPathVariant(char const*, dyld3::Platform, bool, bool, bool&, void (char const*, dyld4::ProcessConfig::PathOverrides::Type, bool&) block_pointer) const + 488
10  dyld                                   0x19967928c dyld4::Loader::forEachPath(Diagnostics&, dyld4::RuntimeState&, char const*, dyld4::Loader::LoadOptions const&, void (char const*, dyld4::ProcessConfig::PathOverrides::Type, bool&) block_pointer) + 248
11  dyld                                   0x1996799e0 dyld4::Loader::getLoader(Diagnostics&, dyld4::RuntimeState&, char const*, dyld4::Loader::LoadOptions const&) + 588
12  dyld                                   0x199681730 invocation function for block in dyld4::JustInTimeLoader::loadDependents(Diagnostics&, dyld4::RuntimeState&, dyld4::Loader::LoadOptions const&) + 412
13  dyld                                   0x1996b47e8 invocation function for block in dyld3::MachOFile::forEachDependentDylib(void (char const*, bool, bool, bool, unsigned int, unsigned int, bool&) block_pointer) const + 148
14  dyld                                   0x1996602d8 dyld3::MachOFile::forEachLoadCommand(Diagnostics&, void (load_command const*, bool&) block_pointer) const + 296
15  dyld                                   0x1996b4630 dyld3::MachOFile::forEachDependentDylib(void (char const*, bool, bool, bool, unsigned int, unsigned int, bool&) block_pointer) const + 172
16  dyld                                   0x199681478 dyld4::JustInTimeLoader::loadDependents(Diagnostics&, dyld4::RuntimeState&, dyld4::Loader::LoadOptions const&) + 164
17  dyld                                   0x199664a0c dyld4::prepare(dyld4::APIs&, dyld3::MachOAnalyzer const*) + 1236
18  dyld                                   0x199663e18 start + 1964

Thread 0 crashed with ARM Thread State (64-bit):
    x0: 0x0000000104fdc000   x1: 0x000000016b3220b0   x2: 0x000000000002c000   x3: 0x0000000000040012
    x4: 0x0000000000000003   x5: 0x0000000000000000   x6: 0x0000000000000000   x7: 0x0000000000000000
    x8: 0x00000001f51061ac   x9: 0x00000001f51060b0  x10: 0x000000016b3218cc  x11: 0x0800000000034000
   x12: 0x0000000000000001  x13: 0x0000000000000001  x14: 0x0000000000021770  x15: 0x000000016b322e00
   x16: 0x00000000000000c5  x17: 0x0000000199661f60  x18: 0x0000000000000000  x19: 0x000000016b3220b0
   x20: 0x0000000000000003  x21: 0x000000016b3220b0  x22: 0x000000016b321b88  x23: 0x0000000000058000
   x24: 0x0000000000000000  x25: 0x000000016b3218fc  x26: 0x0000000000000000  x27: 0x0000000104fdc000
   x28: 0x0000000000000040   fp: 0x000000016b321510   lr: 0x634980019967b0e0
    sp: 0x000000016b321500   pc: 0x00000001996b2e40 cpsr: 0x20001000
   far: 0x0000000104fdc000  esr: 0x92000007 (Data Abort) byte read Translation fault

Binary Images:
       0x104adc000 -        0x104dbffff net.tagaini.TagainiJisho (1.2.2) <904d9929-dffa-3a47-a983-783e49c739e0> /Users/USER/*/Tagaini Jisho.app/Contents/MacOS/Tagaini Jisho
       0x19965e000 -        0x1996ec587 dyld (*) <b35b0343-b5b9-3204-8eba-8dad651a4e3a> /usr/lib/dyld
               0x0 - 0xffffffffffffffff ??? (*) <00000000-0000-0000-0000-000000000000> ???

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=808.1M resident=0K(0%) swapped_out_or_unallocated=808.1M(100%)
Writable regions: Total=8624K written=0K(0%) resident=0K(0%) swapped_out=0K(0%) unallocated=8624K(100%)

                                VIRTUAL   REGION 
REGION TYPE                        SIZE    COUNT (non-coalesced) 
===========                     =======  ======= 
STACK GUARD                       56.0M        1 
Stack                             8176K        1 
VM_ALLOCATE (reserved)             176K        1         reserved VM address space (unallocated)
__DATA                             107K        3 
__DATA_CONST                        86K        2 
__DATA_DIRTY                         7K        1 
__LINKEDIT                       804.7M        2 
__TEXT                            3532K        2 
dyld private memory                272K        2 
mapped file                        528K        2 
===========                     =======  ======= 
TOTAL                            873.3M       17 
TOTAL, minus reserved VM space   873.1M       17 

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

{"app_name":"Tagaini Jisho","timestamp":"2024-02-04 12:31:10.00 +0900","app_version":"1.2.2","slice_uuid":"904d9929-dffa-3a47-a983-783e49c739e0","build_version":"1.2.2","platform":1,"bundleID":"net.tagaini.TagainiJisho","share_with_app_devs":0,"is_first_party":0,"bug_type":"309","os_version":"macOS 13.6.3 (22G436)","roots_installed":0,"name":"Tagaini Jisho","incident_id":"1C69FB47-4BA2-4581-BAB4-3F7521107342"}
{
  "uptime" : 1000000,
  "procRole" : "Background",
  "version" : 2,
  "userID" : 503,
  "deployVersion" : 210,
  "modelCode" : "MacBookPro18,3",
  "coalitionID" : 188485,
  "osVersion" : {
    "train" : "macOS 13.6.3",
    "build" : "22G436",
    "releaseType" : "User"
  },
  "captureTime" : "2024-02-04 12:31:09.3326 +0900",
  "incident" : "1C69FB47-4BA2-4581-BAB4-3F7521107342",
  "pid" : 6088,
  "translated" : false,
  "cpuType" : "ARM-64",
  "roots_installed" : 0,
  "bug_type" : "309",
  "procLaunch" : "2024-02-04 12:31:07.7618 +0900",
  "procStartAbsTime" : 25091492825510,
  "procExitAbsTime" : 25091524273590,
  "procName" : "Tagaini Jisho",
  "procPath" : "\/Users\/USER\/*\/Tagaini Jisho.app\/Contents\/MacOS\/Tagaini Jisho",
  "bundleInfo" : {"CFBundleShortVersionString":"1.2.2","CFBundleVersion":"1.2.2","CFBundleIdentifier":"net.tagaini.TagainiJisho"},
  "storeInfo" : {"deviceIdentifierForVendor":"EFBB26E6-30D7-5279-A7D0-1239C1D7C6FD","thirdParty":true},
  "parentProc" : "launchd",
  "parentPid" : 1,
  "coalitionName" : "net.tagaini.TagainiJisho",
  "crashReporterKey" : "66B503B7-57C8-3390-6783-148CD35ACC3A",
  "codeSigningID" : "Tagaini Jisho",
  "codeSigningTeamID" : "",
  "codeSigningFlags" : 587334144,
  "codeSigningValidationCategory" : 0,
  "codeSigningTrustLevel" : 0,
  "wakeTime" : 12453,
  "sleepWakeUUID" : "991150F2-FF3F-4F7A-87A7-9088AC324763",
  "sip" : "enabled",
  "vmRegionInfo" : "0x104fdc000 is in 0x104fdc000-0x105008000;  bytes after start: 0  bytes before end: 180223\n      REGION TYPE                    START - END         [ VSIZE] PRT\/MAX SHRMOD  REGION DETAIL\n      mapped file                 104f84000-104fdc000    [  352K] r--\/rwx SM=COW  ...t_id=9a183c21\n--->  mapped file                 104fdc000-105008000    [  176K] r-x\/rwx SM=COW  ...t_id=9a183c21\n      VM_ALLOCATE (reserved)      105008000-105034000    [  176K] rw-\/rwx SM=NUL  ...(unallocated)",
  "exception" : {"codes":"0x0000000000000032, 0x0000000104fdc000","rawCodes":[50,4378705920],"type":"EXC_BAD_ACCESS","signal":"SIGKILL (Code Signature Invalid)","subtype":"UNKNOWN_0x32 at 0x0000000104fdc000"},
  "termination" : {"flags":0,"code":2,"namespace":"CODESIGNING","indicator":"Invalid Page"},
  "vmregioninfo" : "0x104fdc000 is in 0x104fdc000-0x105008000;  bytes after start: 0  bytes before end: 180223\n      REGION TYPE                    START - END         [ VSIZE] PRT\/MAX SHRMOD  REGION DETAIL\n      mapped file                 104f84000-104fdc000    [  352K] r--\/rwx SM=COW  ...t_id=9a183c21\n--->  mapped file                 104fdc000-105008000    [  176K] r-x\/rwx SM=COW  ...t_id=9a183c21\n      VM_ALLOCATE (reserved)      105008000-105034000    [  176K] rw-\/rwx SM=NUL  ...(unallocated)",
  "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":28704359,"threadState":{"x":[{"value":4378705920},{"value":6093414576},{"value":180224},{"value":262162},{"value":3},{"value":0},{"value":0},{"value":0},{"value":8406458796,"symbolLocation":172,"symbol":"_main_thread"},{"value":8406458544,"symbolLocation":0,"symbol":"errno"},{"value":6093412556},{"value":576460752303636480},{"value":1},{"value":1},{"value":137072},{"value":6093417984},{"value":197},{"value":6868574048,"symbolLocation":56,"symbol":"fcntl"},{"value":0},{"value":6093414576},{"value":3},{"value":6093414576},{"value":6093413256},{"value":360448},{"value":0},{"value":6093412604},{"value":0},{"value":4378705920},{"value":64}],"flavor":"ARM_THREAD_STATE64","lr":{"value":7154390227411775712},"cpsr":{"value":536875008},"fp":{"value":6093411600},"sp":{"value":6093411584},"esr":{"value":2449473543,"description":"(Data Abort) byte read Translation fault"},"pc":{"value":6868905536,"matchesCrashFrame":1},"far":{"value":4378705920}},"frames":[{"imageOffset":347712,"symbol":"dyld3::MachOFile::isMachO(Diagnostics&, unsigned long long) const","symbolLocation":40,"imageIndex":1},{"imageOffset":119008,"symbol":"dyld4::Loader::mapSegments(Diagnostics&, dyld4::RuntimeState&, char const*, unsigned long long, dyld4::Loader::CodeSignatureInFile const&, bool, dyld3::Array<dyld4::Loader::Region> const&, bool, bool, dyld4::Loader::FileValidationInfo const&)","symbolLocation":984,"imageIndex":1},{"imageOffset":153932,"symbol":"invocation function for block in dyld4::JustInTimeLoader::makeJustInTimeLoaderDisk(Diagnostics&, dyld4::RuntimeState&, char const*, dyld4::Loader::LoadOptions const&, bool, unsigned int, mach_o::Layout const*)","symbolLocation":88,"imageIndex":1},{"imageOffset":152296,"symbol":"dyld4::JustInTimeLoader::withRegions(dyld3::MachOFile const*, void (dyld3::Array<dyld4::Loader::Region> const&) block_pointer)","symbolLocation":292,"imageIndex":1},{"imageOffset":153744,"symbol":"invocation function for block in dyld4::JustInTimeLoader::makeJustInTimeLoaderDisk(Diagnostics&, dyld4::RuntimeState&, char const*, dyld4::Loader::LoadOptions const&, bool, unsigned int, mach_o::Layout const*)","symbolLocation":456,"imageIndex":1},{"imageOffset":181900,"symbol":"dyld4::SyscallDelegate::withReadOnlyMappedFile(Diagnostics&, char const*, bool, void (void const*, unsigned long, bool, dyld4::FileID const&, char const*) block_pointer) const","symbolLocation":132,"imageIndex":1},{"imageOffset":153236,"symbol":"dyld4::JustInTimeLoader::makeJustInTimeLoaderDisk(Diagnostics&, dyld4::RuntimeState&, char const*, dyld4::Loader::LoadOptions const&, bool, unsigned int, mach_o::Layout const*)","symbolLocation":208,"imageIndex":1},{"imageOffset":115724,"symbol":"invocation function for block in dyld4::Loader::getLoader(Diagnostics&, dyld4::RuntimeState&, char const*, dyld4::Loader::LoadOptions const&)","symbolLocation":1680,"imageIndex":1},{"imageOffset":112468,"symbol":"dyld4::Loader::forEachResolvedAtPathVar(dyld4::RuntimeState&, char const*, dyld4::Loader::LoadOptions const&, dyld4::ProcessConfig::PathOverrides::Type, bool&, void (char const*, dyld4::ProcessConfig::PathOverrides::Type, bool&) block_pointer)","symbolLocation":776,"imageIndex":1},{"imageOffset":36692,"symbol":"dyld4::ProcessConfig::PathOverrides::forEachPathVariant(char const*, dyld3::Platform, bool, bool, bool&, void (char const*, dyld4::ProcessConfig::PathOverrides::Type, bool&) block_pointer) const","symbolLocation":488,"imageIndex":1},{"imageOffset":111244,"symbol":"dyld4::Loader::forEachPath(Diagnostics&, dyld4::RuntimeState&, char const*, dyld4::Loader::LoadOptions const&, void (char const*, dyld4::ProcessConfig::PathOverrides::Type, bool&) block_pointer)","symbolLocation":248,"imageIndex":1},{"imageOffset":113120,"symbol":"dyld4::Loader::getLoader(Diagnostics&, dyld4::RuntimeState&, char const*, dyld4::Loader::LoadOptions const&)","symbolLocation":588,"imageIndex":1},{"imageOffset":145200,"symbol":"invocation function for block in dyld4::JustInTimeLoader::loadDependents(Diagnostics&, dyld4::RuntimeState&, dyld4::Loader::LoadOptions const&)","symbolLocation":412,"imageIndex":1},{"imageOffset":354280,"symbol":"invocation function for block in dyld3::MachOFile::forEachDependentDylib(void (char const*, bool, bool, bool, unsigned int, unsigned int, bool&) block_pointer) const","symbolLocation":148,"imageIndex":1},{"imageOffset":8920,"symbol":"dyld3::MachOFile::forEachLoadCommand(Diagnostics&, void (load_command const*, bool&) block_pointer) const","symbolLocation":296,"imageIndex":1},{"imageOffset":353840,"symbol":"dyld3::MachOFile::forEachDependentDylib(void (char const*, bool, bool, bool, unsigned int, unsigned int, bool&) block_pointer) const","symbolLocation":172,"imageIndex":1},{"imageOffset":144504,"symbol":"dyld4::JustInTimeLoader::loadDependents(Diagnostics&, dyld4::RuntimeState&, dyld4::Loader::LoadOptions const&)","symbolLocation":164,"imageIndex":1},{"imageOffset":27148,"symbol":"dyld4::prepare(dyld4::APIs&, dyld3::MachOAnalyzer const*)","symbolLocation":1236,"imageIndex":1},{"imageOffset":24088,"symbol":"start","symbolLocation":1964,"imageIndex":1}]}],
  "usedImages" : [
  {
    "source" : "P",
    "arch" : "arm64",
    "base" : 4373463040,
    "CFBundleShortVersionString" : "1.2.2",
    "CFBundleIdentifier" : "net.tagaini.TagainiJisho",
    "size" : 3031040,
    "uuid" : "904d9929-dffa-3a47-a983-783e49c739e0",
    "path" : "\/Users\/USER\/*\/Tagaini Jisho.app\/Contents\/MacOS\/Tagaini Jisho",
    "name" : "Tagaini Jisho",
    "CFBundleVersion" : "1.2.2"
  },
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" : 6868557824,
    "size" : 583048,
    "uuid" : "b35b0343-b5b9-3204-8eba-8dad651a4e3a",
    "path" : "\/usr\/lib\/dyld",
    "name" : "dyld"
  },
  {
    "size" : 0,
    "source" : "A",
    "base" : 0,
    "uuid" : "00000000-0000-0000-0000-000000000000"
  }
],
  "sharedCache" : {
  "base" : 6867894272,
  "size" : 3585916928,
  "uuid" : "eccd2a5c-66b8-3acf-a00a-c68fea25a443"
},
  "vmSummary" : "ReadOnly portion of Libraries: Total=808.1M resident=0K(0%) swapped_out_or_unallocated=808.1M(100%)\nWritable regions: Total=8624K written=0K(0%) resident=0K(0%) swapped_out=0K(0%) unallocated=8624K(100%)\n\n                                VIRTUAL   REGION \nREGION TYPE                        SIZE    COUNT (non-coalesced) \n===========                     =======  ======= \nSTACK GUARD                       56.0M        1 \nStack                             8176K        1 \nVM_ALLOCATE (reserved)             176K        1         reserved VM address space (unallocated)\n__DATA                             107K        3 \n__DATA_CONST                        86K        2 \n__DATA_DIRTY                         7K        1 \n__LINKEDIT                       804.7M        2 \n__TEXT                            3532K        2 \ndyld private memory                272K        2 \nmapped file                        528K        2 \n===========                     =======  ======= \nTOTAL                            873.3M       17 \nTOTAL, minus reserved VM space   873.1M       17 \n",
  "legacyInfo" : {
  "threadTriggered" : {

  }
},
  "logWritingSignature" : "c1b0564509393233d3f19df54250cfbb9d31210c",
  "trialInfo" : {
  "rollouts" : [
    {
      "rolloutId" : "6112d17137f5d11121dcd4e2",
      "factorPackIds" : {

      },
      "deploymentId" : 240000491
    },
    {
      "rolloutId" : "6246d6a916a70b047e454124",
      "factorPackIds" : {

      },
      "deploymentId" : 240000010
    }
  ],
  "experiments" : [
    {
      "treatmentId" : "5d51a80d-93ec-47e1-9027-675002e78e4a",
      "experimentId" : "6384d56b96e8d228551ec182",
      "deploymentId" : 400000026
    }
  ]
}
}

Model: MacBookPro18,3, BootROM 10151.61.4, proc 10:8:2 processors, 32 GB, SMC 
Graphics: Apple M1 Pro, Apple M1 Pro, Built-In
Display: Color LCD, 3024 x 1964 Retina, Main, MirrorOff, Online
Memory Module: LPDDR5, Hynix
AirPort: spairport_wireless_card_type_wifi (0x14E4, 0x4387), wl0: May 27 2023 01:34:59 version 20.96.31.0.8.7.148 FWID 01-126f2c4c
Bluetooth: Version (null), 0 services, 0 devices, 0 incoming serial ports
Network Service: USB 10/100 LAN, Ethernet, en8
Network Service: Wi-Fi, AirPort, en0
Network Service: Thunderbolt Bridge, Ethernet, bridge0
USB Device: USB31Bus
USB Device: USB31Bus
USB Device: USB31Bus
Thunderbolt Bus: MacBook Pro, Apple Inc.
Thunderbolt Bus: MacBook Pro, Apple Inc.
Thunderbolt Bus: MacBook Pro, Apple Inc.