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

Error when running examples/python/basic.py #472

Open
BolunDai0216 opened this issue Nov 18, 2020 · 4 comments
Open

Error when running examples/python/basic.py #472

BolunDai0216 opened this issue Nov 18, 2020 · 4 comments
Assignees

Comments

@BolunDai0216
Copy link

When running examples/python/basic.py the following error message appears:

vizdoom: /build/openal-soft-gstqns/openal-soft-1.19.1/Alc/filters/filter.c:25: BiquadFilter_setParams: Assertion `gain > 0.00001f' failed.
Traceback (most recent call last):
  File "basic.py", line 99, in <module>
    game.init()
vizdoom.vizdoom.ViZDoomErrorException: Unexpected ViZDoom instance crash.

Can anyone help me figure out what the issue is? Thanks!

ViZDoom Version: 1.1.8
OS: Ubuntu 20.04.1 LTS (GNU/Linux 5.4.0-52-generic x86_64)
Python: 3.8.5
The installation is smooth, except I was not able to install Julia.
I did not see a vizdoom-crash.log file, should it be in the same directory where I executed the command python3 basic.py?

@Miffyli
Copy link
Collaborator

Miffyli commented Nov 18, 2020

Try commenting out this line. It seems the error stems from audio library, which is not very essential to the use of ViZDoom (only if you want humans to play the game with sound enabled).

@BolunDai0216
Copy link
Author

Try commenting out this line. It seems the error stems from audio library, which is not very essential to the use of ViZDoom (only if you want humans to play the game with sound enabled).

Thanks! It works now!

@mwydmuch
Copy link
Member

I commented this line in basic.py, since it is also present on my instance of Ubuntu 20.04... I will investigate it later, lets keep this issue open for tracking purposes. Thank you @BolunDai0216 for reporting the problem.

@mwydmuch mwydmuch reopened this Nov 18, 2020
@mwydmuch mwydmuch self-assigned this Nov 18, 2020
@mwydmuch mwydmuch added this to the 1.1.9 milestone Nov 18, 2020
@Miffyli
Copy link
Collaborator

Miffyli commented Mar 15, 2021

@mwydmuch

I am currently working on digging into this (see some relevant discussions I found with googling below).
As far I can see the issue does not directly come from ViZDoom but one of the libraries used by ViZDoom. Judging by comments below upgrading to OpenAL 1.20 could helpl, but I am not sure if this is doable (my C/C++ skills are too narrow for that).

This issue does not appear if you try to launch vizdoom binary with the arguments set by Python (but then again, it instantly fails on failed shared buffers and whatnot).

Regarding this, I tried to compile one of the C++ examples to have one, neat binary I could debug through to dig deeper but I can not get examples to compile (I get `undefined reference to 'dladdr'). Could you take a look at this if it is bug in the repo code or in my end?

Issue where 1.20 might have been the solution: kcat/openal-soft#339
A round-about solution about disabling EFX (but might not be possible here): naev/naev#806

@mwydmuch mwydmuch removed this from the 1.1.9 milestone Jan 8, 2023
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

3 participants