-
Notifications
You must be signed in to change notification settings - Fork 55
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
Script crashes with exit status 3221225477 if iRacing hasn't been started once #4
Comments
I guess I may work around this issue by doing the HTTP request in my node application and not to include the irsdk-library until the sim "is running". I guess I'll give that a try so far. |
Just to let you know, polling the URL until "running:1" is returned just fixed my issue. I can delay the |
Actually, I was suspecting same, noticed it couple of days ago. Apparently I start sim at first almost always. I have only mini laptop until friday so I can´t test the fix myself. At least, it doesnt crash anymore when not having iRacing installed at all. If you want to try it, there is branch |
I will give it a try these days. |
The fix was working as expected so I released a patch. |
I can now confirm that you solved the issue. Thank you very much! :-) |
Hey, I recently got everything working with node-irsdk in electron. So far, so good. I first thought I set up my computer somewhat wrong (wrong MSVS version, missing an SDK, or so) but it seems to be another problem.
I have the reproducable error that happens when iRacing hasn't been started once on the machine.
The iRacing service is running after a fresh start / reboot, but the app immediately crashes without a stack trace or message and with exit status 3221225477.
After starting iRacing once, this issue doesn't occur anymore. I can even close iRacing and the app will start (but receive no data).
My wild guess: could it be that trying to access the shared memory map file (which doesn't exist if the sim hasn't been started at least once) let the library fail?
I've seen that Kutu does a little check on a local webserver whether the sim is running or not and only accesses the file if it is running. Maybe you could address this issue the same?
My C/C#/C++/Whatever skills are too bad thus I can't fix that myself :(
The text was updated successfully, but these errors were encountered: