Axel
запушил(а) main в Axel/linux-wallpaperengine-kde
c1630b0469 Faster scene loading, DPMS pause on KWin, playlist and mpv fixes, test coverage 85%, CI hardening
Scene loading: textures, materials and shaders of a scene are read and translated ahead by worker threads (TextureCache, CScene prefetch), the package reader holds files in memory, shader translation memos are filled before the first pass is built. Pausing: SessionMonitor and the KWin DPMS protocol (protocols/kwin-dpms.xml) pause on a blanked display and lock, GNOME Shell and KDE cursor reconnect handling, session bus hardening. Fixes: playlist reload loop when the next item ended (GLPlayer takes the position of the ended player), mpv no longer resets SIGINT/SIGTERM handlers on destroy, particle start values and collisionquad start match the original, text objects with particle None, script module refusal message, _FORTIFY_SOURCE collision with the CEF flags, PulseAudio capture leaks and detector reconnect (upstream). Tests: 365 unit tests, hotswap, playlist, script, shortcut and audio coverage scripts (tools/analysis), AFL, thread safety and gcc analyzer helpers. CI: workflow actions pinned by hash, read-only permissions, CodeQL, dependabot, SECURITY.md. Linux VM harness: Hyprland 0.56 Lua dispatch for the DPMS check.
22440f4c9b Merge upstream, keeping local state
a0ddce586e fix: stop leaking PulseAudio capture streams on sink/source events (#694)
* fix: stop leaking PulseAudio capture streams on sink/source events
pa_server_info_cb runs on every sink/source subscription event (a device
suspending or resuming, an output appearing or changing) and replaced the
capture stream with pa_stream_unref() alone. Unref drops the client's
reference but leaves the stream connected, so each event left another
monitor recording stream running on the server. Over a long session they
pile up (hundreds), the sound server's CPU and memory grow with them, and
every other PulseAudio client gets slow.
Now the existing stream is kept while it already records the default sink's
monitor, and a stream that does get replaced is disconnected before it is
unreferenced (also in the destructor).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* fix: keep the capture stream only while it records the default sink's monitor
A ready stream can be moved to another source, so compare the source it
records from now (pa_stream_get_device_name) instead of the one it was
created for; a stream still connecting is compared with the requested one.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* style: format PulseAudio capture stream condition
---------
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: Almamu <wpengine@alma.mu>
40e40b5932 fix: reconnect the PulseAudio playing detector instead of aborting or hanging (#704)
* fix: survive the PulseAudio server going away in the audio playing detector
When the PulseAudio server restarts (for example `systemctl --user restart
pipewire-pulse`), PulseAudioPlayingDetector::update() keeps using the dead
context. pa_context_get_server_info() then returns NULL, and passing that to
pa_operation_get_state() aborts the whole app:
Assertion 'o' failed at ../pulseaudio/src/pulse/operation.c:136,
function pa_operation_get_state(). Aborting.
The constructor had a related problem: it waited forever for the context to
become ready, so a missing or stuck server hung the app at startup.
The detector now:
- checks for a NULL operation and drops the dead connection
- reconnects once the server is back, retrying at most every 5 seconds
- connects without blocking, giving up on a handshake after 2 seconds
- bounds each query to 100 ms and drops a server that stops answering
- queries sink inputs directly, as the server info step was only used to
start that query (and also unref'd a possibly NULL operation)
- logs once when the server goes away and once when it's back
Tests cover a missing server, a server that accepts connections but never
answers, and the fullscreen/automute settings, without needing a real
server. Without the fix all three hang in the constructor.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* test: loosen the PulseAudio detector timing limits for busy CI runners
Construction may take up to 500 ms and each update up to 250 ms. The tests
catch blocking that lasts seconds (forever before the fix, or a 2 second
connect timeout), so the looser limits still fail on the regressions while
tolerating scheduler stalls.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
9e47eece52 Unregister ScriptEngine album art listener (#700)
- Просмотр сравнение для этих 5 коммитов »
4 недель назад