w0lfschild / cDock-Issue-Tracker

:cake: Enhanced dock customization for macOS
https://cdock.macenhance.com
366 stars 29 forks source link

M1 (arm) cDock not working #300

Open devmistry opened 3 years ago

devmistry commented 3 years ago

Have been trying this for a while... Got SIP disabled but yet nothing seems to work... cDock helper is present in Activity Monitor, however I can't see com.macenhance

w0lfschild commented 3 years ago

Are you using a new M1 mac or is this an intel?

devmistry commented 3 years ago

M1

w0lfschild commented 3 years ago

Had a few people contact me about this. I don't really know how to test this without my own M1 computer so, probably no support for M1 for a while.

The farthest I've gotten is that it seems like maybe the injector wasn't running on another users system. Can check if com.macenhance.cDock.Injector is running for you in Activity Monitor?

devmistry commented 3 years ago

Nope - that's exactly been the issue - com.macenhance.cDock.Injector isn't running

w0lfschild commented 3 years ago

We don’t currently have a M1 machine to test on but we’re fairly certain the issue has to do with the bundle loader.

Could you try running the linked test-app loader after opening cDock?

cDock-M1Loader

devmistry commented 3 years ago

Nope - doesn't work. See attached screenshot:

Screen Shot 2020-12-02 at 12 48 10 PM
devmistry commented 3 years ago

Any luck?

devmistry commented 3 years ago

Hey mate - not sure if this would help: https://github.com/johnno1962/InjectionIII#:~:text=Code%20injection%20allows%20you%20to,or%20iterating%20over%20a%20design.

w0lfschild commented 3 years ago

Okay so turns out this is due to Pointer Authentication Codes https://support.apple.com/guide/security/pointer-authentication-codes-seca5759bf02/web

Not sure if / when a fix will be available.

devmistry commented 3 years ago

Nothing yet?

w0lfschild commented 3 years ago

@devmistry I'm pretty close to having a beta ready.

w0lfschild commented 3 years ago

M1 beta : https://github.com/MacEnhance/appcast/blob/master/Beta/cDock/cDock.zip

Cybermancer3D commented 3 years ago

Issues I ran into with the beta and beta2 cDock versions:

Do you need me to run any tests/provide log files?

Cybermancer3D commented 3 years ago

I just installed the latest beta version of cDock: https://github.com/MacEnhance/appcast/blob/master/Beta/cDock/cDock.zip

Most of the issues I had with it on my M1 MacBook Air are fixed now. After a restart I even got the dock to change the background colour to be transparent (which is main reason I am using cDock in the first place). All in all this beta version is a lot more polished and most the features are working.

Lomiren commented 3 years ago

The full screen version still doesn't work on m1. Hopefully this will be fixed soon. Used the beta version from the comment above

Cybermancer3D commented 3 years ago

The third beta version is working like a charm here. No issues at all.

https://github.com/MacEnhance/appcast/tree/master/Beta/cDock/

Lomiren commented 3 years ago

The third beta version is working like a charm here. No issues at all.

https://github.com/MacEnhance/appcast/tree/master/Beta/cDock/

Снимок экрана 2021-04-13 в 19 19 40

beta 3 :( Maybe I'm doing something wrong?

Cybermancer3D commented 3 years ago

beta 3 :( Maybe I'm doing something wrong?

@Lomiren: You have to download the file from the link (https://github.com/MacEnhance/appcast/tree/master/Beta/cDock/) again and install it once more. cDock's update function doesn't apply/work here since we are testing the beta versions.

Lomiren commented 3 years ago

beta 3 :( Maybe I'm doing something wrong?

@Lomiren: You have to download the file from the link (https://github.com/MacEnhance/appcast/tree/master/Beta/cDock/) again and install it once more. cDock's update function doesn't apply/work here since we are testing the beta versions.

That's what I do. Downloaded, replaced in programs. Maybe somehow need to completely remove and reinstall it?

Снимок экрана 2021-04-13 в 19 34 48
Cybermancer3D commented 3 years ago

That's what I do. Downloaded, replaced in programs. Maybe somehow need to completely remove and reinstall it?

Hm. OK. I'm not sure what else you can try then. Completely re-installing it might be an option. Also: Did you restart your MacBook/ Mac mini after you re-installed cDock?

Lomiren commented 3 years ago

That's what I do. Downloaded, replaced in programs. Maybe somehow need to completely remove and reinstall it?

Hm. OK. I'm not sure what else you can try then. Completely re-installing it might be an option. Also: Did you restart your MacBook/ Mac mini after you re-installed cDock?

Maybe I am doing something wrong?

  1. After buying a new MacBook on m1, I downloaded and installed the cDock
  2. Yes, I did not see that it does not support m1 :(
  3. As usual, I did everything according to the instructions: 'csrutil disable'
  4. I was waiting for an update.
  5. Found this thread, downloaded the latest beta (3)
  6. Deleted the old dDock from programs folder, reboot, dumped the beta into the programs, rebooted.
  7. Partially something works - dock management and so on.
  8. But the 'themes' does not work for the dock. I really love when the dock is stretched to the full width of the screen and there is just a black background under it.

Maybe somewhere I missed something and some additional settings or permissions are needed.

Tell me who works in what could be the problem?

Depth- commented 3 years ago

I had the same problem as above. My computer is MacBook Air (M1, 2020)

w0lfschild commented 3 years ago

Try deleting this file and restarting cDock

/Library/PrivilegedHelperTools/com.macenhance.cDock.Injector

Lomiren commented 3 years ago

Try deleting this file and restarting cDock

/Library/PrivilegedHelperTools/com.macenhance.cDock.Injector

Hooray! Thanks a lot! Finally it works! It helped! The best software!

w0lfschild commented 3 years ago

Try deleting this file and restarting cDock /Library/PrivilegedHelperTools/com.macenhance.cDock.Injector

Hooray! Thanks a lot! Finally it works! It helped! The best software!

Yeah sorry for the slow response.

I'm not sure if I've bumped the bundled injector version number in the beta from what's included in 4.5 but it's possible there's some sort of issue where the app is thinking it has installed the latest injector when it hasn't. Definitely something I'll be investigating before public release.

Depth- commented 3 years ago

hi I have a mistake here, can you check it out?

Process:               cDock [734]
Path:                  /Applications/cDock.app/Contents/MacOS/cDock
Identifier:            com.macenhance.cDock-GUI
Version:               4.6.1 Beta 3 (7909)
Code Type:             X86-64 (Translated)
Parent Process:        ??? [1]
Responsible:           cDock [734]
User ID:               501

Date/Time:             2021-04-15 17:34:08.607 +0800
OS Version:            macOS 11.2.3 (20D91)
Report Version:        12
Anonymous UUID:        0D99B5C6-8297-2291-1028-FA7BDB72CF21

Time Awake Since Boot: 110 seconds

System Integrity Protection: disabled

Crashed Thread:        7  Dispatch queue: com.apple.NSURLSession-delegate

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

Application Specific Information:
abort() called

Thread 0:: Dispatch queue: com.apple.main-thread
0   ???                             0x00007ffe963aaab8 ???
1   libsystem_kernel.dylib          0x00007fff20361eba semaphore_wait_trap + 10
2   libdispatch.dylib               0x00007fff201eb12e _dispatch_semaphore_wait_slow + 98
3   com.apple.CFNetwork             0x00007fff24720d69 CFURLConnectionSendSynchronousRequest + 413
4   com.apple.CFNetwork             0x00007fff2474ca88 0x7fff24609000 + 1325704
5   com.apple.AppKit                0x00007fff22d1844c +[NSImageRep _imageRepsWithContentsOfURL:expandImageContentNow:giveUpOnNetworkURLsWithoutGoodExtensions:] + 650
6   com.apple.AppKit                0x00007fff22df9696 -[NSImage initWithContentsOfURL:] + 33
7   com.macenhance.cDock-GUI        0x00000001029b7185 -[AppDelegate keepThoseAdsFresh] + 419
8   com.apple.Foundation            0x00007fff2119050f __NSFireTimer + 67
9   com.apple.CoreFoundation        0x00007fff204a72c9 __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__ + 20
10  com.apple.CoreFoundation        0x00007fff204a6d95 __CFRunLoopDoTimer + 934
11  com.apple.CoreFoundation        0x00007fff204a68e8 __CFRunLoopDoTimers + 307
12  com.apple.CoreFoundation        0x00007fff2048ceaf __CFRunLoopRun + 2016
13  com.apple.CoreFoundation        0x00007fff2048bfe2 CFRunLoopRunSpecific + 567
14  com.apple.HIToolbox             0x00007fff2895a630 RunCurrentEventLoopInMode + 292
15  com.apple.HIToolbox             0x00007fff2895a42c ReceiveNextEventCommon + 709
16  com.apple.HIToolbox             0x00007fff2895a14f _BlockUntilNextEventMatchingListInModeWithFilter + 64
17  com.apple.AppKit                0x00007fff22be19b1 _DPSNextEvent + 883
18  com.apple.AppKit                0x00007fff22be0177 -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 1366
19  com.apple.AppKit                0x00007fff22bd268a -[NSApplication run] + 586
20  com.apple.AppKit                0x00007fff22ba696f NSApplicationMain + 816
21  libdyld.dylib                   0x00007fff203b1621 start + 1

Thread 1:: com.apple.rosetta.exceptionserver
0   runtime                         0x00007ffdffd83238 0x7ffdffd81000 + 8760
1   runtime                         0x00007ffdffd8d354 0x7ffdffd81000 + 50004
2   runtime                         0x00007ffdffd8e1f8 0x7ffdffd81000 + 53752

Thread 2:
0   ???                             0x00007ffe963aaab8 ???
1   libsystem_kernel.dylib          0x00007fff20361e7e mach_msg_trap + 10
2   com.macenhance.cDock-GUI        0x0000000102a2b14a exception_server_thread + 211
3   libsystem_pthread.dylib         0x00007fff20396950 _pthread_start + 224
4   libsystem_pthread.dylib         0x00007fff2039247b thread_start + 15

Thread 3:: com.apple.NSEventThread
0   ???                             0x00007ffe963aaab8 ???
1   libsystem_kernel.dylib          0x00007fff20361e7e mach_msg_trap + 10
2   com.apple.CoreFoundation        0x00007fff2048e50d __CFRunLoopServiceMachPort + 316
3   com.apple.CoreFoundation        0x00007fff2048cbf6 __CFRunLoopRun + 1319
4   com.apple.CoreFoundation        0x00007fff2048bfe2 CFRunLoopRunSpecific + 567
5   com.apple.AppKit                0x00007fff22d677c6 _NSEventThread + 124
6   libsystem_pthread.dylib         0x00007fff20396950 _pthread_start + 224
7   libsystem_pthread.dylib         0x00007fff2039247b thread_start + 15

Thread 4:: com.apple.NSURLConnectionLoader
0   ???                             0x00007ffe963aaab8 ???
1   libsystem_kernel.dylib          0x00007fff20361e7e mach_msg_trap + 10
2   com.apple.CoreFoundation        0x00007fff2048e50d __CFRunLoopServiceMachPort + 316
3   com.apple.CoreFoundation        0x00007fff2048cbf6 __CFRunLoopRun + 1319
4   com.apple.CoreFoundation        0x00007fff2048bfe2 CFRunLoopRunSpecific + 567
5   com.apple.CFNetwork             0x00007fff2484910e 0x7fff24609000 + 2359566
6   com.apple.Foundation            0x00007fff21147e1d __NSThread__start__ + 1042
7   libsystem_pthread.dylib         0x00007fff20396950 _pthread_start + 224
8   libsystem_pthread.dylib         0x00007fff2039247b thread_start + 15

Thread 5:
0   runtime                         0x00007ffdffddb99c 0x7ffdffd81000 + 371100

Thread 6:
0   runtime                         0x00007ffdffddb99c 0x7ffdffd81000 + 371100

Thread 7 Crashed:: Dispatch queue: com.apple.NSURLSession-delegate
0   <translation info unavailable>  0x0000000102f0f7b8 ???
1   libsystem_kernel.dylib          0x00007fff2036a9ee __sigreturn + 10
2   ???                             0x00000003096fa400 ???
3   libsystem_c.dylib               0x00007fff202e9720 abort + 120
4   com.macenhance.cDock-GUI        0x0000000102a3bbb1 uncaught_exception_handler.cold.1 + 24
5   com.macenhance.cDock-GUI        0x0000000102a236fa uncaught_exception_handler + 39
6   com.apple.CoreFoundation        0x00007fff20584502 __handleUncaughtException + 716
7   libobjc.A.dylib                 0x00007fff20242775 _objc_terminate() + 90
8   com.macenhance.cDock-GUI        0x0000000102a179fe MSACCrashesUncaughtCXXTerminateHandler() + 774
9   libc++abi.dylib                 0x00007fff2035a847 std::__terminate(void (*)()) + 8
10  libc++abi.dylib                 0x00007fff2035a7e9 std::terminate() + 41
11  libdispatch.dylib               0x00007fff201ea7db _dispatch_client_callout + 28
12  libdispatch.dylib               0x00007fff201f05fe _dispatch_lane_serial_drain + 606
13  libdispatch.dylib               0x00007fff201f10fe _dispatch_lane_invoke + 426
14  libdispatch.dylib               0x00007fff201fac5d _dispatch_workloop_worker_thread + 819
15  libsystem_pthread.dylib         0x00007fff20393499 _pthread_wqthread + 314
16  libsystem_pthread.dylib         0x00007fff20392467 start_wqthread + 15

Thread 8:
0   runtime                         0x00007ffdffddb99c 0x7ffdffd81000 + 371100

Thread 7 crashed with X86 Thread State (64-bit):
  rax: 0x0000000000000000  rbx: 0x00000003096fc000  rcx: 0x00000003096fc000  rdx: 0x0000000000000000
  rdi: 0x000000000000530f  rsi: 0x0000000000000006  rbp: 0x00000003096fb320  rsp: 0x00000003096fb2f8
   r8: 0x0000000000000010   r9: 0x00000003096fb148  r10: 0x00000003096fc000  r11: 0x00007fff202e96a8
  r12: 0x000000000000530f  r13: 0x00007fff803fb808  r14: 0x0000000000000006  r15: 0x0000000000000016
  rip: <unavailable>  rfl: 0x0000000000000242

Model: MacBookAir10,1, BootROM 6723.81.1, proc 8:4:4 processors, 16 GB, SMC 
devmistry commented 3 years ago

Righto - so the final beta build works just perfect. Sadly, my copy expired :(

devmistry commented 3 years ago

When are you planning to release the final beta?

devmistry commented 3 years ago

Any update?

devmistry commented 3 years ago

Hey mate - when are you planning to release the final? It's been working flawlessly for me... And now I have to "re-install" the beta every 7 days despite of owning the license LOL!

w0lfschild commented 3 years ago

Hey mate - when are you planning to release the final? It's been working flawlessly for me... And now I have to "re-install" the beta every 7 days despite of owning the license LOL!

Interesting. Not sure why you're having to re-install. Just because it's a beta doesn't mean your normal license code shouldn't be working.

But in terms of releasing. Hopefully soon, just finished up crash fixes on macOS 12 and JSLegendre has made some fixes and improvements to the Dock widgets.

The only issue I want to get sorted that I need to do some testing on before I release is making sure that updating from the previous version works smoothly. Despite maintaining 4.X version numbering there are significant changes to this from the previous version.

Mainly being: Different injection method Removal of helper process Support for M1 Support for macOS 12 Docklets

But yeah sorry it's taken so long.

shenlong2210 commented 3 years ago

this new helper can make cDock works normally but make Launchpad double key and auto close when drag an icon app.

etrahretep commented 3 years ago

Very much missing CDock on Monterey! Looking forward to a new beta!

devmistry commented 3 years ago

Just upgraded to macOS Monterey 12.0 Beta (21A5294g) - attached is the issue

sreenie_ 2021-08-10 at 7 15 21 PM
devmistry commented 2 years ago

Any updates on beta for Monterey, now that it's final?

gesheph commented 2 years ago

Hi there - Installing on a new M1 mac I see the injector crashing with Symbol not found - _mach_inject_bundle_pid

Process: com.macenhance.cDock.Injector [2216] Path: /Library/PrivilegedHelperTools/com.macenhance.cDock.Injector Identifier: com.macenhance.cDock.Injector Version: 0.2 Code Type: ARM-64 (Native) Parent Process: launchd [1] Responsible: com.macenhance.cDock.Injector [2216] User ID: 0

Date/Time: 2021-10-27 10:26:41.121 +0100 OS Version: macOS 11.6.1 (20G224) Report Version: 12 Anonymous UUID: 7A02004D-ADE4-3F1C-DA29-68AC14FE4E9F

Time Awake Since Boot: 1000 seconds

System Integrity Protection: disabled

Crashed Thread: 1 Dispatch queue: com.apple.NSXPCConnection.user.com.macenhance.cDock.Injector.2102

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

Termination Reason: DYLD, [0x4] Symbol missing

Dyld Error Message: Symbol not found: _mach_inject_bundle_pid Referenced from: /Library/PrivilegedHelperTools/com.macenhance.cDock.Injector Expected in: flat namespace

r3volution11 commented 2 years ago

I just grabbed an MBP M1 Pro on Monterey and cDock isn't working, unfortunately. I'm not too surprised considering the architecture change – I'd love to help beta test if I can!

rklbln commented 2 years ago

since Monteray nothing is working. I use Intel macBook pro 2019/A1989

gesheph commented 2 years ago

All fully functional for me with the latest cdock beta onM1 Monterey.

rklbln commented 2 years ago

Im not using M1 . Im Workin on Intel MacbookPro A1989( Modell 2019)

Von RKL gesendet Am 15. Nov. 2021, 10:29 +0100 schrieb gesheph @.***>:

All fully functional for me with the latest cdock beta onM1 Monterey. — You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android.

rklbln commented 2 years ago

Ihm using :

Von RKL gesendet Am 15. Nov. 2021, 10:29 +0100 schrieb gesheph @.***>:

All fully functional for me with the latest cdock beta onM1 Monterey. — You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android.

r3volution11 commented 2 years ago

No luck on an MBP M1 Pro running macOS 12.0.1.

I installed the beta from https://github.com/MacEnhance/appcast/tree/master/Beta/cDock/ and it broke the dock (disappeared) and the menu bar went gray. I restarted and after the same thing happened briefly I then got the same alert @devmistry shared.

devmistry commented 2 years ago

Hello folks - do we have any update on this? Truly missing this!

r3volution11 commented 2 years ago

I don't know what changed but after updating to macOS 12.2 cDock started working for me. So if you're not up to date, maybe give that a shot.

I don't believe I performed any additional steps. I just kept cDock installed and after an update, boom, it worked. 🤷‍♂️

devmistry commented 2 years ago

I'm on 12.2.1 myself... are you referring to the beta? I'll give it a shot

devmistry commented 2 years ago

OMG! It works like a charm! Thanks @r3volution11 :)

@w0lfschild when do you plan to make this release public?

expresspotato commented 2 years ago

Just upgraded to macOS Monterey 12.0 Beta (21A5294g) - attached is the issue sreenie_ 2021-08-10 at 7 15 21 PM

Experiencing the same issue, it crashes constantly... It "sometimes" works though. Seems very finicky, any chance of an update to the Beta? The last version is 6 months old and isn't stable.

GottemHams commented 2 years ago

After starting up it gives me cDock has determined that SIP is enabled on your system, even though it seems to work fine (at least some of the preferences I copied over from v4 are applied). It's usually not actually necessary to disable SIP entirely, many of the system tweaks like cDock and XtraFinder work fine with csrutil disable --with kext --with dtrace --with nvram --with basesystem. =] This gives:

$ csrutil status
System Integrity Protection status: unknown (Custom Configuration).

Configuration:
    Apple Internal: disabled
    Kext Signing: enabled
    Filesystem Protections: disabled
    Debugging Restrictions: disabled
    DTrace Restrictions: enabled
    NVRAM Protections: enabled
    BaseSystem Verification: enabled
    Boot-arg Restrictions: disabled
    Kernel Integrity Protections: disabled
    Authenticated Root Requirement: enabled

Perhaps rather than simply checking if SIP is entirely disabled, it's possible to try and modify something and check if that causes an error?

sassa7777 commented 2 years ago

C dock doesn’t work on M1+ Ventura beta

expresspotato commented 2 years ago

We'd all love an update to support newer versions of Mac OS including Ventura @w0lfschild :)!!!