-
Notifications
You must be signed in to change notification settings - Fork 15
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
Segmentation fault #155
Comments
Hi, |
Hi, |
Hi, |
Thanks for your report. We will keep this issue open for now until we can find a better solution for wsl. |
I did have the stack trace available, just posting it here for reference. (gdb) run /home/leo/ipc2023/demo.py Thread 25 "python" received signal SIGSEGV, Segmentation fault. The demo code I ran is Wildfire, also posting it here. from pyRDDLGym import RDDLEnv ENV = 'Wildfire' get the environment infosEnvInfo = ExampleManager.GetEnvInfo(ENV) set up the environment class, choose instance 0 because every example has at least one example instancemyEnv = RDDLEnv.RDDLEnv(domain=EnvInfo.get_domain(), instance=EnvInfo.get_instance(0)) set up the environment visualizermyEnv.set_visualizer(EnvInfo.get_visualizer()) set up an example agetagent = RandomAgent(action_space=myEnv.action_space, num_actions=myEnv.numConcurrentActions) total_reward = 0 for step in range(myEnv.horizon): print("episode ended with reward {}".format(total_reward)) |
Thanks for the stack trace. Are you by any chance using a dedicated gpu (e.g. nvidia) and/or any graphical extension for wsl? This is almost surely a graphical/driver error with matplotlib/pil and wsl/wsl2. |
I do have nvidia gpu installed but I am not sure about wsl. I tried to print out the driver info and the results are in the following lspci |
Hi, We've investigated this and were able to reproduce the problem in WSL2 using hyper-v virtual machine. You can try updating drivers as suggested there, or (ideally) use a different vm (e.g. vmware) if you need visualization on linux. |
Thank you! |
Hi
I was trying to run the demo, the demo terminated with the following output.
episode ended with reward -24845.0
Segmentation fault
I am wondering how to solve the "Segmentation fault" part? I am using wsl2 with Ubuntu 20.04, is that related?
Thank you.
The text was updated successfully, but these errors were encountered: