{"action":"created","issue":{"url":"https://api.github.com/repos/vit9696/AppleALC/issues/75","repository_url":"https://api.github.com/repos/vit9696/AppleALC","labels_url":"https://api.github.com/repos/vit9696/AppleALC/issues/75/labels{/name}","comments_url":"https://api.github.com/repos/vit9696/AppleALC/issues/75/comments","events_url":"https://api.github.com/repos/vit9696/AppleALC/issues/75/events","html_url":"https://github.com/vit9696/AppleALC/issues/75","id":171003245,"number":75,"title":"Boot process hangs sometimes (Possible deadlock?)","user":{"login":"athei","id":2580396,"avatar_url":"https://avatars.githubusercontent.com/u/2580396?v=3","gravatar_id":"","url":"https://api.github.com/users/athei","html_url":"https://github.com/athei","followers_url":"https://api.github.com/users/athei/followers","following_url":"https://api.github.com/users/athei/following{/other_user}","gists_url":"https://api.github.com/users/athei/gists{/gist_id}","starred_url":"https://api.github.com/users/athei/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/athei/subscriptions","organizations_url":"https://api.github.com/users/athei/orgs","repos_url":"https://api.github.com/users/athei/repos","events_url":"https://api.github.com/users/athei/events{/privacy}","received_events_url":"https://api.github.com/users/athei/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":17,"created_at":"2016-08-13T10:31:03Z","updated_at":"2016-10-07T03:46:44Z","closed_at":null,"body":"I use AppleALC since Sierra PB3 through PB4 so I can not speak for earlier versions. I use this commit since the latest release had kernel panics on sierra: d21d436c9a78ce291c960c61f8901c613213812a\r\n\r\nWhat I experience is that some times the boot just hangs (apple logo / stalling progress bar). Then I have to hard reset and try again. Then it works (most of the time). It happens mostly when I start the Hackintosh for the first time at that day (cold start / no reboot). Some times it does not work multiple times after another then I try booting without caches or just verbose mode, which resolves the issue. When I remove AppleALC the problem does not appear.\r\n\r\nYou added some locks  in the latest patches. My guess without looking too hard at the code is that you probably introduced a race condition resulting in a deadlock under the wrong circumstances.\r\n\r\nThis makes sense because locks are notorious for introducing deadlocks and changing the timing (verbose mode, no caches) resolves the issue.\r\n"},"comment":{"url":"https://api.github.com/repos/vit9696/AppleALC/issues/comments/252146758","html_url":"https://github.com/vit9696/AppleALC/issues/75#issuecomment-252146758","issue_url":"https://api.github.com/repos/vit9696/AppleALC/issues/75","id":252146758,"user":{"login":"vit9696","id":4348897,"avatar_url":"https://avatars.githubusercontent.com/u/4348897?v=3","gravatar_id":"","url":"https://api.github.com/users/vit9696","html_url":"https://github.com/vit9696","followers_url":"https://api.github.com/users/vit9696/followers","following_url":"https://api.github.com/users/vit9696/following{/other_user}","gists_url":"https://api.github.com/users/vit9696/gists{/gist_id}","starred_url":"https://api.github.com/users/vit9696/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vit9696/subscriptions","organizations_url":"https://api.github.com/users/vit9696/orgs","repos_url":"https://api.github.com/users/vit9696/repos","events_url":"https://api.github.com/users/vit9696/events{/privacy}","received_events_url":"https://api.github.com/users/vit9696/received_events","type":"User","site_admin":false},"created_at":"2016-10-07T03:46:44Z","updated_at":"2016-10-07T03:46:44Z","body":"Yes. So far you are the only one. I do really wonder whether this is an AppleALC issue. As I explained above the \"freeze\" is not really a freeze but just AppleALC trying to obtain the necessary codec information from IOReg. It loops for quite a while [here](https://github.com/vit9696/AppleALC/blob/master/Common/kern_iokit.cpp#L119). The max count value is really [large](https://github.com/vit9696/AppleALC/blob/master/Common/kern_iokit.hpp#L24) and for this reason it looks like a feeze.\r\n\r\nSince the information is not there it is likely that the codec is not initialising most of the time for a weird reason. You could disable AppleALC or reduce the max count but that would not change the fact AppleHDA(Controller) is not loading (!).\r\n\r\nWhy… I do not know, perhaps your codec needs some commands from codec commander or something. Maybe it is a good idea to ask other people having the same codec? Also, if the issue is still there, why not to try VoodooHDA? Sound quality is the same, just voodoo often needs some configuration."}}
{"actor":{"display_login":"vit9696"}}