Copy & Paste Files In Remote rdesktop Windows cause nautilus hang + 100% CPU

Bug #660941 reported by Terry Wang
24
This bug affects 5 people
Affects Status Importance Assigned to Milestone
rdesktop (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Binary package hint: rdesktop

Ubuntu 10.10 i386
Kernel 2.6.35-22
rdesktop 1.6.0-3ubuntu2

After upgrading to 10.10, I found I am experiencing the same issue I've seen before in some of the previous versions of Ubuntu. Basically the problem is in the remove Windows Server 2003, if I do copy & paste files, it will cause nautilus hang and occupies 100% CPU. GNOME stops responding. The only workaround to get it back to work is to switch to other pseudo console or connect via SSH to kill the rdesktop processes and nautilus and Alt+F7.

Search found some similar issues, someone said that disable clipboard redirection would work but it didn't in fact, at least not in my case.

Process details:
terry 19820 19813 0 15:37 ? 00:00:00 rdesktop -T'10.xxx.xxx.xxx - Terminal Server Client' -uadministrator -pXXXXXXXXXXX -g1280x960 -rsound:off -rclipboard:PRIMARYCLIPBOARD -5 10.xxx.xxx.xxx

This is very annoying for people who constantly need to do work on bloody Windows;-(

Sometimes restart Windows Explorer will help to fix the problem in previous release. But now in 10.10 it doesn't work any more. I feel it may be related to Windows Explorer but there is no way to figure out-_- Finally I temporarily worked around the issue by restarting remote Windows Server 2003...

Attached a copy of the .xsession-errors.old for your reference.

snippet from .xsession-errors.old Log file:
====================================================================================================

WARNING: Failed to aquire ownership of PRIMARY clipboard

(tsclient:12272): GLib-GObject-WARNING **: /build/buildd/glib2.0-2.26.0/gobject/gsignal.c:2392: instance `0x9d0b9c0' has no handler with id `2621'

(ibus-daemon:1722): IBUS-CRITICAL **: _context_request_engine_cb: assertion `bus_input_context_has_focus (context)' failed

(ibus-daemon:1722): IBUS-CRITICAL **: _context_request_engine_cb: assertion `bus_input_context_has_focus (context)' failed

(ibus-daemon:1722): IBUS-CRITICAL **: _context_request_engine_cb: assertion `bus_input_context_has_focus (context)' failed

(ibus-daemon:1722): IBUS-CRITICAL **: _context_request_engine_cb: assertion `bus_input_context_has_focus (context)' failed

(ibus-daemon:1722): IBUS-CRITICAL **: _context_request_engine_cb: assertion `bus_input_context_has_focus (context)' failed
NOTE: child process received `Goodbye', closing down
Shutting down nautilus-open-terminal extension
Shutting down nautilus-gdu extension

--- Hash table keys for warning below:
--> l64513
--> inode/directory
--> terry

(nautilus:12009): Eel-WARNING **: "unique eel_ref_str" hash table still has 3 elements at quit time (keys above)

(nautilus:12009): Eel-WARNING **: "nautilus-directory.c: directories" hash table still has 2 elements at quit time

(gnome-power-manager:1745): GLib-GObject-CRITICAL **: g_object_unref: assertion `G_IS_OBJECT (object)' failed
** Message: applet now removed from the notification area
** Message: NM disappeared
gnome-settings-daemon: Fatal IO error 11 (Resource temporarily unavailable) on X server :0.0.
nm-applet: Fatal IO error 11 (Resource temporarily unavailable) on X server :0.0.
Do: Fatal IO error 11 (Resource temporarily unavailable) on X server :0.0.
parcellite: Fatal IO error 11 (Resource temporarily unavailable) on X server :0.0.
gtk-window-decorator: Fatal IO error 11 (Resource temporarily unavailable) on X server :0.0.
XIO: fatal IO error 11 (Resource temporarily unavailable) on X server ":0.0"
      after 179875 requests (179873 known processed) with 0 events remaining.
XIO: fatal IO error 11 (Resource temporarily unavailable) on X server ":0.0"
      after 23112 requests (23111 known processed) with 0 events remaining.

ProblemType: Bug
DistroRelease: Ubuntu 10.10
Package: rdesktop 1.6.0-3ubuntu2
ProcVersionSignature: Ubuntu 2.6.35-22.34-generic 2.6.35.4
Uname: Linux 2.6.35-22-generic i686
NonfreeKernelModules: nvidia
Architecture: i386
Date: Fri Oct 15 15:16:27 2010
ExecutablePath: /usr/bin/rdesktop
ProcEnviron:
 LANG=en_AU.utf8
 SHELL=/bin/bash
SourcePackage: rdesktop

Revision history for this message
Terry Wang (terrywang) wrote :
Revision history for this message
Luca Padovan (luca-azserve) wrote :

Ubuntu 10.04 amd64
Kernel 2.6.32-26-generic
rdesktop 1.6.0-2ubuntu3

Very similar problem, I'm not sure if it happens with cut & paste but sometimes when I use rdesktop nautilus use 100% of one CPU-Core.
If I kill nautilus with -9 options and I close rdesktop nautilus restart correctly but sometimes Xorg use 40% of one CPU-Core

Revision history for this message
Terry Wang (terrywang) wrote :

Today I came across some Windows clipboard issue and probably know how it happened.

On the remote Windows host, restart the clipbook service (net stop/start clipbook) and clipboard will start to work again no matter how it dies (my remote box has 6GB RAM with 2GB free and it complained not enough memory...WTF). Also, I just knew there is a clipbrd tool built-in for Windows...

So if you encounter the same problem, restart the clipbook service and see if it helps.

Thanks,
Terry

Changed in rdesktop (Ubuntu):
status: New → Confirmed
Revision history for this message
CaptSpify (captspify) wrote :

The Clipboard service on my remote server is disabled. Unfortunately I'm unable to restart it. Is it possible that this is a bug in how rdesktop is attempting to receive the data if it isn't coming across correctly?

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.