Commit Graph
40 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
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
Jon Beniston c79a8fdf47 Fix frequency not being set on Nooelec dongles when first started. 2026-09-15 15:12:14 +01:00
srcejon 98aa40424d Fix lint warnings. 2024-10-15 09:21:08 +01:00
srcejon 240c3d502e Formatting 2024-10-15 08:56:54 +01:00
srcejon 4ac29d2052 Remove debug. 2024-10-15 08:49:21 +01:00
srcejon acb278bbff RTLSDR: Apply driver settings in RTLSDRThread, to avoid blocking main thread. Add sync read for WebAssembly. 2024-10-15 08:40:08 +01:00
srcejon 720630c2fb Remove tabs. 2023-12-06 10:53:28 +00:00
srcejon 4418fe936a Fix gcc warnings and remove debug 2023-11-22 15:12:25 +00:00
srcejon 7cc9cd1bf1 Add instant replay 2023-11-22 14:28:35 +00:00
f4exb b6c4d10b62 Rewriting of copyright notices for plugins/samplesource. Part of #1893 2023-11-18 10:07:41 +01:00
f4exb cc5d614f67 IQ swap: initial implementation in plugins 2020-06-23 19:29:58 +02:00
f4exb 4bb0f4f51a Fixed incomplete copyright headers (2): plugins/samplesource 2019-04-11 06:57:41 +02:00
f4exb 4d324875b9 Bumped to v3.14.0 and allow decimation by 64 on all input plugins (missing yet: BladeRF and RTLSDR) 2018-03-27 11:32:39 +02:00
f4exb c7e1526930 Added decimation class with unsigned to signed conversion with shift. Applied to RTL-SDR 2018-01-16 00:01:38 +01:00
f4exb 18fa3b6156 RTL-SDR: corrected bit shifts for 8 bit samples and corrected RTL-SDR unsigned to signed conversion 2018-01-15 23:37:26 +01:00
f4exb bb5fd95f33 RTL-SDR: refactoring: device open close moved in the constructor and destructor respectively of the input object 2017-04-13 01:21:25 +02:00
f4exb 211f0570b5 RTLSDR: allow decimation by 32. Bumped to version 2.1.6 2016-10-10 02:19:21 +02:00
f4exb 36aeaa3ea5 RxTx semantic move: renamed SampleFifo to SampleSinkFifo 2016-10-06 19:18:02 +02:00
f4exb dc81e2dd9c RTLSDR: implemented Fc position adjustment 2015-10-01 06:30:50 +02:00
f4exb a559035e22 Deep redesign: fixed decimation bit shifts and halfband filter decimation bit loss 2015-09-02 00:12:00 +02:00
f4exb f4f9a74269 Deep redesign: Changed Funcube read block from 8192 to 2048 bytes to fix fluidity problem 2015-08-27 08:31:02 +02:00
f4exb b185ef0558 Deep redesign: fixed RTLSDR decimation by exporting BladeRF decimators into a generalized templatized class (Decimators) 2015-08-26 02:42:31 +02:00
f4exb 7ea41283e8 Added basic variable decimation 2015-05-09 16:44:26 +02:00
John Greb ad68f6a06c Wider maximum waterfall bandwidth. 2014-11-24 11:01:07 +00:00
John Greb 0311f64527 Quiet some warnings. 2014-11-21 15:41:58 +00:00
John Greb dcc9f1917c Downsample filtering. 2014-11-17 19:51:36 +00:00
John Greb 1a46bf391e Facepalm. 2014-11-11 12:01:42 +00:00
John Greb 84c43d517a Extra samplerates. 2014-11-10 15:57:33 +00:00
John Greb 812d0f4d15 Samplerate options. 2014-11-08 23:42:43 +00:00
Hexameron 34d2f8e504 Support decoding with waterfall at 96,192 and 384kHz. 2014-08-12 19:35:26 +01:00
Hexameron 3824642bff Tweak UI. 2014-06-30 21:53:59 +01:00
Hexameron cb8026b957 Correctness. 2014-06-27 18:46:14 +01:00
John Greb bbe6d4505d Waterfall brightness/overlap. 2014-06-10 12:24:52 +01:00
Hexameron 444e8ed857 Rework decimation. 2014-05-28 19:13:09 +01:00
Hexameron aaef1678ad meh. 2014-05-22 20:43:00 +01:00
Hexameron d84f9a6da5 Tidy. 2014-05-22 12:58:17 +01:00
Hexameron fbef672cd0 Offset tuning. 2014-05-18 17:04:24 +01:00
Hexameron 7d3bfb26fc git clone git://git.osmocom.org/sdrangelove.git 2014-05-18 16:52:39 +01:00