ViZDoom icon indicating copy to clipboard operation
ViZDoom copied to clipboard

Error when running examples/python/basic.py

Open BolunDai0216 opened this issue 4 years ago • 4 comments

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?

BolunDai0216 avatar Nov 18 '20 13:11 BolunDai0216

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).

Miffyli avatar Nov 18 '20 13:11 Miffyli

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!

BolunDai0216 avatar Nov 18 '20 16:11 BolunDai0216

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 avatar Nov 18 '20 16:11 mwydmuch

@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: https://github.com/kcat/openal-soft/issues/339 A round-about solution about disabling EFX (but might not be possible here): https://github.com/naev/naev/issues/806

Miffyli avatar Mar 15 '21 20:03 Miffyli