Mujoco-py: Segmentation fault in MjViewer()

Created on 3 Jul 2017  路  6Comments  路  Source: openai/mujoco-py

I installed version 1.50.1.0 on Ubuntu 14.04 using Python 3.5.

Houever, when I tried examples/ programs, I got
running build_ext
Creating window glfw
Segmentation fault.

So I tried examples/disco_fetch.py line by line on IPython, but similarly, I got segmentation fault in "viewer = MjViewer(sim)" line.

I think this is the trouble of mujoco-py.MjViewer().
I'm investigating the cause, but I share the problem for the moment.

Most helpful comment

I don't think it is the problem. Because the mujoco runs well in c++. This only happens on mujoco_py

All 6 comments

Yeah, that's probably a bug in Linux build and I guess they are working on it. You can track the progress here

I also meet with this problem.
And the same time I can not pass the pytest for the following reasons:
running build_ext
[ [V: not found
sh: 2: [
: not found
[ [V: not found
sh: 2: [
: not found
[ [V: not found
sh: 2: Syntax error: "(" unexpected
[ [V: not found
sh: 2: Syntax error: "(" unexpected
ERROR: Invalid activation key

I don't why is it. where should the mjkey.txt be put? Mujoco and glfw work fine, and there is a segmentation fault in mujoco_py.MjViewer()

@touching-foots-huskie I encountered the same problem. It's either because you are using older version of Mujoco, or the key that you are using is for different PC or OS. Remember that you need to register the _Mujoco and your PC_ in order to use it.
So if you use a key from other OS (even from same PC), it wont work.
TL;DR
Request for another key for different OS or PC (if in case) or upgrade your Mujoco to 1.5

I don't think it is the problem. Because the mujoco runs well in c++. This only happens on mujoco_py

Hi, i tried everything but not able to get mujoco_py to work. i am using ubuntu 14.04 with a python3.5 virtualenv.

I also have this problem, and after running gdb, here's the error message
Creating window glfw
Program received signal SIGSEGV, Segmentation fault.
0x00007fffedd4228e in glGetString () from /usr/lib/x86_64-linux-gnu/libOSMesa.so.6

Was this page helpful?
0 / 5 - 0 ratings