I was fixing my Mac partition by rebooting and holding CMD+S and then typing
fsck -fy
It found some issues and (probably) fixed them. Now when I boot into MacOS after some time the screen goes black and there is no way to do anything except put it to sleep. On waking up everything is normal.
I have quite some utility apps installed and one of them is probably misbehaving. How to troubleshoot this without trying to disable each one and then rebooting. It will take me 20 reboots to find the culprit. And how did that happen anyway? The fsck command was supposed to fix things, not screw them up :/
UPDATE: This is how the screen now looks like it has colorful line at the top.
I tried to see if anything is reported in Console, I tried twice:
screen went black at 11:04:06 and here is the log:
7/7/13 11:04:02.131 PM EvernoteHelper[908]: Bartender Loaded
7/7/13 11:04:02.752 PM SystemUIServer[662]: Bartender Loaded
7/7/13 11:04:03.426 PM Finder[663]: XtraFinder injected handler.
7/7/13 11:04:03.839 PM Bartender[864]: warning: failed to get scripting definition from /Applications/Butler.app; it may not be scriptable.
7/7/13 11:04:04.208 PM Bartender[864]: warning: failed to get scripting definition from /System/Library/CoreServices/NotificationCenter.app; it may not be scriptable.
7/7/13 11:04:06.006 PM login[939]: USER_PROCESS: 939 tty??
7/7/13 11:04:06.073 PM WindowServer[97]: Received display connect changed for display 0x4272dc0
7/7/13 11:04:06.122 PM WindowServer[97]: CGXMuxAcknowledge: Posting glitchless acknowledge
7/7/13 11:04:06.184 PM WindowServer[97]: Received display connect changed for display 0x4272dc0
7/7/13 11:04:06.185 PM WindowServer[97]: Received display connect changed for display 0x3f003d
7/7/13 11:04:06.223 PM Bartender[864]: warning: failed to get scripting definition from /System/Library/CoreServices/NotificationCenter.app; it may not be scriptable.
7/7/13 11:04:07.658 PM NotificationCenter[673]: Bartender Loaded
7/7/13 11:04:08.878 PM Default Folder X Helper[925]: Bartender Loaded
7/7/13 11:04:09.401 PM Butler[907]: loaded applications cache
7/7/13 11:04:10.018 PM Bartender[864]: warning: failed to get scripting definition from /Applications/Butler.app; it may not be scriptable.
7/7/13 11:04:11.081 PM ScopedBookmarkAgent[951]: CFURLCreateByResolvingBookmarkData failed with error [Error Domain=NSCocoaErrorDomain Code=4 "The file doesn’t exist."].
7/7/13 11:04:11.483 PM Found[911]: -[BLFAccountManager readAccountInfoFromDisk]():525 ASSERT FAILED: couldn't resolve bookmark for /Volumes/REDSTAR/Cooking, error=Error Domain=NSCocoaErrorDomain Code=4 "The file doesn’t exist."
7/7/13 11:04:11.765 PM Bowtie[920]: Started HTTP server on port 7455
Second try: went black at 11:14:35, log is here:
7/7/13 11:14:30.869 PM Butler[834]: cache: adding volumes...
7/7/13 11:14:30.875 PM Butler[834]: cache: adding applications...
7/7/13 11:14:30.876 PM Butler[834]: cache: adding scripts...
7/7/13 11:14:32.035 PM Adium[621]: Bartender Loaded
7/7/13 11:14:32.294 PM Google Drive[838]: Bartender Loaded
7/7/13 11:14:32.729 PM Butler[834]: cache: categorizing...
7/7/13 11:14:33.193 PM Bartender[796]: warning: failed to get scripting definition from /Applications/Dropbox.app; it may not be scriptable.
7/7/13 11:14:33.210 PM Bartender[796]: warning: failed to get scripting definition from /Applications/Butler.app; it may not be scriptable.
7/7/13 11:14:34.076 PM Butler[834]: updated abbreviations cache (enabled)
7/7/13 11:14:34.183 PM Butler[834]: still no need to poll iTunes
7/7/13 11:14:34.897 PM Butler[834]: Bartender Loaded
7/7/13 11:14:35.310 PM Dropbox[840]: Bartender Loaded
7/7/13 11:14:35.339 PM Found[839]: [BLFAccountManager(0x2a16ad0) handleCredentialStatus:]:270 error reading dir: Error Domain=NSCocoaErrorDomain Code=260 "The folder “Cooking” doesn’t exist." UserInfo=0x1a53930 {NSUserStringVariant=(
Folder
), NSUnderlyingError=0x1a53910 "The operation couldn’t be completed. (OSStatus error -43.)", NSFilePath=/Volumes/REDSTAR/Cooking}
7/7/13 11:14:35.340 PM Found[839]: [BLFAccountManager(0x2a16ad0) handleCredentialStatus:]:270 error reading dir: Error Domain=NSCocoaErrorDomain Code=260 "The folder “Music” doesn’t exist." UserInfo=0x1a49320 {NSUserStringVariant=(
Folder
), NSUnderlyingError=0x1a49300 "The operation couldn’t be completed. (OSStatus error -43.)", NSFilePath=/Volumes/REDSTAR/Music}
7/7/13 11:14:35.346 PM Found[839]: [BLFAccountManager(0x2a16ad0) handleCredentialStatus:]:270 error reading dir: Error Domain=NSCocoaErrorDomain Code=260 "The folder “Movies” doesn’t exist." UserInfo=0x1a495c0 {NSUserStringVariant=(
Folder
), NSUnderlyingError=0x1a49480 "The operation couldn’t be completed. (OSStatus error -43.)", NSFilePath=/Volumes/REDSTAR/Movies}
7/7/13 11:14:35.347 PM Found[839]: [BLFAccountManager(0x2a16ad0) handleCredentialStatus:]:270 error reading dir: Error Domain=NSCocoaErrorDomain Code=260 "The folder “Tutorials” doesn’t exist." UserInfo=0x1a49d00
7/7/13 11:14:35.000 PM kernel[0]: Sandbox: sandboxd(974) deny mach-lookup com.apple.coresymbolicationd
7/7/13 11:14:35.815 PM Mailplane 3[608]: int main(int, char **) [Line 23] Use private HTTPCookieStorage
7/7/13 11:14:37.644 PM Mailplane 3[608]: +[UxPrivateHTTPCookieStorageSharedInstance install] [Line 50] Private HTTPCookieStorage has been installed.
7/7/13 11:14:38.138 PM Bartender[796]: warning: failed to get scripting definition from /Applications/I Love Stars.app; it may not be scriptable.
7/7/13 11:14:38.140 PM Bartender[796]: warning: failed to get scripting definition from /Applications/Found.app; it may not be scriptable.
7/7/13 11:14:39.085 PM WindowServer[94]: kCGErrorNotImplemented: receive_notification: CPXSetEventFilter failed
7/7/13 11:14:39.088 PM Mailplane 3[608]: +[UxApplicationDataUpdate checkForUpdates:] [Line 35] Check data version (app=726, data=726)
7/7/13 11:14:39.163 PM I Love Stars[846]: Bartender Loaded
7/7/13 11:14:39.167 PM Found[839]: Bartender Loaded
Wonder what those "BLFAccountManager" file doesn't exists lines are .. but it's probably not related to the black screen issue. -- Answer: it's "Found app" sources which are currently not accessible.
UPDATE 2:
Sometimes the Preview windows are black and missing PDF contents
More and more it seems to me that something in the Mac OS installation itself is faulty... I tried to repair permissions, didn't help... how can I repair the entire OS?