Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Consistently failed to load scripting addition #2356

Closed
realhackcraft opened this issue Jul 24, 2024 · 2 comments
Closed

Consistently failed to load scripting addition #2356

realhackcraft opened this issue Jul 24, 2024 · 2 comments

Comments

@realhackcraft
Copy link

When running sudo yabai --load-sa, I get yabai: scripting-addition failed to inject payload into Dock.app!.

yabai --version: yabai-v7.1.1
MacOS version: 15 Beta 4

Unlike last time I reported an issue here (sorry), I did multiple restarts and its still broken.

Here's the MacOS crash report:

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

Process:               loader [14922]
Path:                  /Library/ScriptingAdditions/yabai.osax/Contents/MacOS/loader
Identifier:            com.koekeishiya.yabai-osax
Version:               2.1.10 (2.1.10)
Code Type:             ARM-64 (Native)
Parent Process:        yabai [14921]
Responsible:           wezterm-gui [11931]
User ID:               0

Date/Time:             2024-07-23 21:59:13.6918 -0400
OS Version:            macOS 15.0 (24A5298h)
Report Version:        12
Anonymous UUID:        34F483CB-AC20-3043-D280-642240902D64


Time Awake Since Boot: 1000 seconds

System Integrity Protection: disabled

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

Exception Type:        EXC_GUARD (SIGKILL)
Exception Codes:       GUARD_TYPE_MACH_PORT
Exception Codes:       0x0000000000000000, 0x0000000000000000

Termination Reason:    Namespace GUARD, Code 2305843030688530432 

External Modification Warnings:
Process used task_for_pid().

Thread 0 Crashed::  Dispatch queue: com.apple.main-thread
0   libsystem_kernel.dylib        	       0x19fa77e34 mach_msg2_trap + 8
1   libsystem_kernel.dylib        	       0x19fa8a5d0 mach_msg2_internal + 80
2   libsystem_kernel.dylib        	       0x19faa7308 thread_set_state + 208
3   loader                        	       0x10053b7a0 main + 1228
4   dyld                          	       0x19f737274 start + 2840

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


Thread 0 crashed with ARM Thread State (64-bit):
    x0: 0x0000000000000000   x1: 0x0000000200000003   x2: 0x0000013800001513   x3: 0x0000070700001203
    x4: 0x00000e1400000000   x5: 0x0000070700000000   x6: 0x000000000000002c   x7: 0x0000000000000000
    x8: 0xfffffffffffffbbf   x9: 0x0000000087e53009  x10: 0x00000000000000a9  x11: 0x0000000000000360
   x12: 0x00000000000007fb  x13: 0x00000000000007fd  x14: 0x000000008805380a  x15: 0x0000000087e53009
   x16: 0xffffffffffffffd1  x17: 0x000000010053c070  x18: 0x0000000000000000  x19: 0x0000000000000000
   x20: 0x000000000000002c  x21: 0x0000070700000000  x22: 0x00000e1400000000  x23: 0x0000070700001203
   x24: 0x000000016f8c5c98  x25: 0x0000013800001513  x26: 0x0000000200000003  x27: 0x0000000200000003
   x28: 0x0000000000000000   fp: 0x000000016f8c5c80   lr: 0x000000019fa8a5d0
    sp: 0x000000016f8c5c30   pc: 0x000000019fa77e34 cpsr: 0x80001000
   far: 0x0000000000000000  esr: 0x56000080  Address size fault

Binary Images:
       0x100538000 -        0x10053bfff com.koekeishiya.yabai-osax (2.1.10) <1d8491d3-f7d8-3388-a6a3-8650b7077983> /Library/ScriptingAdditions/yabai.osax/Contents/MacOS/loader
       0x19fa77000 -        0x19fab1ff7 libsystem_kernel.dylib (*) <2f22b6fb-7929-3452-af97-7b074cf9270f> /usr/lib/system/libsystem_kernel.dylib
       0x19f731000 -        0x19f7b2ddb dyld (*) <080914bd-cd81-3697-869a-d72be1cf17a1> /usr/lib/dyld
               0x0 - 0xffffffffffffffff ??? (*) <00000000-0000-0000-0000-000000000000> ???
       0x19fab2000 -        0x19fabefff libsystem_pthread.dylib (*) <59673c9d-4337-3728-8375-fd6cf6cdfbaa> /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: 1
    thread_create: 1
    thread_set_state: 0
  Calls made by all processes on this machine:
    task_for_pid: 3
    thread_create: 3
    thread_set_state: 0

VM Region Summary:
ReadOnly portion of Libraries: Total=846.4M resident=0K(0%) swapped_out_or_unallocated=846.4M(100%)
Writable regions: Total=539.2M written=257K(0%) resident=257K(0%) swapped_out=0K(0%) unallocated=538.9M(100%)

                                VIRTUAL   REGION 
REGION TYPE                        SIZE    COUNT (non-coalesced) 
===========                     =======  ======= 
Activity Tracing                   256K        1 
Kernel Alloc Once                   32K        1 
MALLOC                           530.2M       13 
MALLOC guard page                   96K        6 
STACK GUARD                       56.0M        2 
Stack                             8720K        2 
__AUTH                             964K      197 
__AUTH_CONST                      17.1M      337 
__DATA                            3691K      318 
__DATA_CONST                      12.5M      339 
__DATA_DIRTY                       692K      109 
__FONT_DATA                        2352        1 
__LINKEDIT                       581.8M        2 
__OBJC_RW                         2346K        1 
__TEXT                           264.6M      351 
__TPRO_CONST                       272K        2 
mapped file                       31.5M        3 
owned unmapped memory               16K        1 
page table in kernel               257K        1 
shared memory                      240K        5 
===========                     =======  ======= 
TOTAL                              1.5G     1692 



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

