-
-
Notifications
You must be signed in to change notification settings - Fork 412
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
makeAction() waits forever #261
Comments
Any code to reproduce?
…On 13 Oct 2017 4:31 p.m., "Shohei Ohsawa" ***@***.***> wrote:
The function "DoomGame::makeAction()" suddenly stalls after several
(100-500) steps performed.
I guess there is something infinite loop in advanceAction() such as
WaitForDoomWork() while makeAction is performing.
https://github.com/mwydmuch/ViZDoom/blob/6232e1770d1ae78a8da66e2fc7ceaa
0278c982cb/src/lib/ViZDoomGame.cpp#L160
https://github.com/mwydmuch/ViZDoom/blob/f8fc04e8590ffa7cb500e1dbfbdecb
6ffdcf3f9d/src/lib/ViZDoomController.cpp#L1060
But I don't know exactly what is the problem.
Here is the description of my implementation:
- Python 3
- Multi-agent environment (two agents connect to a same environment
simultaneously)
- RepeatFrames >= 3 (somehow it works if RepeatFrames <= 2)
- Health = 100% (perhaps, death is not a reason for stopping)
Does anyone have any idea for a solution?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#261>, or mute the thread
<https://github.com/notifications/unsubscribe-auth/AEuSHXNxMJajPPEmNLzEHr-jMbc5xDcGks5sr3Q9gaJpZM4P4k6L>
.
|
Sure. Here is the code to reproduce: The code is on a setting as same as the one which I mentioned in the issue above.
So, you can run it on python3. For example: Then get:
As you can see, the code stalls in The issue somehow depends on a parameter |
Just pitching in that it indeed gets stuck in same for me (Ubuntu 16.04, VizDoom 1.1.4, Python 3.5), but using (PS: You might want to use scenarios designed for multiplayer/deathmatch, such as "cig.cfg", just to make sure it is not the config/scenario breaking things up :) ) |
Hey, I'm going to close this issue since there haven't been any new updates ~8 years. If anyone has this bug again, please reply here or create a new issue :) |
The function "DoomGame::makeAction()" suddenly stalls after several (100-500) steps performed.
I guess there is something infinite loop in advanceAction() such as WaitForDoomWork() while makeAction is performing.
https://github.com/mwydmuch/ViZDoom/blob/6232e1770d1ae78a8da66e2fc7ceaa0278c982cb/src/lib/ViZDoomGame.cpp#L160
https://github.com/mwydmuch/ViZDoom/blob/f8fc04e8590ffa7cb500e1dbfbdecb6ffdcf3f9d/src/lib/ViZDoomController.cpp#L1060
But I don't know exactly what is the problem.
Here is the description of my implementation:
Does anyone have any idea for a solution?
The text was updated successfully, but these errors were encountered: