keybase / keybase/client

Keybase causes Mac to trigger gpuRestarts (indefinite black screen) while attempting to logout/restart/shutdown

Open
#8,028 12 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Go
Stars
9.2k
Forks
1.3k
Avg merge
12h 58m
Merged PRs (30d)
56

Description

Hi, I've been working with Apple support on this one as it involves a new 2017 MacBook Pro with Touchbar. When the Mac is plugged into an external monitor and Keybase is installed, 50%+ of the time I attempt to log out, restart or shut down the computer I get an indefinite black screen and a screaming fan. The only way to stop it is to hold the power button to force it to shut down. Upon restart, my Console System Reports are filled with Kernel gpuRestarts like this:

gpuRestart log
Sun Aug  6 11:04:15 2017

Event:               GPU Reset
Date/Time:           Sun Aug  6 11:04:15 2017
Application:         
Path:                
Tailspin:            /Library/Logs/DiagnosticReports/gpuRestart2017-08-06-110415.tailspin
GPUSubmission Trace ID: 0
OS Version:          Mac OS X Version 10.12.6 (Build 16G29)
Graphics Hardware:   Radeon Pro 560
Signature:           e

Report Data:

GPURestartReportStart
------------------------
Hung Channels: GFX 
------------------------
[00] AccelChannel: GFX
Pending Command from   : UnknownCtx
PendingCommandTimestamp: 0x0000406d, TotalDWords: 0x00000188, GART Offset=0x00000001006dc000, stamp_idx=0, estamp=0x0000406d
PendingCommandStart:
PendingCommandEnd
------------------------
[00] GFX HWChannel  : Enabled, NotIdle
LastReadTimestamp   : 0x0000406c
NextSubmitTimestamp : 0x00004087
[GFX, ts:0x0000406d]: No semaphore wait
[GFX, ts:0x0000406d]: semaphore  signal: 0xffffff804aa6ef40
HWSemaphore 0xffffff804aa6ef40 Signal Event: [GFX channel[0] TS:0x00004086 lastReadTS:0x0000406c]
------------------------
SRBM_CNTL  : 0x00000000 | CP_ME_CNTL  : 0x00000000
SRBM_STATUS: 0x20000040 | SRBM_STATUS2: 0x00000000
GRBM_STATUS: 0xb3503028 | GRBM_STATUS2: 0x70000008
------------------------
GPU HangFlags 0x00000007: AsicHangState 0x00000007, AsicResetRequirement 0x00000002
IndividualEngineHang: 1
NonEngineBlockHang  : 1
FenceNotRetired     : 1
PerEngineReset      : 0
FullAsicReset       : 1
HangEngineBitmap    : 0x0000000e
Hung Engines Detected by Cail: GRAPHICS COMPUTE0 COMPUTE1 
------------------------
AMDRadeonX4150_AMDBaffinGraphicsAccelerator PCIe Device: [1:0:0] State: ENABLED
Configuration: deviceBits: 0x480167ef, capabilityBits: 0x30840300
TotalVideoRAMBytes: 0x0000000100000000 (4294967296)
------------------------
[00]  PM4 Engine : Enabled,  NotIdle
[00]  GFX Channel: Enabled,  NotIdle, lastReadTimestamp 0x0000406c, nextSubmitTimestamp 0x00004087
[01]   C0 Channel: Enabled,  Idle, lastReadTimestamp 0x00000000, nextSubmitTimestamp 0x00000001
[02]   C1 Channel: Enabled,  Idle, lastReadTimestamp 0x00000000, nextSubmitTimestamp 0x00000001
[03]  KIQ Channel: Enabled,  Idle, lastReadTimestamp 0x00000000, nextSubmitTimestamp 0x00000001
Hung Blocks Detected by CAIL: 0x00000006
HWRing[1]-[Me,Queue,Pipe]=[1,0,0]:
PQ_RPTR 0x00000000, PQ_WPTR 0x00000000, HQD_ACTIVE 0x00000001, HQ_STATUS [0x00000000, 0x00000000]
HWRing[2]-[Me,Queue,Pipe]=[1,0,1]:
PQ_RPTR 0x00000000, PQ_WPTR 0x00000000, HQD_ACTIVE 0x00000001, HQ_STATUS [0x00000000, 0x00000000]
HWRing[3]-[Me,Queue,Pipe]=[1,0,3]:
PQ_RPTR 0x00000038, PQ_WPTR 0x00000058, HQD_ACTIVE 0x00000001, HQ_STATUS [0x00008040, 0x00000000]
------------------------
[01] SDMA Engine : Enabled,  Idle
[04] sDMA Channel: Enabled,  Idle, lastReadTimestamp 0x0000019f, nextSubmitTimestamp 0x000001a0
------------------------
[02] SDMA Engine : Enabled,  Idle
[05] sDMA Channel: Enabled,  Idle, lastReadTimestamp 0x000018de, nextSubmitTimestamp 0x000018df
------------------------
[03]  UVD Engine : Disabled, Idle
[06]  UVD Channel: Disabled, Idle, lastReadTimestamp 0x00000000, nextSubmitTimestamp 0x00000001
[07] UVDE Channel: Disabled, Idle, lastReadTimestamp 0x00000000, nextSubmitTimestamp 0x00000001
[08] UVDE Channel: Disabled, Idle, lastReadTimestamp 0x00000000, nextSubmitTimestamp 0x00000001
------------------------
[04] SAMU Engine : Disabled, Idle
[09] SAMU Channel: Disabled, Idle, lastReadTimestamp 0x00000000, nextSubmitTimestamp 0x00000001
[10] SAMU Channel: Disabled, Idle, lastReadTimestamp 0x00000000, nextSubmitTimestamp 0x00000001
------------------------
[05]  VCE Engine : Disabled, Idle
[11]  VCE Channel: Disabled, Idle, lastReadTimestamp 0x00000000, nextSubmitTimestamp 0x00000001
[12] VCEL Channel: Disabled, Idle, lastReadTimestamp 0x00000000, nextSubmitTimestamp 0x00000001

It seems like this could be a Mac bug, but I certainly don't know enough about it to say that for certain.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The report names no repository files, tests, or entry points to inspect. Begin by reproducing the logout, restart, or shutdown failure on a 2017 MacBook Pro with Touch Bar, an external monitor, and macOS 10.12.6, then compare Console GPU restart reports; done means the black screen and associated GPU resets no longer occur.

Written by the indexing model from the issue text.

Assessment

Tech stack
macos
Domain
operating-systems
Issue type
Bug
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
15/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.