{"app_name":"loader","timestamp":"2024-07-23 21:59:14.00 -0400","app_version":"2.1.10","sroute_id":12,"slice_uuid":"1d8491d3-f7d8-3388-a6a3-8650b7077983","build_version":"2.1.10","platform":1,"bundleID":"com.koekeishiya.yabai-osax","share_with_app_devs":0,"is_first_party":1,"bug_type":"309","os_version":"macOS 15.0 (24A5298h)","roots_installed":0,"name":"loader","incident_id":"B7850C20-9F49-4548-AEB4-6E5192C49A6F"}
{
  "uptime" : 1000,
  "procRole" : "Unspecified",
  "version" : 2,
  "userID" : 0,
  "deployVersion" : 210,
  "modelCode" : "Mac14,7",
  "coalitionID" : 3103,
  "osVersion" : {
    "train" : "macOS 15.0",
    "build" : "24A5298h",
    "releaseType" : "User"
  },
  "captureTime" : "2024-07-23 21:59:13.6918 -0400",
  "codeSigningMonitor" : 1,
  "incident" : "B7850C20-9F49-4548-AEB4-6E5192C49A6F",
  "pid" : 14922,
  "translated" : false,
  "cpuType" : "ARM-64",
  "roots_installed" : 0,
  "bug_type" : "309",
  "procLaunch" : "2024-07-23 21:59:13.6437 -0400",
  "procStartAbsTime" : 24709339657,
  "procExitAbsTime" : 24710202551,
  "procName" : "loader",
  "procPath" : "\/Library\/ScriptingAdditions\/yabai.osax\/Contents\/MacOS\/loader",
  "bundleInfo" : {"CFBundleShortVersionString":"2.1.10","CFBundleVersion":"2.1.10","CFBundleIdentifier":"com.koekeishiya.yabai-osax"},
  "parentProc" : "yabai",
  "parentPid" : 14921,
  "coalitionName" : "com.github.wez.wezterm",
  "crashReporterKey" : "34F483CB-AC20-3043-D280-642240902D64",
  "responsiblePid" : 11931,
  "responsibleProc" : "wezterm-gui",
  "codeSigningID" : "com.koekeishiya.yabai-osax",
  "codeSigningTeamID" : "",
  "codeSigningFlags" : 570425345,
  "codeSigningValidationCategory" : 10,
  "codeSigningTrustLevel" : 4294967295,
  "instructionByteStream" : {"beforePC":"ARAA1MADX9aQBYCSARAA1MADX9awBYCSARAA1MADX9bQBYCSARAA1A==","atPC":"wANf1vAFgJIBEADUwANf1hAGgJIBEADUwANf1jAGgJIBEADUwANf1g=="},
  "bootSessionUUID" : "A4F1F2F5-6769-4DA5-919A-0913FBB1E027",
  "sip" : "disabled",
  "sroute_id" : 12,
  "exception" : {"port":0,"signal":"SIGKILL","guardId":0,"codes":"0x0000000000000000, 0x0000000000000000","violations":["THREAD_SET_STATE"],"message":" THREAD_SET_STATE on mach port 0 (guarded with 0x0000000000000000)","subtype":"GUARD_TYPE_MACH_PORT","type":"EXC_GUARD","rawCodes":[0,0]},
  "termination" : {"namespace":"GUARD","flags":2,"code":2305843030688530432},
  "extMods" : {"caller":{"thread_create":1,"thread_set_state":0,"task_for_pid":1},"system":{"thread_create":3,"thread_set_state":0,"task_for_pid":3},"targeted":{"thread_create":0,"thread_set_state":0,"task_for_pid":0},"warnings":1},
  "faultingThread" : 0,
  "threads" : [{"triggered":true,"id":76338,"threadState":{"x":[{"value":0},{"value":8589934595},{"value":1340029801747},{"value":7726646170115},{"value":15479062134784},{"value":7726646165504},{"value":44},{"value":0},{"value":18446744073709550527},{"value":2279944201},{"value":169},{"value":864},{"value":2043},{"value":2045},{"value":2282043402},{"value":2279944201},{"value":18446744073709551569},{"value":4300456048},{"value":0},{"value":0},{"value":44},{"value":7726646165504},{"value":15479062134784},{"value":7726646170115},{"value":6166437016},{"value":1340029801747},{"value":8589934595},{"value":8589934595},{"value":0}],"flavor":"ARM_THREAD_STATE64","lr":{"value":6973597136},"cpsr":{"value":2147487744},"fp":{"value":6166436992},"sp":{"value":6166436912},"esr":{"value":1442840704,"description":" Address size fault"},"pc":{"value":6973521460,"matchesCrashFrame":1},"far":{"value":0}},"queue":"com.apple.main-thread","frames":[{"imageOffset":3636,"symbol":"mach_msg2_trap","symbolLocation":8,"imageIndex":1},{"imageOffset":79312,"symbol":"mach_msg2_internal","symbolLocation":80,"imageIndex":1},{"imageOffset":197384,"symbol":"thread_set_state","symbolLocation":208,"imageIndex":1},{"imageOffset":14240,"symbol":"main","symbolLocation":1228,"imageIndex":0},{"imageOffset":25204,"symbol":"start","symbolLocation":2840,"imageIndex":2}]},{"id":76339,"frames":[{"imageOffset":8424,"symbol":"start_wqthread","symbolLocation":0,"imageIndex":4}],"threadState":{"x":[{"value":6166999040},{"value":5891},{"value":6166462464},{"value":0},{"value":409604},{"value":18446744073709551615},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0}],"flavor":"ARM_THREAD_STATE64","lr":{"value":0},"cpsr":{"value":4096},"fp":{"value":0},"sp":{"value":6166999040},"esr":{"value":1442840704,"description":" Address size fault"},"pc":{"value":6973767912},"far":{"value":0}}}],
  "usedImages" : [
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" : 4300439552,
    "CFBundleShortVersionString" : "2.1.10",
    "CFBundleIdentifier" : "com.koekeishiya.yabai-osax",
    "size" : 16384,
    "uuid" : "1d8491d3-f7d8-3388-a6a3-8650b7077983",
    "path" : "\/Library\/ScriptingAdditions\/yabai.osax\/Contents\/MacOS\/loader",
    "name" : "loader",
    "CFBundleVersion" : "2.1.10"
  },
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" : 6973517824,
    "size" : 241656,
    "uuid" : "2f22b6fb-7929-3452-af97-7b074cf9270f",
    "path" : "\/usr\/lib\/system\/libsystem_kernel.dylib",
    "name" : "libsystem_kernel.dylib"
  },
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" : 6970085376,
    "size" : 531932,
    "uuid" : "080914bd-cd81-3697-869a-d72be1cf17a1",
    "path" : "\/usr\/lib\/dyld",
    "name" : "dyld"
  },
  {
    "size" : 0,
    "source" : "A",
    "base" : 0,
    "uuid" : "00000000-0000-0000-0000-000000000000"
  },
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" : 6973759488,
    "size" : 53248,
    "uuid" : "59673c9d-4337-3728-8375-fd6cf6cdfbaa",
    "path" : "\/usr\/lib\/system\/libsystem_pthread.dylib",
    "name" : "libsystem_pthread.dylib"
  }
],
  "sharedCache" : {
  "base" : 6969278464,
  "size" : 4723015680,
  "uuid" : "8ecfde80-15a4-3d80-8d0b-642520616bbc"
},
  "vmSummary" : "ReadOnly portion of Libraries: Total=846.4M resident=0K(0%) swapped_out_or_unallocated=846.4M(100%)\nWritable regions: Total=539.2M written=257K(0%) resident=257K(0%) swapped_out=0K(0%) unallocated=538.9M(100%)\n\n                                VIRTUAL   REGION \nREGION TYPE                        SIZE    COUNT (non-coalesced) \n===========                     =======  ======= \nActivity Tracing                   256K        1 \nKernel Alloc Once                   32K        1 \nMALLOC                           530.2M       13 \nMALLOC guard page                   96K        6 \nSTACK GUARD                       56.0M        2 \nStack                             8720K        2 \n__AUTH                             964K      197 \n__AUTH_CONST                      17.1M      337 \n__DATA                            3691K      318 \n__DATA_CONST                      12.5M      339 \n__DATA_DIRTY                       692K      109 \n__FONT_DATA                        2352        1 \n__LINKEDIT                       581.8M        2 \n__OBJC_RW                         2346K        1 \n__TEXT                           264.6M      351 \n__TPRO_CONST                       272K        2 \nmapped file                       31.5M        3 \nowned unmapped memory               16K        1 \npage table in kernel               257K        1 \nshared memory                      240K        5 \n===========                     =======  ======= \nTOTAL                              1.5G     1692 \n",
  "legacyInfo" : {
  "threadTriggered" : {
    "queue" : "com.apple.main-thread"
  }
},
  "logWritingSignature" : "98e848ba739d91d9bc81704c95d1a96724abab9d",
  "trialInfo" : {
  "rollouts" : [
    {
      "rolloutId" : "654d8c0661e7447155256fcd",
      "factorPackIds" : {
        "SIRI_TEXT_TO_SPEECH" : "6696f2c690c34770d860b65d"
      },
      "deploymentId" : 250000139
    },
    {
      "rolloutId" : "64628732bf2f5257dedc8988",
      "factorPackIds" : {

      },
      "deploymentId" : 250000003
    }
  ],
  "experiments" : [
    {
      "treatmentId" : "bd3092bf-1069-4726-b262-dfc04d2839ed",
      "experimentId" : "65fb74deff072d1db6625e21",
      "deploymentId" : 500000004
    },
    {
      "treatmentId" : "0937d726-5935-4431-aeeb-c5ee106d9794",
      "experimentId" : "6657878a9bef7c77609aa1c3",
      "deploymentId" : 500000007
    }
  ]
}
}

Model: Mac14,7, BootROM 11881.0.285.0.3, proc 8:4:4 processors, 8 GB, SMC 
Graphics: Apple M2, Apple M2, Built-In
Display: Color LCD, 2560 x 1600 Retina, Main, MirrorOff, Online
Memory Module: LPDDR5, Hynix
AirPort: spairport_wireless_card_type_wifi (0x14E4, 0x4378), wl0: Jun 15 2024 17:26:40 version 18.20.454.0.7.8.171 FWID 01-fe98a9d6
IO80211_driverkit-1302.65 "IO80211_driverkit-1302.65" Jul 15 2024 20:08:13
AirPort: 
Bluetooth: Version (null), 0 services, 0 devices, 0 incoming serial ports
Network Service: AX88179, Ethernet, en7
Network Service: Wi-Fi, AirPort, en0
USB Device: USB31Bus
USB Device: USB31Bus
Thunderbolt Bus: MacBook Pro, Apple Inc.
Thunderbolt Bus: MacBook Pro, Apple Inc.

@koekeishiya
Copy link
Owner

Sequoia is head-only (and not fully supported) for now.

@koekeishiya
Copy link
Owner

#2324

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants