-
Notifications
You must be signed in to change notification settings - Fork 57
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
(ISSUE) Library Validation Fix #196
Comments
@dosdude1 please move to the kext method if you still maintain this! |
I am fully aware of DisableLibraryValidation.kext, and in fact use it for some of the patcher functionality. From what I remember, though, the issue was due to AMFI, and not so much Library Validation. I can do some testing with DisableLibraryValidation.kext again, and if it does indeed resolve all issues (including allowing security permissions, such as request for microphone, webcam, etc.), then I'll utilize it. The boot.efi you reference is already implemented in the patcher (check SIP Disabler Patch in post-install); it is for disabling SIP, though, and has absolutely NOTHING to do with Library Validation. Also, what do you mean CoreBrightness shouldn't be patched? Of course it should, to allow Night Shift to work on unsupported models. Besides CoreBrightness, though, there are other frameworks that needed to be patched as well for non-Metal video cards to function. So simply ceasing modification of CoreBrightness will NOT get rid of the need to disable Library Validation. |
No... I am ok with patching CoreBrightness but there are better ways to do it. My patched Mac (on a 2nd partition) has NightShiftEnabler.kext with Lilu, WhateverGreen and a stock CoreBrightness and Night Shift works fine (Lilu and WhateverGreen also have the side effect of enabling the VDA decoder and allowing me to use AirPlay). I'm not the biggest fan at modifying a core macOS component but it works really well on my main partition (I have 2 installs of your patcher) so I shouldn't complain. Also, your patcher is amazing. Thanks so much for making my 2011 MacBook a viable laptop for many tasks that I do (Python/HTML, Office365, browsing) without the glitchiness that OCLP has. |
Also, I have the URL for your patch server. SIP Disabler has a kext and Library Validation has an EFI file. My issue is that some apps crash without DisableLibraryValidation.kext (Chrome, Brave, Edge, O365, and some Electron apps (Marktext is an example)). @dosdude1 The strangest thing is that if I upgrade from Mojave Patcher using the patcher app it doesn't have these issues but installing from a USB of Catalina Patcher causes these issues. Do you know why? |
Yeah, that's been a long standing issue. Not sure why upgrading would change anything. I'll test DisableLibraryValidation and see if it makes it any better. One thing you should verify is that an app is able to ask for permissions, like camera or microphone. When I last messed with it, that would stop working after I was able to get the applications to stop crashing on launch. |
With DisableLibraryValidation I can open all apps AND all permissions (camera, mic, screen recording, etc) work fine in my testing. It would be nice if you could put this patch (I've seen the myriad of issues about this on GH). I've mirrored your patch server with my own patches to test some patches with custom builds of Patchupdater (a new patch for LibValidation and a WIP CoreBrightness patch (I need a stock copy first)) DisableLibraryValidation (even the 10.12 version) makes these machines usable, and I'm all for putting the patch on your server. Here is my mirror with some different patches (DON'T TRY THE COREBRIGHTNESS PATCH, YOUR OS WILL BREAK IF YOU USE IT!) https://github.com/tejasraman/CatalinaPatchUpdateServer/blob/master/LibraryValidation.zip or my real server (̶w̶h̶i̶c̶h̶ ̶I̶ ̶d̶e̶p̶l̶o̶y̶ ̶u̶s̶i̶n̶g̶ ̶G̶i̶t̶H̶u̶b̶'̶s̶ ̶m̶a̶c̶O̶S̶ ̶1̶2̶ ̶r̶u̶n̶n̶e̶r̶ ̶-̶ ̶a̶l̶t̶h̶o̶u̶g̶h̶ ̶I̶ ̶s̶h̶o̶u̶l̶d̶ ̶u̶s̶e̶ ̶t̶h̶e̶ ̶1̶0̶.̶1̶5̶ ̶r̶u̶n̶n̶e̶r̶ ̶:̶)̶ ̶)̶ I now use the 10.15 runner 😉 Another sidenote: Adding Lilu and WhateverGreen makes 2011 models with HD3000 work with Airplay (like mine) even on a Sony TV bought in 2022 due to enabling the VDA decoder by default. Oh, and my machine is so fast on Catalina - the patching Airplay and LibValidation makes it as good as a supported 2012 Mac. Thanks so much for the patcher @dosdude1, it has made my Mac more usable than it was before! |
Whoops, I closed it. Clicked the wrong button. Sorry! Reopening |
Some anomalies I've noticed:
|
Hi @dosdude1 (Written from my patched 2011 MBP) |
As it seems this will never be fixed I have forked your patcher and will to create custom patches that work properly for using normal apps and Airplay. Tejas |
It will be fixed, I will be adding the changes suggested and testing myself, then releasing a new build of the patcher. There are also other changes I want to make to some other aspects, which need to be implemented and tested as well. Just been busy with other things recently. |
Thanks so much @dosdude1 ! |
Well, just after I released a new patcher version with these changes, I noticed that it appears to break the Music app. Test this and see if yours behaves similarly. |
I think I'm having an issue related to the new patcher version. I just had an OTA update notification (MBA 2011 Catalina), it proposed an update that I installed, but it failed. Then few minutes later it proposed the same update along with the Library fix. I tried the install again and it worked, it asked me to reboot, and I clicked reboot. Nothing happened, I killed the rest of the apps, and restarted, then it was stuck on my wallpaper with the mouse still able to move. Finally I forced the shutdown and restarted. Now it's stuck on the Apple boot logo and the completion bar does not move at all. Any hints on what went wrong and how to fix it? Thanks! |
Just installed the new update and removed my manual LVD patch. Thanks @dosdude1 |
Amazing. This also fixes the big with the screenshot preview at the bottom showing in a black square sometimes and the small glitch in display preferences. Thanks for keeping our Macs alive @dosdude1 |
@dosdude1 the music app is broken. |
This is to do with disablelibraryvalidation.kext apparently. |
The update was fine on my 2011 13" MBP @fenneclabs Reinstall your patcher. |
@dosdude1 I messed up my music app badly by issuing a bad cp command. Could you send me your copy of Music.app? It is located in /System/Applications |
I had an OTA update notification on my 2010 Mac Mini server to install the last 2 updates (I presume 1.4.5 and 1.4.6) and now I’m unable to remotely screenshare anymore (I use Screens on my iPadPro). Thankfully, I can ssh into the machine. What is the easiest way to roll back to 1.4.4 from the command line given the state my machine is in? |
Got same here. Login stuck on apple screen with progress bar full. Anybody got a fix please? Thanks! x |
Machine won't boot now. Stuck on Apple screen with progress bar full. Have you got a fix for this please? Thanks! x |
@MindDrift100
|
Hi @MindDrift100 @dfunct @fenneclabs Could you please do a verbose boot (hold Cmd + V on startup) and let me see the boot logs? Oh, and disabling literally all macOS' basic security (like AMFI) is NOT the way. Disable SIP instead. Disabling AMFI messes up permissions and makes your computer more vulnerable to malware. |
Hi @chinarut If not then enabling it should fix things. If that doesn't work please get back to me. |
@tejasraman |
This looks just like what happened on my attempts to hackintosh a real MacBook. Same errors too. The answer? Reinstall. |
I'll reinstall as last resort. Disabling AMFI works fine for backing up all the data. |
@dfunct @tejasraman @dosdude1 With this patch Chrome got much faster. Recently I had to switch to Firefox because it was too slow, I felt it was something related to GPU acceleration, which this patch confirms. |
That's amazing @fenneclabs ! |
@fenneclabs in my case I'm pretty sure it was stuck in a loop. I let it go for ~2hrs before shutting it down. |
I've reset the nvram boot-args (as I disabled AMFI earlier) and reapplied the post-install patches from the USB installer created with the Catalina patcher. |
Hey! Thanks for the guidance. Had to get my machine back up & running so did a CCC reinstall. Cheers! x |
Great! |
@dosdude1 I have made a custom OC config and a framebuffer patch for the laptop. It worked amazing and both music and other apps work well. I use your audio and GPU patches. Thanks for trying to help me though |
I was used for my MBA to start in about 30s, I was powering off after few minutes. It took less than 10 minutes to complete the boot after the first upgrade. Now it's back to 30s. So indeed, 2h means boot loop! |
hey thanks for chiming in @tejasraman - I wanted to spend some time reviewing the system logs and poking around more to see where it is hanging on boot.
I also tried to remote login using another Mac using the built-in “Screen Sharing” which hangs. The agent appears to be running:
in particular, it looks like the WindowServer (and a few other processes below) won’t run:
the reason i thought it was related to Library Validation is 3 days ago I was seeing lines like this: for some reason, after leaving the server off for 3 days, I don’t see any instances like above (but it still hangs on boot) if there is an easy way to roll back to 1.4.4, I’m still happy to try this! [I see there is a 1.4.7 release which might fix this? how do I update from the CLI?] |
1.4.7 reverts the changes. You need gui to update though. I'm working on my own patcher that doesn't have these issues so I can't test for you but you could try rustdesk or AnyDesk..... |
ok good to know the changes were reverted. I just tried to boot in Verbose mode and I get the similar messages to the above creating too many corpses and allowing core dumps for just about every pid.
even when WindowServer doesn’t run? I can ssh into the machine no problem so if you do create a patcher than doesn’t require the GUI, let me know. I’m seeing references to others using a bootable USB - so I’m wondering if I can create a USB stick w 1.4.7 and fix the issue? |
Oh. I didn't realize that your WindowServer is broken. This update seems to be full of trouble. I should have never have suggested this patch to dosdude1. |
oh it’s all good - i knew challenges would come w the turf! 😅 still grateful to be able to put a 12 year old machine to good use! 🙏🏼 I’m creating a new 1.4.7 USB installer and wondering if I’ll be able to reinstall the patch safety without affecting any user data. I have Time Machine backups just in case and have my fingers crossed this will be straightforward 🤞🏼 |
and we’re officially back from the dead running the post-install patches for 1.4.7 from USB! WindowServer is back up & I can remotely able to get back in through Screens and all my server processes that went down are back up and running - we are gonna keep squeezing life out of this baby! 👍🏼 thank you @tejasraman for chiming in and helping keep things moving! |
You're welcome @chinarut |
Hey! Anybody got a fix to stop the patch updater coming up all the time please? Thanks in advance! x |
@MindDrift100 Install the updates and remove it as a startup service in macOS's settings. |
@tejasraman I don't want the updates. See above, one of them caused my machine to hang at startup. I just wanna stop patch updater popping up all the time. It's not listed as a startup service. Is the another way please? |
I'm not sure anymore. My advice is to use OCLP at this point (this will with on Catalina if you use 0.4.3 and enable axcel on Mojave/cata and moderately spoof smbios (as macbookpro9,2 or macbookpro9,1 (for 15 inch)).
I've kind of given up on this patcher and made a custom opencore for my old MacBook.
This patcher does a lot of root level patching and I don't really like that. The opencore approach is to inject the kexts.
|
The issue with the update has been fixed, so it is fine to install now. However if you want to disable Patch Updater, you can do so by simply deselecting the option in the Patch Updater pane in System Preferences. |
Long story short:
Your Library Validation patch is badly BROKEN for some users.
Fix
UPDATE: This works flawlessly with every app even after sleep (the other was not reliable after sleep)
Context
On my Late 2011 MacBook Pro running your patcher with Catalina 10.15.7, the patcher had a ton of Library Validation problems (apps like Chrome and PowerPoint don't always open) on a fresh install. By downloading the patch from your server and replacing the boot.efi in the installer with the version above almost apps launch flawlessly.
MacBookPro8,1 - Catalina 10.15.7 Build 19H2
(Maybe I'll set up a patch server and try to update the available fixes to resolve these problems)
The text was updated successfully, but these errors were encountered: