You are not logged in.

#1 2023-12-28 10:13:47

cdwijs
Member
Registered: 2010-04-24
Posts: 289

running pulseview via ssh: crash when resize window, and high CPU use

I have a laptop with arch linux, and a PC running Windows 10. I am trying to run pulseview on Arch, and then show the pixels on the windows PC. On the arch linux laptop I run sshd, and on the windows PC I run Xming and putty
Pulseview works fine when I run it locally on the Arch laptop.

Pulseview crashes when I resize the window. When I zoom in and out in pulseview with the scrollwheel, I see sshd taking up 25% of CPU on the laptop. This also happens when I move the mouse in the pulseview window. I see a framerate of about 3-5

I use the following settings in putty to connect to the laptop. All other settings are default

host name or address: 192.168.178.129, port 22
connection-ssh-X11-[X] X11 forwarding

I see the following errors when I run pulseview via ssh:

[cedric@garage ~]$ pulseview
qt.qpa.xcb: X server does not support XInput 2
failed to get the current screen resources
QXcbConnection: Failed to initialize GLX
MESA: error: ZINK: vkCreateInstance failed (VK_ERROR_INCOMPATIBLE_DRIVER)
libEGL warning: egl: failed to create dri2 screen

I can move the window around without problems. When I maximize the window, pulseview crashes with this error message. This also happens when I resize the window:

The X11 connection broke (error 1). Did the X11 server die?

The status of sshd:

[root@garage cedric]# systemctl status sshd
● sshd.service - OpenSSH Daemon
     Loaded: loaded (/usr/lib/systemd/system/sshd.service; disabled; preset: disabled)
     Active: active (running) since Thu 2023-12-28 10:23:04 CET; 35min ago
   Main PID: 15793 (sshd)
      Tasks: 1 (limit: 6895)
     Memory: 4.5M (peak: 21.1M)
        CPU: 318ms
     CGroup: /system.slice/sshd.service
             └─15793 "sshd: /usr/bin/sshd -D [listener] 0 of 10-100 startups"

Dec 28 10:23:04 garage systemd[1]: Started OpenSSH Daemon.
Dec 28 10:23:04 garage sshd[15793]: Server listening on 0.0.0.0 port 22.
Dec 28 10:23:04 garage sshd[15793]: Server listening on :: port 22.
Dec 28 10:23:47 garage sshd[15809]: Accepted password for cedric from 192.168.178.136 port 13561 ssh2
Dec 28 10:23:47 garage sshd[15809]: pam_unix(sshd:session): session opened for user cedric(uid=1000) by cedric(uid=0)
Dec 28 10:28:13 garage sshd[15854]: Accepted password for cedric from 192.168.178.136 port 13575 ssh2
Dec 28 10:28:13 garage sshd[15854]: pam_unix(sshd:session): session opened for user cedric(uid=1000) by cedric(uid=0)

The logfile of Xming:

Welcome to the Xming X Server
Vendor: Colin Harrison
Release: 6.9.0.31
FreeType2: 2.3.4
Contact: http://sourceforge.net/forum/?group_id=156984

C:\Program Files (x86)\Xming\Xming.exe :0 -clipboard 
 -multiwindow

XdmcpRegisterConnection: newAddress 192.168.56.1
winAdjustVideoModeShadowGDI - Using Windows display depth of 32 bits per pixel
winAllocateFBShadowGDI - Creating DIB with width: 10240 height: 2174 depth: 32
winAllocateFBShadowGDI - Requested DIB (bitmap) will be larger than 16 MB.  The surface may fail to be allocated on Windows 95, 98, or Me, due to a 16 MB limit in DIB size.  This limit does not apply to Windows NT/2000, and this message may be ignored on those platforms.
winInitVisualsShadowGDI - Masks 00ff0000 0000ff00 000000ff BPRGB 8 d 24 bpp 32
glWinInitVisuals:1596: glWinInitVisuals
glWinInitVisualConfigs:1503: glWinInitVisualConfigs glWinSetVisualConfigs:1581: glWinSetVisualConfigs
init_visuals:1055: init_visuals
null screen fn ReparentWindow
null screen fn RestackWindow
InitQueue - Calling pthread_mutex_init
InitQueue - pthread_mutex_init returned
InitQueue - Calling pthread_cond_init
InitQueue - pthread_cond_init returned
winInitMultiWindowWM - Hello
winInitMultiWindowWM - Calling pthread_mutex_lock ()
winMultiWindowXMsgProc - Hello
winMultiWindowXMsgProc - Calling pthread_mutex_lock ()
glWinScreenProbe:1390: glWinScreenProbe
fixup_visuals:1303: fixup_visuals
init_screen_visuals:1336: init_screen_visuals
(--) 16 mouse buttons found
(--) Setting autorepeat to delay=500, rate=31
(--) winConfigKeyboard - Layout: "00020409" (00020409) 
(--) Using preset keyboard for "English (USA, International)" (20409), type "7"
Could not init font path element C:\Program Files (x86)\Xming/fonts/misc/, removing from list!
Could not init font path element C:\Program Files (x86)\Xming/fonts/TTF/, removing from list!
Could not init font path element C:\Program Files (x86)\Xming/fonts/Type1/, removing from list!
Could not init font path element C:\Program Files (x86)\Xming/fonts/75dpi/, removing from list!
Could not init font path element C:\Program Files (x86)\Xming/fonts/100dpi/, removing from list!
Could not init font path element C:\Program Files\Xming\fonts\dejavu, removing from list!
Could not init font path element C:\Program Files\Xming\fonts\cyrillic, removing from list!
Could not init font path element C:\WINDOWS\Fonts, removing from list!
winInitMultiWindowWM - pthread_mutex_lock () returned.
winInitMultiWindowWM - pthread_mutex_unlock () returned.
winInitMultiWindowWM - DISPLAY=127.0.0.1:0.0
winMultiWindowXMsgProc - pthread_mutex_lock () returned.
winMultiWindowXMsgProc - pthread_mutex_unlock () returned.
winMultiWindowXMsgProc - DISPLAY=127.0.0.1:0.0
winProcEstablishConnection - Hello
winInitClipboard ()
winProcEstablishConnection - winInitClipboard returned.
winClipboardProc - Hello
DetectUnicodeSupport - Windows Vista
winClipboardProc - DISPLAY=127.0.0.1:0.0
winMultiWindowXMsgProc - XOpenDisplay () returned and successfully opened the display.
winInitMultiWindowWM - XOpenDisplay () returned and successfully opened the display.
winClipboardProc - XOpenDisplay () returned and successfully opened the display.

# cat /etc/ssh/sshd_config

# Include drop-in configurations
Include /etc/ssh/sshd_config.d/*.conf

# This is the sshd server system-wide configuration file.  See
# sshd_config(5) for more information.

# This sshd was compiled with PATH=/usr/local/sbin:/usr/local/bin:/usr/bin

# The strategy used for options in the default sshd_config shipped with
# OpenSSH is to specify options with their default value where
# possible, but leave them commented.  Uncommented options override the
# default value.

#Port 22
#AddressFamily any
#ListenAddress 0.0.0.0
#ListenAddress ::

#HostKey /etc/ssh/ssh_host_rsa_key
#HostKey /etc/ssh/ssh_host_ecdsa_key
#HostKey /etc/ssh/ssh_host_ed25519_key

# Ciphers and keying
#RekeyLimit default none

# Logging
#SyslogFacility AUTH
#LogLevel INFO

# Authentication:

#LoginGraceTime 2m
#PermitRootLogin password
#StrictModes yes
#MaxAuthTries 6
#MaxSessions 10

#PubkeyAuthentication yes

# The default is to check both .ssh/authorized_keys and .ssh/authorized_keys2
# but this is overridden so installations will only check .ssh/authorized_keys
AuthorizedKeysFile      .ssh/authorized_keys

#AuthorizedPrincipalsFile none

#AuthorizedKeysCommand none
#AuthorizedKeysCommandUser nobody

# For this to work you will also need host keys in /etc/ssh/ssh_known_hosts
#HostbasedAuthentication no
# Change to yes if you don't trust ~/.ssh/known_hosts for
# HostbasedAuthentication
#IgnoreUserKnownHosts no
# Don't read the user's ~/.rhosts and ~/.shosts files
#IgnoreRhosts yes

# To disable tunneled clear text passwords, change to no here!
#PasswordAuthentication yes
#PermitEmptyPasswords no

# Change to no to disable s/key passwords
#KbdInteractiveAuthentication yes

# Kerberos options
#KerberosAuthentication no
#KerberosOrLocalPasswd yes
#KerberosTicketCleanup yes
#KerberosGetAFSToken no

# GSSAPI options
#GSSAPIAuthentication no
#GSSAPICleanupCredentials yes

# Set this to 'yes' to enable PAM authentication, account processing,
# and session processing. If this is enabled, PAM authentication will
# be allowed through the KbdInteractiveAuthentication and
# PasswordAuthentication.  Depending on your PAM configuration,
# PAM authentication via KbdInteractiveAuthentication may bypass
# the setting of "PermitRootLogin prohibit-password".
# If you just want the PAM account and session checks to run without
# PAM authentication, then enable this but set PasswordAuthentication
# and KbdInteractiveAuthentication to 'no'.
#UsePAM no

#AllowAgentForwarding yes
#AllowTcpForwarding yes
#GatewayPorts no
X11Forwarding yes
#X11DisplayOffset 10
#X11UseLocalhost yes
#PermitTTY yes
#PrintMotd yes
#PrintLastLog yes
#TCPKeepAlive yes
#PermitUserEnvironment no
#Compression delayed
#ClientAliveInterval 0
#ClientAliveCountMax 3
#UseDNS no
#PidFile /run/sshd.pid
#MaxStartups 10:30:100
#PermitTunnel no
#ChrootDirectory none
#VersionAddendum none

# no default banner path
#Banner none

# override default of no subsystems
Subsystem       sftp    /usr/lib/ssh/sftp-server

# Example of overriding settings on a per-user basis
#Match User anoncvs
#       X11Forwarding no
#       AllowTcpForwarding no
#       PermitTTY no
#       ForceCommand cvs server

My versions:

Windows 10 21H2 OS build 19044.3086
Xming 6.9.0.31
Putty 0.78 Source commit: 4ff82ab29a22936b78510c68f544a99e677efed3
# uname -a
Linux garage 6.6.8-arch1-1 #1 SMP PREEMPT_DYNAMIC Thu, 21 Dec 2023 19:01:01 +0000 x86_64 GNU/Linux
# pacman -Q openssh
openssh 9.6p1-1

Offline

#2 2023-12-28 10:30:58

cdwijs
Member
Registered: 2010-04-24
Posts: 289

Re: running pulseview via ssh: crash when resize window, and high CPU use

When I enable compression in Putty the window of pulseview reacts smoothly, with a 0.3 second delay  to the mouse. A big improvement over the 3 FPS of the alternative. on the laptop I now see 100% CPU of sshd when i continiously scroll with the mouse wheel.

I wonder if I have not enough network bandwidth between the laptop and desktop. The laptop is connected via wifi (module ath9k, 150Mbps), and the desktop is connected via ethernet cable.
Without compression, I see 70Mb/sec coming into the windows laptop when I scroll the mouse.
With compression I see about 3.5-4.5 MB/s coming into the windows laptop when I scroll the mouse.

The laptop has 100Mbps LAN, so there's no point in trying with an ethernet cable.

Offline

#3 2023-12-28 10:53:54

cdwijs
Member
Registered: 2010-04-24
Posts: 289

Re: running pulseview via ssh: crash when resize window, and high CPU use

When I run firefox via ssh with compression enabled, I can resize and maximize the window without any issues. Firefox also doesn't give any messages on the console. What's different between firefox and pulseview?

Freecad flashes a window on startup, and then freezes with 100% CPU usage

]$ freecad
FreeCAD 0.21.2, Libs: 0.21.2R33771 (Git)
© Juergen Riegel, Werner Mayer, Yorik van Havre and others 2001-2023
FreeCAD is free and open-source software licensed under the terms of LGPL2+ license.
FreeCAD wouldn't be possible without FreeCAD community.
  #####                 ####  ###   ####
  #                    #      # #   #   #
  #     ##  #### ####  #     #   #  #   #
  ####  # # #  # #  #  #     #####  #   #
  #     #   #### ####  #    #     # #   #
  #     #   #    #     #    #     # #   #  ##  ##  ##
  #     #   #### ####   ### #     # ####   ##  ##  ##

failed to get the current screen resources
(qt.qpa.gl) QXcbConnection: Failed to initialize GLX
MESA: error: ZINK: vkCreateInstance failed (VK_ERROR_INCOMPATIBLE_DRIVER)
libEGL warning: egl: failed to create dri2 screen

^C^C^C
Traceback (most recent call last):
  File "/usr/lib/freecad/Mod/Tux/NavigationIndicatorGui.py", line 50, in changeEvent
    def changeEvent(self, event):

KeyboardInterrupt
The X11 connection broke (error 1). Did the X11 server die?

ghostwriter  flashes a window on startup, and then freezes with 100% CPU usage

]$ ghostwriter
qt.qpa.xcb: X server does not support XInput 2
failed to get the current screen resources
qt.qpa.gl: QXcbConnection: Failed to initialize GLX
MESA: error: ZINK: vkCreateInstance failed (VK_ERROR_INCOMPATIBLE_DRIVER)
libEGL warning: egl: failed to create dri2 screen
No preferred fonts were found. Using system default...
QFont::fromString: Invalid description ',12,-1,5,50,0,0,0,0,0'
QFont::fromString: Invalid description ',12,-1,5,50,0,0,0,0,0'
"pandoc" process timed out and cannot be used.
QProcess: Destroyed while process ("pandoc") is still running.
Command "multimarkdown" is not available.
Using cmark version 0.30.3

Programs that don't crash when resized:

firefox
gedit (although it can only be resized, it doesn''t react to the maximize button)
signal-desktop
freeplane
libreoffice
Xlib:  extension "XINERAMA" missing on display "localhost:12.0".
kicad

Offline

Board footer

Powered by FluxBB