-
Notifications
You must be signed in to change notification settings - Fork 882
Haxm causes Win10 BSOD when I am putting my computer to sleep #68
Comments
Thank you for the report and analysis. It seems to me you have exactly the same issue as #55, because: a) You have the same CPU model, Intel Core i7-8550U. (In #55 @pacemoan didn't mention their CPU model, but their crash dump shows the same CPUID family, model and stepping. I believe their laptop is Huawei MateBook X Pro.)
This is a function that makes use of the Intel SGX hardware feature. There must be a device driver that relies on SGX, and although we can't identify it from your crash dump (
|
Thank you for the support, I will try the solution mentioned in #55 again, with a full restart, right after work. I thought the issue was different because the PROCESS_NAME was different. |
You're welcome. Interestingly, a simple Google search reveals a third report of the same issue: The post is in Chinese, but basically the four said points remain valid, except that: a') The CPU model is Intel Core i7-8750H, which is also an 8th-gen Core. Now it's pretty clear that the issue is somehow related to HAXM, even though there is no trace of the HAXM driver ( We have a Dell Inspiron laptop with Intel Core i7-8550U and Windows 10 Pro v1803, but have never seen this issue. Let me read more about SGX and try to understand why. |
Meanwhile I tried the solution in: #55 again, but the BSOD still persists |
I am currently in touch with dell support too, because I thought, it might be a hardware problem, although when I ran the hardware tests, they all returned that everything is ok. Do you think, that I should have my laptop replaced, or is this more likely caused by software bugs? |
Did you also locate the corresponding devices in Device Manager and disable them? I'd like to know what they are (manufacturer, etc.), so could you post a screenshot of each device you found (see #55 for an example)?
I'd always put my bet on software ;-) After all, we were able to work around the same issue (#55) without replacing any hardware. One could argue that we might have disabled a defective fingerprint sensor, but then that defect could still lie in a buggy fingerprint sensor driver. So the possible culprits are:
It might be more helpful if you reported the issue to Microsoft, because I think they are in the best position to debug it:
|
Yes! |
That's great! I should also thank you for relieving us of the pressure to debug this issue ;-) It's fair to say the Goodix driver team should look into it first, based on the evidence so far (here and #55, and let's see if the third reporter also finds a Goodix fingerprint sensor on his Dell G7.) But I wouldn't contact Goodix directly; they will be more motivated when the issue is escalated by Dell and Microsoft. You could call Dell and Microsoft support and ask them what's the best way to report a driver issue. |
I tried speaking with the Dell US support but they denied to service me, because I am Hungarian, and they only support devices with US service number. I contacted the Hungarian support about this issue and I am currently waiting for their response. |
that's rellay a great resolution.My Friend,I am the guy who asked the question on the Microsoft Community,in the address ahead.My English is less becase I am a Chinese,I want you can understand what I said. |
Thanks for confirming the presence of a Goodix fingerprint sensor on your laptop. So clearly, there's a conflict between the Goodix driver and HAXM. The bug may be on either side, but Goodix and Microsoft are in a much better position to investigate the BSOD crash dump than we are--because of the reasons I listed above, plus Windows kernel and Goodix driver are closed source. @AradiPatrik @WayneSimon We will try to contact the Goodix driver team. Meanwhile, hopefully you can get Dell's attention on this issue, so they can escalate it to Goodix. BTW, our Dell Inspiron doesn't have a fingerprint sensor, which is why we can't reproduce the issue. |
We have contacted Goodix headquarter and sent the laptop models to Goodix, but there is no response from them. Goodix said a formal approach to report issue was the user provided feedback to laptop vendors and they will contact sales representatives from Goodix, and then they will report bugs in the internal tracking system according to the product line. Since there is no issue reporting system of Goodix for public, it is hard for all to raise problems from outside. |
Thaks for what you do for customers,I am very happy to get your surpport for our problems.I have feedbacked to Dell Supporter by Wechat,and the supporter told me that problems will be reported to Dell engineer,but I am not sure if they did。There is a solution for me to develop Android by Genymotion.I have abandoned the AVD on Android Studio.
发送自 Windows 10 版邮件应用
发件人: Wenchao Wang
发送时间: 2018年6月28日 15:35
收件人: intel/haxm
抄送: WayneZhang; Mention
主题: Re: [intel/haxm] Haxm causes Win10 BSOD when I am putting my computerto sleep (#68)
We have contacted Goodix headquarter and sent the laptop models to Goodix, but there is no response from them. Goodix said a formal approach to report issue was the user provided feedback to laptop vendors and they will contact sales representatives from Goodix, and then they will report bugs in the internal tracking system according to the product line. Since there is no issue reporting system of Goodix for public, it is hard for all to raise problems from outside.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
|
Same problem here, I noticed it when I tried to put my XPS 13 9370 (same model as the OP I guess, i7-8550U, UHD) into hybernation after running Android Studio respectively an AVD. As soon as I touch the fingerprint reader after using a AVD with HAXM it will result in that bluescreen (MEMORY_MANAGEMENT). Good to see it's a "common problem" and not a specific one on my machine. |
Hey Daniel, could you report the problem to Dell Support? The more people they here this problem from the better! |
Do they have come central address or forum thread for this? I'm in Germany and even depending on the day of time I'll be forwarded to support branches in France and I'm not sure they share information/resources? I left a Thread in their German Support Forum: For now it seems to have been marked as spam.... |
Yeah, that link gives me a "friendly" 404 page in German :-( It was a good attempt though. @stozk Could you try to post on the English XPS forum instead? (Maybe you need to manually switch languages using the menu on the top.) And if the post survives their spam filter, @AradiPatrik can reply to it, and hopefully we get Dell's attention. |
I have also submitted it to the english forum in english to reach a wider audience to find out if anyone else is experiencing this, especially on other models. Both threads have been unlocked now by the mods and are showing up. PS: I have compared our minidumps, looks like the same problem according to the addresses. |
I have replied to your thread! It's good to see progress on this issue. It would be nice if I could leave the fingerprint sensor on while developing android 😄 |
Yeah, other people have replied too and it seems like the XPS 15 9570 is also affected. |
I can confirm XPS 15 9570 with i7-8750h (win10 1803 (build 17134)) is affected by this bug too. Very frustrating. |
It's good to see someone from Dell support reply to the English thread, although he is not yet able to reproduce the BSOD. We managed to find an 8th-gen Core laptop with a different fingerprint sensor vendor: it's a Lenovo Ideapad 720S, with Core i7-8550U CPU, Synaptics fingerprint sensor (Synaptics WBDI - SGX as shown in Device Manager), and Windows 10 v1803. Tried the repro steps from @stozk , issue not reproduced. The Synaptics device is not integrated into the laptop's power button. If anyone else is able to reproduce this issue with a non-Goodix fingerprint sensor, please let us know. |
Dell was now able to reproduce the error on their XPS13 9370 i7 CPU device on Windows 10 1803: |
I did not reproduced this error on Huawei Laptop. Software: Actions: |
"memory_corruption ( nt!MiDeleteEnclavePages+96 ) " called by "sgx_destroy_enclave", called by Goodix driver or Huawei App MBAMessageCenter.exe. |
@ThomasTangShiMing Thanks for the idea. But if you watch the video that @stozk posted on the Dell forum: https://photos.app.goo.gl/nAAdhMHvyjJfSm9W8 he was able to reproduce the BSOD without ever putting his laptop to sleep. So presumably the system never leaves the ACPI S0 state? Actually, we've received an important piece of information from another Intel team, and can now investigate this issue from HAXM side. I'll post a more detailed update tomorrow. |
The tip we got from the other Intel team is that, HAXM has probably done something that causes SGX to be disabled. Then, any attempt to use SGX without first making sure it's enabled will fail. Because only the Windows kernel can run SGX instructions (EDIT: in fact a few SGX instructions are not privileged and thus can be used by applications), such a failure will result in a kernel bug check, i.e. BSOD (EDIT: in case an application executes an SGX instruction when SGX is disabled, the application will crash). We have identified the HAXM code that interferes with SGX. Basically, a bug in Right now we're running our tests on a Dell Inspiron laptop that lacks a fingerprint sensor, so we can't reproduce the BSOD. However, our system can reproduce the following behavior (which is a result of the said HAXM bug) consistently:
where I've built it using mingw64 gcc: test-sgx.zip Could you guys also try the above steps and report back if you see the same behavior? Of course, you need to avoid BSOD at step 2, e.g. by not touching your fingerprint sensor, or just disabling it in Device Manager beforehand. |
I tried and see the same behavior,this is the outputs: |
I observed the same behaviorWith fingerprint sensor disabled, before running AVD:
After running avd:
|
The guest MSR state area (vcpu_t::gstate::gmsr) is never explicitly initialized, but is only filled with zeros by vCPU initialization code. In some cases, this leads to the wrong MSR being cleared by load_guest_msr() at the first VM entry, which in turn causes SGX to be accidentally disabled, and ultimately a BSOD on recent Windows 10 laptops where SGX is enabled and not supposed to be disabled by third-party software. Explicitly initialize gmsr in vcpu_init(). Also move the logic for initializing the guest IA32_APIC_BASE MSR into this function. Fixes #55, fixes #68.
@pacemoan @AradiPatrik Thanks a lot! I've fixed the SGX getting accidentally disabled issue, and I want to ask for your help to verify that this patch also fixes the BSOD (I'm now pretty confident that it does). However, we're having problem getting our latest Windows driver build signed (Windows 10 drivers must be digitally signed by Microsoft). Hopefully we'll receive the signed driver binary from Microsoft tomorrow morning. |
Wow, great to hear! I will be sure to check it out when it arrives. |
Great,can't wait to.Thanks for the support. |
We have built a temporary installer haxm-windows_v7_2_55.zip for testing #68. Note that this is not a formal release and has not been well tested. Just for verification and expect your feedback. |
I just tested this new version,no bsod happened on my laptop when i putted it off or restarted or putted it to sleep,and no other error showed up.My laptop model is Huawei Matebook X Pro(i5-8250u+MX150+Goodix FP). |
Awesome, thank you! Please feel free to use this HAXM build until we roll out a new formal release :-) |
It works! Installed temporary build, enabled fingerprint sensor, and no BSOD after going to sleep, after working with AVD. |
Glad to hear that! Could you update the discussion thread on the Dell forum? I think there are a few other affected users there who may not be watching this GitHub issue. |
Looks like Dell/Goodix were also active, I just got a driver update for the fingerprint reader. |
I read through this issue: #55 and did the suggested fix listed there, but I think in my case something else causes the problem.
Please help.
BSOD info:
OS: Windows 10 pro,
CPU: Intel i7 8550U @ 1.8GHz
HAXM: 7.2.0
AVD: Nexus 5X API 25, Android 7.1.1 Google Play, CPU/ABI x86 (these are the defaults)
( I am on a dell xps 13 9370 uhd model )
link to my dump file: https://drive.google.com/open?id=1AJYcjimewO_9lkzYR3-SuXp-6ZQUj3Mm
Thank you for your support in advance.
The text was updated successfully, but these errors were encountered: