Runtime crashes when first deselecting surface #14

Closed
opened 2023-07-05 22:05:39 +00:00 by ilidemi · 6 comments
Collaborator

Build with default (debug) configuration works 4/10 runs and silently crashes 6/10 with Windows Error Reporting kicking in. Once in a while there's an access violation crash with the message

Unhandled exception at 0x00007FF8D5924CD0 (igc64.dll) in orca.exe: 0xC0000005: Access violation executing location 0x00007FF8D5924CD0.

at graphics_surface.c:226
__mgSelectedSurface = mg_surface_nil();

Dump: https://cdn.discordapp.com/attachments/1126271320364167299/1126271700103876781/crash-debug.7z

Build with /O2 works 2/10 runs, sliently crashes 6/10 and does an access violation popup 2/10 and message

Unhandled exception at 0x0000014D177A8CB8 in orca.exe: 0xC0000005: Access violation executing location 0x0000014D177A8CB8.

at graphics_surface.c:226
__mgSelectedSurface = mg_surface_nil();

Dump: https://cdn.discordapp.com/attachments/1126271320364167299/1126271753593819236/crash-O2.7z

Debug build running on NVidia GPU sometimes has access violations with more interesting numbers. Possibly a memory error in Orca/Milepost itself?

Unhandled exception at 0x00000000FFFFFFFF in orca.exe.34608.dmp: 0xC0000005: Access violation executing location 0x00000000FFFFFFFF.

at graphics_surface.c:226
__mgSelectedSurface = mg_surface_nil();

Dump: https://cdn.discordapp.com/attachments/1126271320364167299/1126271719502516274/crash-debug-nvidia.7z

Build: orca superpong (4578c8d767) + milepost new_gl_canvas (1e34c3406f) https://cdn.discordapp.com/attachments/1126271320364167299/1126271640658006066/Pong.7z
Hardware: Dell XPS 15 9510
GPU: Intel UHD Graphics Xe 32EUs (Tiger Lake-H)
Driver version: 30.0.101.1404 (2/18/2022)
OS: Windows 10 Pro 21H2

Build with default (debug) configuration works 4/10 runs and silently crashes 6/10 with Windows Error Reporting kicking in. Once in a while there's an access violation crash with the message ``` Unhandled exception at 0x00007FF8D5924CD0 (igc64.dll) in orca.exe: 0xC0000005: Access violation executing location 0x00007FF8D5924CD0. at graphics_surface.c:226 __mgSelectedSurface = mg_surface_nil(); ``` Dump: https://cdn.discordapp.com/attachments/1126271320364167299/1126271700103876781/crash-debug.7z Build with /O2 works 2/10 runs, sliently crashes 6/10 and does an access violation popup 2/10 and message ``` Unhandled exception at 0x0000014D177A8CB8 in orca.exe: 0xC0000005: Access violation executing location 0x0000014D177A8CB8. at graphics_surface.c:226 __mgSelectedSurface = mg_surface_nil(); ``` Dump: https://cdn.discordapp.com/attachments/1126271320364167299/1126271753593819236/crash-O2.7z Debug build running on NVidia GPU sometimes has access violations with more interesting numbers. Possibly a memory error in Orca/Milepost itself? ``` Unhandled exception at 0x00000000FFFFFFFF in orca.exe.34608.dmp: 0xC0000005: Access violation executing location 0x00000000FFFFFFFF. at graphics_surface.c:226 __mgSelectedSurface = mg_surface_nil(); ``` Dump: https://cdn.discordapp.com/attachments/1126271320364167299/1126271719502516274/crash-debug-nvidia.7z Build: orca superpong (4578c8d767) + milepost new_gl_canvas (1e34c3406f) https://cdn.discordapp.com/attachments/1126271320364167299/1126271640658006066/Pong.7z Hardware: Dell XPS 15 9510 GPU: Intel UHD Graphics Xe 32EUs (Tiger Lake-H) Driver version: 30.0.101.1404 (2/18/2022) OS: Windows 10 Pro 21H2
Author
Collaborator

Small correction: NVidia dump is the one outputted by WER on silent crashes, without an access violation popup. Intel ones do that too but the addresses there still aren't as nice:

Unhandled exception at 0x00000185006BD820 in orca.exe.6384.dmp: 0xC0000005: Access violation executing location 0x00000185006BD820.
Small correction: NVidia dump is the one outputted by WER on silent crashes, without an access violation popup. Intel ones do that too but the addresses there still aren't as nice: ``` Unhandled exception at 0x00000185006BD820 in orca.exe.6384.dmp: 0xC0000005: Access violation executing location 0x00000185006BD820. ```
Collaborator

Oh, I can actually repro that one on my Bootcamp partition. I'll investigate this.

MBP 16' 2019
AMD Radeon Pro 5500M
Windows 10 Home 22H2

Oh, I can actually repro that one on my Bootcamp partition. I'll investigate this. MBP 16' 2019 AMD Radeon Pro 5500M Windows 10 Home 22H2
MartinFouilleul self-assigned this 2023-07-06 08:43:50 +00:00
Collaborator

Should be fixed in de5c74c607 (don't forget to git update submodule). This was me being dumb and forgetting to set a function pointer in wgl_surface.
Can you please confirm that this fixes it on your end?

Should be fixed in de5c74c607 (don't forget to `git update submodule`). This was me being dumb and forgetting to set a function pointer in `wgl_surface`. Can you please confirm that this fixes it on your end?
MartinFouilleul changed title from Win32 crashes on Intel and NVidia GPU to Runtime crashes when first deselecting surface 2023-07-06 13:15:44 +00:00
Author
Collaborator

Works 10/10 on Intel and NVidia!

Works 10/10 on Intel and NVidia!
Author
Collaborator

(btw, does the person who opened the issue close it or the one who fixed it?)

(btw, does the person who opened the issue close it or the one who fixed it?)
Collaborator

Works either way! I just awaiting your confirmation.

Works either way! I just awaiting your confirmation.
Sign in to join this conversation.
No Label
macOS
windows
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: hmn/orca#14
No description provided.