-
Notifications
You must be signed in to change notification settings - Fork 18
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
WinHvPlatform.dll crashes Obliteration when pressing Start on any game. #914
Comments
This will be a joy to debug 💀 |
And I can't help but feel like Ultima removed the log file being in appdata... |
|
Can you identify which line that cause this error? |
@ultimaweapon GOTCHA
Here; |
I have no idea what causing segmentation fault here. We probably need someone with Windows to fix this. |
Deduction here: self.part, unless cloned, println!'d, or otherwise affected before being used by WHvGetVirtualProcessorRegisters... Will be free'd before WHvGetVirtualProcessorRegisters can use it, causing a Memory Access Violation. |
That makes no sense I think |
It's what happens, however... The value is getting dropped for SOME reason unless I use something to make it active in the function before WHvGetVirtualProcessorRegisters uses it... |
But that doesn't make sense. You can't 'drop' an int. |
And I find it weird that if I do |
That why we need to figure out why it is crashing because your fix does not make sense. |
Welllll, have fun with Miri https://github.com/rust-lang/miri |
@VocalFan you can set a breakpoint on that line and view its assembly once the breakpoint are hit to see how it calls the function? |
This is for self.part and self.index |
|
No idea what wrong here since everything looks okay. |
Maybe a bug with windows-sys? |
Everything here looks correctly so no. Seems like I need to set up a Windows machine to figure out. |
Gonna see if this magically got fixed |
But I think that might be a hint, the unaligned address. |
Faulting application name: Obliteration.exe, version: 0.0.1.0, time stamp: 0x66aa766c
Faulting module name: WinHvPlatform.dll, version: 10.0.22621.3672, time stamp: 0xb628bb33
Exception code: 0xc0000005
Fault offset: 0x00000000000076d7
Faulting application path: C:\Users\ghost\Downloads\obliteration-win-x64\Obliteration.exe
Faulting module path: C:\WINDOWS\SYSTEM32\WinHvPlatform.dll
The text was updated successfully, but these errors were encountered: