Drag-n-Drop: KDE4 Linux guests still broken

Postings relating to old VirtualBox pre-releases
Technologov
Volunteer
Posts: 3342
Joined: 10. May 2007, 16:59
Location: Israel

Re: Drag-n-Drop: KDE4 Linux guests still broken

Post by Technologov »

After a restart: (executed as normal user)

Code: Select all

user@debian7vm:~$ /usr/bin/VBoxClient -V
5.0.0_RC2r101302

Code: Select all

user@debian7vm:~$ env | grep VBOX
user@debian7vm:~$                                                                       

Code: Select all

user@debian7vm:~$ cat /etc/profile
# /etc/profile: system-wide .profile file for the Bourne shell (sh(1))
# and Bourne compatible shells (bash(1), ksh(1), ash(1), ...).

if [ "`id -u`" -eq 0 ]; then
  PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
else
  PATH="/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games"
fi
export PATH

if [ "$PS1" ]; then
  if [ "$BASH" ] && [ "$BASH" != "/bin/sh" ]; then
    # The file bash.bashrc already sets the default PS1.
    # PS1='\h:\w\$ '
    if [ -f /etc/bash.bashrc ]; then
      . /etc/bash.bashrc
    fi
  else
    if [ "`id -u`" -eq 0 ]; then
      PS1='# '
    else
      PS1='$ '
    fi
  fi
fi

# The default umask is now handled by pam_umask.
# See pam_umask(8) and /etc/login.defs.

if [ -d /etc/profile.d ]; then
  for i in /etc/profile.d/*.sh; do
    if [ -r $i ]; then
      . $i
    fi
  done
  unset i
fi

Code: Select all

user@debian7vm:~$ cat /etc/lsb-release                                                  
cat: /etc/lsb-release: No such file or directory                                                    
... as LSB is NOT installed by Debian-installer by default.

Code: Select all

user@debian7vm:~$ cat /usr/bin/VBoxClient-all                                                       
#!/bin/sh                                                                                           
## @file                                                                                            
# Start the Guest Additions X11 Client                                                              
#                                                                                                                 
                                                                                                                  
#
# Copyright (C) 2007-2012 Oracle Corporation
#
# This file is part of VirtualBox Open Source Edition (OSE), as
# available from http://www.virtualbox.org. This file is free software;
# you can redistribute it and/or modify it under the terms of the GNU
# General Public License (GPL) as published by the Free Software
# Foundation, in version 2 as it comes in the "COPYING" file of the
# VirtualBox OSE distribution. VirtualBox OSE is distributed in the
# hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
#

# Sanity check: if non-writeable PID-files are present in the user home
# directory VBoxClient will fail to start.
for i in $HOME/.vboxclient-*.pid; do
    test -w $i || rm -f $i
done

if test -f /proc/modules && ! grep -q vboxguest /proc/modules 2>/dev/null; then
   # Do not start if the kernel module is not present.
   notify-send "VBoxClient: the VirtualBox kernel service is not running.  Exiting."
elif test -z "${SSH_CONNECTION}"; then
   # This script can also be triggered by a connection over SSH, which is not
   # what we had in mind, so we do not start VBoxClient in that case.  We do
   # not use "exit" here as this script is "source"d, not executed.
  /usr/bin/VBoxClient --clipboard
  /usr/bin/VBoxClient --checkhostversion
  /usr/bin/VBoxClient --display
  /usr/bin/VBoxClient --seamless
  VBOX_RELEASE_LOG_DEST="file=/tmp/VBoxClient.log" VBOX_RELEASE_LOG_FLAGS="time tid thread" VBOX_RELEASE_LOG="all.e.l.l2.l3.f" /usr/bin/VBoxClient --draganddrop
fi
user@debian7vm:~$ 

Code: Select all

user@debian7vm:~$ ps aux | grep -i VBoxClient
user      3811  0.0  0.0  43556   284 ?        S    15:51   0:00 /usr/bin/VBoxClient --clipboard
user      3813  0.0  0.0  46408  1800 ?        Sl   15:51   0:00 /usr/bin/VBoxClient --clipboard
user      3821  0.0  0.0  43556   276 ?        S    15:51   0:00 /usr/bin/VBoxClient --display
user      3823  0.0  0.0  44220  1240 ?        Sl   15:51   0:00 /usr/bin/VBoxClient --display
user      3827  0.0  0.0  43556   284 ?        S    15:51   0:00 /usr/bin/VBoxClient --seamless
user      3830  0.0  0.0  44220  1288 ?        Sl   15:51   0:00 /usr/bin/VBoxClient --seamless
user      3834  0.0  0.0  43556   276 ?        S    15:51   0:00 /usr/bin/VBoxClient --draganddrop
user      3835  0.2  0.0  44900  1612 ?        Sl   15:51   0:00 /usr/bin/VBoxClient --draganddrop
user      4298  0.0  0.0   7832   888 pts/1    R+   15:56   0:00 grep -i VBoxClient

Code: Select all

user@debian7vm:~$ cat /etc/issue
Debian GNU/Linux 7.0 \n \l
pentagonik
Oracle Corporation
Posts: 283
Joined: 19. May 2008, 16:09
Primary OS: Ubuntu other
VBox Version: PUEL
Guest OSses: Too many to specify!
Contact:

Re: Drag-n-Drop: KDE4 Linux guests still broken

Post by pentagonik »

After rebooting the guest, please also provide the output of:

Code: Select all

cat /proc/$(cat $HOME/.vboxclient-draganddrop.pid)/environ
Thanks!
Technologov
Volunteer
Posts: 3342
Joined: 10. May 2007, 16:59
Location: Israel

Re: Drag-n-Drop: KDE4 Linux guests still broken

Post by Technologov »

Code: Select all

user@debian7vm:~$ cat /proc/$(cat $HOME/.vboxclient-draganddrop.pid)/environ
DM_CONTROL=/var/run/xdmctlSHELL=/bin/bashXDG_SESSION_COOKIE=ddadaf9c963881fc6f7494085397f57c-1435765012.354206-453911765XDM_MANAGED=method=classic,autoUSER=userPATH=/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/gamesDESKTOP_SESSION=defaultPWD=/home/userLANG=en_GB.UTF-8SHLVL=1HOME=/home/userLANGUAGE=en_GB:enLOGNAME=userWINDOWPATH=7DISPLAY=:0_=/usr/bin/VBoxClient
pentagonik
Oracle Corporation
Posts: 283
Joined: 19. May 2008, 16:09
Primary OS: Ubuntu other
VBox Version: PUEL
Guest OSses: Too many to specify!
Contact:

Re: Drag-n-Drop: KDE4 Linux guests still broken

Post by pentagonik »

Technologov wrote:

Code: Select all

user@debian7vm:~$ cat /proc/$(cat $HOME/.vboxclient-draganddrop.pid)/environ
DM_CONTROL=/var/run/xdmctlSHELL=/bin/bashXDG_SESSION_COOKIE=ddadaf9c963881fc6f7494085397f57c-1435765012.354206-453911765XDM_MANAGED=method=classic,autoUSER=userPATH=/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/gamesDESKTOP_SESSION=defaultPWD=/home/userLANG=en_GB.UTF-8SHLVL=1HOME=/home/userLANGUAGE=en_GB:enLOGNAME=userWINDOWPATH=7DISPLAY=:0_=/usr/bin/VBoxClient
This shows that no VBOX_RELEASE_* environment variables are being used by VBoxClient -- which in turn results in not having any log files being generated.
Technologov
Volunteer
Posts: 3342
Joined: 10. May 2007, 16:59
Location: Israel

Re: Drag-n-Drop: KDE4 Linux guests still broken

Post by Technologov »

1. I don't see anything with "RELEASE" in last output. So modifying /usr/bin/VBoxClient-all was not enough ?
2. How-to fix it ?
3. Are DnD Log instructions inaccurate ?
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Drag-n-Drop: KDE4 Linux guests still broken

Post by Perryg »

Debian is somewhat restrictive in this regards. Far more than the other Debian-ish packages.

Code: Select all

export PATH=/bin:/sbin:
Or add it to your .bashrc
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Drag-n-Drop: KDE4 Linux guests still broken

Post by Perryg »

Oh and don't be surprised if this makes DnD work too, as long as the terminal is open that you ran the export in or after a logout/login if you add it to the file.
pentagonik
Oracle Corporation
Posts: 283
Joined: 19. May 2008, 16:09
Primary OS: Ubuntu other
VBox Version: PUEL
Guest OSses: Too many to specify!
Contact:

Re: Drag-n-Drop: KDE4 Linux guests still broken

Post by pentagonik »

Please try the following:

First, terminate the running VBoxClient drag and drop instance by doing

Code: Select all

kill -9 $(cat $HOME/.vboxclient-draganddrop.pid)
Second, manually start the drag and drop instance in foreground:

Code: Select all

VBOX_RELEASE_LOG_DEST=stdout VBOX_RELEASE_LOG_FLAGS="time tid thread" VBOX_RELEASE_LOG="all.e.l.l2.l3.f" VBoxClient --draganddrop -d
Technologov
Volunteer
Posts: 3342
Joined: 10. May 2007, 16:59
Location: Israel

Re: Drag-n-Drop: KDE4 Linux guests still broken

Post by Technologov »

Host side:

Code: Select all

00:02:24.611232 DnD: Total registered native formats: 5 (for 5 formats from guest)
00:02:24.611255 DnD: dwOKEffects=0x1
00:02:24.618613 DnD: Format found: tyMed=1, cfFormat=15, sFormats=CF_HDROP, dwAspect=1, ulIndex=2
00:02:25.474786 DnD: DoDragDrop ended with hr=DRAGDROP_S_DROP, dwEffect=0
00:02:29.612756 VMMDev: Guest Log: VBOXGUEST_IOCTL_HGCM_CALL: 64 Failed. rc=-38.
Guest side:

Code: Select all

user@debian7-64:~$ cat /tmpp/VBoxClient.log 
DnD: Proxy window=0xa00001, root window=0x134 ...
11:58:16.737613 00007f62f0b91760 main     DnD: Started
11:58:16.737629 00007f62f0b91760 main     DnD: 5.0.0_RC2r101302
11:58:31.429152 00007f62f0b91760 main     DnD: Entered new window 0x4800015 ('Downloads – Dolphin'), supports Xdnd version=5
11:58:39.701300 00007f62f0b91760 main     DnD: Entered new window 0x2a00012 ('~ : VBoxClient'), supports Xdnd version=5
11:58:39.751389 00007f62f0b91760 main     DnD: Left old window 0x2a00012 ('~ : VBoxClient'), Xdnd version=5
11:58:39.751624 00007f62f0b91760 main     DnD: Entered new window 0x4800015 ('Downloads – Dolphin'), supports Xdnd version=5
11:58:40.318846 00007f62f0b91760 main     DnD: Drop event from host resuled in: VINF_SUCCESS
11:58:40.334317 00007f62f0b91760 main     DnD: Received 171 bytes MIME data from host
11:58:40.357650 00007f62ee13d700 dndX11   DnD: Target window 0x4800096 ('<No name>') is asking for data as 'text/uri-list'
11:58:40.357681 00007f62ee13d700 dndX11   DnD: Target window=0x4800096 requested data from host as 'text/uri-list', rc=VINF_SUCCESS
11:58:40.408685 00007f62ee13d700 dndX11   DnD: Target window 0x4800096 ('<No name>') is asking for data as 'text/uri-list'
11:58:40.408713 00007f62ee13d700 dndX11   DnD: Target window=0x4800096 requested data from host as 'text/uri-list', rc=VINF_SUCCESS
11:58:40.459613 00007f62ee13d700 dndX11   DnD: Target window 0x4800096 ('<No name>') is asking for data as 'text/uri-list'
11:58:40.459645 00007f62ee13d700 dndX11   DnD: Target window=0x4800096 requested data from host as 'text/uri-list', rc=VINF_SUCCESS
11:59:32.137457 00007f62f0b91760 main     DnD: Error processing message 600, failed with VERR_TIMEOUT, resetting all
11:59:32.146666 00007f62ee13d700 dndX11   DnD: Guest to host transfer canceled by the guest source window
Attachments
Debian 7 64-bit-2015-07-03-14-59-50.log
(76.64 KiB) Downloaded 24 times
pentagonik
Oracle Corporation
Posts: 283
Joined: 19. May 2008, 16:09
Primary OS: Ubuntu other
VBox Version: PUEL
Guest OSses: Too many to specify!
Contact:

Re: Drag-n-Drop: KDE4 Linux guests still broken

Post by pentagonik »

So it apparently worked finally -- what did you do / change to achieve this?
Technologov
Volunteer
Posts: 3342
Joined: 10. May 2007, 16:59
Location: Israel

Re: Drag-n-Drop: KDE4 Linux guests still broken

Post by Technologov »

Nope it did not. It worked Host->Guest, but Guest->Host failed. I transferred a bunch of JPEG images from guest's KDE4 Dolphin to Hosts Windows Explorer.
Last edited by Technologov on 3. Jul 2015, 15:26, edited 1 time in total.
pentagonik
Oracle Corporation
Posts: 283
Joined: 19. May 2008, 16:09
Primary OS: Ubuntu other
VBox Version: PUEL
Guest OSses: Too many to specify!
Contact:

Re: Drag-n-Drop: KDE4 Linux guests still broken

Post by pentagonik »

Uhm, I was more referring to the collected logs ...
Technologov
Volunteer
Posts: 3342
Joined: 10. May 2007, 16:59
Location: Israel

Re: Drag-n-Drop: KDE4 Linux guests still broken

Post by Technologov »

For logs I did:

(Created temp-permanent folder, that won't get wiped out on reboot)

This must be done once:

Code: Select all

# mkdir /tmpp/
# chmod a+rwx /tmpp
Then I did as unprivileged user: (needs to be done after every reboot, not persistent)

Code: Select all

kill -9 $(cat $HOME/.vboxclient-draganddrop.pid) && VBOX_RELEASE_LOG_DEST="file=/tmpp/VBoxClient.log" VBOX_RELEASE_LOG_FLAGS="time tid thread" VBOX_RELEASE_LOG="all.e.l.l2.l3.f" VBoxClient --draganddrop -d
NOTE: I did not find a good, persistent across reboots way.

Linux-Guest-side Instructions from https://www.virtualbox.org/wiki/DnDDebug do not work.
I strongly recommend enabling logging by default for future builds, at least for now, while DnD keeps crashing left-and-right.
pentagonik
Oracle Corporation
Posts: 283
Joined: 19. May 2008, 16:09
Primary OS: Ubuntu other
VBox Version: PUEL
Guest OSses: Too many to specify!
Contact:

Re: Drag-n-Drop: KDE4 Linux guests still broken

Post by pentagonik »

Does RC3 make a difference regarding KDE4 for you?
Technologov
Volunteer
Posts: 3342
Joined: 10. May 2007, 16:59
Location: Israel

Re: Drag-n-Drop: KDE4 Linux guests still broken

Post by Technologov »

Nope. As as RC2a. r101302
Post Reply