-
Notifications
You must be signed in to change notification settings - Fork 7
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
Unsupported video mode: b' \x18\x00\xff\x00\xff\x00\xff\x00\xff\x10\x08\x00'
#2
Comments
I hacked in a |
Try 45c3117? |
Ah nice, will do now. |
Yeah don't think it fixed it. File "/home/goodboy/repos/asyncvnc/asyncvnc.py", line 295, in create
mode = video_modes[bytes(mode_data)]
KeyError: b'\x10\x10\x00\x01\x00\x1f\x00?\x00\x1f\x0b\x05\x00' like i said, just forcing |
That video mode uses 16 bits per pixel, which my code can't/won't support. It's different from your original exception! |
@barneygale yeah i haven't changed anything. you can see the command line i'm using. I suggest you run the If you don't expect that to work it'd be somewhat odd to me,
So i'm not sure what you'd like to do. I can put up my force mode PR and you can see it work? |
Since it seems not all video formats are correctly detected yet (eg. with `x11vnc` basic usage) this allows a user to force a video mode they know works if wanted. Pertains to #2.
Ahh ok I take it back, the latest error is actually from an I'm putting up a small test suite shortly that shows your current code works on a local server.
|
This is a small starter test suite which verifies basic connection and auth with a local `x11vnc` server run in a sub-process. Obviously the `x11vnc` program need to be installed locally for this suite to run. At the time of writing this test suite exemplifies the following issues: - barneygale#1 - barneygale#2 Further work to put this into CI is not included here but is highly recommended ;)
I'm not convinced that the X11 server tells you it's using 16-bit pixels, and then proceeds to send 32-bit pixels; such a thing is an obvious protocol error that would break any VNC client. 16 bits rgb pixels aren't supported because numpy doesn't support any sub-byte packings. Force the VNC server to use true colour if you need to. |
Yeah I have no clue, not my area of knowledge whatsoever 😂 @barneygale see the test suite in #4 - pretty sure the problem is still there on a plain old server even on 45c3117 history. |
Could you try latest main? |
@barneygale for sure, but all you need to do is run that test suite to check 😉 |
tests/test_x11vnc.py::test_basic_connection_maybe_auth[password=None-force_vid=None] PASSED [ 25%]
tests/test_x11vnc.py::test_basic_connection_maybe_auth[password=None-force_vid=rgba] PASSED [ 50%]
tests/test_x11vnc.py::test_basic_connection_maybe_auth[password=doggy-force_vid=None] PASSED [ 75%]
tests/test_x11vnc.py::test_basic_connection_maybe_auth[password=doggy-force_vid=rgba] PASSED [100%]
====================================================================== 4 passed in 5.28s ====================================================================== Nice work friend! |
So I think getting that test suite in would be super duper slick 😉 |
Since it seems not all video formats are correctly detected yet (eg. with `x11vnc` basic usage) this allows a user to force a video mode they know works if wanted. Pertains to #2.
This is a small starter test suite which verifies basic connection and auth with a local `x11vnc` server run in a sub-process. Obviously the `x11vnc` program need to be installed locally for this suite to run. At the time of writing this test suite exemplifies the following issues: - barneygale#1 - barneygale#2 Further work to put this into CI is not included here but is highly recommended ;)
This is a small starter test suite which verifies basic connection and auth with a local `x11vnc` server run in a sub-process. Obviously the `x11vnc` program need to be installed locally for this suite to run. At the time of writing this test suite exemplifies the following issues: - barneygale#1 - barneygale#2 Further work to put this into CI is not included here but is highly recommended ;)
This is a small starter test suite which verifies basic connection and auth with a local `x11vnc` server run in a sub-process. Obviously the `x11vnc` program need to be installed locally for this suite to run. At the time of writing this test suite exemplifies the following issues: - barneygale#1 - barneygale#2 Further work to put this into CI is not included here but is highly recommended ;)
Yup resolved in afbdf1d 🏄🏼 |
When running the following script against the following server command:
x11vnc -display :0 -noipv6 -forever -noxdamage -ncache_cr
target script:
output error:
Feels like a full "system test" where you spawn
x11vnc
and run a client against it would be handy 😄The text was updated successfully, but these errors were encountered: