-
Notifications
You must be signed in to change notification settings - Fork 628
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
(bug) Stack Overflow Exception occurs in GameWindow after about 387,000 loops when running on x86 #1582
Comments
Yeah I think we've seen this error pop up before when running OpenTK in 32-bit mode. I don't remember the exact issue, but it's likely some issue related to interop. I'll try look up the issues this has been mentioned in and link them here. |
It seems like I'm unable to reproduce this bug. I'm running the repro you provided as a 32-bit application and it seems to be running fine. If you have any more information that could help to diagnose the issue that would be great. |
I was able to reproduce this bug on my machine and it happens relatively quickly when running. I am on 64-bit Windows 10 compiling as 32-bit. I seem to get different stack traces depending on whether or not I have a controller plugged in but the thrown error is the same. Attached are both stack traces I was able to obtain using identical source code as the provided picture, although the error seems to still happen if VSync is enabled. Update: Something else to note is I tried running |
@Avibah What version of |
@NogginBops Doing so printed this: |
This issue is still at large and no further info has been collected. It's likely some native interop where the ABI doesn't match 100% while running the application as a 32-bit application. I can't reproduce the issue so not sure what to do here. Postponing this to |
As nothing has happened with this issue I'm going to more this for |
Maybe #1494 is where this was seen before? I couldn't reproduce this, either. I used the very simple LocalTest project in the repository, at various times running a release build, a stand-alone debug build, and debug in VS2022 (v17.7.4). I added a frame counter so I could keep track, and let it loop for very long periods of time all morning while I worked on other things. Some tests ran for more than ten million frames. Same GLFW version string mentioned above, and .NET 6.0.317, Win11 22H2, NVIDIA driver 531.79. |
I'm likely going to more this issue to OpenTK |
Moving this to |
Description
Stack Overflow Exception occurs in GameWindow after about 387,000 loops when running on x86.
It seems that this issue does not occur on x64.
Repro steps
Minimal code:
Expected & Actual behavior
The program will crash with a Stack Overflow Exception after about 387,000 loops.
(This could take about 10~100 seconds, depending on the speed of your system.)
Related information
The exact same issue occurred every time I tried it, on at least 2 computers (desktop and laptop).
The text was updated successfully, but these errors were encountered: