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

segmentation fault while pystk.init(config) #38

Open
JonathanJao opened this issue Apr 21, 2022 · 1 comment
Open

segmentation fault while pystk.init(config) #38

JonathanJao opened this issue Apr 21, 2022 · 1 comment

Comments

@JonathanJao
Copy link

Describe the bug
Pystk throws a segmentation fault when calling pystk.init(config)

To Reproduce

Python 3.9.9 (main, Apr 16 2022, 15:43:56) 
[GCC 10.2.1 20210110] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import pystk
>>> 
>>> 
>>> config = pystk.GraphicsConfig.hd()
>>> config.screen_width = 800
>>> config.screen_height = 600
>>> pystk.init(config)
Segmentation fault

System information:
Verified occur on two systems:
First without dedicated graphics:

  • OS: Debian Linux 11
  • CPU: Intel Core i5-4590T
  • GPU: Mesa DRI Intel HD Graphics 4600

Second with dedicated graphics:

  • OS: Debian Linux 11
  • CPU: Intel Pentium
  • GPU: Nvidia GTX 1080 Ti

Additional context
pystk was installed with pip.
Another issue opened earlier: #33

@sttteephen
Copy link

I had this same issue and running the following command fixed it.

apt-get install -y libglu1-mesa-dev libgl1-mesa-dev libosmesa6-dev xvfb ffmpeg curl patchelf libglfw3 libglfw3-dev cmake zlib1g zlib1g-dev swig

I was following the gym installation steps from this page and I am not sure why it fixed it or which package was needed.

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

2 participants