valnoxy / t480-oc

💻 Lenovo ThinkPad T480 / T580 / X280 Hackintosh (macOS Monterey 12.x - Sonoma 14.x) - OpenCore
MIT License
355 stars 34 forks source link

WindowServer hang / crash when idle #110

Closed rob-wilco closed 11 months ago

rob-wilco commented 11 months ago

Problem: Idling for 1 to 2 hours (not sleeping, just idling) produces symptoms of severe hanging / sluggishness. If left alone it will eventually crash and show an Apple logo and produce a problem report prompt. Error contains wording which suggests a watchdog timeout for WindowServer process. If the system has idled for a couple of hours and I am able to open activity monitor and terminate WindowServer the machine returns to its snappy self as soon as the WindowServer respawns.

System: Thinkpad T480 GPU: HD620 Discrete Nvidia GPU : No RAM: 64GB CPU: i5-8350U Network: Broadcom BCM94360NG Screen: Stock FHD 1080p IPS (Matte) Touchscreen: No Disk: 4TB Crucial P3 Latest June 2023 BIOS with BIOS settings configured per guidelines. OS: Ventura 13.5 (Same problem originally occured for me with clean install on 13.4, clean installed 13.5 and same symptoms persist) valnoxy EFI config Release: 1.3.0 Peripherals: No external peripherals connected

Power settings: Enable Power Nap: Never Low Power Mode: Never Automatically Adjust Brightness: Off Turn Display Off When On Power Adapter When Inactive: Never Turn Display Off On Battery When Inactive: Never

Problem does not occur in clean tests independently when Windows or Linux installed, memtest86+ also passes. Full sector test of SSD shows no bad sectors, Lenovo diagnostics all pass, no apparent hardware faults.

rob-wilco commented 11 months ago
panic(cpu 2 caller 0xffffff8019d95941): userspace watchdog timeout: no successful checkins from WindowServer in 120 seconds
WindowServer has not exited since first loaded
service: logd, total successful checkins in 21165 seconds: 2117, last successful checkin: 0 seconds ago
service: WindowServer, total successful checkins in 21130 seconds: 2101, last successful checkin: 120 seconds ago
service: opendirectoryd, total successful checkins in 21165 seconds: 2116, last successful checkin: 0 seconds ago
service: configd, total successful checkins in 21165 seconds: 2116, last successful checkin: 0 seconds ago

Panicked task 0xffffff954beac258: 3 threads: pid 105: watchdogd
Backtrace (CPU 2), panicked thread: 0xffffff954afa3598, Frame : Return Address
0xffffffa12d77f5b0 : 0xffffff8016a7207d 
0xffffffa12d77f600 : 0xffffff8016bc6164 
0xffffffa12d77f640 : 0xffffff8016bb5c77 
0xffffffa12d77f690 : 0xffffff8016a12951 
0xffffffa12d77f6b0 : 0xffffff8016a7235d 
0xffffffa12d77f7a0 : 0xffffff8016a71a07 
0xffffffa12d77f800 : 0xffffff80171db4d3 
0xffffffa12d77f8f0 : 0xffffff8019d95941 
0xffffffa12d77f900 : 0xffffff8019d955dc 
0xffffffa12d77f920 : 0xffffff8019d946b9 
0xffffffa12d77fa50 : 0xffffff801715280e 
0xffffffa12d77fbb0 : 0xffffff8016b72909 
0xffffffa12d77fcc0 : 0xffffff8016a4c51a 
0xffffffa12d77fd60 : 0xffffff8016a632a2 
0xffffffa12d77fdd0 : 0xffffff8016a63927 
0xffffffa12d77fef0 : 0xffffff8016b9b533 
0xffffffa12d77ffa0 : 0xffffff8016a12db6 
      Kernel Extensions in backtrace:
         com.apple.driver.watchdog(1.0)[BD08CE2D-77F5-358C-8F0D-A570540A0BE7]@0xffffff8019d93000->0xffffff8019d95fff

Process name corresponding to current thread (0xffffff954afa3598): watchdogd
Boot args: rtcfx_exclude=80-AB 

Mac OS version:
22G74

Kernel version:
Darwin Kernel Version 22.6.0: Wed Jul  5 22:21:56 PDT 2023; root:xnu-8796.141.3~6/RELEASE_X86_64
Kernel UUID: 8295C77B-2AAB-3471-81B5-438F59B1A36D
roots installed: 0
KernelCache slide: 0x0000000016600000
KernelCache base:  0xffffff8016800000
Kernel slide:      0x00000000166dc000
Kernel text base:  0xffffff80168dc000
__HIB  text base: 0xffffff8016700000
System model name: MacBookPro15,2 (Mac-827FB448E656EC26)
System shutdown begun: NO
Panic diags file available: YES (0x0)
Hibernation exit count: 0

System uptime in nanoseconds: 21165469289904
Last Sleep:           absolute           base_tsc          base_nano
  Uptime  : 0x0000133ff8475b9b
  Sleep   : 0x0000000000000000 0x0000000000000000 0x0000000000000000
  Wake    : 0x0000000000000000 0x0000000a3b3303b9 0x0000000000000000
Compressor Info: 0% of compressed pages limit (OK) and 0% of segments limit (OK) with 0 swapfiles and OK swap space
Zone info:
  Zone map: 0xffffff807bc44000 - 0xffffffa07bc44000
  . PGZ   : 0xffffff807bc44000 - 0xffffff8083c45000
  . VM    : 0xffffff8083c45000 - 0xffffff854f5de000
  . RO    : 0xffffff854f5de000 - 0xffffff86e8911000
  . GEN0  : 0xffffff86e8911000 - 0xffffff8bb42aa000
  . GEN1  : 0xffffff8bb42aa000 - 0xffffff907fc43000
  . GEN2  : 0xffffff907fc43000 - 0xffffff954b5dc000
  . GEN3  : 0xffffff954b5dc000 - 0xffffff9a16f76000
  . DATA  : 0xffffff9a16f76000 - 0xffffffa07bc44000
  Metadata: 0xffffffa07bc54000 - 0xffffffa09bc54000
  Bitmaps : 0xffffffa09bc54000 - 0xffffffa0a7c54000
  Extra   : 0 - 0
rob-wilco commented 11 months ago

Configured custom USB map - both right-side USB ports now able to see USB 3.0 properly, all devices appear to be working. Unable to reproduce problem anymore once USB ports mapped correctly, HOWEVER while I can't conclude that this is what solved the problem, closing issue. P.S. THANK YOU VALNOXY for all the work, the T480 feels like the best Hackintosh laptop I've used yet, everything works even sleep <3