Bug 162640 - KRDC does not show the mouse cursor (remote: MacOS X Leopard)
Summary: KRDC does not show the mouse cursor (remote: MacOS X Leopard)
Status: RESOLVED FIXED
Alias: None
Product: krdc
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: Urs Wolfer
URL:
Keywords:
: 163069 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-05-26 13:14 UTC by Thiago Macieira
Modified: 2008-06-08 14:52 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
apple VNC compatibilty patch (2.07 KB, patch)
2008-06-03 23:38 UTC, Urs Wolfer
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Thiago Macieira 2008-05-26 13:14:05 UTC
Version:           4.00.74 (KDE 4.0.74 >= 20080515 (using 4.00.80 (KDE 4.0.80 >= (KDE 4.1 Beta1), compiled sources)
Compiler:          gcc
OS:                Linux (i686) release 2.6.24-tmb-server-2mdv

Steps to reproduce:
1) connect to a remote host running MacOS X Leopard, using Apple's VNC Server

The mouse pointer does not appear anywhere, though clicks are passed through.

This does not happen with:
- MacOS X Tiger (earlier version), same krdc version
- MacOS X Leopard (same version), with krdc from KDE 3.
Comment 1 Urs Wolfer 2008-05-27 21:25:58 UTC
I have no possibility to reproduce it here (no Leopard machine available).

Could you please enable the "Show local cursor" action from "Session" menu? Does it show the correct position?

I think the Apple VNC server does not send the cursor over to the client (I cannot think of another reason.. Strange thing is that it works with the old KRDC...)
Comment 2 Thiago Macieira 2008-05-27 23:43:16 UTC
If "Show local cursor" is on, I see the cursor position correctly.

Is there anything I can enable to provide more debugging information? Maybe with the old krdc?
Comment 3 Urs Wolfer 2008-05-28 23:18:06 UTC
To be honest: I'm not really sure what you can do. Probably you can run KRDC from Konsole, so you can see some information at connections start about VNC protocol version and other stuff. Also, is there any other possibilty for you to test with another VNC client than KRDC?
Comment 4 Urs Wolfer 2008-06-02 22:19:14 UTC
*** Bug 163069 has been marked as a duplicate of this bug. ***
Comment 5 Thiago Macieira 2008-06-02 22:57:35 UTC
running in a terminal yields:
krdc(24173) MainWindow::updateActionStatus: -1
krdc(24173) MainWindow::tabChanged: 0
krdc(24173) MainWindow::updateActionStatus: 0
krdc(24173) main: unusable url; try to recover it: "file:///home/thiago/alqualonde.troll.no:0"
krdc(24173) main: recovered url: "vnc://alqualonde.troll.no:0"
krdc(24173)/krdc (VNC backend) VncView::scaleResize: 582 373
krdc(24173) MainWindow::tabChanged: 1
krdc(24173) MainWindow::updateActionStatus: 1
krdc(24173) MainWindow::tabChanged: 1
krdc(24173) MainWindow::updateActionStatus: 1
krdc(24173)/krdc (VNC backend) VncHostPreferences::readProtocolSpecificConfig: VncHostPreferences::readProtocolSpecificConfig
krdc(24173)/krdc (VNC backend) VncHostPreferences::VncHostPreferences: No config found, create new
krdc(24173)/krdc (VNC backend) VncView::scaleResize: 582 357
krdc(24173)/krdc (VNC backend) VncHostPreferences::showDialog: VncHostPreferences config dialog accepted
krdc(24173)/krdc (VNC backend) VncHostPreferences::saveProtocolSpecificConfig: VncHostPreferences::saveProtocolSpecificConfig
krdc(24173) MainWindow::statusChanged: -2
krdc(24173) MainWindow::statusChanged: -1
krdc(24173) MainWindow::statusChanged: 0
krdc(24173)/krdc (VNC backend) VncClientThread::run: --------------------- trying init ---------------------
krdc(24173)/krdc (VNC backend) VncClientThread::outputHandler: "VNC server supports protocol version 3.889 (viewer 3.8)"
krdc(24173)/krdc (VNC backend) VncClientThread::outputHandler: "We have 3 security types to read"
krdc(24173)/krdc (VNC backend) VncClientThread::outputHandler: "0) Received security type 30"
krdc(24173)/krdc (VNC backend) VncClientThread::outputHandler: "1) Received security type 2"
krdc(24173)/krdc (VNC backend) VncClientThread::outputHandler: "Selecting security type 2 (1/3 in the list)"
krdc(24173)/krdc (VNC backend) VncClientThread::outputHandler: "2) Received security type 35"
krdc(24173)/krdc (VNC backend) VncClientThread::outputHandler: "Selected Security Scheme 2"
krdc(24173)/krdc (VNC backend) VncClientThread::passwdHandler: password request "[
0: /home/tmacieir/KDE4/lib/libkdecore.so.5(_Z14kRealBacktracei+0x36) [0xb7b82d2b]
1: krdc [0x8064017]
2: krdc [0x80632bd]
3: /usr/lib/libvncclient.so.0(InitialiseRFBConnection+0x5bf) [0xb693363f]
]
"
krdc(24173)/krdc (VNC backend) VncView::requestPassword: request password
krdc(24173) MainWindow::statusChanged: 1
krdc(24173)/krdc (VNC backend) VncClientThread::outputHandler: "VNC authentication succeeded"
krdc(24173)/krdc (VNC backend) VncClientThread::outputHandler: "Desktop name "Alqualondë""
krdc(24173)/krdc (VNC backend) VncClientThread::outputHandler: "Connected to VNC server, using protocol version 3.8"
krdc(24173)/krdc (VNC backend) VncClientThread::outputHandler: "VNC server default format:"
krdc(24173)/krdc (VNC backend) VncClientThread::outputHandler: "32 bits per pixel."
krdc(24173)/krdc (VNC backend) VncClientThread::outputHandler: "Least significant byte first in each pixel."
krdc(24173)/krdc (VNC backend) VncClientThread::outputHandler: "TRUE colour: max red 255 green 255 blue 255, shift red 16 green 8 blue 0"
krdc(24173) MainWindow::statusChanged: 1
krdc(24173) MainWindow::statusChanged: 2
krdc(24173) MainWindow::statusChanged: 3
krdc(24173) BookmarkManager::addHistoryBookmark: addHistoryBookmark
krdc(24173) BookmarkManager::addHistoryBookmark: Add new history bookmark.
krdc(24173)/kio (bookmarks) KBookmarkManager::saveAs: KBookmarkManager::save  "/home/thiago/.kde4/share/apps/krdc/bookmarks.xml"
krdc(24173) MainWindow::resizeTabWidget: tabwidget resize: w:  1024 , h:  768
krdc(24173) MainWindow::resizeTabWidget: tabwidget border: w:  18 , h:  43
krdc(24173) MainWindow::resizeTabWidget: remote desktop needs more place than available -> show window maximized
krdc(24173)/krdc (VNC backend) VncView::scaleResize: 582 357
krdc(24173)/krdc (VNC backend) VncView::scaleResize: 1017 597
krdc(24173) KBookmarkManager::notifyChanged: KBookmarkManager::notifyChanged (  "" )
krdc(24173)/kio (bookmarks) KBookmarkMenu::slotBookmarksChanged: KBookmarkMenu::slotBookmarksChanged(  ""
krdc(24173) RemoteDesktopsModel::changed:

And vncviewer (which does show the cursor, including changing the cursor form):
Connected to RFB server, using protocol version 3.8
Performing standard VNC authentication
Password:
Authentication successful
Desktop name "Alqualondë"
VNC server default format:
  32 bits per pixel.
  Least significant byte first in each pixel.
  True colour: max red 255 green 255 blue 255, shift red 16 green 8 blue 0
Warning: Cannot convert string "-*-helvetica-bold-r-*-*-16-*-*-*-*-*-*-*" to type FontStruct
Using default colormap which is TrueColor.  Pixel format:
  32 bits per pixel.
  Least significant byte first in each pixel.
  True colour: max red 255 green 255 blue 255, shift red 16 green 8 blue 0
Using shared memory PutImage
ShmCleanup called
Comment 6 Urs Wolfer 2008-06-03 23:38:42 UTC
Created attachment 25098 [details]
apple VNC compatibilty patch

After doing some research, I have found some pages which provide information
that the Apple VNC server does not support "standard" VNC protocol, see for
example:
http://rclermont.blogspot.com/2008/01/using-ubuntu-vnc-client-to-connect-to.html


I have done some workaround which forces local cursor to be on when KRDC is
connected to an apple vnc server. Probably you can try out this patch. Do you
think this is an acceptable workaround?
Comment 7 Urs Wolfer 2008-06-08 14:52:03 UTC
SVN commit 818373 by uwolfer:

Workaround for Apple VNC server in Leopard. Local cursor gets not displayed on client. Issue reported to libvncclient devs.
BUG:162640

 M  +4 -0      vncclientthread.cpp  
 M  +9 -2      vncview.cpp  
 M  +1 -0      vncview.h  


WebSVN link: http://websvn.kde.org/?view=rev&revision=818373