Bug 57203 - Clients disconnects after a few seconds
Summary: Clients disconnects after a few seconds
Status: RESOLVED DUPLICATE of bug 124529
Alias: None
Product: krfb
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR major
Target Milestone: ---
Assignee: Alessandro Praduroux
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-04-14 02:53 UTC by Luke-Jr
Modified: 2007-04-16 20:55 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Luke-Jr 2003-04-14 02:53:06 UTC
Version:            (using KDE KDE 3.1)
Installed from:    Compiled From Sources
Compiler:          GCC 3.2.1 
OS:          Linux

When using a TightVNC viewer, there are often problems which causes the viewer to exit somewhat randomly. Connections made within the next 3 seconds or so after this, no new viewers can connect.
Comment 1 Rex Dieter 2003-04-14 14:29:32 UTC
WORKSFORME. redhat 7.3, kdebase-3.1.1a. 
 
 
Comment 2 tim 2003-04-14 18:53:31 UTC
I have heard something similar before, but haven't got a reply when I asked for the 
exact version.  
 
Which TightVNC version are you using? Which platform (there's quite a difference 
between the unix and windows versions)? Which krfb version? 
 
Comment 3 Rex Dieter 2003-04-14 19:20:57 UTC
What works for me: kdebase-3.1.1a, with tightvnc client version 1.2.7. 
Comment 4 donutz 2003-04-14 23:55:49 UTC
I have encountered similar situations, but I've had the latest viewer from
realvnc.com crash on me too, then be unable for a time to get a viewer to
connect to the server. Of course, the crashes could be resulting from the fact
that I'm running in a Xinerama setup (640x480 screen leftof a 1600x1200 screen).
I'm using KDE 3.1 from Slackware 9.0. 

Actually I never really get very far, because the viewer displays the desktop
INCREDIBLY slow, and in the dead space it just displays a mish-mash of other
parts of the desktop, and inevitably I get tired of waiting for it to load so I
minimize the viewer and when I'm ready to come back and take a look I find out
the viewer has exited uncerimoniously. But this may be another bug?
Comment 5 tim 2003-04-15 10:49:11 UTC
On which platform and what exactly did you do? I can't reproduce it with the 
RealVNC vncviewer 3.3.7 on Linux. 
 
Concerning performance: the server polls X11. This is quite slow, especially with 
larger resolutions. Xinerama could make things worse, but I am not sure how 
grabbing the screen is implemented in XFree with Xinerama. 
Comment 6 Luke-Jr 2003-04-16 03:46:38 UTC
[luke-jr@arumekun luke-jr]$ krfb --version
Qt: 3.1.1
KDE: 3.1.0
Desktop Sharing: 1.0

I have confirmed that this problem exists using TightVNC Viewer 1.2.8 for both
Windows and Linux. More recently, I have also found out that the problem also
exists when the client is the Krdc released with 3.1.1a.
Comment 7 Rex Dieter 2003-04-16 14:03:28 UTC
Try Tightvnc viewer version 1.2.7. 
Comment 8 irv 2003-11-07 17:39:25 UTC
I can confirm that using krfb from CVS (20031104) that using tightvnc 1.2.7 to connect to krfb works fine on Linux, as does using krdc. However,  both 1.2.9 and 1.3dev1 for windows crash krfb immediately. RealVNC 3.3.7 for windows is somewhat more sucessful, out of the 7 or so times i've tried it crashed on connection twice, then after i closed drkonqi, actually worked for a few minutes before it randomly quit.

All of this was using uninvited connections, and in all cases crashes happened after inputting the password. No debugging symbols i'm afraid so no backtrace. Has something changed dramatically in the vncviewers in the last few point releases? debian seems to be ticking with 1.2.7 of xtightvncviewer so I do wonder.
Comment 9 texstar 2004-03-10 00:24:18 UTC
krfb does not work with tightvnc 1.2.9 in kde 3.2.0 with qt 3.3.1. I get a little blip on the taskbar for about 1 second then its gone. 

Comment 10 EdorFaus 2004-11-02 06:26:55 UTC
I get the same problem - connect and it works just fine for a while, then after a random period of time(sometimes short, on the order of seconds, other times it works for hours without problems). It's been doing this for a while now, with all the clients I remember trying(though it worked fine before an update to krfb - don't remember when exactly).

Current test client is TightVNC viewer 1.2.9 on windows, older version of TVNCv (1.2.3) got the same problem, and I think I got it with krdc once too(though not sure about this, been a while since I had the opportunity to try that).

This is with the version of krfb in debian/unstable;

$ krfb --version
Qt: 3.3.3
KDE: 3.3.1
Desktop Sharing: 1.0

In case it's relevant, in my .xsession-errors file I get this line when I connect with VNC:

QFile::open: No file name specified

and these lines when I get disconnected:

krfb: pthread_mutex_lock.c:78: __pthread_mutex_lock: Assertion `mutex->__data.__
owner == 0' failed.
KCrash: Application 'krfb' crashing...

I suspect the latter of the two lines is produced by drkonqui, or whatever makes that pop up - usually with the message that krfb got signal 6 (SIGABRT).

Sometimes, instead of the above two lines I get these three(not quite the same, though similar):

krfb: ../nptl/pthread_mutex_lock.c:78: __pthread_mutex_cond_lock: Assertion `mut
ex->__data.__owner == 0' failed.
KCrash: Application 'krfb' crashing...
krfb: Fatal IO error: client killed

Here I have the same assumption as above for the KCrash: line, and am assuming kinetd or whatever started krfb printed the third line - though I suppose that one too *could* be from krfb.

Sometimes krfb doesn't quit, despite being disconnected, making me have to kill it manually before I can connect again(if it's running, new connection attempts will fail before even asking for password - I'm guessing this is by design, so only one at a time can use the screen). A simple "kill <krfb-pid>" is enough, though.

I'm using uninvited connections, if that matters. I'm using it for remote access, not for calling help, so invited-only wouldn't work.

I'd love to see this get fixed, it's getting kinda annoying at times.

For additional information, please just ask, and I'll see what I can do.
Comment 11 Jesús Jiménez 2005-04-22 10:26:30 UTC
*** This bug has been confirmed by popular vote. ***
Comment 12 Nicolas L. 2005-08-24 02:33:20 UTC
i can stay connected a long time so it is still valide for you ?
Comment 13 Rene Ksuz 2006-03-07 11:25:32 UTC
I use KDE 3.4.3 in Kubuntu. I use REALVNC and ULTRAVNC as a Client to KRFB.

krfb --version:
root@vm-host2:/var/log# krfb -v
Qt: 3.3.4
KDE: 3.4.3
Desktop Sharing: 1.0

After a few seconds (sometimes I get a minute or more), the session freezes and VNCVIEWER won't update the session anymore. Then, after some time, I get disconnected. 

I tried to attach with gdb and got some output (I will paste it below). 

If you need any further information, please contact me ...

Kind regards,
Rene Ksuz

GDB Output:

root@vm-host2:/var/log# gdb /proc/12324/exe 12324
GNU gdb 6.3-debian
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i486-linux-gnu"...(no debugging symbols found)
Using host libthread_db library "/lib/tls/i686/cmov/libthread_db.so.1".

Attaching to program: /proc/12324/exe, process 12324
(no debugging symbols found)
`system-supplied DSO at 0xffffe000' has disappeared; keeping its symbols.
Reading symbols from /usr/lib/libqt-mt.so.3...(no debugging symbols found)...don                                              e.
Loaded symbols for /usr/lib/libqt-mt.so.3
Reading symbols from /usr/lib/libkdecore.so.4...(no debugging symbols found)...d                                              one.
Loaded symbols for /usr/lib/libkdecore.so.4
Reading symbols from /usr/lib/libDCOP.so.4...
(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libDCOP.so.4
Reading symbols from /lib/tls/i686/cmov/libutil.so.1...(no debugging symbols fou                                              nd)...done.
Loaded symbols for /lib/tls/i686/cmov/libutil.so.1
Reading symbols from /usr/lib/libart_lgpl_2.so.2...
(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libart_lgpl_2.so.2
Reading symbols from /usr/lib/libidn.so.11...(no debugging symbols found)...done                                              .
Loaded symbols for /usr/lib/libidn.so.11
Reading symbols from /usr/lib/libkdefx.so.4...
(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libkdefx.so.4
Reading symbols from /usr/lib/libaudio.so.2...(no debugging symbols found)...don                                              e.
Loaded symbols for /usr/lib/libaudio.so.2
Reading symbols from /usr/lib/libXt.so.6...
(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libXt.so.6
Reading symbols from /usr/lib/libXi.so.6...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libXi.so.6
Reading symbols from /usr/lib/libXrandr.so.2...
(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libXrandr.so.2
Reading symbols from /usr/lib/libXcursor.so.1...(no debugging symbols found)...d                                              one.
Loaded symbols for /usr/lib/libXcursor.so.1
Reading symbols from /usr/lib/libXinerama.so.1...
(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libXinerama.so.1
Reading symbols from /usr/lib/libXft.so.2...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libXft.so.2
Reading symbols from /usr/lib/libfreetype.so.6...
(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libfreetype.so.6
Reading symbols from /usr/lib/libfontconfig.so.1...(no debugging symbols found).                                              ..done.
Loaded symbols for /usr/lib/libfontconfig.so.1
Reading symbols from /lib/tls/i686/cmov/libdl.so.2...
(no debugging symbols found)...done.
Loaded symbols for /lib/tls/i686/cmov/libdl.so.2
Reading symbols from /usr/lib/libpng12.so.0...(no debugging symbols found)...don                                              e.
Loaded symbols for /usr/lib/libpng12.so.0
Reading symbols from /usr/lib/libz.so.1...
(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libz.so.1
Reading symbols from /usr/lib/libXext.so.6...(no debugging symbols found)...done                                              .
Loaded symbols for /usr/lib/libXext.so.6
Reading symbols from /usr/lib/libX11.so.6...
(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libX11.so.6
Reading symbols from /usr/lib/libSM.so.6...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libSM.so.6
Reading symbols from /usr/lib/libICE.so.6...
(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libICE.so.6
Reading symbols from /lib/tls/i686/cmov/libpthread.so.0...(no debugging symbols                                               found)...done.
[Thread debugging using libthread_db enabled]
[New Thread -1230829888 (LWP 12324)]
[New Thread -1254175824 (LWP 12327)]
[New Thread -1245783120 (LWP 12326)]
Loaded symbols for /lib/tls/i686/cmov/libpthread.so.0
Reading symbols from /usr/lib/libXrender.so.1...
(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libXrender.so.1
Reading symbols from /usr/lib/libslp.so.1...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libslp.so.1
Reading symbols from /lib/tls/i686/cmov/libnsl.so.1...
(no debugging symbols found)...done.
Loaded symbols for /lib/tls/i686/cmov/libnsl.so.1
Reading symbols from /lib/tls/i686/cmov/libresolv.so.2...(no debugging symbols f                                              ound)...done.
Loaded symbols for /lib/tls/i686/cmov/libresolv.so.2
Reading symbols from /usr/lib/libXtst.so.6...
---Type <return> to continue, or q <return> to quit---
(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libXtst.so.6
Reading symbols from /usr/lib/libkdeui.so.4...(no debugging symbols found)...don                                              e.
Loaded symbols for /usr/lib/libkdeui.so.4
Reading symbols from /usr/lib/libjpeg.so.62...
(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libjpeg.so.62
Reading symbols from /usr/lib/libkio.so.4...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libkio.so.4
Reading symbols from /usr/lib/libstdc++.so.6...
(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libstdc++.so.6
Reading symbols from /lib/tls/i686/cmov/libm.so.6...(no debugging symbols found)                                              ...done.
Loaded symbols for /lib/tls/i686/cmov/libm.so.6
Reading symbols from /lib/libgcc_s.so.1...
(no debugging symbols found)...done.
Loaded symbols for /lib/libgcc_s.so.1
Reading symbols from /lib/tls/i686/cmov/libc.so.6...(no debugging symbols found)                                              ...done.
Loaded symbols for /lib/tls/i686/cmov/libc.so.6
Reading symbols from /usr/lib/libXfixes.so.3...
(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libXfixes.so.3
Reading symbols from /usr/lib/libexpat.so.1...(no debugging symbols found)...don                                              e.
Loaded symbols for /usr/lib/libexpat.so.1
Reading symbols from /lib/ld-linux.so.2...
(no debugging symbols found)...done.
Loaded symbols for /lib/ld-linux.so.2
Reading symbols from /usr/lib/libXau.so.6...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libXau.so.6
Reading symbols from /usr/lib/libXdmcp.so.6...
(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libXdmcp.so.6
Reading symbols from /usr/lib/libkdesu.so.4...(no debugging symbols found)...don                                              e.
Loaded symbols for /usr/lib/libkdesu.so.4
Reading symbols from /usr/lib/libkwalletclient.so.1...
(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libkwalletclient.so.1
Reading symbols from /usr/lib/libfam.so.0...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libfam.so.0
Reading symbols from /usr/lib/X11/locale/common/xlcDef.so.2...
(no debugging symbols found)...done.
Loaded symbols for /usr/lib/X11/locale/common/xlcDef.so.2
Reading symbols from /usr/lib/X11/locale/common/xlcUTF8Load.so.2...(no debugging                                               symbols found)...done.
Loaded symbols for /usr/lib/X11/locale/common/xlcUTF8Load.so.2
Reading symbols from /usr/lib/X11/locale/common/ximcp.so.2...
(no debugging symbols found)...done.
Loaded symbols for /usr/lib/X11/locale/common/ximcp.so.2
Reading symbols from /lib/tls/i686/cmov/libnss_compat.so.2...(no debugging symbo                                              ls found)...done.
Loaded symbols for /lib/tls/i686/cmov/libnss_compat.so.2
Reading symbols from /lib/tls/i686/cmov/libnss_nis.so.2...
(no debugging symbols found)...done.
Loaded symbols for /lib/tls/i686/cmov/libnss_nis.so.2
Reading symbols from /lib/tls/i686/cmov/libnss_files.so.2...(no debugging symbol                                              s found)...done.
Loaded symbols for /lib/tls/i686/cmov/libnss_files.so.2
Reading symbols from /usr/lib/kde3/plugins/styles/lipstik.so...
(no debugging symbols found)...done.
Loaded symbols for /usr/lib/kde3/plugins/styles/lipstik.so
Reading symbols from /usr/lib/qt3/plugins/imageformats/libqmng.so...(no debuggin                                              g symbols found)...done.
Loaded symbols for /usr/lib/qt3/plugins/imageformats/libqmng.so
Reading symbols from /usr/lib/libmng.so.1...
(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libmng.so.1
Reading symbols from /usr/lib/liblcms.so.1...(no debugging symbols found)...done                                              .
Loaded symbols for /usr/lib/liblcms.so.1
Reading symbols from /lib/tls/i686/cmov/libnss_dns.so.2...
(no debugging symbols found)...done.
Loaded symbols for /lib/tls/i686/cmov/libnss_dns.so.2
0xffffe410 in __kernel_vsyscall ()
(gdb) continue
Continuing.

Program received signal SIGABRT, Aborted.
[Switching to Thread -1254175824 (LWP 12327)]
0xffffe410 in __kernel_vsyscall ()
(gdb) bt
#0  0xffffe410 in __kernel_vsyscall ()
#1  0xb6ab39b1 in raise () from /lib/tls/i686/cmov/libc.so.6
#2  0xb6ab52c9 in abort () from /lib/tls/i686/cmov/libc.so.6
#3  0xb6aacf51 in __assert_fail () from /lib/tls/i686/cmov/libc.so.6
#4  0xb7304649 in __pthread_mutex_cond_lock ()
   from /lib/tls/i686/cmov/libpthread.so.0
#5  0xb72fffbf in pthread_cond_timedwait@@GLIBC_2.3.2 ()
   from /lib/tls/i686/cmov/libpthread.so.0
#6  0x0806b354 in QMap<QString, QString>::detachInternal ()
#7  0xb72fd361 in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
#8  0xb6b53bde in clone () from /lib/tls/i686/cmov/libc.so.6
(gdb)
Comment 14 Gilbert Martin 2006-09-15 18:49:57 UTC
Same problem here, Kde version 3.5.4 on Gentoo
Comment 15 Alessandro Praduroux 2007-04-16 20:55:28 UTC

*** This bug has been marked as a duplicate of 124529 ***