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

basic example crashing #409

Open
semihcanturk opened this issue Oct 2, 2019 · 6 comments
Open

basic example crashing #409

semihcanturk opened this issue Oct 2, 2019 · 6 comments

Comments

@semihcanturk
Copy link

After pip installing ViZDoom as instructed, I'm getting the following error when running the basic.py example:

(base) Semihs-MBP:python semo$ python basic.py
libc++abi.dylib: terminating with uncaught exception of type boost::interprocess::lock_exception: boost::interprocess::lock_exception
Traceback (most recent call last):
  File "basic.py", line 99, in <module>
    game.init()
vizdoom.vizdoom.ViZDoomErrorException: Unexpected ViZDoom instance crash.

No crash log was generated.

Versions

vizdoom-1.1.8
macOS 10.14.6
Python environment

How can I get around this? Thanks in advance!

@mihahauke
Copy link
Collaborator

What is your version of boost (and prefereably all libs that are needed by vizdoom) ?

@semihcanturk
Copy link
Author

boost 1.71.0
cmake 3.14.3
clang 11.0.0
sdl2 2.0.10
julia 1.2.0

@Tie-1
Copy link

Tie-1 commented Mar 24, 2022

After pip installing ViZDoom as instructed, I'm getting the following error when running the basic.py example:

(base) Semihs-MBP:python semo$ python basic.py
libc++abi.dylib: terminating with uncaught exception of type boost::interprocess::lock_exception: boost::interprocess::lock_exception
Traceback (most recent call last):
  File "basic.py", line 99, in <module>
    game.init()
vizdoom.vizdoom.ViZDoomErrorException: Unexpected ViZDoom instance crash.

No crash log was generated.

Versions

vizdoom-1.1.8 macOS 10.14.6 Python environment

How can I get around this? Thanks in advance!

@semihcanturk Hi, semihcanturk! I met the same problem, have you solved it? Can you give me some advice?

@Miffyli
Copy link
Collaborator

Miffyli commented Mar 24, 2022

@hzt-1999 can you provide more information on what are you trying to run (code) and what is your system (os, version, python version, vizdoom version, etc).

@Tie-1
Copy link

Tie-1 commented Mar 24, 2022

OS: Ubuntu20.04 LTS
python: 3.6.15
vizdoom: 1.1.11
basic.py: https://github.com/mwydmuch/ViZDoom/blob/master/examples/python/basic.py

Errors:
libc++abi.dylib: terminating with uncaught exception of type boost::interprocess::lock_exception: boost::interprocess::lock_exception
Traceback (most recent call last):
File "basic.py", line 99, in
game.init()
vizdoom.vizdoom.ViZDoomErrorException: Unexpected ViZDoom instance crash.

Thank you!

@Miffyli
Copy link
Collaborator

Miffyli commented Mar 24, 2022

Hmm that one is tricky, as it seems to stem from the Boost library :s. I assume you installed the dependencies with the command from tutorials (the long list of apt get installs)? If not, could you try doing it with that?

If that fails, you could try the conda way which installs boost libraries from conda repos.

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

No branches or pull requests

4 participants