Commit Graph
81 Commits
Author SHA1 Message Date
Robin Getz 953391c171 repo wide : Name SDRangel-owned threads for debugging
Assign descriptive names to SDRangel threads so thread activity can be
identified when investigating multi-threaded behavior, including crashes,
leaks, and synchronization issues in debuggers and others tools.

Use compact names to fit platform thread-name limits (14 chars) while
retaining the component and thread role where possible.

Signed-off-by: Robin Getz <rgetz503@gmail.com>
2026-09-26 20:26:27 -04:00
Edouard Griffiths 62ce6c7b88 Merge pull request #2955 from rgetz/rgetz-fix-message-queue-leaks
tree wide: Fix message ownership and reporting for unhandled queue messages
2026-09-27 00:56:58 +02:00
Edouard Griffiths 67a73916ae Merge pull request #2934 from srcejon/mcp
Add MCP Server for Claude & ChatGPT
2026-09-26 10:24:57 +02:00
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>
2026-09-25 23:49:05 -04:00
Robin Getz 7fb4756ee1 audioinputworker: Initialize AudioInputWorker state
Initialize the previously uninitialized frequency position and audio sample
buffer members to defined values to eliminate cppcheck UNINIT_CTOR warnings.
This ensures the worker starts with a known state and avoids undefined behavior
from reading uninitialized values.

Signed-off-by: Robin Getz <rgetz503@gmail.com>
2026-09-13 20:23:02 -04:00
Jon Beniston a0918b5785 Map API names to setting names.
Fix API settings with spelling mistakes.
2026-09-13 12:09:20 +01:00
Jon BenistonandClaude Opus 5 ddedd59568 Add MessageDialog and use it in place of the QMessageBox static functions
QMessageBox::information() and friends build the box on the stack, parent
it to the calling widget and run a nested event loop in exec(). If the
parent is closed while the box is open, which the Web API can do at any
time, the parent deletes the box and its children and the heap is
corrupted.

MessageDialog offers the same calls, but the box is heap allocated, given
Qt::WA_DeleteOnClose and shown rather than exec'd, so nothing runs a
nested event loop and the box owns its own lifetime. A box with the same
text as one already up is raised instead of a second being created.

The trade off is that information(), warning() and critical() return
immediately and cannot report which button was pressed. question() takes
a callback for the cases that need the answer.

Converts the call sites in the device, channel and feature GUIs.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-11 17:16:49 +01:00
Jon BenistonandClaude Opus 5 60db861797 Fix QString leak in the web API settings and report formatters
The generated SWG setters overwrite the string pointer without deleting
what is already there, and every webapiSettingsGet and webapiReportGet
calls init() first, which has allocated one. Each call therefore leaked a
QString per string field. Measured at 117 bytes per settings GET for the
Satellite Tracker, over 20,000 requests.

Assign in place when the pointer is already set, which is what these same
functions have always done for title and reverseAPIAddress. 394 sites
across webapiFormatChannelSettings, webapiFormatDeviceSettings,
webapiFormatFeatureSettings and the three report equivalents.

The webapiReverseSend* functions are deliberately left alone: they build a
fresh SWG object whose constructor leaves the pointers null, so passing a
new QString is correct there.

After the change the same measurement is flat, at 7 bytes per GET.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-11 16:54:42 +01:00
f4exb ef4357f26b Release 7.25.0 2026-05-04 06:00:17 +02:00
Tammo Jan Dijkema c86c178363 Use Qt6.2 compatible qt_add_plugin in CMake 2026-04-25 17:11:41 +02:00
f4exb c8389506e4 Release v7.23.1 2026-02-02 21:38:25 +01:00
f4exb 63348eeee1 Make device title editable in the basic device settings. Fixes #2292 2026-01-28 03:05:39 +01:00
Jon Beniston f204c168f6 Add crash handler on Windows.
Add memory buffer to Logger, so last 500 log messages can be included in crash report.
Generate and include stripped pdb files so stack trace can include function names.
2025-07-31 16:35:44 +01:00
f4exb 115922c385 Updated version and changelogs 2025-07-02 19:02:52 +02:00
f4exb 2dbc61a92e AudioInput: set the correct sample rate after device sample rates refresh 2025-07-02 00:06:44 +02:00
f4exb 8f2ac70621 Updated plugin versions 2024-10-06 10:53:38 +02:00
Edouard Griffiths f522d88fc5 Merge pull request #2252 from srcejon/freq_scanner
Update CMakeLists.txt to allow static libraries to be built
2024-09-13 21:07:04 +02:00
srcejon 1df07b21ae Update CMakeLists.txt to allow static libraries to be built, as well as shared.
Add BUILD_BENCH, BUILD_SHARED_LIBS, ENABLE_AARONIARTSA and ENABLE_METIS options.
2024-09-11 20:16:40 +01:00
DreamNik 202fc96de6 Append prefix to plugin name when running on Android.
Android libraries can't be placed inside subdirectory, so to
distinguish plugins from regular libraries the new prefix is used.
2024-09-05 13:37:51 +03:00
f4exb 3e909d2016 Updated versions and changelogs 2024-06-25 22:19:14 +02:00
Daniele Forsi 1f9c7efcab Remove uneeded unlocks of QMutexLocker
The mutex will get unlocked anyway when falling out of scope.
2024-06-23 17:32:48 +02:00
f4exb 1b2a549463 Updated versions and changelogs 2024-06-06 22:10:04 +02:00
f4exb cfc0114c87 Audio Input: list plugin as a built in device so that it can be instantiated multiple times. Fixes #2143 2024-06-02 03:27:52 +02:00
Daniele Forsi fd2959a878 Rename some input devices for consistency 2024-06-01 12:37:54 +02:00
Daniele Forsi b1643ee9b5 Fix typos 2024-04-29 19:07:29 +02:00
Mykola Dvornik 15337cac66 Fix bug that prevents settings changes updates via reverse API
Most plugins that use reverse API to PATCH settings updates to remote
server only do so when `useReverseAPI` is toggled, but not when the
relevant settings are being updated. So lets fix the precondition to
use the `m_useReverseAPI` flag instead.
2024-04-14 18:58:12 +02:00
f4exb cdae5ca048 Updated versions and changelogs 2024-04-14 11:41:00 +02:00
Daniele Forsi 8c3f7e3775 Remove unused includes and use more direct includes 2024-04-11 23:31:34 +02:00
mxi-box eef0084a6e Make AudioDeviceInfo singleton, remove the ones in AudioDeviceManager 2024-03-30 12:10:21 +08:00
f4exb 07e8ae0de1 Updated changelogs and plugins versions 2023-11-29 05:00:58 +01:00
f4exb b6c4d10b62 Rewriting of copyright notices for plugins/samplesource. Part of #1893 2023-11-18 10:07:41 +01:00
Jon Beniston e799e5eb72 Fix resize cursor not being cleared when mouse moves over child widgets 2023-11-13 20:51:03 +00:00
f4exb 8a38af480f Updated versions and change logs 2023-07-11 17:50:11 +02:00
f4exb 8c521f191d Audio input: use AudioDeviceManager to handle audio 2023-07-11 11:45:20 +02:00
f4exb d1116b564a Audio Input: handle real signals with new main spectrum feature 2023-07-10 12:23:53 +02:00
Daniele Forsi c6195634f9 Fix repeated words
Found with:
grep -r " \([[:alpha:]]\+\) \1 " --color=yes --include=*.md
2023-05-04 21:42:49 +02:00
f4exb d67aac3b27 Updated version and changelogs 2023-03-18 13:45:42 +01:00
f4exb 683bf51d0e Audio input: Added Fc control 2023-03-11 09:56:18 +01:00
f4exb e606805beb Audio inout: added DC block and IQ imbalance 2023-03-11 05:05:58 +01:00
f4exb 5026e4ab5e Updated versions and changelogs 2023-02-01 09:52:28 +01:00
Jon Beniston d548ff0eb9 Audio Input: Make sure audio device name corresponds to GUI setting. Set start/stop button background colour according to device status. 2023-01-15 10:24:58 +00:00
Jon Beniston 7aea12e6fe On Android, list USB devices by VID/PID and open using file descriptor. 2022-12-22 11:04:12 +00:00
Jon Beniston 0dd466a900 Add DialogPositioner to ensure dialogs are fully on screen and remain on
screen when screen orientation changes.
Add DialPopup to allow dials to adjusted with a slider, which is easier
on touchscreens.
Add TableTapAndHold to support table context menus on touchscreens.
2022-12-20 10:31:15 +00:00
Jon Beniston 3b5b222114 Update plugins to compile with Qt5 and Qt6 2022-11-17 14:36:12 +00:00
Jon Beniston fc7c9c1fc8 Update CMakeLists.txt to support both Qt5 and Qt6. Add option ENABLE_QT6 2022-11-17 14:34:54 +00:00
Jon Beniston ee8b8ade88 Device GUIs: Constain window size via minimumSize/maximumSize, rather than handling resizeEvent. Add maximum button. Hide size buttons when window size is fixed 2022-11-09 15:53:44 +00:00
f4exb 3814a95073 Updated versions and changelogs 2022-11-01 23:51:06 +01:00
f4exb a1161657ad Audio Input: Make settings assignments atomic. Part of #1329 2022-10-22 12:28:24 +02:00
f4exb 59127ea4e2 Audio input and KiwiSDR: correct placement of m_running = false 2022-10-08 13:20:45 +02:00
f4exb 997a7da292 Audio input: Update threading model. Part of #1346 2022-10-08 10:15:56 +02:00