You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Describe the bug
The nightly now emits "PulseAudioService: pa_context_connect() failed" when you start it, and every 30 seconds thereafter. I am not running pulseaudio.
To Reproduce
Simply start "openscad-nightly" in an xterm.
Expected behavior
No errors emitted.
Code reproducing the issue
N/A - no code needed.
Screenshots
N/A - easy to reproduce.
Environment and Version info (please complete the following information):
OS: Devuan Ceres (aka Testing)
System: Intel PC 64-bit
OpenSCAD Version: OpenSCAD version 2024.01.01.nightly installed from Debian package from the opensuse repository.
Library & Graphics card information
openscad-nightly --info
QObject::startTimer: Timers can only be used with threads started with QThread
OpenSCAD Version: 2024.01.01.nightly (git
38e21ce
)
System information: Linux 6.5.0-5-amd64
#1
SMP PREEMPT_DYNAMIC Debian 6.5.13-1 (2023-11-29) x86_64 Devuan GNU/Linux 6 (excalibur/ceres) 8 CPUs 31.28 GB RAM
User Agent: OpenSCAD/2024.01.01.nightly (git
38e21ce
) (Linux x86_64; Devuan GNU/Linux 6 (excalibur/ceres))
Compiler: GCC "13.2.0" 64bit
MinGW build: No
Debug build: No
Boost version: 1_74
Eigen version: 3.4.0
CGAL version, kernels: 5.5.1, Cartesian, Extended_cartesian, Epeck
OpenCSG version: OpenCSG 1.6.0
Qt version: 5.15.10
QScintilla version: 2.14.1
InputDrivers:
GLib version: 2.78.3
lodepng version: 20210627
libzip version: 1.7.3
fontconfig version: 2.14.2
freetype version: 2.13.2
harfbuzz version: 8.0.1
cairo version: 1.18.0
lib3mf version: 1.8.1
Features: fast-csg, fast-csg-safer, fast-csg-debug, manifold, roof, input-driver-dbus, lazy-union, vertex-object-renderers, vertex-object-renderers-indexing, textmetrics, import-function, predictible-output
Application Path: /usr/bin
Documents Path: /root/.local/share
User Documents Path: /root
Resource Path: /usr/share/openscad-nightly
User Library Path: /root/.local/share/OpenSCAD/libraries
User Config Path: /root/.config/OpenSCAD
Backup Path: /root/.local/share/OpenSCAD/backups
OPENSCADPATH:
OpenSCAD library path:
/root/.local/share/OpenSCAD/libraries
/usr/share/openscad-nightly/libraries
Disabling the sound notification might help as
@MWStonton
suggested.
Yes, I already had "Play sound notification on render complete" unchecked. Good call, though.
I wonder if there's any options in Qt to change the sound engine or turn it off. It gives me something to Google.
As far as I know pulseaudio is a compile-time option for qtmultimedia 5.
If that is not an option - big disclaimer I haven't tried this, keep a copy so you can put it back, at your own risk etc... - deleting
/usr/lib/x86_64-linux-gnu/qt5/plugins/audio/libqtmedia_pulse.so
might just work.
That is the path from Debian
libqt5multimedia5-plugins
.
Yes, I found that lib and moved it to /tmp, and it didn't help.
/lib # grep -Rls "pa_context_connect() failed"
x86_64-linux-gnu/qt5/plugins/audio/libqtmedia_pulse.so
x86_64-linux-gnu/libQt5Multimedia.so.5
x86_64-linux-gnu/libQt6Multimedia.so.6.4.2
x86_64-linux-gnu/pulseaudio/libpulsedsp.so
x86_64-linux-gnu/qemu/audio-pa.so
x86_64-linux-gnu/libQt5Multimedia.so.5.15.10
x86_64-linux-gnu/libQt5Multimedia.so.5.15
x86_64-linux-gnu/libQt6Multimedia.so.6
(and pretty much the same for /lib64)
If I move the libQt5Multimedia/libQt6Multimedia libs, then the apps don't start because they can't load libraries. I didn't have any luck finding a Qt user setting.
I've reproduced the messages. It seems they were being output before, after the first render completed. The change is that now they begin on OpenSCAD startup.
Some ideas about what would stop the messages:
Installing and running PipeWire, it can provide a pulseaudio interface.
Switching to Gentoo. Binaries are available now
https://www.gentoo.org/news/2023/12/29/Gentoo-binary.html
. Even if the binary for dev-qt/qtmultimedia:5 is compiled with pulseaudio, it can be compiled with
USE="-pulseaudio" emerge dev-qt/qtmultimedia
(an experimental OpenSCAD build is a challenge though!).
Hm... well I've used OpenSCAD for a while... (couple years) and this is the first time I thought I'd seen this. I usually render a couple dozen times on the way to a final model. Not arguing though.
Anyway, yeah, it's not a big deal, especially compared to the enormous volumes of barf that GIMP, Firefox, PrusaSlicer, etc output from GTK. I didn't know if it was an indication of a problem behind the scenes.
Thanks for taking a look.
Also THANK YOU for the new measurement tools! After getting half a dozen transforms deep, it's nice to be able to say "what is that distance, again?"
Hm... well I've used OpenSCAD for a while... (couple years) and this is the first time I thought I'd seen this. I usually render a couple dozen times on the way to a final model. Not arguing though.
I think you are right - I did all my testing with "Play sound notification on render complete" checked (I didn't think about it, enough combinations as it was!). But what that did show is it was always impossible to get any sound with the Qt compiled with PulseAudio support/no PulseAudio combination. Although it probably was a way of avoiding the messages.
Hm. So I just updated to 2024.01.06.nightly, which also pulled in some libboost packages.... and....
No more pulseaudio emissions. Alrighty then. I guess this is no longer a bug!