xpra icon
Bug tracker and wiki

This bug tracker and wiki are being discontinued
please use https://github.com/Xpra-org/xpra instead.


Opened 15 months ago

Last modified 9 months ago

#2855 assigned defect

broken sound — at Version 1

Reported by: Francesco Potortì Owned by: Francesco Potortì
Priority: major Milestone: future
Component: server Version: trunk
Keywords: Cc:

Description (last modified by Antoine Martin)

Sound is generally not reliable for short sounds.

If I play music or something longer than one second things are generally good (apart, sometimes, from the very start of sound). But for beeps or short sounds the sound is randomly broken. Tried with opus and flac, with or without av-sync, without any apparent difference.

For example, this sequence of beeps always come out broken, every time in a different way (you need Sox to play this):

play -n synth 0.3 \
    trapezium 1000 0.3 trapezium 1000 0.3 \
    trapezium 1000 0.525 trapezium 2000 0.525 \
    trapezium 1500 delay 2 +.45 +.45 +.45 +.45 remix - gain -n -6 repeat 2

This is the output of an start command followed by attach, issued from the client

Warning: vendor 'Intel' is greylisted,
 you may want to turn off OpenGL if you encounter bugs
2020-08-03 10:20:14,836 Xpra GTK3 X11 client version 4.0.2-r26625 64-bit
2020-08-03 10:20:14,980  running on Linux Debian unstable sid
2020-08-03 10:20:14,981  window manager is 'Metacity (Marco)'
2020-08-03 10:20:14,998 Warning: failed to import opencv:
2020-08-03 10:20:14,999  No module named 'cv2'
2020-08-03 10:20:14,999  webcam forwarding is disabled
2020-08-03 10:20:15,266 GStreamer version 1.16.2 for Python 3.8.5 64-bit
2020-08-03 10:20:15,402 No OpenGL_accelerate module loaded: No module named 'OpenGL_accelerate'
2020-08-03 10:20:15,556 Warning: vendor 'Intel' is greylisted,
2020-08-03 10:20:15,556  you may want to turn off OpenGL if you encounter bugs
2020-08-03 10:20:15,612 OpenGL enabled with Mesa Intel(R) Iris(R) Plus Graphics 655 (CFL GT3)
2020-08-03 10:20:15,870 Connected (version 2.0, client OpenSSH_8.3p1)
2020-08-03 10:20:16,044 Authentication (publickey) failed.
2020-08-03 10:20:16,093 Authentication (publickey) successful!
2020-08-03 10:20:16,323  keyboard settings: rules=evdev, model=pc105, layout=us,it
2020-08-03 10:20:16,340  desktop size is 1280x1024 with 1 screen:
2020-08-03 10:20:16,341   :0.0 (339x271 mm - DPI: 95x95) workarea: 1279x996 at 0x28
2020-08-03 10:20:16,342     GSM DP-1 (376x301 mm - DPI: 86x86)
Warning: vendor 'Intel' is greylisted,
 you may want to turn off OpenGL if you encounter bugs
2020-08-03 10:20:19,595 Xpra GTK3 X11 client version 4.0.2-r26625 64-bit
2020-08-03 10:20:19,738  running on Linux Debian unstable sid
2020-08-03 10:20:19,739  window manager is 'Metacity (Marco)'
2020-08-03 10:20:19,757 Warning: failed to import opencv:
2020-08-03 10:20:19,758  No module named 'cv2'
2020-08-03 10:20:19,758  webcam forwarding is disabled
2020-08-03 10:20:20,030 GStreamer version 1.16.2 for Python 3.8.5 64-bit
2020-08-03 10:20:20,110 No OpenGL_accelerate module loaded: No module named 'OpenGL_accelerate'
2020-08-03 10:20:20,266 Warning: vendor 'Intel' is greylisted,
2020-08-03 10:20:20,267  you may want to turn off OpenGL if you encounter bugs
2020-08-03 10:20:20,325 OpenGL enabled with Mesa Intel(R) Iris(R) Plus Graphics 655 (CFL GT3)
2020-08-03 10:20:20,538 Connected (version 2.0, client OpenSSH_8.3p1)
2020-08-03 10:20:20,712 Authentication (publickey) failed.
2020-08-03 10:20:20,761 Authentication (publickey) successful!
2020-08-03 10:20:21,082  keyboard settings: rules=evdev, model=pc105, layout=us,it
2020-08-03 10:20:21,083  desktop size is 1280x1024 with 1 screen:
2020-08-03 10:20:21,083   :0.0 (339x271 mm - DPI: 95x95) workarea: 1279x996 at 0x28
2020-08-03 10:20:21,084     GSM DP-1 (376x301 mm - DPI: 86x86)
2020-08-03 10:20:27,641 enabled remote logging
2020-08-03 10:20:27,643 Xpra GTK3 X11 server version 4.0.2-r26625 64-bit
2020-08-03 10:20:27,643  running on Linux Debian testing bullseye
2020-08-03 10:20:27,655 Attached to ssh://pot@fly.isti.cnr.it/7
2020-08-03 10:20:27,655  (press Control-C to detach)

2020-08-03 10:20:27,762 server does not support xi input devices
2020-08-03 10:20:27,762  server uses: xtest
2020-08-03 10:20:27,910 sound output using pulseaudio device:
2020-08-03 10:20:27,911 sound output  'Built-in Audio Digital Stereo (HDMI)'
2020-08-03 10:20:28,429 sound output using 'opus' audio codec
/usr/lib/python3/dist-packages/gi/overrides/Gtk.py:1632: Warning: g_object_ref: assertion 'G_IS_OBJECT (object)' failed
  return _Gtk_main(*args, **kwargs)
2020-08-03 10:20:30,403 enabled remote logging
2020-08-03 10:20:30,404 Xpra GTK3 X11 server version 4.0.2-r26625 64-bit
2020-08-03 10:20:30,404  running on Linux Debian testing bullseye
2020-08-03 10:20:30,515 server does not support xi input devices
2020-08-03 10:20:30,515  server uses: xtest
2020-08-03 10:20:30,664 sound output using pulseaudio device:
2020-08-03 10:20:30,664 sound output  'Built-in Audio Digital Stereo (HDMI)'
2020-08-03 10:20:31,183 sound output using 'opus' audio codec
2020-08-03 10:20:32,343 server requested disconnect:
2020-08-03 10:20:32,343  new client
2020-08-03 10:20:32,343  new connection from the same uuid

Change History (1)

comment:1 Changed 15 months ago by Antoine Martin

Component: androidclient
Description: modified (diff)
Owner: changed from Antoine Martin to Francesco Potortì

I believe you must be experiencing side-effects from #1617.
If that's the case, you can disable the "silence detection" by starting your server using:

xpra start --env=CUTTER_THRESHOLD=0 ...

If that's the cause, this will show more information on what it is doing:

XPRA_SOUND_LOG_CUTTER=1

And if that's the case, then I will close as 'notabug' since this is a feature and there is a workaround.

Note: See TracTickets for help on using tickets.