Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Frequent and Random system crashes #218

Open
succlz123 opened this issue Jul 3, 2019 · 17 comments
Open

Frequent and Random system crashes #218

succlz123 opened this issue Jul 3, 2019 · 17 comments
Labels
SSD SSD related issue

Comments

@succlz123
Copy link

succlz123 commented Jul 3, 2019

System

Mac OS 10.14.5, https://blog.daliansky.net/macOS-Mojave-10.14.5-18F132-official-version-with-Clover-4928-original-image.html

Device

  1. XiaoMi PRO i7-8550U 16g 256ssd (Single original ssd, full coverage installation).
  2. A USB jack is used to connect the mouse adapter.
  3. Another USB jack is used to connect the Android Phone.

Step

  1. In the beginning, I used this Image directly to install.
  2. In the step of replacing EFI, I copied the latest git branch source code (git clone & copy).
  3. Then I used the ALCPlugFix and hidpi script.
  4. Installed the HoRNDIS to use the Android Phone to connect the Internet.
  5. Installed some applications, such as XCode, brew, Chrome. In this process, I have encountered very frequent crashes about every 10 minutes.
  6. Then I used this script.
    bash -c "$(curl -fsSL https://raw.githubusercontent.com/daliansky/XiaoMi-Pro-Hackintosh/master/install.sh)"
  7. The interval of crashes becomes several hours after restarting but still have problems.

Panic Report

Is there a problem with the usage steps of EFI?

*** Panic Report ***
panic(cpu 0 caller 0xffffff7f90dafc0c): nvme: "Fatal error occurred. CSTS=0xffffffff US[1]=0x0 US[0]=0x72 VID/DID=0xa804144d
. FW Revision=CXB7401Q\n"@/BuildRoot/Library/Caches/com.apple.xbs/Sources/IONVMeFamily/IONVMeFamily-387.260.15/IONVMeController.cpp:5334
Backtrace (CPU 0), Frame : Return Address
0xffffff81fdd9ba10 : 0xffffff800e7aea2d 
0xffffff81fdd9ba60 : 0xffffff800e8e9e95 
0xffffff81fdd9baa0 : 0xffffff800e8db70a 
0xffffff81fdd9bb10 : 0xffffff800e75bb40 
0xffffff81fdd9bb30 : 0xffffff800e7ae447 
0xffffff81fdd9bc50 : 0xffffff800e7ae293 
0xffffff81fdd9bcc0 : 0xffffff7f90dafc0c 
0xffffff81fdd9be20 : 0xffffff800ee5e877 
0xffffff81fdd9be90 : 0xffffff800ee5e799 
0xffffff81fdd9bec0 : 0xffffff800e7ed9b5 
0xffffff81fdd9bf40 : 0xffffff800e7ed555 
0xffffff81fdd9bfa0 : 0xffffff800e75b0ce 
      Kernel Extensions in backtrace:
         com.apple.iokit.IONVMeFamily(2.1)[FAFF8EA6-B8EF-314D-886A-DEAB39FF3EA9]@0xffffff7f90da2000->0xffffff7f90de1fff
            dependency: com.apple.driver.AppleMobileFileIntegrity(1.0.5)[A367CF6B-B3EA-36FE-86E6-03B771CA8A69]@0xffffff7f8f64e000
            dependency: com.apple.iokit.IOPCIFamily(2.9)[CC6A465F-5A24-304D-B9DF-8C27819CC214]@0xffffff7f8f095000
            dependency: com.apple.driver.AppleEFINVRAM(2.1)[C3C74D36-E06B-3753-A373-5BC9D486DD9C]@0xffffff7f8f769000
            dependency: com.apple.iokit.IOStorageFamily(2.1)[D43332F2-2D40-3DF1-8F77-D633BCDAE660]@0xffffff7f8f47b000
            dependency: com.apple.iokit.IOReportFamily(47)[5772C11C-ED28-322A-910F-874583B23101]@0xffffff7f8fbf2000

BSD process name corresponding to current thread: kernel_task
Boot args: darkwake=0 gfxrst=1 

Mac OS version:
18F132

Kernel version:
Darwin Kernel Version 18.6.0: Thu Apr 25 23:16:27 PDT 2019; root:xnu-4903.261.4~2/RELEASE_X86_64
Kernel UUID: 7C8BB636-E593-3CE4-8528-9BD24A688851
Kernel slide:     0x000000000e400000
Kernel text base: 0xffffff800e600000
__HIB  text base: 0xffffff800e500000
System model name: MacBookPro14,1 (Mac-B4831CEBD52A0C4C)

System uptime in nanoseconds: 8634752253327
last loaded kext at 6562990170047: com.apple.driver.AppleXsanScheme	3 (addr 0xffffff7f9181d000, size 32768)
last unloaded kext at 6757735991658: com.apple.driver.AppleXsanScheme	3 (addr 0xffffff7f9181d000, size 32768)
loaded kexts:
com.joshuawise.kexts.HoRNDIS	9.2
org.rehabman.voodoo.driver.PS2Keyboard	2.0.0
com.alexandred.VoodooI2CHID	1
com.alexandred.VoodooI2C	2.1.4
org.rehabman.driver.NullEthernet	1.0.6
org.coolstar.VoodooGPIO	1.1
org.rehabman.voodoo.driver.PS2Controller	2.0.0
as.vit9696.SMCProcessor	1.0.2
as.vit9696.AppleALC	1.3.7
org.tw.CodecCommander	2.7.1
as.vit9696.WhateverGreen	1.2.8
ru.usrsse2.SMCBatteryManager	1
as.vit9696.VirtualSMC	1.0.2
as.vit9696.Lilu	1.3.5
com.alexandred.VoodooI2CServices	1
com.apple.nke.rvi	2.0.0
com.apple.driver.AudioAUUC	1.70
com.apple.fileutil	20.036.15
com.apple.driver.AGPM	110.25.10
com.apple.driver.ApplePlatformEnabler	2.7.0d0
com.apple.driver.X86PlatformShim	1.0.0
com.apple.filesystems.autofs	3.0
com.apple.driver.AppleUpstreamUserClient	3.6.5
com.apple.driver.AppleMCCSControl	1.5.9
com.apple.driver.AppleHDA	282.54
com.apple.driver.AppleGraphicsDevicePolicy	3.40.16
com.apple.private.KextAudit	1.0
com.apple.AGDCPluginDisplayMetrics	3.40.16
com.apple.driver.AppleOSXWatchdog	1
com.apple.driver.AppleHV	1
com.apple.iokit.IOUserEthernet	1.0.1
com.apple.iokit.IOBluetoothSerialManager	6.0.12f1
com.apple.driver.AppleIntelKBLGraphics	12.0.9
com.apple.driver.pmtelemetry	1
com.apple.Dont_Steal_Mac_OS_X	7.0.0
com.apple.driver.AppleIntelPCHPMC	2.0.1
com.apple.driver.AppleIntelSlowAdaptiveClocking	4.0.0
com.apple.driver.eficheck	1
com.apple.driver.AppleIntelKBLGraphicsFramebuffer	12.0.9
com.apple.driver.AppleTopCaseHIDEventDriver	138.3
com.apple.driver.AppleVirtIO	2.1.3
com.apple.filesystems.hfs.kext	407.200.4
com.apple.AppleFSCompression.AppleFSCompressionTypeDataless	1.0.0d1
com.apple.BootCache	40
com.apple.AppleFSCompression.AppleFSCompressionTypeZlib	1.0.0
com.apple.AppleSystemPolicy	1.0
com.apple.filesystems.apfs	945.260.7
com.apple.driver.AppleSmartBatteryManager	161.0.0
com.apple.driver.AppleRTC	2.0
com.apple.driver.AppleACPIButtons	6.1
com.apple.driver.AppleBacklight	170.12.11
com.apple.driver.AppleSMBIOS	2.1
com.apple.driver.AppleAPIC	1.7
com.apple.nke.applicationfirewall	201
com.apple.security.TMSafetyNet	8
com.apple.kext.triggers	1.0
com.apple.driver.AppleSMBusController	1.0.18d1
com.apple.driver.DspFuncLib	282.54
com.apple.kext.OSvKernDSPLib	528
com.apple.driver.AppleGraphicsControl	3.40.16
com.apple.iokit.IOAVBFamily	740.1
com.apple.plugin.IOgPTPPlugin	740.2
com.apple.iokit.IOEthernetAVBController	1.1.0
com.apple.iokit.IOSkywalkFamily	1
com.apple.driver.AppleSSE	1.0
com.apple.driver.AppleHDAController	282.54
com.apple.iokit.IOHDAFamily	282.54
com.apple.AppleGPUWrangler	3.40.16
com.apple.iokit.IOSlowAdaptiveClockingFamily	1.0.0
com.apple.iokit.IOBluetoothHostControllerUSBTransport	6.0.12f1
com.apple.iokit.IOBluetoothHostControllerTransport	6.0.12f1
com.apple.AppleGraphicsDeviceControl	3.40.16
com.apple.iokit.IOAcceleratorFamily2	404.9
com.apple.iokit.IOSurface	255.5.4
com.apple.driver.X86PlatformPlugin	1.0.0
com.apple.driver.IOPlatformPluginFamily	6.0.0d8
com.apple.driver.AppleHSBluetoothDriver	138.3
com.apple.driver.IOBluetoothHIDDriver	6.0.12f1
com.apple.iokit.IOBluetoothFamily	6.0.12f1
com.apple.driver.AppleMultitouchDriver	2450.1
com.apple.driver.AppleInputDeviceSupport	2440.2
com.apple.driver.usb.IOUSBHostHIDDevice	1.2
com.apple.driver.usb.networking	5.0.0
com.apple.driver.usb.AppleUSBHostCompositeDevice	1.2
com.apple.driver.usb.AppleUSBHub	1.2
com.apple.iokit.IOSerialFamily	11
com.apple.filesystems.hfs.encodings.kext	1
com.apple.driver.AppleUSBHostMergeProperties	1.2
com.apple.iokit.IONVMeFamily	2.1.0
com.apple.driver.usb.AppleUSBXHCIPCI	1.2
com.apple.driver.usb.AppleUSBXHCI	1.2
com.apple.driver.usb.AppleUSBHostPacketFilter	1.0
com.apple.iokit.IOUSBFamily	900.4.2
com.apple.driver.AppleEFINVRAM	2.1
com.apple.driver.AppleEFIRuntime	2.1
com.apple.iokit.IOHIDFamily	2.0.0
com.apple.driver.AppleBacklightExpert	1.1.0
com.apple.iokit.IONDRVSupport	530.51
com.apple.iokit.IOGraphicsFamily	530.66
com.apple.security.quarantine	3
com.apple.security.sandbox	300.0
com.apple.kext.AppleMatch	1.0.0d1
com.apple.iokit.IOAudioFamily	206.5
com.apple.vecLib.kext	1.2.0
com.apple.iokit.IOSMBusFamily	1.1
com.apple.driver.DiskImages	493.0.0
com.apple.driver.AppleFDEKeyStore	28.30
com.apple.driver.AppleEffaceableStorage	1.0
com.apple.driver.AppleKeyStore	2
com.apple.driver.AppleUSBTDM	456.260.3
com.apple.driver.AppleMobileFileIntegrity	1.0.5
com.apple.iokit.IOUSBMassStorageDriver	145.200.2
com.apple.iokit.IOSCSIBlockCommandsDevice	408.250.3
com.apple.iokit.IOSCSIArchitectureModelFamily	408.250.3
com.apple.iokit.IOStorageFamily	2.1
com.apple.kext.CoreTrust	1
com.apple.driver.AppleCredentialManager	1.0
com.apple.driver.KernelRelayHost	1
com.apple.iokit.IOUSBHostFamily	1.2
com.apple.driver.usb.AppleUSBCommon	1.0
com.apple.driver.AppleBusPowerController	1.0
com.apple.driver.AppleSEPManager	1.0.1
com.apple.driver.IOSlaveProcessor	1
com.apple.iokit.IOReportFamily	47
com.apple.iokit.IOTimeSyncFamily	740.2
com.apple.iokit.IONetworkingFamily	3.4
com.apple.driver.AppleACPIPlatform	6.1
com.apple.driver.AppleSMC	3.1.9
com.apple.iokit.IOPCIFamily	2.9
com.apple.iokit.IOACPIFamily	1.4
com.apple.kec.pthread	1
com.apple.kec.Libm	1
com.apple.kec.corecrypto	1.0

EOF
Model: MacBookPro14,1, BootROM 190.0.0.0.0, 4 processors, Intel Core i7, 1.99 GHz, 16 GB, SMC 2.43f6
Graphics: Intel UHD Graphics 620, Intel UHD Graphics 620, spdisplays_builtin
Memory Module: BANK 0/DIMM0, 8 GB, DDR4, 2400 MHz, Samsung, -
Memory Module: BANK 1/DIMM0, 8 GB, DDR4, 2400 MHz, Samsung, -
Bluetooth: Version 6.0.12f1, 3 services, 19 devices, 1 incoming serial ports
Network Service: Ethernet, Ethernet, en0
PCI Card: Intel UHD Graphics 620, VGA-Compatible Controller, PCI-Express
PCI Card: Intel Sunrise Point-LP USB 3.0 xHCI Controller, USB eXtensible Host Controller, PCI-Express
PCI Card: Intel Sunrise Point-LP Serial IO I2C Controller #0, I2C, PCI-Express
PCI Card: Intel Sunrise Point-LP Serial IO I2C Controller #1, I2C, PCI-Express
PCI Card: Intel Sunrise Point-LP CSME HECI #1, IMEI, PCI-Express
PCI Card: Intel Sunrise Point-LP PMC, PCHPMC Controller, PCI-Express
PCI Card: Intel Sunrise Point-LP HD Audio, Audio Device, PCI-Express
PCI Card: Intel Sunrise Point-LP SMBus, System Management Bus, PCI-Express
PCI Card: Intel Wireless 8265, Other Network Controller, PCI-Express
PCI Card: Intel Sunrise Point-LP PCI Express Root Port #9, NVM Express Controller, M.2 key M
USB Device: USB 3.0 Bus
USB Device: 4-Port USB 3.0 Hub
USB Device: 4-Port USB 2.0 Hub
USB Device: MI 6
USB Device: XiaoMi USB 2.0 Webcam
USB Device: Bluetooth HCI
USB Device: USB Receiver
Thunderbolt Bus: 
@Menchen
Copy link
Collaborator

Menchen commented Jul 3, 2019

Which model is your ssd?

@succlz123
Copy link
Author

succlz123 commented Jul 3, 2019

Original SSD, seen under the mac system called SAMSUNG MZVLW256HEHP-00000

@Menchen
Copy link
Collaborator

Menchen commented Jul 3, 2019

Seem pm961. Which is fine.

Update

Did you delete opencore folder? And also give a try to release version which is more stable.

@succlz123
Copy link
Author

succlz123 commented Jul 3, 2019

I saw the difference between my EFI folder and git release zip, I have a redundant OC folder.
Do you mean that to delete /EFI/OC ?

Now I have used the EFI of the release, but it still bad.

@stevezhengshiqi
Copy link
Collaborator

According to your error log, it’s a NVME SSD error. You need to make sure there’s no PM981/970 EVO Plus on either M.2 slot.

If there’s only one PM961 on your device, then I have no idea why this error is happening.

@johnnynunez
Copy link

I saw that last update from 970 plus works on macOS

@succlz123
Copy link
Author

succlz123 commented Jul 7, 2019

According to my feelings, it should be a problem with HoRNDIS. https://github.com/jwise/HoRNDIS.
I bought a USB wireless network card to replace, and It only happens every few days now.

@stevezhengshiqi stevezhengshiqi added bug SSD SSD related issue and removed bug labels Jul 12, 2019
@FallenChromium
Copy link

FallenChromium commented Aug 20, 2019

Yep, it's certainly a NVMe error, I have PM961 too and occasionally it was happening with me like 2-3 times a month, usually after long sleep - everything freezes, then force reboot and IONVMeFamily report after reboot. Not that long ago, after reboots I started to get "no bootable device" logo from my BIOS, it wasn't seeing SSD at all. Now, I can't turn on my laptop for 10 minutes already, I suppose all this time my SSD was just dying for some reason, and now it's completely dead. It's a shame actually, as I did nothing extraordinary with this laptop. Yeah, it was always in my backpack, I was running with it, it was wet, but it still shouldn't be that wacky to break like this. I will investigate further in this, but seems like either it's a software problem caused by macOS NVMe controller or it's a hardware issue. I'm russian so I've checked 4PDA forum for this and found like 6 or 7 reports about the same thing happening, and they were using Windows, so, I think it's just bad-quality SSD out there.
P.S Checking out Mi Community shown that it's a common issue, you have no way around it except rebooting or re-plugging SSD. That's a real shame, now I have to either replace the SSD or laptop (=_=)

@Menchen
Copy link
Collaborator

Menchen commented Aug 20, 2019

Anyone are able to reproduce it with non OEM ssd?

@OneSecure
Copy link

maybe here is a solution. https://download.csdn.net/download/caochenhins/11159007

@shilch
Copy link

shilch commented Oct 9, 2020

Anyone are able to reproduce it with non OEM ssd?

My laptop recently crashed and when restarting provided me with the same stacktrace pointing to IONVMeController.cpp:5334. My SSD is Samsung SSD 970 EVO 1TB.
I should note that I also have random freezing every now and then (not very frequent though) but especially on high load which forces me to reboot the laptop. Maybe that's related? I never got a stacktrace when restarting but now I got that one.

This comment suggests installing NVMeFix.kext. I didn't try it yet but will test it soon.

@succlz123
Copy link
Author

Let me update the latest situation. I installed official Windows later, but the system still crashed frequently.

Then I went to Xiaomi's official repair shop. I don't know what they did. The only thing I know is that they installed the Windows of Xiaomi version on my laptop, and there hasn't been a crash since 😅. Maybe it is an SSD hardware interface issue.

@FallenChromium
Copy link

FallenChromium commented Oct 12, 2020

Actually I had this kind of problem too, after disassembling the laptop and reinstalling SSD it's happening very, very rarely. I think the problem is that the port for SSD is not very tight, so contact can be loose

@shilch
Copy link

shilch commented Oct 12, 2020

@FallenChromium Thanks for the hint. I'll give it a try.
I noticed that the NVMeFix.kext was already installed in Clover. When I remove it, the system still crashes but I don't get any stack trace.

@influenist
Copy link

This happening frequently. With NVMeFix the current build is not bootable. Please advice as I run this exact same setup with NoteBook 12.5 2018 (7y30) without any issues.

@stevezhengshiqi
Copy link
Collaborator

@influenist Maybe you can try to disable RtcHibernateAware in config. Some devices may have problems with that, but it's a great feature for hibernation.

@stevezhengshiqi
Copy link
Collaborator

This issue should be fixed by adding forceRenderStandby=0 to boot-args.

Ref: https://dortania.github.io/OpenCore-Post-Install/universal/sleep.html#fixing-gpus
acidanthera/bugtracker#1193

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
SSD SSD related issue
Projects
None yet
Development

No branches or pull requests

8 participants