Pre-submission Checklist
Hexa.NET.ImGui Version
2.2.9
Bug Description
This is just a report for the future so someone else running into it doesn't get confused. I know you're busy and don't expect you to act on it or fix it any time soon.
In this repo is an ExampleSDL3OpenGL3. If this example is compiled with -r win-x86 or <RuntimeIdentifier>win-x86</RuntimeIdentifier>, it will only in Release mode fail with a spurious:
Unhandled exception. System.NullReferenceException: Object reference not set to an instance of an object.
at Program.<Main>$(String[] args) in D:\Hexa.NET.ImGui\Examples\ExampleSDL3OpenGL3\Program.cs:line 99
Core dump shows a nondescript access violation. It seems to occur at or around ImGuiImplOpenGL3.RenderDrawData, at which point I can no longer follow the trace due to lack of symbols.
This is not a bug specifically with the example, but generally somewhere in the OGL or SDL bits. Even if you strictly replicate the approach of the upstream ImGui SDL3+OGL3 example, it will fail in the same way. I used the same exact package versions as the example in my own project to ensure parity, and it reproduces with perfect reliability.
Example dump attached. ExampleSDL3OpenGL3.exe.16208.dmp
The issue does not recur with RID win-x64. I do not know whether it occurs on non-Windows RIDs.
Steps to Reproduce
- Clone
Hexa.NET.ImGui at tag v2.2.9.
- Set the RuntimeIdentifier to
win-x86.
- Run
ExampleSDL3OpenGL3 in Release.
- Kaboom.
Expected Behavior
No kaboom.
Platform
Windows
.NET Version
net9.0;net10.0
Pre-submission Checklist
Hexa.NET.ImGui Version
2.2.9
Bug Description
This is just a report for the future so someone else running into it doesn't get confused. I know you're busy and don't expect you to act on it or fix it any time soon.
In this repo is an
ExampleSDL3OpenGL3. If this example is compiled with-r win-x86or<RuntimeIdentifier>win-x86</RuntimeIdentifier>, it will only in Release mode fail with a spurious:Core dump shows a nondescript access violation. It seems to occur at or around
ImGuiImplOpenGL3.RenderDrawData, at which point I can no longer follow the trace due to lack of symbols.This is not a bug specifically with the example, but generally somewhere in the OGL or SDL bits. Even if you strictly replicate the approach of the upstream ImGui SDL3+OGL3 example, it will fail in the same way. I used the same exact package versions as the example in my own project to ensure parity, and it reproduces with perfect reliability.
Example dump attached. ExampleSDL3OpenGL3.exe.16208.dmp
The issue does not recur with RID
win-x64. I do not know whether it occurs on non-Windows RIDs.Steps to Reproduce
Hexa.NET.ImGuiat tag v2.2.9.win-x86.ExampleSDL3OpenGL3in Release.Expected Behavior
No kaboom.
Platform
Windows
.NET Version
net9.0;net10.0