CodySchrank / gSwitch

macOS menu bar app that allows control over the gpu on dual gpu macbooks
MIT License
897 stars 48 forks source link

MBP 16" Kernel Panic on 10.15.4 #47

Closed swapnilsagarwal closed 4 years ago

swapnilsagarwal commented 4 years ago

Hi,

I was using this all fine for over 4 months however after 15.4 catalina update the system started to reboot on waking from sleep. Somwehere it was crashing after going in deep sleep state due to a kernel panic. After testing and switching on and off all the kernels installed. I isolated the problem to Gswitch. After disbling it now all my issues with Sleep are gone. I think app needs to be updated. I can submit kernel panic logs if req to diagnose.

CodySchrank commented 4 years ago

Yes please submit the kernel panic logs.

swapnilsagarwal commented 4 years ago

please find attached below.

I tried safe mode and obviously it's some kind of kernel panic so does not occur there.

I wanted to figure which kernel it is. Since I have not made any change to the system in last 3 months with zero kernel panic and immediately after 15.4 there are kernel panics.

I have tried going back with Time Machine as well... on restoring to 15.3 with same setup there are no kernel panics and immediately after updating to 15.4 there are kernel panics on going to deep sleep.

I have read the Kernel log -

loaded kexts:

com.rugarciap.DisableTurboBoost 0.0.1

com.avatron.AVExFramebuffer 1.7

com.bongiovi.DPSReflector 1.0.6

com.iospirit.driver.!AIR!C 4001

at.obdev.nke.LittleSnitch 5430

com.cleverandson.driver.XAerial 1.0.0

com.iospirit.driver.rbiokithelper 1.32

com.avatron.AVExVideo 1.7

com.intel.driver.EnergyDriver 2.0

com.paragon-software.filesystems.ntfs 100.5.15

I have 9 extra kernels loaded almost all are well known and none related to Graphics

Little Snitch, Paragon NTFS, Turbo Boost disable, Avatron Air Display (removed now), Bongiovi DSP, Candelair IR manager (removed now so that took out 2 iospirit kext),

also removed com.cleverandson.driver.XAerial 1.0.0

Disbaling gSwicth issue went away, enabling it again it comes back. So I have shortlisted it to gswitch

complete diagnostic log:

panic(cpu 0 caller 0xffffff8016a91b2c): Sleep transition timed out after 180 seconds while entering darkwake on way to sleep. Suspected bundle: com.apple.iokit.IOGraphicsFamily. Thread 0x74.

Backtracing specified thread

Backtrace (CPU 0), Frame : Return Address

0xffffffa3fc97b900 : 0xffffff80164471e8

0xffffffa3fb9f39b0 : 0xffffff80163433f1

0xffffffa3fb9f3a20 : 0xffffff8016341c2f

0xffffffa3fb9f3a70 : 0xffffff80164442e9

0xffffffa3fb9f3ab0 : 0xffffff8016443b4b

0xffffffa3fb9f3ae0 : 0xffffff7f99fdbced

0xffffffa3fb9f3b10 : 0xffffff7f99ff4f75

0xffffffa3fb9f3b20 : 0xffffff7f99fdecb9

0xffffffa3fb9f3bb0 : 0xffffff7f99fe4549

0xffffffa3fb9f3c50 : 0xffffff8016a020cf

0xffffffa3fb9f3cc0 : 0xffffff8016a1a770

0xffffffa3fb9f3d60 : 0xffffff8016a028b9

0xffffffa3fb9f3db0 : 0xffffff8016a17e1b

0xffffffa3fb9f3e50 : 0xffffff8016a1424e

0xffffffa3fb9f3ea0 : 0xffffff8016a11d40

0xffffffa3fb9f3ef0 : 0xffffff8016a11bd9

0xffffffa3fb9f3f30 : 0xffffff8016a2d43e

0xffffffa3fb9f3f70 : 0xffffff8016a2ca36

0xffffffa3fb9f3fa0 : 0xffffff80162c713e

  Kernel Extensions in backtrace:

     com.apple.iokit.IOGraphicsFamily(575.1)[D47CA481-C5E5-3F03-9B04-6634DF5F3121]@0xffffff7f99fd3000->0xffffff7f9a023fff

        dependency: com.apple.iokit.IOPCIFamily(2.9)[1B1F3BBB-9212-3CF9-94F8-8FEF0D3ACEC4]@0xffffff7f96d11000

BSD process name corresponding to current thread: kernel_task

Boot args: -no_compat_check chunklist-security-epoch=0 -chunklist-no-rev2-dev

Mac OS version:

19E266

Kernel version:

Darwin Kernel Version 19.4.0: Wed Mar 4 22:28:40 PST 2020; root:xnu-6153.101.6~15/RELEASE_X86_64

Kernel UUID: AB0AA7EE-3D03-3C21-91AD-5719D79D7AF6

Kernel slide: 0x0000000016000000

Kernel text base: 0xffffff8016200000

__HIB text base: 0xffffff8016100000

System model name: MacBookPro16,1 (Mac-E1008331FDC96864)

System shutdown begun: NO

System uptime in nanoseconds: 10437121360540

last loaded kext at 10037957405839: com.rugarciap.DisableTurboBoost 0.0.1 (addr 0xffffff7f9a65b000, size 12288)

last unloaded kext at 7017773178053: com.rugarciap.DisableTurboBoost 0.0.1 (addr 0xffffff7f9a603000, size 8192)

loaded kexts:

com.rugarciap.DisableTurboBoost 0.0.1

com.avatron.AVExFramebuffer 1.7

com.bongiovi.DPSReflector 1.0.6

com.iospirit.driver.!AIR!C 4001

at.obdev.nke.LittleSnitch 5430

com.cleverandson.driver.XAerial 1.0.0

com.iospirit.driver.rbiokithelper 1.32

com.avatron.AVExVideo 1.7

com.intel.driver.EnergyDriver 2.0

com.paragon-software.filesystems.ntfs 100.5.15

@fileutil 20.036.15

@kext.AMDRadeonX6000 3.0.8

@kext.AMDRadeonServiceManager 3.0.8

!AGraphicsDevicePolicy 5.1.16

@AGDCPluginDisplayMetrics 5.1.16

!AHV 1

|IOUserEthernet 1.0.1

|IO!BSerialManager 7.0.4f6

pmtelemetry 1

!AUpstreamUserClient 3.6.8

AGPM 111.4.4

!APlatformEnabler 2.7.0d0

X86PlatformShim 1.0.0

@Dont_Steal_Mac_OS_X 7.0.0

!A!IKBLGraphics 14.0.5

AGDCBacklightControl 5.1.16

!AThunderboltIP 3.1.4

BridgeAudioCommunication 6.70.3

!ATopCaseHIDEventDriver 3430.1

!AHIDALSService 1

!AMuxControl2 5.1.16

!ABridgeAudio!C 6.70.3

!AGFXHDA 100.1.426

!A!IPCHPMC 2.0.1

!A!ICFLGraphicsFramebuffer 14.0.5

!A!ISlowAdaptiveClocking 4.0.0

!AAVEBridge 6.1

!AMCCSControl 1.11

@filesystems.autofs 3.0

BCMWLANFirmware4355.Hashstore 1

BCMWLANFirmware4364.Hashstore 1

BCMWLANFirmware4377.Hashstore 1

!ABCMWLANBusInterfacePCIe 1

@filesystems.hfs.kext 522.100.5

@BootCache 40

@!AFSCompression.!AFSCompressionTypeDataless 1.0.0d1

@!AFSCompression.!AFSCompressionTypeZlib 1.0.0

!AVirtIO 1.0

@filesystems.apfs 1412.101.1

@private.KextAudit 1.0

!ASmartBatteryManager 161.0.0

!AACPIButtons 6.1

!ASMBIOS 2.1

!AACPIEC 6.1

!AAPIC 1.7

$!AImage4 1

@nke.applicationfirewall 303

$TMSafetyNet 8

@!ASystemPolicy 2.0.0

|EndpointSecurity 1

!AXsanScheme 3

!UAudio 322.2

@kext.AMDRadeonX6100HWLibs 1.0

@kext.AMDRadeonX6000HWServices 3.0.8

|IOAVB!F 840.3

!ASSE 1.0

@!AGPUWrangler 5.1.16

@kext.AMDRadeonX6000Framebuffer 3.0.8

!ABacklightExpert 1.1.0

!AHS!BDriver 3430.1

IO!BHIDDriver 7.0.4f6

!AActuatorDriver 3440.1

!AMultitouchDriver 3440.1

!AInputDeviceSupport 3440.8

!AHIDKeyboard 209

|IO!BHost!CUARTTransport 7.0.4f6

|IO!BHost!CTransport 7.0.4f6

!A!ILpssUARTv1 3.0.60

!A!ILpssUARTCommon 3.0.60

!AOnboardSerial 1.0

X86PlatformPlugin 1.0.0

!AGraphicsControl 5.1.16

|IONDRVSupport 575.1

IOPlatformPlugin!F 6.0.0d8

@kext.AMDSupport 3.0.8

@!AGraphicsDeviceControl 5.1.16

|IOAccelerator!F2 438.4.5

|IOSlowAdaptiveClocking!F 1.0.0

!ASMBus!C 1.0.18d1

|IOGraphics!F 575.1

@plugin.IOgPTPPlugin 840.3

|IOEthernetAVB!C 1.1.0

@kext.triggers 1.0

usb.IOUSBHostHIDDevice 1.2

usb.cdc.ncm 5.0.0

usb.cdc 5.0.0

usb.networking 5.0.0

usb.!UHostCompositeDevice 1.2

!ABCMWLANCore 1.0.0

mDNSOffloadUserClient 1.0.1b8

IOImageLoader 1.0.0

|IO80211!FV2 1200.12.2b1

corecapture 1.0.4

|IOSkywalk!F 1

|IOSurface 269.11

@filesystems.hfs.encodings.kext 1

|IOAudio!F 300.2

@vecLib.kext 1.2.0

|IOSerial!F 11

usb.!UVHCIBCE 1.2

usb.!UVHCI 1.2

usb.!UVHCICommonBCE 1.0

usb.!UVHCICommon 1.0

!AEffaceableNOR 1.0

|IOBufferCopy!C 1.1.0

|IOBufferCopyEngine!F 1

|IONVMe!F 2.1.0

!AThunderboltPCIDownAdapter 2.5.4

!AThunderboltDPInAdapter 6.2.6

!AThunderboltDPAdapter!F 6.2.6

!AHPM 3.4.4

!A!ILpssI2C!C 3.0.60

!A!ILpssDmac 3.0.60

!A!ILpssI2C 3.0.60

!AThunderboltNHI 5.8.6

|IOThunderbolt!F 7.6.0

|IOUSB!F 900.4.2

usb.!UXHCIPCI 1.2

usb.!UXHCI 1.2

!AEFINVRAM 2.1

!AEFIRuntime 2.1

!ASMCRTC 1.0

|IOSMBus!F 1.1

|IOHID!F 2.0.0

$quarantine 4

$sandbox 300.0

@kext.!AMatch 1.0.0d1

!AKeyStore 2

!UTDM 489.101.1

|IOSCSIBlockCommandsDevice 422.101.1

!ACredentialManager 1.0

KernelRelayHost 1

!ASEPManager 1.0.1

IOSlaveProcessor 1

!AFDEKeyStore 28.30

!AEffaceable!S 1.0

!AMobileFileIntegrity 1.0.5

@kext.CoreTrust 1

|CoreAnalytics!F 1

|IOTimeSync!F 840.3

|IONetworking!F 3.4

DiskImages 493.0.0

|IO!B!F 7.0.4f6

|IO!BPacketLogger 7.0.4f6

|IOUSBMass!SDriver 157.101.3

|IOSCSIArchitectureModel!F 422.101.1

|IO!S!F 2.1

|IOUSBHost!F 1.2

usb.!UCommon 1.0

!UHostMergeProperties 1.2

!ABusPower!C 1.0

|IOReport!F 47

!AACPIPlatform 6.1

!ASMC 3.1.9

watchdog 1

|IOPCI!F 2.9

|IOACPI!F 1.4

@kec.pthread 1

@kec.corecrypto 1.0

@kec.Libm 1

CodySchrank commented 4 years ago

I updated to 10.15.4 a few days ago and have not seen this behavior myself. Unfortunately kernel panic logs are not very helpful and if I can't reproduce the error myself I would have no idea where to start to try to fix it. This may be a new problem with the new 16", I'm not sure yet.

swapnilsagarwal commented 4 years ago

might be related to graphics on 16". However it was working fine from Jan till 25th March, so 2 months without any issue. I know OSX changed how it handles Kernel etc after 15.4 since a lot of apps are now broken.

All I could gather reading kernel logs was it was some kinda issue with Graphics on Mac OSX when going in deep sleep ( so happens after 4-5 hours after putting to sleep, some people are reporting issue goes away by disabling power nap feature.

bhbitter commented 4 years ago

I had a similar issue. Eventually I had to take my new MacBook Pro 16 to apple and they replaced the logic board. No problem since then.

tblaschke commented 4 years ago

I get the same kernel panics. However, even without gswitch installed. It seems that the these kernel panics are related to 10.15.4 itself and only occur when you attach usb peripherals (this includes even the usb c charger). With no peripherals I get no kernel panics.

CodySchrank commented 4 years ago

Thanks for the update. I will leave the thread open for now but I don't think gswitch is causing these panics.