Closed KzZheng closed 3 years ago
Additionally, I can headless run the examples in the PyRep.
Hi. That’s very strange that you don’t get this error when running PyRep, as the error seems to happen when starting CoppelisaSim. What PyRep example have you tried running? What are the full commands that you run for both PyReop and RLBench?
Hi. That’s very strange that you don’t get this error when running PyRep, as the error seems to happen when starting CoppelisaSim. What PyRep example have you tried running? What are the full commands that you run for both PyReop and RLBench?
I run example_batxter_pick_and_pass.py
, and I just change the headless=True in line 18. My command for RLbench is python ./examples/few_shot_rl.py
and python ./examples/example_baxter_pick_and_pass.py
for PyRep. They are both running in the same conda environment.
Thanks. This might sound strange, but could you go into the PyRep examples folder, and then run the example; I.e. python example_baxter_pick_and_pass.py
. I want to make sure you are using the installed PyRep package, and not the local one (./pyrep).
This error happens after env.launch()
. Actually, I think it happens in descriptions, obs = task.reset()
Thanks. This might sound strange, but could you go into the PyRep examples folder, and then run the example; I.e.
python example_baxter_pick_and_pass.py
. I want to make sure you are using the installed PyRep package, and not the local one (./pyrep).
I run this command, and this is what I get:
Planning path for left arm to cup ...
Executing plan ...
Planning path closer to cup ...
Traceback (most recent call last):
File "/home/kaizhi/.conda/envs/rlbench_env/lib/python3.7/site-packages/pyrep/robots/arms/arm.py", line 381, in get_nonlinear_path
max_configs, distance_threshold, max_time_ms, relative_to)
File "/home/kaizhi/.conda/envs/rlbench_env/lib/python3.7/site-packages/pyrep/robots/arms/arm.py", line 157, in solve_ik_via_sampling
'Could not find a valid joint configuration for desired '
pyrep.errors.ConfigurationError: Could not find a valid joint configuration for desired end effector pose.
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "example_baxter_pick_and_pass.py", line 42, in <module>
quaternion=waypoints[1].get_quaternion())
File "/home/kaizhi/.conda/envs/rlbench_env/lib/python3.7/site-packages/pyrep/robots/arms/arm.py", line 447, in get_path
relative_to)
File "/home/kaizhi/.conda/envs/rlbench_env/lib/python3.7/site-packages/pyrep/robots/arms/arm.py", line 383, in get_nonlinear_path
raise ConfigurationPathError('Could not create path.') from e
pyrep.errors.ConfigurationPathError: Could not create path.
QMutex: destroying locked mutex
Ah, that’s helpful info (about it happening after the launch). So that makes me think that it’s rendering is the issue. Which would explain why PyRep examples work.
It might be helpful if we look at the CoppeliaSim output when it launches, as you might be missing some packages. Can you navigate to your CoppelaiSim home and run ./coppeliaSim.sh and then paste the full output please.
Ah, that’s helpful info (about it happening after the launch). So that makes me think that it’s rendering is the issue. Which would explain why PyRep examples work.
It might be helpful if we look at the CoppeliaSim output when it launches, as you might be missing some packages. Can you navigate to your CoppelaiSim home and run ./coppeliaSim.sh and then paste the full output please.
I'm running on a server without a monitor, so I don't if it will cause the problem. Here is it,
[CoppeliaSimClient] loading the CoppeliaSim library...
[CoppeliaSimClient] done.
[CoppeliaSimClient:loadinfo] launching CoppeliaSim...
[CoppeliaSim:loadinfo] CoppeliaSim V4.1.0., (rev. 1), flavor: 1
[CoppeliaSim:loadinfo] Legacy machine ID: 5000-9DEB-FFC4-9CEC-F7E3-841D
[CoppeliaSim:loadinfo] Machine ID: 9757-3B4E-5442-0000-8289-0101
[CoppeliaSim:loadinfo] using the default Lua library.
[CoppeliaSim:loadinfo] loaded the video compression library.
[CoppeliaSim:loadinfo] if CoppeliaSim crashes now, try to install libgl1-mesa-dev on your system:
>sudo apt install libgl1-mesa-dev
Error: signal 11:
/home/kaizhi/Documents/CoppeliaSim_Edu_V4_1_0_Ubuntu20_04/libcoppeliaSim.so(_Z11_segHandleri+0x30)[0x7f5a35b5bae0]
/lib/x86_64-linux-gnu/libc.so.6(+0x46210)[0x7f5a38a66210]
/lib/x86_64-linux-gnu/libc.so.6(+0x18b675)[0x7f5a38bab675]
/home/kaizhi/Documents/CoppeliaSim_Edu_V4_1_0_Ubuntu20_04/libcoppeliaSim.so(_Z15initGl_ifNeededv+0x11c)[0x7f5a35d01cac]
/home/kaizhi/Documents/CoppeliaSim_Edu_V4_1_0_Ubuntu20_04/libcoppeliaSim.so(_ZN11CMainWindowC2Ev+0x61d)[0x7f5a35fda90d]
/home/kaizhi/Documents/CoppeliaSim_Edu_V4_1_0_Ubuntu20_04/libcoppeliaSim.so(_ZN3App16createMainWindowEv+0x71)[0x7f5a35cf2531]
/home/kaizhi/Documents/CoppeliaSim_Edu_V4_1_0_Ubuntu20_04/libcoppeliaSim.so(_Z24simRunSimulator_internalPKciPFvvES2_S2_iS0_b+0x475)[0x7f5a35b70fe5]
/home/kaizhi/Documents/CoppeliaSim_Edu_V4_1_0_Ubuntu20_04/libcoppeliaSim.so(simRunSimulatorEx+0x13)[0x7f5a35b59493]
/home/kaizhi/Documents/CoppeliaSim_Edu_V4_1_0_Ubuntu20_04/coppeliaSim(+0x2ad6)[0x55e0a3882ad6]
/home/kaizhi/Documents/CoppeliaSim_Edu_V4_1_0_Ubuntu20_04/coppeliaSim(+0x251c)[0x55e0a388251c]
If you read the output it tell you what to do 😄
if CoppeliaSim crashes now, try to install libgl1-mesa-dev on your system:
>sudo apt install libgl1-mesa-dev
Besides, I already run sudo apt install libgl1-mesa-dev
. It didn't solve the problem
Are you able to run glxgears? This is a good way of debugging on a server.
If you read the output it tell you what to do smile
if CoppeliaSim crashes now, try to install libgl1-mesa-dev on your system: >sudo apt install libgl1-mesa-dev
Yes. I already run it. Here are my results:
Reading package lists... Done
Building dependency tree
Reading state information... Done
libgl1-mesa-dev is already the newest version (21.0.3-0ubuntu0.3~20.04.3).
libgl1-mesa-dev set to manually installed.
0 upgraded, 0 newly installed, 0 to remove and 138 not upgraded.
Are you able to run glxgears? This is a good way of debugging on a server.
Here is the output of glxgears:
X Error of failed request: BadValue (integer parameter out of range for operation)
Major opcode of failed request: 151 (GLX)
Minor opcode of failed request: 3 (X_GLXCreateContext)
Value in failed request: 0x0
Serial number of failed request: 32
Current serial number in output stream: 33
Thank you. So this is neither a PyRep or RLBench issue, but rather something is not setup correctly on your machine for correct rendering. One you get glxgears working, PyRep and RLBench should then also work.
I Googled your error; perhaps this thread can help: https://askubuntu.com/questions/893922/ubuntu-16-04-gives-x-error-of-failed-request-badvalue-integer-parameter-out-o
Thanks! I will check that.
I had the exact same problem. How did you solve it?
Thanks. This might sound strange, but could you go into the PyRep examples folder, and then run the example; I.e.
python example_baxter_pick_and_pass.py
. I want to make sure you are using the installed PyRep package, and not the local one (./pyrep).
Excuse me, may I ask a question?I have a signal 11 same to the author.And when I run the '`python example_baxter_pick_and_pass.py' in the PyRep, I have a warning in the CoppeliaSim, like "Could not find or correctly load the video compression library". In additional , I can also run the CoppeliaSim after closing this warning.How to solve it?
Hi, I'm using Ubuntu 20.04, Coppeliasim 4.1, and python 3.7.8 in an anaconda environment. When I try to run examples/few_shor_rl.py headless, I get this issue:
I also try to use VirtualGL. But I got another issue:
Here is my
nvidia-smi
:I wonder how can I fix this bug? This issue is the same as #139. Can you have a look? @stepjam