Xtightvnc Segfaults...

tony tonysown.net <[email protected]> Sun, 3 Mar 2024 17:39:42 +0000
Newsgroups gmane.network.tight-vnc.general
Message-ID <CO3PR18MB4848F1A8B2E7B7C28AF84DD5AE5C2@CO3PR18MB4848.namprd18.prod.outlook.com>
--===============0755207843704179032==
Content-Language: en-US
Content-Type: multipart/alternative;
	boundary="_000_CO3PR18MB4848F1A8B2E7B7C28AF84DD5AE5C2CO3PR18MB4848namp_"

--_000_CO3PR18MB4848F1A8B2E7B7C28AF84DD5AE5C2CO3PR18MB4848namp_
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

I posted this on Ask Ubuntu, as well, but so far, the only response I've go=
tten is basically "Don't use VNC."
I'm having an issue which is driving me nuts. I've been trying to move over=
 to Ubuntu 22 (from 18 right now) but can't get a stable VNC environment.
I installed 22.04 LTS it via Hyper-V Quick Create. I updated everything wit=
h "sudo apt update" and "... upgrade" right from the get-go.
I then installed xfce4, xfce4-goodies, and tightvncserver.
My .vnc/xstartup script:
#!/bin/bash
unset SESSION_MANAGER
unset DBUS_SESSION_BUS_ADDRESS

xrdb $HOME/.Xresources
startxfce4 &


Sessions fail after a random amount of time (sometimes hours, sometimes les=
s, like below). When it runs "normally," certain other things (most notably=
 LibreOffice) will crash the VNC server when doing something as simple as c=
losing a document.
Whenever it happens, the VNC client gives the error "Failed to recv data fr=
om remote socket."
I see this in /var/log/kern.log:
Mar  2 12:23:37 mars kernel: [ 1281.469703] xiccd[4832]: segfault at e4 ip =
000055ede2bd84f6 sp 00007ffc2ece1300 error 4 in xiccd[55ede2bd4000+5000] li=
kely on CPU 3 (core 1, socket 0)
Mar  2 12:26:43 mars kernel: [ 1467.206087] Xtightvnc[4681]: segfault at 7f=
ff82e42d08 ip 000055f205d65a76 sp 00007fff82e41d10 error 6 in Xtightvnc[55f=
205c34000+137000] likely on CPU 2 (core 1, socket 0)

The ip/sp pointers are different every time I've compared.
What's really curious is, despite MONTHS of searching, I'm not finding anyo=
ne else reporting similar issues. Surely I can't be alone. :)
I've used this arrangement / configuration since probably Ubuntu 14 without=
 issue, but can't get past this in 20.04 or 22.04. I've given the VM 6 vCPU=
s and 8GB of memory. They hypervisor has an 8th Gen Core i7 with 6 CPUs/12 =
threads and 48GB of memory.
Any suggestions would be greatly appreciated.


--_000_CO3PR18MB4848F1A8B2E7B7C28AF84DD5AE5C2CO3PR18MB4848namp_
Content-Type: text/html; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<html xmlns:v=3D"urn:schemas-microsoft-com:vml" xmlns:o=3D"urn:schemas-micr=
osoft-com:office:office" xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns:m=3D"http://schemas.microsoft.com/office/2004/12/omml" xmlns=3D"http:=
//www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dus-ascii"=
>
<meta name=3D"Generator" content=3D"Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
	{font-family:"Cambria Math";
	panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
	{font-family:Aptos;}
@font-face
	{font-family:"Segoe UI";
	panose-1:2 11 5 2 4 2 4 2 2 3;}
@font-face
	{font-family:"var\(--ff-mono\)";
	panose-1:0 0 0 0 0 0 0 0 0 0;}
@font-face
	{font-family:inherit;
	panose-1:0 0 0 0 0 0 0 0 0 0;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0in;
	font-size:11.0pt;
	font-family:"Aptos",sans-serif;
	mso-ligatures:standardcontextual;}
span.EmailStyle17
	{mso-style-type:personal-compose;
	font-family:"Aptos",sans-serif;
	color:windowtext;}
.MsoChpDefault
	{mso-style-type:export-only;
	font-size:11.0pt;}
@page WordSection1
	{size:8.5in 11.0in;
	margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
	{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext=3D"edit" spidmax=3D"1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext=3D"edit">
<o:idmap v:ext=3D"edit" data=3D"1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang=3D"EN-US" link=3D"#467886" vlink=3D"#96607D" style=3D"word-wrap:=
break-word">
<div class=3D"WordSection1">
<p class=3D"MsoNormal" style=3D"margin-bottom:13.2pt;background:white;verti=
cal-align:baseline">
<span style=3D"font-size:11.5pt;font-family:&quot;Segoe UI&quot;,sans-serif=
;color:#0C0D0E;mso-ligatures:none">I posted this on Ask Ubuntu, as well, bu=
t so far, the only response I&#8217;ve gotten is basically &#8220;Don&#8217=
;t use VNC.&#8221;<o:p></o:p></span></p>
<p class=3D"MsoNormal" style=3D"margin-bottom:13.2pt;background:white;verti=
cal-align:baseline">
<span style=3D"font-size:11.5pt;font-family:&quot;Segoe UI&quot;,sans-serif=
;color:#0C0D0E;mso-ligatures:none">I'm having an issue which is driving me =
nuts. I've been trying to move over to Ubuntu 22 (from 18 right now) but ca=
n't get a stable VNC environment.<o:p></o:p></span></p>
<p class=3D"MsoNormal" style=3D"margin-bottom:13.2pt;background:white;verti=
cal-align:baseline">
<span style=3D"font-size:11.5pt;font-family:&quot;Segoe UI&quot;,sans-serif=
;color:#0C0D0E;mso-ligatures:none">I installed 22.04 LTS it via Hyper-V Qui=
ck Create. I updated everything with &#8220;sudo apt update&#8221; and &#82=
20;&#8230; upgrade&#8221; right from the get-go.<o:p></o:p></span></p>
<p class=3D"MsoNormal" style=3D"margin-bottom:13.2pt;background:white;verti=
cal-align:baseline">
<span style=3D"font-size:11.5pt;font-family:&quot;Segoe UI&quot;,sans-serif=
;color:#0C0D0E;mso-ligatures:none">I then installed xfce4, xfce4-goodies, a=
nd tightvncserver.<o:p></o:p></span></p>
<p class=3D"MsoNormal" style=3D"margin-bottom:13.2pt;background:white;verti=
cal-align:baseline">
<span style=3D"font-size:11.5pt;font-family:&quot;Segoe UI&quot;,sans-serif=
;color:#0C0D0E;mso-ligatures:none">My .vnc/xstartup script:<o:p></o:p></spa=
n></p>
<p class=3D"MsoNormal" style=3D"vertical-align:baseline"><span style=3D"fon=
t-size:10.0pt;font-family:&quot;Courier New&quot;;color:#0C0D0E;border:none=
 windowtext 1.0pt;padding:0in;mso-ligatures:none">#!/bin/bash<o:p></o:p></s=
pan></p>
<p class=3D"MsoNormal" style=3D"vertical-align:baseline"><span style=3D"fon=
t-size:10.0pt;font-family:&quot;Courier New&quot;;color:#0C0D0E;border:none=
 windowtext 1.0pt;padding:0in;mso-ligatures:none">unset SESSION_MANAGER<o:p=
></o:p></span></p>
<p class=3D"MsoNormal" style=3D"vertical-align:baseline"><span style=3D"fon=
t-size:10.0pt;font-family:&quot;Courier New&quot;;color:#0C0D0E;border:none=
 windowtext 1.0pt;padding:0in;mso-ligatures:none">unset DBUS_SESSION_BUS_AD=
DRESS</span><span style=3D"font-size:10.0pt;font-family:&quot;var(--ff-mono=
)&quot;,serif;color:#0C0D0E;border:none windowtext 1.0pt;padding:0in;mso-li=
gatures:none"><o:p></o:p></span></p>
<p class=3D"MsoNormal" style=3D"vertical-align:baseline"><span style=3D"fon=
t-size:10.0pt;font-family:&quot;var(--ff-mono)&quot;,serif;color:#0C0D0E;bo=
rder:none windowtext 1.0pt;padding:0in;mso-ligatures:none"><o:p>&nbsp;</o:p=
></span></p>
<p class=3D"MsoNormal" style=3D"vertical-align:baseline"><span style=3D"fon=
t-size:10.0pt;font-family:&quot;Courier New&quot;;color:#0C0D0E;border:none=
 windowtext 1.0pt;padding:0in;mso-ligatures:none">xrdb $HOME/.Xresources<o:=
p></o:p></span></p>
<p class=3D"MsoNormal" style=3D"vertical-align:baseline"><span style=3D"fon=
t-size:10.0pt;font-family:&quot;Courier New&quot;;color:#0C0D0E;border:none=
 windowtext 1.0pt;padding:0in;mso-ligatures:none">startxfce4 &amp;<o:p></o:=
p></span></p>
<p class=3D"MsoNormal" style=3D"vertical-align:baseline"><span style=3D"fon=
t-size:10.0pt;font-family:&quot;Courier New&quot;;color:#0C0D0E;border:none=
 windowtext 1.0pt;padding:0in;mso-ligatures:none"><o:p>&nbsp;</o:p></span><=
/p>
<p class=3D"MsoNormal" style=3D"vertical-align:baseline"><span style=3D"fon=
t-size:10.0pt;font-family:&quot;Courier New&quot;;color:#0C0D0E;border:none=
 windowtext 1.0pt;padding:0in;mso-ligatures:none"><o:p>&nbsp;</o:p></span><=
/p>
<p class=3D"MsoNormal" style=3D"margin-bottom:13.2pt;background:white;verti=
cal-align:baseline">
<span style=3D"font-size:11.5pt;font-family:&quot;Segoe UI&quot;,sans-serif=
;color:#0C0D0E;mso-ligatures:none">Sessions fail after a random amount of t=
ime (sometimes hours, sometimes less, like below). When it runs &quot;norma=
lly,&quot; certain other things (most notably LibreOffice)
 will crash the VNC server when doing something as simple as closing a docu=
ment.<o:p></o:p></span></p>
<p class=3D"MsoNormal" style=3D"margin-bottom:13.2pt;background:white;verti=
cal-align:baseline">
<span style=3D"font-size:11.5pt;font-family:&quot;Segoe UI&quot;,sans-serif=
;color:#0C0D0E;mso-ligatures:none">Whenever it happens, the VNC client give=
s the error &quot;Failed to recv data from remote socket.&quot;<o:p></o:p><=
/span></p>
<p class=3D"MsoNormal" style=3D"margin-bottom:13.2pt;background:white;verti=
cal-align:baseline">
<span style=3D"font-size:11.5pt;font-family:&quot;Segoe UI&quot;,sans-serif=
;color:#0C0D0E;mso-ligatures:none">I see this in /var/log/kern.log:<o:p></o=
:p></span></p>
<p class=3D"MsoNormal" style=3D"vertical-align:baseline"><span style=3D"fon=
t-size:10.0pt;font-family:&quot;Courier New&quot;;color:#0C0D0E;border:none=
 windowtext 1.0pt;padding:0in;mso-ligatures:none">Mar&nbsp; 2 12:23:37 mars=
 kernel: [ 1281.469703] xiccd[4832]: segfault at e4 ip
 000055ede2bd84f6 sp 00007ffc2ece1300 error 4 in xiccd[55ede2bd4000+5000] l=
ikely on CPU 3 (core 1, socket 0)<o:p></o:p></span></p>
<p class=3D"MsoNormal" style=3D"vertical-align:baseline"><span style=3D"fon=
t-size:10.0pt;font-family:&quot;Courier New&quot;;color:#0C0D0E;border:none=
 windowtext 1.0pt;padding:0in;mso-ligatures:none">Mar&nbsp; 2 12:26:43 mars=
 kernel: [ 1467.206087] Xtightvnc[4681]: segfault at
 7fff82e42d08 ip 000055f205d65a76 sp 00007fff82e41d10 error 6 in Xtightvnc[=
55f205c34000+137000] likely on CPU 2 (core 1, socket 0)</span><span style=
=3D"font-size:10.0pt;font-family:&quot;var(--ff-mono)&quot;,serif;color:#0C=
0D0E;border:none windowtext 1.0pt;padding:0in;mso-ligatures:none"><o:p></o:=
p></span></p>
<p class=3D"MsoNormal" style=3D"margin-bottom:13.2pt;background:white;verti=
cal-align:baseline">
<span style=3D"font-size:11.5pt;font-family:&quot;Segoe UI&quot;,sans-serif=
;color:#0C0D0E;mso-ligatures:none"><o:p>&nbsp;</o:p></span></p>
<p class=3D"MsoNormal" style=3D"margin-bottom:13.2pt;background:white;verti=
cal-align:baseline">
<span style=3D"font-size:11.5pt;font-family:&quot;Segoe UI&quot;,sans-serif=
;color:#0C0D0E;mso-ligatures:none">The ip/sp pointers are different every t=
ime I've compared.<o:p></o:p></span></p>
<p class=3D"MsoNormal" style=3D"margin-bottom:13.2pt;background:white;verti=
cal-align:baseline">
<span style=3D"font-size:11.5pt;font-family:&quot;Segoe UI&quot;,sans-serif=
;color:#0C0D0E;mso-ligatures:none">What's really curious is, despite MONTHS=
 of searching, I'm not finding anyone else reporting similar issues. Surely=
 I can't be alone. :)<o:p></o:p></span></p>
<p class=3D"MsoNormal" style=3D"margin-bottom:13.2pt;background:white;verti=
cal-align:baseline">
<span style=3D"font-size:11.5pt;font-family:&quot;Segoe UI&quot;,sans-serif=
;color:#0C0D0E;mso-ligatures:none">I've used this arrangement / configurati=
on since probably Ubuntu 14 without issue, but can't get past this in 20.04=
 or 22.04. I've given the VM 6 vCPUs and 8GB
 of memory. They hypervisor has an 8th Gen Core i7 with 6 CPUs/12 threads a=
nd 48GB of memory.<o:p></o:p></span></p>
<p class=3D"MsoNormal" style=3D"background:white;vertical-align:baseline"><=
span style=3D"font-size:11.5pt;font-family:&quot;Segoe UI&quot;,sans-serif;=
color:#0C0D0E;mso-ligatures:none">Any suggestions would be&nbsp;</span><b><=
span style=3D"font-size:11.5pt;font-family:&quot;inherit&quot;,serif;color:=
#0C0D0E;border:none windowtext 1.0pt;padding:0in;mso-ligatures:none">greatl=
y</span></b><span style=3D"font-size:11.5pt;font-family:&quot;Segoe UI&quot=
;,sans-serif;color:#0C0D0E;mso-ligatures:none">&nbsp;appreciated.<o:p></o:p=
></span></p>
<p class=3D"MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
</body>
</html>

--_000_CO3PR18MB4848F1A8B2E7B7C28AF84DD5AE5C2CO3PR18MB4848namp_--


--===============0755207843704179032==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline


--===============0755207843704179032==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

___________________________________________________________
TightVNC mailing list, [email protected]
To change your subscription or to UNSUBSCRIBE, please visit
https://lists.sourceforge.net/lists/listinfo/vnc-tight-list

--===============0755207843704179032==--