WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: vnc server dying with rdr::EndOfStream  (Read 3626 times)

Offline itias

  • Newbie
  • *
  • Posts: 17
vnc server dying with rdr::EndOfStream
« on: November 02, 2009, 06:20:09 AM »
I'm having trouble with running vnc server on TC.
I'm using x0vncserver-4.1.1.tczl package and launching the server by
Code: [Select]
x0vncserver -PasswordFile=/home/tc/.vnc/passwd &
as per the info file. I can connect to the TC box with no issues however on closing the connection I'm getting the following message terminate called after throwing an instance of rdr::EndofStream on TC machine and cannot connect to it anymore.
I haven't found anything similar on the forum so I would appreciate some help understanding what's wrong.

Offline robc

  • Sr. Member
  • ****
  • Posts: 447
Re: vnc server dying with rdr::EndOfStream
« Reply #1 on: November 02, 2009, 12:00:47 PM »
Actually this is the same problem as here: http://forum.tinycorelinux.net/index.php?topic=2360

Basically x0vncserver is throwing an exception and the current glibc/gcc used in TC is not handling exceptions.
"Never give up! Never surrender!" - Commander Peter Quincy Taggart

"Make it so." - Captain Picard

Offline itias

  • Newbie
  • *
  • Posts: 17
Re: vnc server dying with rdr::EndOfStream
« Reply #2 on: November 02, 2009, 03:12:23 PM »
Thanks, robc.
So let me rephrase my question: does that mean that I need to start vnc server over after disconnecting if I want to open a new session? Or is there a way to gracefully end the session in order not to throw the exception? Thanks

Offline Kingdomcome

  • Sr. Member
  • ****
  • Posts: 286
Re: vnc server dying with rdr::EndOfStream
« Reply #3 on: December 06, 2009, 06:52:14 PM »
I am seeing the same behavior with x0vncserver, and the only workaround Ive found is to ssh in and restart the vnc server before every reconnect.  I hope the next major version of TC will be built to handle exceptions, because this is not the only problem Ive run across due to lack of exception handling.

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: vnc server dying with rdr::EndOfStream
« Reply #4 on: December 17, 2009, 05:16:59 PM »
I use the following bash script:

---------------------------
#myvnc
while true
do
    x0vncserver -AlwaysShared=1 -PasswordFile=/home/tc/.vnc/passwd
done 2>/dev/null
---------------------------

Then I add after the waitfor X line:
---------------------------
./myvnc &
---------------------------


Offline Kingdomcome

  • Sr. Member
  • ****
  • Posts: 286
Re: vnc server dying with rdr::EndOfStream
« Reply #5 on: December 17, 2009, 07:18:32 PM »
Simple workaround, very nice.  Just FYI, I have switched to x11vnc.tcz which has worked well for me with the -forever switch.