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

Controlled ViZDoom instance exited unexpectedly #430

Open
biggzlar opened this issue Feb 19, 2020 · 9 comments
Open

Controlled ViZDoom instance exited unexpectedly #430

biggzlar opened this issue Feb 19, 2020 · 9 comments

Comments

@biggzlar
Copy link

biggzlar commented Feb 19, 2020

Full error:

/home/anaconda3/envs/tf_gpu/lib/python3.6/site-packages/vizdoom/vizdoom: symbol lookup error: /home/anaconda3/lib/libpangoft2-1.0.so.0: undefined symbol: hb_font_set_variations
---------------------------------------------------------------------------
ViZDoomUnexpectedExitException            Traceback (most recent call last)
<ipython-input-3-76610cdaebbf> in <module>
----> 1 game.init()

ViZDoomUnexpectedExitException: Controlled ViZDoom instance exited unexpectedly.

Running:

  • Python 3.6.9 on a clean Anaconda3 environment
  • 16.04.1-Ubuntu

I found this older issue #34 mentioning the same error, the solution, however, never got published by the user.

@Miffyli
Copy link
Collaborator

Miffyli commented Feb 19, 2020

This error can stem from any number of causes, as it just generally means the vizdoom binary died all the sudden. Here are some suggestions that could work:

@biggzlar
Copy link
Author

Unfortunately not using anaconda is not an option for me. I ended up moving /home/anaconda3/lib/libpangoft2-1.0.so.0 to a temporary folder. It works without issue now.

@chongyi-zheng
Copy link

I have the same problem with python3.7.7 and vizdoom1.1.7, any update?

@Waterkin
Copy link

I have the same problem with python3.8.8 and vizdoom1.1.9, any update?

@Miffyli
Copy link
Collaborator

Miffyli commented Aug 21, 2021

@Waterkin Can you share more details?

  • Which code did you try to run?
  • What kind of system are you running (OS, library versions, etc)

@Waterkin
Copy link

@Miffyli I tried to import vizdoom in Pycharm on Mac, but the error indicated that I didn't download the .wad file.
And just now I successfully debuged it. I put freedoom1.wad to directory /Library/Application Support/(underline)vizdoom which I created.
The question is: the error told me to create a directory /Library/Application Support/vizdoom and the "underline" was not mentioned in the feedback.
Except for this, Python 3.8.8 vizdoom 1.1.8 cannot be opened in Pycharm or Console on Mac as it said "The interpreter is 3.8.8 but the interpreter vizdoom was compiled with was 3.8.5".

@Miffyli
Copy link
Collaborator

Miffyli commented Aug 21, 2021

Ah gotcha! Sadly I am not a mac person so can not comment on the bugs too much (sounds like you found something that needs to be better documented, so a PR to adjust for that would be very welcome!)

The pre-compilation thing is a known-ish issue: the pre-built binaries only work on a very specific version of Python. On Mac and Linux I highly recommend building the packages yourself: https://github.com/mwydmuch/ViZDoom/blob/master/doc/Building.md#macos_build . Make sure the interpreter used by pycharm is the same you installed vizdoom on.

@Waterkin
Copy link

Ok thanks a lot. I am still learning to use Github. Happy to PR for that.

@mwydmuch
Copy link
Collaborator

Hi @Waterkin, could you tell me how have you installed ViZDoom? From source? Using pip install? And how are you trying to import it? There is no precompiled version of ViZDoom for Mac,pip install basically builds it using available Python and C++ compiler during the setup.

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

5 participants