Re: Using gtk-vnc with XenServer 6.2



It works for me with example gvncviewer if I disabled my implementation and only used ssh tunnel created by my app. But my implementation is rather simple and straightforward. I can't get what can cause such behavior. No cairo canvas is created for new XenServer 6.2
It must be my error but I can't get where.
GUI.vnc is GtkFrame with no childs

void vnc_open (char *vnc_port)
{
    GtkWidget *vnc;
    vnc = vnc_display_new();
   if(vnc_display_open_host(VNC_DISPLAY(vnc), "127.0.0.1", vnc_port))
   {
        vnc_check_and_close(GUI.vnc);
        vnc_display_set_keyboard_grab(VNC_DISPLAY(vnc), TRUE);
        vnc_display_set_pointer_grab(VNC_DISPLAY(vnc), TRUE);
        if (!gtk_widget_is_composited(GUI.main_window))
        {
            vnc_display_set_scaling(VNC_DISPLAY(vnc), TRUE);
        }
        g_signal_connect(vnc, "vnc-disconnected",
                         G_CALLBACK(vnc_disconnected), NULL);
        gtk_container_add(GTK_CONTAINER(GUI.vnc), vnc);
        gtk_widget_realize(vnc);
    }
}


On 09/27/2013 02:45 PM, Daniel P. Berrange wrote:
On Fri, Sep 27, 2013 at 02:02:02PM +0400, Pugnator wrote:
I use gtk-vnc in my program to interact with XenServer VMs via ssh
tunnel. All worked fine until I updated my Xen hosts to 6.2 version.
After it only very few VNC sessions work fine. Other or closed at
once or just a blank screen.

HOw can I debug it or somehow help to fix it? Tcpdump or whatever?
I'l try to get tcp dump of alder and new hosts in order to compare
it.
Make sure you register the command line options, then you'll get a
'--gtk-vnc-debug' flag.

Alternatively try to reproduce with the 'gvncviewer' demo program
in the source tree.

Daniel



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]