Skip to content
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

Unreal exception while running AirSim #701

Closed
FSTDriverless opened this issue Dec 21, 2017 · 10 comments
Closed

Unreal exception while running AirSim #701

FSTDriverless opened this issue Dec 21, 2017 · 10 comments

Comments

@FSTDriverless
Copy link

We've encountered with the exception attached as a photo below:
error-again

We are not sure it is caused by AirSim but until now it only happened after running with AirSim for several hours - happened several times in the past few days , we couldn't identify yet if there is a specific action that causes it. Have you encountered this problem before?

@sytelus
Copy link
Contributor

sytelus commented Dec 22, 2017

Could you please post call stack? Where the code is breaking? Also how you have been running AirSim? In recording mode or when calling APIs?

@FSTDriverless
Copy link
Author

Sorry for the late response - it took a few days but the exception happened again. I couldn't figure out where the code is breaking. It is breaking while we are using AirSim with the API. Here is all the relevant data i could gather. If anything is missing please let me know.

diagnostictools
callstack
pdb

@FSTDriverless
Copy link
Author

Now it happens every time we leave the Unreal window. The last time it showed some more details so I upload two more photos:
exception2
exception1

It seems like the exception was generated by RenderRequest.cpp - I was stopped at line 134.

@sytelus
Copy link
Contributor

sytelus commented Dec 29, 2017

Could you please provide information on what exactly you are doing? Are you pressing recording button and then pressing ESC key? Are you running any Python script? What is the version of Unreal Engine are you using? Please provide as much information as you can so we can reproduce this issue.

@FSTDriverless
Copy link
Author

We are running a modified python script based on the DQN_car.py you provided. The exception occurs when we leave the unreal window (without ending the session or the script) and do something in the background. While we are inside the Unreal window the exception never occurs. Our unreal version is 4.17.2.

@sytelus
Copy link
Contributor

sytelus commented Dec 30, 2017

When you say "leaving Unreal window", do you mean you switch to different window or that do you press ESC key? Does this happen consistently every time?

There is one known issue with recording functionality in 4.17 so I would suggest to use 4.16 for now.

Another thing to try is uncheck "Use less CPU in background" setting. See the details here.

@FSTDriverless
Copy link
Author

FSTDriverless commented Dec 30, 2017

I meant switch to a different window. It doesn't happen every time - it mostly happens after a several hours of work with the Unreal and the python script running combined. I will try using 4.16 and update again later, thank you.

@cangokalp
Copy link

[I'm on the 4.16 - and that setting is unchecked] I'm experiencing the same problem. For me the error occurs pretty much randomly - sometimes after 2 hours sometimes after 10 hours of training.

@FSTDriverless
Copy link
Author

I've noticed the exception is thrown all the time in the RenderRequest.cpp so I wrapped the all thing in a try-catch block and it doesn't happen anymore. Unreal doesn't get stuck anymore either. It's a temporary patch that works well for me now - but I thought you should know, it looks like the source of our problem.

@msb336
Copy link
Contributor

msb336 commented Oct 2, 2019

This may have been caused by a race condition that was fixed in this pr. Please re-open if you are still experiencing this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants