Robin Getz
c2b30d4fa8
tree wide: Fix message ownership and reporting for unhandled queue messages
...
MessageQueue::pop() transfers ownership of the popped message to the
caller, but many handleInputMessages() implementations only deleted
the message when handleMessage() returned true. When a message was not
handled, ownership had already been transferred from the queue and the
message was leaked.
This was identified while investigating an ASAN leak in the audio
subsystem.
Update the applicable handleInputMessages() implementations to always
delete messages after handleMessage() returns. Unhandled messages are
also logged with the component and message identifier so unexpected
message routing is visible during debugging.
This change:
- Ensures every message popped from a queue has its ownership resolved.
- Prevents leaks when handleMessage() returns false.
- Makes unhandled messages visible instead of silently discarding them.
- Preserves the existing message handling logic and does not require
components to handle message types that are legitimately irrelevant
to them.
The changes are intentionally mechanical and limited to the common
message queue ownership and diagnostic pattern.
Signed-off-by: Robin Getz <rgetz503@gmail.com>
2 months ago
srcejon
e3e2f5bb20
Add active only button. Increase poll frequency. Support channels that don't have a frequency offset.
7 months ago
Jon Beniston
c545a835e1
Bring in line with other features.
7 months ago
copilot-swe-agent[bot]
4581df2c53
refactor: make FreqDisplay::applySettings private; use MsgConfigureFreqDisplay in FreqDisplayGUI::applySettings
...
Agent-Logs-Url: https://github.com/srcejon/sdrangel/sessions/d71b1b23-0809-4351-bfc0-1f46a26a49cc
Co-authored-by: srcejon <57259258+srcejon@users.noreply.github.com>
7 months ago
Jon Beniston
fd9f3ac632
Fix compilation.
7 months ago
copilot-swe-agent[bot]
219ece573c
feat: implement FreqDisplay WebAPI (webapiSettingsGet/PutPatch, format/update, reverseSend)
...
Agent-Logs-Url: https://github.com/srcejon/sdrangel/sessions/373fd0a8-4ef8-4849-8b8e-adb0a988230d
Co-authored-by: srcejon <57259258+srcejon@users.noreply.github.com>
7 months ago
Jon Beniston
a298406d74
Fix use of settings keys.
...
Add onMenuDialogCalled to support basic settings dialog.
7 months ago
Jon Beniston
afde6d50b4
Update naming convention.
7 months ago
copilot-swe-agent[bot]
154e52d0b2
refactor: move anonymous namespace members into FreqDisplayGUI as static members
...
Agent-Logs-Url: https://github.com/srcejon/sdrangel/sessions/822b5f58-a706-4e7c-af65-8d2b5c4be5b1
Co-authored-by: srcejon <57259258+srcejon@users.noreply.github.com>
7 months ago
copilot-swe-agent[bot]
9363b043a1
feat: add drop shadow ButtonSwitch and color picker to freqdisplay
...
Agent-Logs-Url: https://github.com/srcejon/sdrangel/sessions/41854996-2343-4d0a-b99a-2a0ebdc8e586
Co-authored-by: srcejon <57259258+srcejon@users.noreply.github.com>
7 months ago
Jon Beniston
8896ed129a
Fix both windows being displayed at startup, if transparency enabled.
7 months ago
Jon Beniston
dc960c2dfd
Position overlay so it's where the frequencyValue widget was.
7 months ago
Jon Beniston
ef335dd1ff
Disable word wrapping
7 months ago
Jon Beniston
01b53f50b0
Fix window sizing by calling sizeToContents. Roll back previous commit.
...
Add rollup settings.
7 months ago
copilot-swe-agent[bot]
2bbe19af46
freqdisplay: fix font sizing to respect both width and height constraints
...
Agent-Logs-Url: https://github.com/srcejon/sdrangel/sessions/8205839a-4dad-46b0-8fbf-02dd31499bb7
Co-authored-by: srcejon <57259258+srcejon@users.noreply.github.com>
7 months ago
Jon Beniston
ffe32eb1a0
Speech current text when speech enabled. Disable speech button if not available.
...
Fix font color button.
Add rollup titles.
7 months ago
copilot-swe-agent[bot]
6b67959774
freqdisplay: add text color picker button saved as setting, default white
...
Agent-Logs-Url: https://github.com/srcejon/sdrangel/sessions/6d0cceb4-1d01-4c8e-95aa-f203715615cc
Co-authored-by: srcejon <57259258+srcejon@users.noreply.github.com>
7 months ago
copilot-swe-agent[bot]
ff06cf1935
freqdisplay: fix crash on exit transparent mode by using deleteLater()
...
Agent-Logs-Url: https://github.com/srcejon/sdrangel/sessions/9fb3e940-7f8e-46a9-8095-5ebc03428c00
Co-authored-by: srcejon <57259258+srcejon@users.noreply.github.com>
7 months ago
copilot-swe-agent[bot]
eabd3e605d
freqdisplay: replace MDI-manipulation transparency with separate overlay window
...
Agent-Logs-Url: https://github.com/srcejon/sdrangel/sessions/758a0e0b-447d-42b8-811b-97c35b453955
Co-authored-by: srcejon <57259258+srcejon@users.noreply.github.com>
7 months ago
copilot-swe-agent[bot]
75eae6f663
freqdisplay: fix Windows border/title not repainting after transparency disable
...
Agent-Logs-Url: https://github.com/srcejon/sdrangel/sessions/9bcd11e2-9fae-4e81-8157-f7dc21351c85
Co-authored-by: srcejon <57259258+srcejon@users.noreply.github.com>
7 months ago
Jon Beniston
2f9d6a8df4
Add border spacing.
7 months ago
Jon Beniston
bf8ae8c506
Add copyright.
7 months ago
Jon Beniston
a5d519bc82
Free speech engine in destructor.
7 months ago
copilot-swe-agent[bot]
6854e6737b
freqdisplay: add frequency and power decimal-places spinboxes
...
Agent-Logs-Url: https://github.com/srcejon/sdrangel/sessions/0a80d06a-83cf-4fde-8fc7-5d8ef9b43ffe
Co-authored-by: srcejon <57259258+srcejon@users.noreply.github.com>
7 months ago
copilot-swe-agent[bot]
c075f4fa5c
freqdisplay: fix transparent mode exit hang (reorder addSubWindow); expand speech unit abbreviations
...
Agent-Logs-Url: https://github.com/srcejon/sdrangel/sessions/419cd81e-d0ee-4a21-8ddf-3577c1389c52
Co-authored-by: srcejon <57259258+srcejon@users.noreply.github.com>
7 months ago
copilot-swe-agent[bot]
59504ea23d
freqdisplay: fix hang on transparency exit; add units/showUnits; fix dB; fix Both mode fallback
...
Agent-Logs-Url: https://github.com/srcejon/sdrangel/sessions/ab287ce0-b7ef-4125-9e62-9054ab2ccd93
Co-authored-by: srcejon <57259258+srcejon@users.noreply.github.com>
7 months ago
Jon Beniston
2a41303bc0
Fix initialisation of speech engine, if enabled by displaySettings.
7 months ago
Jon Beniston
bfad90d5bb
Enable child mouse tracking for resizer
7 months ago
copilot-swe-agent[bot]
24adb3a0cd
freqdisplay: fix transparent mode border/title restoration and font wrap
...
Agent-Logs-Url: https://github.com/srcejon/sdrangel/sessions/1825f915-718a-4d8c-ab81-0543427ac33c
Co-authored-by: srcejon <57259258+srcejon@users.noreply.github.com>
7 months ago
copilot-swe-agent[bot]
38bbc94c0e
freqdisplay: hide settings bar when in transparent mode so frequencyValue fills the window
...
Agent-Logs-Url: https://github.com/srcejon/sdrangel/sessions/4427c934-bfa7-43ce-82fb-2b946d60094d
Co-authored-by: srcejon <57259258+srcejon@users.noreply.github.com>
7 months ago
copilot-swe-agent[bot]
b84d76e91f
freqdisplay: only set WA_TranslucentBackground when transparency is enabled
...
Agent-Logs-Url: https://github.com/srcejon/sdrangel/sessions/61cdbc74-f85f-41e5-b23c-46ec042bb6d3
Co-authored-by: srcejon <57259258+srcejon@users.noreply.github.com>
7 months ago
copilot-swe-agent[bot]
d6b09a182a
freqdisplay: prevent speech interruption by deferring say() while engine is busy
...
Agent-Logs-Url: https://github.com/srcejon/sdrangel/sessions/d2f9d633-2776-4397-bc8c-09e0b5f37ed2
Co-authored-by: srcejon <57259258+srcejon@users.noreply.github.com>
7 months ago
copilot-swe-agent[bot]
ad4e4b0a7e
freqdisplay: detach from MDI as floating top-level window for true compositor transparency
...
Agent-Logs-Url: https://github.com/srcejon/sdrangel/sessions/2a3ba811-8a0c-4e65-b476-8c0523967896
Co-authored-by: srcejon <57259258+srcejon@users.noreply.github.com>
7 months ago
copilot-swe-agent[bot]
939182f391
freqdisplay: fix display-area transparency via RollupContents CompositionMode_Clear
...
Agent-Logs-Url: https://github.com/srcejon/sdrangel/sessions/60df4275-14c1-4cde-b5c7-9b02734fe35f
Co-authored-by: srcejon <57259258+srcejon@users.noreply.github.com>
7 months ago
copilot-swe-agent[bot]
081f4d5644
freqdisplay: make only the display area transparent, not the settings bar
...
Agent-Logs-Url: https://github.com/srcejon/sdrangel/sessions/b295b0a4-ffcc-41dc-9e86-f204ec06d389
Co-authored-by: srcejon <57259258+srcejon@users.noreply.github.com>
7 months ago
copilot-swe-agent[bot]
f8c4f6e993
freqdisplay: add speech toggle ButtonSwitch (S)
...
Agent-Logs-Url: https://github.com/srcejon/sdrangel/sessions/edc6e427-03a3-4bf4-a0e6-9362ab392340
Co-authored-by: srcejon <57259258+srcejon@users.noreply.github.com>
7 months ago
copilot-swe-agent[bot]
765b7613b1
freqdisplay: add display mode combo (Frequency / Power / Both)
...
Agent-Logs-Url: https://github.com/srcejon/sdrangel/sessions/a19c344b-fddf-4a20-beee-ff370bc34c33
Co-authored-by: srcejon <57259258+srcejon@users.noreply.github.com>
7 months ago
copilot-swe-agent[bot]
c99512f0fa
freqdisplay: fix window-level transparency using WA_TranslucentBackground
...
Agent-Logs-Url: https://github.com/srcejon/sdrangel/sessions/8448f451-08c7-4fd5-a06c-3be51e88e6c6
Co-authored-by: srcejon <57259258+srcejon@users.noreply.github.com>
7 months ago
copilot-swe-agent[bot]
f5a3dce168
freqdisplay: add font family combo box and transparent background toggle
...
Agent-Logs-Url: https://github.com/srcejon/sdrangel/sessions/b4da7187-ba56-4943-ae14-800f326fb72b
Co-authored-by: srcejon <57259258+srcejon@users.noreply.github.com>
7 months ago
copilot-swe-agent[bot]
5df45136f7
freqdisplay: auto-fit font to available width and height so text is always fully visible
...
Agent-Logs-Url: https://github.com/srcejon/sdrangel/sessions/a5adfa9d-7047-46b6-8d9f-ded5f125ab8c
Co-authored-by: srcejon <57259258+srcejon@users.noreply.github.com>
7 months ago
copilot-swe-agent[bot]
f8c7728391
Polish freqdisplay naming clarity in GUI constants
...
Agent-Logs-Url: https://github.com/srcejon/sdrangel/sessions/3b53c052-7f2b-4597-b509-d7cc17f3b0b0
Co-authored-by: srcejon <57259258+srcejon@users.noreply.github.com>
7 months ago
copilot-swe-agent[bot]
965e647e2d
Improve freqdisplay polling diagnostics and font sizing guards
...
Agent-Logs-Url: https://github.com/srcejon/sdrangel/sessions/3b53c052-7f2b-4597-b509-d7cc17f3b0b0
Co-authored-by: srcejon <57259258+srcejon@users.noreply.github.com>
7 months ago
copilot-swe-agent[bot]
3d6815c9d2
Replace freqdisplay magic numbers with named constants
...
Agent-Logs-Url: https://github.com/srcejon/sdrangel/sessions/3b53c052-7f2b-4597-b509-d7cc17f3b0b0
Co-authored-by: srcejon <57259258+srcejon@users.noreply.github.com>
7 months ago
copilot-swe-agent[bot]
2cfa6f0027
Document freqdisplay font scaling factor
...
Agent-Logs-Url: https://github.com/srcejon/sdrangel/sessions/3b53c052-7f2b-4597-b509-d7cc17f3b0b0
Co-authored-by: srcejon <57259258+srcejon@users.noreply.github.com>
7 months ago
copilot-swe-agent[bot]
5b42b1d318
Align freqdisplay local constant naming with project style
...
Agent-Logs-Url: https://github.com/srcejon/sdrangel/sessions/3b53c052-7f2b-4597-b509-d7cc17f3b0b0
Co-authored-by: srcejon <57259258+srcejon@users.noreply.github.com>
7 months ago
copilot-swe-agent[bot]
0934ad4f4f
Clarify RX/TX kind constant and frequency arithmetic types
...
Agent-Logs-Url: https://github.com/srcejon/sdrangel/sessions/3b53c052-7f2b-4597-b509-d7cc17f3b0b0
Co-authored-by: srcejon <57259258+srcejon@users.noreply.github.com>
7 months ago
copilot-swe-agent[bot]
f1388ca571
Polish freqdisplay GUI iteration and font scaling constant
...
Agent-Logs-Url: https://github.com/srcejon/sdrangel/sessions/3b53c052-7f2b-4597-b509-d7cc17f3b0b0
Co-authored-by: srcejon <57259258+srcejon@users.noreply.github.com>
7 months ago
copilot-swe-agent[bot]
55a127da3f
Refine freqdisplay implementation based on review feedback
...
Agent-Logs-Url: https://github.com/srcejon/sdrangel/sessions/3b53c052-7f2b-4597-b509-d7cc17f3b0b0
Co-authored-by: srcejon <57259258+srcejon@users.noreply.github.com>
7 months ago
copilot-swe-agent[bot]
b2909fec64
Add initial freqdisplay feature plugin implementation
...
Agent-Logs-Url: https://github.com/srcejon/sdrangel/sessions/3b53c052-7f2b-4597-b509-d7cc17f3b0b0
Co-authored-by: srcejon <57259258+srcejon@users.noreply.github.com>
7 months ago