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
OpenTrack Crash on Startup #1661
Comments
I'm having trouble loading symbols for this minidump. Is this the version 2023.1.0? Since you're already using windbg, you can provide a backtrace on your own, using the win32-dbginfo package for the appropriate opentrack release.
This library is used internally by Windows Error Reporting, so this is after a crash already happened. |
Thanks for the info. Your help allowed me to remediate this issue using the win32-dbginfo package. Long story short: My PATH environment variable is greater than 2047 characters, which causes a stack buffer overrun exception that crashes the application. So the resolution is to shorten the path variable like so. Once the path variable is short enough so that it does not overrun when OpenTrack tries to add to it, the application opens successfully. Maybe worth handling this in the future or warning the user that the PATH variable is too large? Here's the details on how I got there if anyone is interested. Loading the trace file (with the symbols from the win32-dbginfo package) and running "!analyze -v". There are now references to "invalid_parameter" around a strcat_s function call. Looking in the source code, strcat_s is used one time in init.cpp in the method add_win32_path. That is also referenced in the stack. So the parameter passed to strcat_s (env_path) is invalid. My environment path variable is overflowing, which is why we see the c0000409 exception for stack buffer overrun.
|
Amazing. Thanks for diagnosing it. I'll be releasing a test build soon. Can you still reproduce the bug if you set the PATH to what it originally was? |
Yes I can, I'll keep and eye out for the new build and let you know the difference |
Try this: https://ananke.misaki.pl/opentrack/opentrack-test-20230527_01.7z The debug info is inside and this is a 32-bit build. |
Yeah it works as expected. I forced my PATH variable back to >2047 characters and then reproduced the original issue with the current release. Confirmed that this test build works with PATH variable >2047 characters. Nice! Thanks |
That's good to hear. Thanks for confirming it. |
Fixes: #1661 Reported, diagnosed and tested by: @wfurney13
Reference #1212 and #522, experiencing a similar issue with crashing on startup for multiple versions of opentrack. I have previously had Logitech software on the computer that has been removed. The process crashes with an exception code c0000409. I receive the same error with previous versions of OpenTrack as well:
WinDbg Results:
Looks like the exception is thrown when loading UMPDC.dll. Here are the results from running the exception analysis:
The text was updated successfully, but these errors were encountered: