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

"vizdoom.vizdoom.ViZDoomErrorException: Buffers size mismatch" #179

Closed
Kingseso opened this issue Mar 26, 2017 · 9 comments
Closed

"vizdoom.vizdoom.ViZDoomErrorException: Buffers size mismatch" #179

Kingseso opened this issue Mar 26, 2017 · 9 comments
Labels

Comments

@Kingseso
Copy link

Hello,

I have been working with Vizdoom 1.1.0 (compiled Windows binary) on my Intel i7 core laptop running Windows 7 64-bit with Python 3.5.3 64-bit. I had no issues running the examples. I wanted to try a faster machine, so installed the Python 3.5.3 64-bit, along with Vizdoom 1.1.0 (compiled Windows binary) on my Windows 7-64 bit machine with a Intel Xeon CPU E5-2620 v3 @ 2.40GHz with 64GB of RAM.

I tried the basic.py example along with the other examples and I keep getting the following error:

D:\Users\Cecil\Programs\Python\Python35\python.exe D:/Users/Cecil/PycharmProjects/experiment_vizdoom/code/basic.py
Traceback (most recent call last):
File "D:/Users/Cecil/PycharmProjects/experiment_vizdoom/code/basic.py", line 91, in
game.init()
vizdoom.vizdoom.ViZDoomErrorException: Buffers size mismatch.

Has anyone come across this issue?

Regards,

Cecil

@mihahauke
Copy link
Collaborator

Does the Xeon machine run with gui (I don't even know if windows can run without it...)?

@Kingseso
Copy link
Author

Yes. A Xeon machine running Windows is no different than any other Intel Windows based machine in terms of the graphical interface.

@mwydmuch
Copy link
Member

mwydmuch commented Mar 28, 2017

Hello @Kingseso,
dose vizdoom.exe itself run correctly?
When running vizdoom.exe under library control, the console window (which shows up before the start of the game) should print something like this:

VIZ_ScreenInit: width: 640, height: 480, pitch: 640, format: CRCGCB
Resolution: 640 x 480

Are the values match in your case?

@Kingseso
Copy link
Author

Hello,

The vizdoom.exe does run correctly by itself. Under library control, both my computers (the Intel i7 and Xeon machine) shows the following:

image

There is nothing showing the message you stated above.

Regards,

Cecil

@Kingseso
Copy link
Author

Hello mwydmuch,

I solved the problem. The one note I did not mention because I didn't believe it was relevant (I was wrong) was I was doing a remote desktop into the Xeon machine from my laptop. I believe the remote desktop connection interferes with the screen buffer generated by Vizdoom. Everything runs fine now when I run basic.py or any other example on the Xeon machine without remote desktop.

Thanks for your help.

Regards.

Cecil

@mwydmuch
Copy link
Member

I'm glad you solved the problem, forgive that we weren't very helpful (we have little knowledge about things related to Windows, like this one).

@dabana
Copy link

dabana commented Nov 14, 2017

I get the same problem running VizDoom remotely on a headless (no screen) computer over Jupyter Notebook. At first I thought it was the remote Desktop instance that was interfering with VizDoom like Kingseso proposed, but I am pretty sure it has to do with the fact that I don't have a screen plug on the computer. Investigations going on ...

@dabana
Copy link

dabana commented Nov 14, 2017

Okai I have set up my Jupyter Notebook Server to automatically start when Windows boots up and I rebooted my computer and now it works. So Kingseso was write. I believe it has to do with the remote desktop changing some stuff in the screen buffer settings. These changes seem to be reverted back to normal when the computed is rebooted.

@wingless75
Copy link

wingless75 commented Nov 30, 2022

You can run vizdoom with the remote desktop.
Just check all available resolutions.
Modify code in basic.py and run.
=> game.set_screen_resolution(vzd.ScreenResolution.RES_640X480)
I can run vizdoom with RES_1280X800, RES_640X400.
=> game.set_screen_resolution(vzd.ScreenResolution.RES_640X400)
resolutions

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

No branches or pull requests

5 participants