[1.1.4] Linux: vncStart: odd looking screenshots and image not found

Asked by lyukun on 2019-03-27

Below my script:
##############################################
from sikuli import *
from image import *
scr = vncStart("192.168.124.149",5900,10,1000)
sleep(2)
scr. click(image_button)
#screenshot = scr.capture()
#screenshot.save("/tmp/")
##############################################

The image_button can't be found. When I use “scr.capture()“ to capture and save the screenshot, I found that the image was bad. There are many stripes on the picture. It's only 80Kb in size.
Using the Linux screenshot command, the original image size should be about 2M

How to set up VNC(vncStart) to use the original image?

Siculix 1.1.4
OS Ubuntu 18.04

Thsnks

Question information

Language:
English Edit question
Status:
Solved
For:
Sikuli Edit question
Assignee:
No assignee Edit question
Solved by:
RaiMan
Solved:
2019-04-16
Last query:
2019-04-16
Last reply:
2019-03-28
Best RaiMan (raimund-hocke) said : #1

You send me the odd looking screenshot and that was my answer:

Indeed: does not look like expected.

… but I cannot help you.
Looks like a problem with the FrameBuffer protocol (VNC internals).
No chance for me to test or check anything, since I currently do not have any adequate environment.

Try with other settings of your VNC-server or another VNC server.

lyukun (lyukun) said : #2

Thanks RaiMan, that solved my question.