f4exb / sdrangel

SDR Rx/Tx software for Airspy, Airspy HF+, BladeRF, HackRF, LimeSDR, PlutoSDR, RTL-SDR, SDRplay and FunCube
GNU General Public License v3.0
2.96k stars 447 forks source link

Consistent crash when loading a different device set preset #2332

Open murrayn opened 1 week ago

murrayn commented 1 week ago

The crash happens reliably when loading a new device set preset while the SDR is running. If the SDR is stopped before loading a device set preset the crash does not occur.

sdrangel_7.22.4_ubuntu-22.04

Here is an example trace: sdrangel-log.txt

srcejon commented 1 week ago

Can you attach the preset as well please?

murrayn commented 1 week ago

It's not dependent on any particular preset. It's also been an issue for me for a long time, just never got around to reporting it. I just work around it by stopping the SDR before switching presets. It could be my hardware, an old V3 rtl-sdr. I just thought the trace might give some clue, although I didn't see anything that stood out to me.

f4exb commented 1 week ago

Is this an issue to stop the device before loading a new preset?

srcejon commented 1 week ago

Crash appears to be in DSPDeviceSourceEngine::handleMessage for a DSPSignalNotification - the list of m_basebandSampleSinks is no longer valid.

Is this an issue to stop the device before loading a new preset?

For this and #2315, it might be simpler if we just stop the device first.