wireshark does not start on TightVNC (headless setup)

Summary

When starting wireshark QT in VNC server with unprivileged user it reports a few warnings and then exits. When starting with root, it core dumps.

X-server: TightVNC

I had no problems running wireshark-gtk v2.6.20-0+deb10u3 (Debian buster) in this environment.

Relevant logs and/or screenshots

$ wireshark
15:29:21.708     Main Warn XKeyboard extension not present on the X server
15:29:23.324     Main Warn The X11 connection broke: Maximum allowed requested length exceeded (code 4)
X connection to :1 broken (explicit kill or server shutdown).
# wireshark
15:30:03.252     Main Warn could not connect to display                                                                                     
15:30:03.252     Main Info Could not load the Qt platform plugin "xcb" in "" even though it was found.                                      
Aborted (core dumped)                                                                                                                       

# coredumpctl info --no-pager
           PID: 715787 (wireshark)                                                                                                          
           UID: 0 (root)                                                                                                                    
           GID: 0 (root)                                                                                                                    
        Signal: 6 (ABRT)                                                                                                                    
     Timestamp: Fri 2022-06-24 15:30:03 CEST (1h 7min ago)                                                                                  
  Command Line: wireshark                                                                                                                   
    Executable: /usr/bin/wireshark                                                                                                          
 Control Group: /user.slice/user-1000.slice/session-c1.scope                                                                                
          Unit: session-c1.scope                                                                                                            
         Slice: user-1000.slice
       Session: c1
     Owner UID: 1000 (test)
       Storage: /var/lib/systemd/coredump/core.wireshark.0.d4e9b1a7174349b5a7f7808e822ee566.715787.1656077403000000.zst
       Message: Process 715787 (wireshark) of user 0 dumped core.
                 
                Stack trace of thread 715787:
                #0  0x00007fc6b9967ce1 raise (libc.so.6 + 0x3bce1)
                #1  0x00007fc6b9951537 abort (libc.so.6 + 0x25537)
                #2  0x00007fc6b9eafbf1 _ZNK14QMessageLogger5fatalEPKcz (libQt5Core.so.5 + 0x91bf1)
                #3  0x00007fc6ba49d8c4 _ZN22QGuiApplicationPrivate25createPlatformIntegrationEv (libQt5Gui.so.5 + 0x1348c4)
                #4  0x00007fc6ba49dd50 _ZN22QGuiApplicationPrivate21createEventDispatcherEv (libQt5Gui.so.5 + 0x134d50)
                #5  0x00007fc6ba0d2a56 _ZN23QCoreApplicationPrivate4initEv (libQt5Core.so.5 + 0x2b4a56)
                #6  0x00007fc6ba4a0c9f _ZN22QGuiApplicationPrivate4initEv (libQt5Gui.so.5 + 0x137c9f)
                #7  0x00007fc6bb233ef9 _ZN19QApplicationPrivate4initEv (libQt5Widgets.so.5 + 0x167ef9)
                #8  0x0000555df384543e n/a (wireshark + 0x2f743e)
                #9  0x0000555df3641d24 main (wireshark + 0xf3d24)
                #10 0x00007fc6b9952d0a __libc_start_main (libc.so.6 + 0x26d0a)
                #11 0x0000555df36453fa n/a (wireshark + 0xf73fa)

Relevant issue

Build information

v3.4.10-0+deb11u1 / Debian bullseye

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information