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

Segmentation fault when changing preset during an acquisition #845

Closed Valstee closed 2 years ago

Valstee commented 3 years ago

Hi @f4exb , I use SDRangel 6.9.0, QT 5.14.2 on Ubuntu 20.10 It's all in the title... Valentin

2021-04-14 17:00:23.318 (D) RTLSDRInput::handleMessage: MsgStartStop:  start
2021-04-14 17:00:23.318 (D) DSPDeviceSourceEngine::initAcquisition
2021-04-14 17:00:23.319 (D) DSPDeviceSourceEngine::handleSynchronousMessages:  DSPAcquisitionInit
2021-04-14 17:00:23.319 (D) DSPDeviceSourceEngine::gotoIdle
2021-04-14 17:00:23.319 (D) DSPDeviceSourceEngine::gotoInit:   m_deviceDescription:  RTL2838UHIDIR (SN 00000001)  sampleRate:  1024000  centerFrequency:  104400000
2021-04-14 17:00:23.319 (D) DSPDeviceSourceEngine::gotoInit: initializing  SpectrumVis
2021-04-14 17:00:23.319 (D) SpectrumVis::handleMessage: DSPSignalNotification:  centerFrequency:  104400000  sampleRate:  1024000
2021-04-14 17:00:23.319 (D) DSPDeviceSourceEngine::gotoInit: initializing  FileSink
2021-04-14 17:00:23.319 (D) FileSink::handleMessage: DSPSignalNotification:  inputSampleRate:  1024000  centerFrequency:  104400000
2021-04-14 17:00:23.319 (D) DSPDeviceSourceEngine::gotoInit: initializing  WFMDemod
2021-04-14 17:00:23.319 (D) WFMDemod::handleMessage: DSPSignalNotification
2021-04-14 17:00:23.319 (D) DSPDeviceSourceEngine::startAcquisition
2021-04-14 17:00:23.319 (D) DSPDeviceSourceEngine::handleSynchronousMessages:  DSPAcquisitionStart
2021-04-14 17:00:23.319 (D) DSPDeviceSourceEngine::gotoRunning
2021-04-14 17:00:23.319 (D) DSPDeviceSourceEngine::gotoRunning:  RTL2838UHIDIR (SN 00000001)  started
Allocating 32 zero-copy buffers
2021-04-14 17:00:23.324 (D) RTLSDRInput::applySettings: AGC mode off
2021-04-14 17:00:23.324 (D) DSPDeviceSourceEngine::configureCorrections
2021-04-14 17:00:23.324 (D) RTLSDRInput::applySettings: corrections: DC block: true IQ imbalance: false
2021-04-14 17:00:23.324 (C) RTLSDRInput::applySettings: could not set LO ppm correction: 0
2021-04-14 17:00:23.439 (D) RTLSDRInput::applySettings: sample rate set to 1024000
2021-04-14 17:00:23.439 (D) RTLSDRInput::applySettings: log2decim set to 0
2021-04-14 17:00:23.439 (D) RTLSDRInput::applySettings: set fc pos (enum) to  2
2021-04-14 17:00:23.439 (D) DeviceSampleStatic::calculateSourceDeviceCenterFrequency:  frequencyShiftScheme:  0  desired center freq:  104400000  Hz  device center freq:  104400000  Hz  device sample rate:  1024000 S/s  Actual sample rate:  1024000 S/s  center freq position code:  2  image frequency:  104400000 Hz
2021-04-14 17:00:23.491 (D) RTLSDRInput::applySettings: rtlsdr_set_center_freq(104400000)
2021-04-14 17:00:23.491 (D) RTLSDRInput::applySettings: set noModMode to  false
Disabled direct sampling mode
2021-04-14 17:00:23.699 (C) SampleSinkFifo::write: overflow - dropping 1024 samples
2021-04-14 17:00:23.791 (D) RTLSDRInput::applySettings: set RF bandwidth to  2500000
2021-04-14 17:00:23.792 (C) RTLSDRInput::applySettings: could not set offset tuning to off
2021-04-14 17:00:23.818 (D) RTLSDRInput::applySettings: rtlsdr_set_tuner_gain() to 207
2021-04-14 17:00:23.829 (D) RTLSDRInput::applySettings: rtlsdr_set_bias_tee() to 0
2021-04-14 17:00:23.830 (D) DSPDeviceSourceEngine::gotoRunning: starting  SpectrumVis
2021-04-14 17:00:23.830 (D) DSPDeviceSourceEngine::gotoRunning: starting  FileSink
2021-04-14 17:00:23.830 (D) FileSink::start
2021-04-14 17:00:23.830 (D) DSPDeviceSourceEngine::gotoRunning: starting  WFMDemod
2021-04-14 17:00:23.830 (D) WFMDemod::start
2021-04-14 17:00:23.830 (D) DownChannelizer::applyChannelization done:  nb stages: 0  in (baseband): 1024000  req: 0  out (channel): 1024000  fc: 0
2021-04-14 17:00:23.831 (D) WFMDemodSink::applyChannelSettings:  channelSampleRate:  1024000  channelFrequencyOffset:  0
2021-04-14 17:00:23.831 (D) NCO freq: 0.000000 phase inc 0
2021-04-14 17:00:23.831 (D) WFMDemod::applyChannelSettings: m_interpolator.create
2021-04-14 17:00:23.831 (D) Interpolator::createPolyphaseLowPass: ntaps: 72
2021-04-14 17:00:23.831 (D) WFMDemod::applySettings: m_rfFilter->create_filter
2021-04-14 17:00:23.831 (D) WFMDemod::applySettings: m_fmExcursion: 25000.000000
2021-04-14 17:00:23.832 (D) DSPDeviceSourceEngine::gotoRunning:input message queue pending:  2
2021-04-14 17:00:23.832 (D) DSPDeviceSourceEngine::handleInputMessages: message: DSPConfigureCorrection
2021-04-14 17:00:23.832 (D) WFMDemodBaseband::handleMessage: MsgConfigureWFMDemodBaseband
2021-04-14 17:00:23.832 (D) DSPDeviceSourceEngine::handleInputMessages: message: DSPSignalNotification
2021-04-14 17:00:23.832 (D) DSPDeviceSourceEngine::handleInputMessages: DSPSignalNotification:  m_sampleRate:  1024000  m_centerFrequency:  104400000
2021-04-14 17:00:23.833 (D) DSPDeviceSourceEngine::handleInputMessages: forward message to  SpectrumVis
2021-04-14 17:00:23.833 (D) SpectrumVis::handleMessage: DSPSignalNotification:  centerFrequency:  104400000  sampleRate:  1024000
2021-04-14 17:00:23.833 (D) DSPDeviceSourceEngine::handleInputMessages: forward message to  FileSink
2021-04-14 17:00:23.833 (D) DownChannelizer::applyChannelization done:  nb stages: 3  in (baseband): 1024000  req: 120000  out (channel): 128000  fc: 0
2021-04-14 17:00:23.834 (D) FileSink::handleMessage: DSPSignalNotification:  inputSampleRate:  1024000  centerFrequency:  104400000
2021-04-14 17:00:23.834 (D) WFMDemodSink::applyChannelSettings:  channelSampleRate:  128000  channelFrequencyOffset:  0
2021-04-14 17:00:23.834 (D) DSPDeviceSourceEngine::handleInputMessages: forward message to  WFMDemod
2021-04-14 17:00:23.834 (D) WFMDemod::handleMessage: DSPSignalNotification
2021-04-14 17:00:23.834 (D) NCO freq: 0.000000 phase inc 0
2021-04-14 17:00:23.834 (D) WFMDemod::applyChannelSettings: m_interpolator.create
2021-04-14 17:00:23.835 (D) Interpolator::createPolyphaseLowPass: ntaps: 72
2021-04-14 17:00:23.835 (D) DSPDeviceSourceEngine::handleInputMessages: DSPSignalNotification: guiMessageQueue: 0x557f0085c790
2021-04-14 17:00:23.835 (D) FileSinkBaseband::handleMessage: DSPSignalNotification:  basebandSampleRate:  1024000  cnterFrequency:  104400000
2021-04-14 17:00:23.835 (D) RTLSDRGui::handleInputMessages: message: DSPSignalNotification
2021-04-14 17:00:23.835 (D) RTLSDRGui::handleInputMessages: DSPSignalNotification: SampleRate:1024000, CenterFrequency:104400000
2021-04-14 17:00:23.835 (D) WFMDemod::applySettings: m_rfFilter->create_filter
2021-04-14 17:00:23.836 (D) WFMDemod::applySettings: m_fmExcursion: 25000.000000
2021-04-14 17:00:23.836 (D) WFMDemodSink::applyAudioSampleRate: 48000
2021-04-14 17:00:23.836 (D) Interpolator::createPolyphaseLowPass: ntaps: 72
2021-04-14 17:00:23.836 (D) GLSpectrumGUI::handleInputMessages: message: SpectrumVis::MsgStartStop
2021-04-14 17:00:23.836 (D) GLSpectrumGUI::handleInputMessages: message: GLSpectrum::MsgReportSampleRate
2021-04-14 17:00:23.836 (D) AudioDeviceManager::removeAudioSink: 0x557f00694710
2021-04-14 17:00:23.836 (D) AudioDeviceManager::addAudioSink: -1: 0x557f00694710
2021-04-14 17:00:23.836 (D) WFMDemodSink::applySettings:  m_inputFrequencyOffset:  0  m_rfBandwidth:  80000  m_afBandwidth:  15000  m_volume:  2  m_squelch:  -60  m_audioDeviceName:  "System default device"  m_audioMute:  false  m_streamIndex:  0  m_useReverseAPI:  false  m_reverseAPIAddress:  "127.0.0.1"  m_reverseAPIPort:  8888  m_reverseAPIDeviceIndex:  0  m_reverseAPIChannelIndex:  0  force:  true
2021-04-14 17:00:23.836 (D) WFMDemodSink::applySettings: m_interpolator.create
2021-04-14 17:00:23.837 (D) Interpolator::createPolyphaseLowPass: ntaps: 72
2021-04-14 17:00:23.837 (D) WFMDemodSink::applySettings: m_rfFilter->create_filter
2021-04-14 17:00:23.837 (D) RTLSDRGui::handleInputMessages: message: DSPSignalNotification
2021-04-14 17:00:23.837 (D) RTLSDRGui::handleInputMessages: DSPSignalNotification: SampleRate:1024000, CenterFrequency:104400000
2021-04-14 17:00:23.837 (D) WFMDemodSink::applySettings: m_fmExcursion: 25000.000000
2021-04-14 17:00:23.837 (D) WFMDemodSink::applySettings: set m_squelchLevel
2021-04-14 17:00:23.837 (D) GLSpectrumGUI::handleInputMessages: message: GLSpectrum::MsgReportSampleRate
2021-04-14 17:00:23.837 (D) WFMDemodBaseband::handleMessage: DSPSignalNotification: basebandSampleRate:  1024000
2021-04-14 17:00:23.845 (D) DownChannelizer::applyChannelization done:  nb stages: 0  in (baseband): 1024000  req: 0  out (channel): 1024000  fc: 0
2021-04-14 17:00:23.845 (D) DownChannelizer::applyChannelization done:  nb stages: 0  in (baseband): 1024000  req: 1024000  out (channel): 1024000  fc: 0
2021-04-14 17:00:23.846 (D) FileSinkSink::applyChannelSettings:  channelSampleRate:  1024000  sinkSampleRate:  1024000  channelFrequencyOffset:  0  centerFrequency:  104400000  force:  false
2021-04-14 17:00:23.846 (D) NCOF::setFreq: freq: 0.000000 m_phaseIncrement: 0.000000
2021-04-14 17:00:23.846 (D) FileSinkSink::applyChannelSettings: log2decim:  0
2021-04-14 17:00:23.846 (D) FileSinkBaseband::handleMessage: MsgConfigureFileSinkBaseband
2021-04-14 17:00:23.846 (D) FileSinkBaseband::applySettings: m_log2Decim: 0 m_inputFrequencyOffset: 0 m_fileRecordName:  "/home/cerga/Documents/Radio/sdr_record/record.sdriq" m_centerFrequency:  104400000 force:  true
2021-04-14 17:00:23.846 (D) DownChannelizer::applyChannelization done:  nb stages: 0  in (baseband): 1024000  req: 1024000  out (channel): 1024000  fc: 0
2021-04-14 17:00:23.846 (D) FileSinkSink::applyChannelSettings:  channelSampleRate:  1024000  sinkSampleRate:  1024000  channelFrequencyOffset:  0  centerFrequency:  104400000  force:  false
2021-04-14 17:00:23.846 (D) FileSinkSink::applySettings: m_fileRecordName:  "/home/cerga/Documents/Radio/sdr_record/record.sdriq" force:  true
2021-04-14 17:00:23.847 (D) FileSinkBaseband::handleMessage: DSPSignalNotification:  basebandSampleRate:  1024000  cnterFrequency:  104400000
2021-04-14 17:00:23.847 (D) DownChannelizer::applyChannelization done:  nb stages: 0  in (baseband): 1024000  req: 1024000  out (channel): 1024000  fc: 0
2021-04-14 17:00:23.847 (D) DownChannelizer::applyChannelization done:  nb stages: 0  in (baseband): 1024000  req: 1024000  out (channel): 1024000  fc: 0
2021-04-14 17:00:23.847 (D) FileSinkSink::applyChannelSettings:  channelSampleRate:  1024000  sinkSampleRate:  1024000  channelFrequencyOffset:  0  centerFrequency:  104400000  force:  false
2021-04-14 17:00:23.849 (D) DownChannelizer::applyChannelization done:  nb stages: 3  in (baseband): 1024000  req: 120000  out (channel): 128000  fc: 0
2021-04-14 17:00:23.849 (D) WFMDemodSink::applyChannelSettings:  channelSampleRate:  128000  channelFrequencyOffset:  0
2021-04-14 17:00:23.849 (D) WFMDemodBaseband::handleMessage: MsgConfigureWFMDemodBaseband
2021-04-14 17:00:23.849 (D) DownChannelizer::applyChannelization done:  nb stages: 3  in (baseband): 1024000  req: 120000  out (channel): 128000  fc: 0
2021-04-14 17:00:23.849 (D) WFMDemodSink::applyChannelSettings:  channelSampleRate:  128000  channelFrequencyOffset:  0
2021-04-14 17:00:23.849 (D) AudioDeviceManager::removeAudioSink: 0x557f00694710
2021-04-14 17:00:23.850 (D) AudioDeviceManager::addAudioSink: -1: 0x557f00694710
2021-04-14 17:00:23.850 (D) WFMDemodSink::applySettings:  m_inputFrequencyOffset:  0  m_rfBandwidth:  80000  m_afBandwidth:  15000  m_volume:  2  m_squelch:  -60  m_audioDeviceName:  "System default device"  m_audioMute:  false  m_streamIndex:  0  m_useReverseAPI:  false  m_reverseAPIAddress:  "127.0.0.1"  m_reverseAPIPort:  8888  m_reverseAPIDeviceIndex:  0  m_reverseAPIChannelIndex:  0  force:  true
2021-04-14 17:00:23.850 (D) WFMDemodSink::applySettings: m_interpolator.create
2021-04-14 17:00:23.850 (D) Interpolator::createPolyphaseLowPass: ntaps: 72
2021-04-14 17:00:23.850 (D) WFMDemodSink::applySettings: m_rfFilter->create_filter
2021-04-14 17:00:23.850 (D) WFMDemodSink::applySettings: m_fmExcursion: 25000.000000
2021-04-14 17:00:23.850 (D) WFMDemodSink::applySettings: set m_squelchLevel
2021-04-14 17:00:23.850 (D) WFMDemodBaseband::handleMessage: MsgConfigureWFMDemodBaseband
2021-04-14 17:00:23.851 (D) DownChannelizer::applyChannelization done:  nb stages: 1  in (baseband): 1024000  req: 270000  out (channel): 512000  fc: 0
2021-04-14 17:00:23.851 (D) WFMDemodSink::applyChannelSettings:  channelSampleRate:  512000  channelFrequencyOffset:  0
2021-04-14 17:00:23.851 (D) NCO freq: 0.000000 phase inc 0
2021-04-14 17:00:23.851 (D) WFMDemod::applyChannelSettings: m_interpolator.create
2021-04-14 17:00:23.851 (D) Interpolator::createPolyphaseLowPass: ntaps: 72
2021-04-14 17:00:23.851 (D) WFMDemod::applySettings: m_rfFilter->create_filter
2021-04-14 17:00:23.851 (D) WFMDemod::applySettings: m_fmExcursion: 25000.000000
2021-04-14 17:00:23.851 (D) WFMDemodSink::applyAudioSampleRate: 48000
2021-04-14 17:00:23.851 (D) Interpolator::createPolyphaseLowPass: ntaps: 72
2021-04-14 17:00:23.852 (D) AudioDeviceManager::removeAudioSink: 0x557f00694710
2021-04-14 17:00:23.852 (D) AudioDeviceManager::addAudioSink: -1: 0x557f00694710
2021-04-14 17:00:23.852 (D) WFMDemodSink::applySettings:  m_inputFrequencyOffset:  0  m_rfBandwidth:  180000  m_afBandwidth:  15000  m_volume:  2  m_squelch:  -60  m_audioDeviceName:  "System default device"  m_audioMute:  false  m_streamIndex:  0  m_useReverseAPI:  false  m_reverseAPIAddress:  "127.0.0.1"  m_reverseAPIPort:  8888  m_reverseAPIDeviceIndex:  0  m_reverseAPIChannelIndex:  0  force:  true
2021-04-14 17:00:23.852 (D) WFMDemodSink::applySettings: m_interpolator.create
2021-04-14 17:00:23.852 (D) Interpolator::createPolyphaseLowPass: ntaps: 72
2021-04-14 17:00:23.852 (D) WFMDemodSink::applySettings: m_rfFilter->create_filter
2021-04-14 17:00:23.852 (D) WFMDemodSink::applySettings: m_fmExcursion: 75000.000000
2021-04-14 17:00:23.852 (D) WFMDemodSink::applySettings: set m_squelchLevel
2021-04-14 17:00:23.852 (D) WFMDemodBaseband::handleMessage: DSPSignalNotification: basebandSampleRate:  1024000
2021-04-14 17:00:23.852 (D) DownChannelizer::applyChannelization done:  nb stages: 1  in (baseband): 1024000  req: 270000  out (channel): 512000  fc: 0
2021-04-14 17:00:23.852 (D) WFMDemodSink::applyChannelSettings:  channelSampleRate:  512000  channelFrequencyOffset:  0
2021-04-14 17:00:23.853 (D) WFMDemodBaseband::handleMessage: DSPSignalNotification: basebandSampleRate:  1024000
2021-04-14 17:00:23.853 (D) DownChannelizer::applyChannelization done:  nb stages: 1  in (baseband): 1024000  req: 270000  out (channel): 512000  fc: 0
2021-04-14 17:00:23.853 (D) WFMDemodSink::applyChannelSettings:  channelSampleRate:  512000  channelFrequencyOffset:  0
2021-04-14 17:00:23.857 (D) FileRecord::handleMessage: DSPSignalNotification: inputSampleRate:  1024000  centerFrequency:  104400000
2021-04-14 17:00:23.857 (D) SpectrumVis::handleMessage: DSPSignalNotification:  centerFrequency:  104400000  sampleRate:  1024000
2021-04-14 17:00:23.857 (D) GLSpectrumGUI::handleInputMessages: message: GLSpectrum::MsgReportSampleRate

2021-04-14 17:00:27.573 (D) MainWindow::on_presetLoad_clicked
2021-04-14 17:00:27.573 (D) MainWindow::loadPresetSettings: preset [Radio | Kiss-FM]
2021-04-14 17:00:27.573 (D) GLSpectrumGUI::applySettings: refLevel: 0.000000e+00 powerRange: 1.000000e+02
2021-04-14 17:00:27.573 (D) SpectrumVis::handleMessage: MsgConfigureSpectrumVis
2021-04-14 17:00:27.573 (D) SpectrumVis::applySettings:  m_fftSize:  1024  m_fftWindow:  4  m_fftOverlap:  0  m_averagingIndex:  0  m_averagingMode:  0  m_refLevel:  0  m_powerRange:  100  m_fpsPeriodMs:  50  m_linear:  false  m_ssb:  false  m_usb:  true  m_wsSpectrumAddress:  "127.0.0.1"  m_wsSpectrumPort:  8887  force:  false
2021-04-14 17:00:27.573 (D) DeviceAPI::loadSamplingDeviceSettings: Loading Rx preset [Radio | Kiss-FM]
2021-04-14 17:00:27.573 (D) Preset::findBestDeviceConfig: serial matched (exact): id: sdrangel.samplesource.rtlsdr ser: 00000001
2021-04-14 17:00:27.573 (D) DeviceAPI::loadSamplingDeviceSettings: source center frequency: 94600000 Hz
2021-04-14 17:00:27.573 (D) DeviceAPI::loadSamplingDeviceSettings: deserializing source sdrangel.samplesource.rtlsdr[0]: 00000001
2021-04-14 17:00:27.574 (D) RTLSDRInput::handleMessage: MsgConfigureRTLSDR
2021-04-14 17:00:27.579 (D) RTLSDRInput::applySettings: AGC mode off
2021-04-14 17:00:27.579 (D) DSPDeviceSourceEngine::configureCorrections
2021-04-14 17:00:27.579 (D) RTLSDRInput::applySettings: corrections: DC block: true IQ imbalance: false
2021-04-14 17:00:27.579 (C) RTLSDRInput::applySettings: could not set LO ppm correction: 0
2021-04-14 17:00:27.579 (D) DSPDeviceSourceEngine::handleInputMessages: message: DSPConfigureCorrection
2021-04-14 17:00:27.695 (D) RTLSDRInput::applySettings: sample rate set to 1024000
2021-04-14 17:00:27.695 (D) RTLSDRInput::applySettings: log2decim set to 2
2021-04-14 17:00:27.695 (D) RTLSDRInput::applySettings: set fc pos (enum) to  2
2021-04-14 17:00:27.695 (D) DeviceSampleStatic::calculateSourceDeviceCenterFrequency:  frequencyShiftScheme:  0  desired center freq:  104400000  Hz  device center freq:  104400000  Hz  device sample rate:  1024000 S/s  Actual sample rate:  256000 S/s  center freq position code:  2  image frequency:  104400000 Hz
2021-04-14 17:00:27.749 (D) RTLSDRInput::applySettings: rtlsdr_set_center_freq(104400000)
2021-04-14 17:00:27.750 (D) RTLSDRInput::applySettings: set noModMode to  false
Disabled direct sampling mode
2021-04-14 17:00:28.056 (D) RTLSDRInput::applySettings: set RF bandwidth to  2500000
2021-04-14 17:00:28.056 (C) RTLSDRInput::applySettings: could not set offset tuning to off
2021-04-14 17:00:28.082 (D) RTLSDRInput::applySettings: rtlsdr_set_tuner_gain() to 197
2021-04-14 17:00:28.093 (D) RTLSDRInput::applySettings: rtlsdr_set_bias_tee() to 0
2021-04-14 17:00:28.093 (D) RTLSDRInput::handleMessage: MsgConfigureRTLSDR
2021-04-14 17:00:28.093 (D) DSPDeviceSourceEngine::handleInputMessages: message: DSPSignalNotification
2021-04-14 17:00:28.093 (D) DSPDeviceSourceEngine::handleInputMessages: DSPSignalNotification:  m_sampleRate:  256000  m_centerFrequency:  104400000
2021-04-14 17:00:28.093 (D) DSPDeviceSourceEngine::handleInputMessages: forward message to  SpectrumVis
2021-04-14 17:00:28.093 (D) SpectrumVis::handleMessage: DSPSignalNotification:  centerFrequency:  104400000  sampleRate:  256000
2021-04-14 17:00:28.093 (D) DeviceSampleStatic::calculateSourceDeviceCenterFrequency:  frequencyShiftScheme:  0  desired center freq:  94600000  Hz  device center freq:  94600000  Hz  device sample rate:  1024000 S/s  Actual sample rate:  256000 S/s  center freq position code:  2  image frequency:  94600000 Hz
2021-04-14 17:00:28.094 (D) DSPDeviceSourceEngine::handleInputMessages: forward message to  FileSink
2021-04-14 17:00:28.094 (D) FileSink::handleMessage: DSPSignalNotification:  inputSampleRate:  256000  centerFrequency:  104400000
2021-04-14 17:00:28.094 (D) DSPDeviceSourceEngine::handleInputMessages: forward message to  WFMDemod
2021-04-14 17:00:28.094 (D) WFMDemod::handleMessage: DSPSignalNotification
2021-04-14 17:00:28.094 (D) FileSinkBaseband::handleMessage: DSPSignalNotification:  basebandSampleRate:  256000  cnterFrequency:  104400000
2021-04-14 17:00:28.094 (D) DownChannelizer::applyChannelization done:  nb stages: 0  in (baseband): 256000  req: 1024000  out (channel): 256000  fc: 0
2021-04-14 17:00:28.094 (D) DownChannelizer::applyChannelization done:  nb stages: 0  in (baseband): 256000  req: 256000  out (channel): 256000  fc: 0
2021-04-14 17:00:28.094 (D) DSPDeviceSourceEngine::handleInputMessages: DSPSignalNotification: guiMessageQueue: 0x557f0085c790
2021-04-14 17:00:28.095 (D) WFMDemodBaseband::handleMessage: DSPSignalNotification: basebandSampleRate:  256000
2021-04-14 17:00:28.095 (D) FileSinkSink::applyChannelSettings:  channelSampleRate:  256000  sinkSampleRate:  256000  channelFrequencyOffset:  0  centerFrequency:  104400000  force:  false
2021-04-14 17:00:28.095 (D) NCOF::setFreq: freq: 0.000000 m_phaseIncrement: 0.000000
2021-04-14 17:00:28.095 (D) FileSinkSink::applyChannelSettings: log2decim:  0
2021-04-14 17:00:28.095 (D) DownChannelizer::applyChannelization done:  nb stages: 0  in (baseband): 256000  req: 270000  out (channel): 256000  fc: 0
2021-04-14 17:00:28.095 (D) WFMDemodSink::applyChannelSettings:  channelSampleRate:  256000  channelFrequencyOffset:  0
2021-04-14 17:00:28.095 (D) NCO freq: 0.000000 phase inc 0
2021-04-14 17:00:28.095 (D) WFMDemod::applyChannelSettings: m_interpolator.create
2021-04-14 17:00:28.095 (D) Interpolator::createPolyphaseLowPass: ntaps: 72
2021-04-14 17:00:28.096 (D) WFMDemod::applySettings: m_rfFilter->create_filter
2021-04-14 17:00:28.096 (D) WFMDemod::applySettings: m_fmExcursion: 75000.000000
2021-04-14 17:00:28.096 (D) WFMDemodSink::applyAudioSampleRate: 48000
2021-04-14 17:00:28.096 (D) Interpolator::createPolyphaseLowPass: ntaps: 72
2021-04-14 17:00:28.146 (D) RTLSDRInput::applySettings: rtlsdr_set_center_freq(94600000)
2021-04-14 17:00:28.146 (D) DeviceUISet::loadRxChannelSettings: Loading preset [Radio | Kiss-FM]
2021-04-14 17:00:28.147 (D) DSPDeviceSourceEngine::handleInputMessages: message: DSPSignalNotification
2021-04-14 17:00:28.147 (D) DeviceUISet::loadRxChannelSettings: destroying old channel [sdrangel.channel.filesink]
2021-04-14 17:00:28.147 (D) MessageQueue::~MessageQueue: message:  DSPSignalNotification  was still in queue
2021-04-14 17:00:28.147 (D) MessageQueue::~MessageQueue: message:  FileSinkMessages::MsgConfigureSpectrum  was still in queue
2021-04-14 17:00:28.147 (D) DSPDeviceSourceEngine::handleInputMessages: DSPSignalNotification:  m_sampleRate:  256000  m_centerFrequency:  94600000
2021-04-14 17:00:28.147 (D) DSPDeviceSourceEngine::handleInputMessages: forward message to  SpectrumVis
2021-04-14 17:00:28.147 (D) SpectrumVis::handleMessage: DSPSignalNotification:  centerFrequency:  94600000  sampleRate:  256000
2021-04-14 17:00:28.147 (D) DSPDeviceSourceEngine::handleInputMessages: forward message to  FileSink
2021-04-14 17:00:28.148 (D) FileSink::handleMessage: DSPSignalNotification:  inputSampleRate:  256000  centerFrequency:  94600000
2021-04-14 17:00:28.148 (D) DSPDeviceSourceEngine::handleInputMessages: forward message to  WFMDemod
2021-04-14 17:00:28.148 (D) WFMDemod::handleMessage: DSPSignalNotification
2021-04-14 17:00:28.148 (D) FileSinkBaseband::handleMessage: DSPSignalNotification:  basebandSampleRate:  256000  cnterFrequency:  94600000
2021-04-14 17:00:28.148 (D) DSPDeviceSourceEngine::handleInputMessages: DSPSignalNotification: guiMessageQueue: 0x557f0085c790
2021-04-14 17:00:28.148 (D) WFMDemodBaseband::handleMessage: DSPSignalNotification: basebandSampleRate:  256000
2021-04-14 17:00:28.148 (D) DownChannelizer::applyChannelization done:  nb stages: 0  in (baseband): 256000  req: 256000  out (channel): 256000  fc: 0
2021-04-14 17:00:28.148 (D) DownChannelizer::applyChannelization done:  nb stages: 0  in (baseband): 256000  req: 270000  out (channel): 256000  fc: 0
2021-04-14 17:00:28.149 (D) DownChannelizer::applyChannelization done:  nb stages: 0  in (baseband): 256000  req: 256000  out (channel): 256000  fc: 0
2021-04-14 17:00:28.149 (D) WFMDemodSink::applyChannelSettings:  channelSampleRate:  256000  channelFrequencyOffset:  0
2021-04-14 17:00:28.149 (D) FileSinkSink::applyChannelSettings:  channelSampleRate:  256000  sinkSampleRate:  256000  channelFrequencyOffset:  0  centerFrequency:  94600000  force:  false
Segmentation fault (core dumped)
srcejon commented 3 years ago

Hi Valentin,

Does SDRangel crash if you manually switch between the presets while acquisition is running? (i.e. just double click on the preset names back and forth in the main SDRangel GUI)

If not, could you please upload some screenshots showing which plugins you have in each preset?

Also, to help narrow down the source of the crash, could you run SDRangel via gdb?

sudo apt-get install gdb
gdb /opt/install/sdrangel/bin/sdrangel
run

Then after it crashes, type:

info stack

And then copy and paste the output here. Thanks.

Valstee commented 3 years ago

Hi Srcejon, It crashes when I manually change the preset, this happens 1 time out of 2. The open channels are only filesink and a WFM demodulator.

Here's the output : Thread 38 "QThread" received signal SIGSEGV, Segmentation fault. [Switching to Thread 0x7fff7b7fe640 (LWP 69196)] 0x00007ffff68d35f4 in QImage::height() const () from /lib/x86_64-linux-gnu/libQt5Gui.so.5

In fact, this error prevents me from using satellite tracker because when there is a change of satellite and therefore a change of preset, sdrangel crashes...

srcejon commented 3 years ago

Thanks. Possibly similar to #806

Valstee commented 3 years ago

Yes, that's exactly what it looks like! Sorry, didn't see this issue... Thanks !

srcejon commented 3 years ago

No problem, this looks like an additional problem - and I can reproduce it - looks to be from the FileSink, from the full trace:

(gdb) info stack

0 0x00007ffff675d5f4 in QImage::height() const () at /lib/x86_64-linux-gnu/libQt5Gui.so.5

1 0x00007ffff7e3887e in GLSpectrum::updateWaterfall(float const*) (this=0x555556c5d900, spectrum=0x555556c43b60)

at /opt/build/srcejon/sdrangel/sdrgui/gui/glspectrum.cpp:447

2 0x00007ffff7e387de in GLSpectrum::newSpectrum(float const*, int, int)

(this=0x555556c5d900, spectrum=0x555556c43b60, nbBins=1024, fftSize=1024) at /opt/build/srcejon/sdrangel/sdrgui/gui/glspectrum.cpp:441

3 0x00007ffff74a007d in SpectrumVis::feed(gnu_cxx::__normal_iterator<Sample const*, std::vector<Sample, std::allocator > > const&, gnu_cxx::__normal_iterator<Sample const*, std::vector<Sample, std::allocator > > const&, bool) (this=0x555555908668, cbegin=

{m_real = -54528, m_imag = 206592}, end={m_real = -246208, m_imag = -184000}, positiveOnly=false) at /opt/build/srcejon/sdrangel/sdrbase/dsp/spectrumvis.cpp:410

4 0x00007fffae225690 in FileSinkSink::feed(gnu_cxx::__normal_iterator<Sample const*, std::vector<Sample, std::allocator > > const&, gnu_cxx::__normal_iterator<Sample const*, std::vector<Sample, std::allocator > > const&) (this=0x555556c595a0, begin=

{m_real = -54528, m_imag = 206592}, end={m_real = -246208, m_imag = -184000}) at /opt/build/srcejon/sdrangel/plugins/channelrx/filesink/filesinksink.cpp:191

5 0x00007ffff744ae85 in DownChannelizer::feed(gnu_cxx::__normal_iterator<Sample const*, std::vector<Sample, std::allocator > > const&, gnu_cxx::__normal_iterator<Sample const*, std::vector<Sample, std::allocator > > const&) (this=0x555556fe2620, begin=

{m_real = -54528, m_imag = 206592}, end={m_real = -246208, m_imag = -184000}) at /opt/build/srcejon/sdrangel/sdrbase/dsp/downchannelizer.cpp:55

6 0x00007fffae2235e4 in FileSinkBaseband::handleData() (this=0x555556c59530)

at /opt/build/srcejon/sdrangel/plugins/channelrx/filesink/filesinkbaseband.cpp:108
Valstee commented 3 years ago

Thanks for these precisions. I confirm that if I remove Filesink from my presets, there is no crash.

PS: In the satellite tracker feature, is it necessary to have filesink open for an automatic record of a satellite pass ?

srcejon commented 3 years ago

If you want to record the IQ data from a pass to a file, then yes, you need the filesink.

f4exb commented 3 years ago

I suppose that your setup is to record satellite passes in unattended mode. Then the server variant (no GUI) could be used (also on Raspberry Pi) and since there is no GUI there is no GLSpectrum either so that probably works around the issue. I would like to put up a similar setup with a RaspPi sometime... Maybe a few things would need to be ironed out but in principle this should work.

Anyway this does not solve the issue. It looks like a race condition but as far as I could see in the code it seems mutexes are used everywhere.

Valstee commented 3 years ago

Thanks for your answers ! I just bought a raspberry pi4 last week and SDR angel is already running on it. I'm going to test the server version. I'll keep you informed.

f4exb commented 3 years ago

I am trying to load a preset with a FileSink while the device is running but I cannot reproduce the issue. Is there anything more special?

srcejon commented 3 years ago

I don't think so. Have tried using a RTL SDR and USRP. Had two presets with just a file sink and nothing else. Press run then switch between the two a few times. Happens on both windows and linux.

Valstee commented 3 years ago

In my case, the frequency of each preset is different (preset 1 = VHF, preset 2 = UHF) This happens with linux and windows with my RTL SDR and my LimeSDR.

V96GLF commented 3 years ago

I'm still seeing this issue when using Satellite Tracker.

If Satellite Tracker invokes a change of preset (or change of frequency with the same preset), then SDRangel crashes.

Let me know if any additional details would be helpful.

srcejon commented 3 years ago

Do you have the File Sink in your preset? If not, which channels do you have?

V96GLF commented 3 years ago

No File Sink.

I'm usually running APT Demodulator, NFM Demodulator, and Packet Demodulator - but I haven't experimented with removing any of them. Could try that?

srcejon commented 3 years ago

Yes please - it may help narrow down in which channel is the problem.

Also, does it crash only when Sat Tracker changes the preset - or if you manually switch between two presets by double clicking in the presets tab?

(I've just tried the latter 50+ times without an issue for various combinations of those channels - although it seems I no longer can reproduce the problem with the File Sink either).

V96GLF commented 3 years ago

It now seems stable if I only have APT Demodulator open. I think the crash is associated with changing frequency whilst the receiver is running - but I'll continue to test and see if I can come up with anything reproducable.

It currently seems stable when double-clicking between presets.

V96GLF commented 3 years ago

Further testing...

I have 5 satellites configured (NO-84, NOAA 15, 18, 19, ISS) as presets, each with only one Channel: APT Demodulator (or Packet Demodulator for ISS).

Satellite Tracker has each satellite mapped to a preset, with Doppler correction, AOS and LOS checked; start/stop filesink unchecked.

Starting with the receiver not running the first satellite pass works fine. AOS is announced, image is received correctly, LOS is announced and receiver returns to idle.

Following LOS, it is now "primed" for a crash, which might (but not always) be triggered by either of:

  1. The next AOS, or
  2. Selecting another preset

If a second satellite overlaps the first, then it transitions to the second satellite, selects the second preset, and announces AOS. But it then crashes at LOS of the second satellite.

srcejon commented 3 years ago

I've tried to recreate this on Windows using a debug build with an RTL SDR. While I'm not sure I have recreated it, I've seen a couple of exceptions within libusb that is called by the rtlsdr driver:

image

SDRangel on Windows is currently released with libusb 1.0.23.11397.

Trying with the latest, which is 1.0.24.11584 still results in exceptions:

image

image

srcejon commented 3 years ago

@V96GLF - I've tried to reproduce this using some dummy satellite data that has satellite passes every minute, but can't seem to get it to crash.

Do you still have the Ubuntu VM set up? We can try to see what's going on there. You can try:

sudo apt-get install gdb
gdb /opt/install/sdrangel/bin/sdrangel
run

Then after it crashes, type:

info stack

And post the output, so we can see where it's actually crashing.

V96GLF commented 3 years ago

Yes, I’m still running as a Ubuntu VM.

You know that thing when you make a doctor’s appointment, and the symptoms magically vanish? That. ;-)

I can’t currently get it to crash whilst I’m watching due to Sat Tracker. I do however get the occasional crash when accessing menus (e.g. clicking Window/Features menu).

I’ll continue testing Sat Tracker for a few more days…

-- Russell Whitworth

On 15 Nov 2021, at 16:30, srcejon @.***> wrote:



@V96GLFhttps://github.com/V96GLF - I've tried to reproduce this using some dummy satellite data that has satellite passes every minute, but can't seem to get it to crash.

Do you still have the Ubuntu VM set up? We can try to see what's going on there. You can try:

sudo apt-get install gdb gdb /opt/install/sdrangel/bin/sdrangel run

Then after it crashes, type:

info stack

And post the output, so we can see where it's actually crashing.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/f4exb/sdrangel/issues/845#issuecomment-969085878, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ATE3IAJDPZA3XVEOKYL5TQLUMEYSHANCNFSM425RTHKQ. Triage notifications on the go with GitHub Mobile for iOShttps://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Androidhttps://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

srcejon commented 3 years ago

Heisenbugs, as they're known :)

RE window/features menu crash - running with gdb as above should help track that down. A screenshot beforehand would also be useful. Thanks!

V96GLF commented 3 years ago

I did mention that I'm running on a different (and "clean") PC, didn't I? Well I think at least some of my problems have been hardware-related: a) The Nooelec dongle was a little loose in the USB socket, especially with coax hanging off the back of it. I suspect it might have been disconnecting occasionally. b) My Logitech wireless mouse was behaving erratically. I don't think the USB dongle was happy on the rear of the PC. Perhaps some random mouse clicks as a result? Both now resolved by adding a USB hub.

Overall much more stable now, including Sat Tracker :-)

However, I do still get occasional crashes when double-clicking a preset whilst acquisition is running (as in the original title of the thread). Here's an example.

Running my "S20-S24" preset, and then double-click the Sat Tracker preset.

image

` Thread 1 "sdrangel" received signal SIGSEGV, Segmentation fault. 0x00007fff9e40e636 in QSGNode::removeAllChildNodes() () from /lib/x86_64-linux-gnu/libQt5Quick.so.5

(gdb) info stack

0 0x00007fff9e40e636 in QSGNode::removeAllChildNodes() () at /lib/x86_64-linux-gnu/libQt5Quick.so.5

1 0x00007fff8d2a04b3 in QGeoMapObjectQSGSupport::updateMapObjects(QSGNode, QQuickWindow) () at /lib/x86_64-linux-gnu/libQt5Location.so.5

2 0x00007fff8d297cda in QGeoTiledMapLabs::updateSceneGraph(QSGNode, QQuickWindow) () at /lib/x86_64-linux-gnu/libQt5Location.so.5

3 0x00007fff8d226733 in QDeclarativeGeoMap::updatePaintNode(QSGNode, QQuickItem::UpdatePaintNodeData) ()

at /lib/x86_64-linux-gnu/libQt5Location.so.5

4 0x00007fff9e4e66b8 in QQuickWindowPrivate::updateDirtyNode(QQuickItem*) () at /lib/x86_64-linux-gnu/libQt5Quick.so.5

5 0x00007fff9e4e6c63 in QQuickWindowPrivate::updateDirtyNodes() () at /lib/x86_64-linux-gnu/libQt5Quick.so.5

6 0x00007fff9e4e88a0 in QQuickWindowPrivate::syncSceneGraph() () at /lib/x86_64-linux-gnu/libQt5Quick.so.5

7 0x00007fff9e57639d in QQuickRenderControl::sync() () at /lib/x86_64-linux-gnu/libQt5Quick.so.5

8 0x00007fffe8012055 in () at /lib/x86_64-linux-gnu/libQt5QuickWidgets.so.5

9 0x00007ffff6f54bfc in QWidget::event(QEvent*) () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5

10 0x00007ffff6f116b3 in QApplicationPrivate::notify_helper(QObject, QEvent) () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5

11 0x00007ffff642316a in QCoreApplication::notifyInternal2(QObject, QEvent) () at /lib/x86_64-linux-gnu/libQt5Core.so.5

12 0x00007ffff6f4ad11 in QWidgetPrivate::setGeometry_sys(int, int, int, int, bool) () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5

13 0x00007ffff6f4bc10 in QWidget::setGeometry(QRect const&) () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5

14 0x00007ffff6f34fca in QWidgetItem::setGeometry(QRect const&) () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5

15 0x00007ffff6f2aa45 in QBoxLayout::setGeometry(QRect const&) () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5

16 0x00007ffff6f31228 in QLayoutPrivate::doResize() () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5

17 0x00007ffff6f11697 in QApplicationPrivate::notify_helper(QObject, QEvent) () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5

18 0x00007ffff642316a in QCoreApplication::notifyInternal2(QObject, QEvent) () at /lib/x86_64-linux-gnu/libQt5Core.so.5

19 0x00007ffff6f4ad11 in QWidgetPrivate::setGeometry_sys(int, int, int, int, bool) () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5

20 0x00007ffff6f4b372 in QWidget::resize(QSize const&) () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5

21 0x00007ffff7ee232e in QWidget::resize(int, int)

(h=<optimised out>, w=<optimised out>, this=0x555559845630, this=<optimised out>, w=<optimised out>, h=<optimised out>)
at /usr/include/x86_64-linux-gnu/qt5/QtWidgets/qwidget.h:854

22 RollupWidget::arrangeRollups() (this=0x555555bffc60) at /opt/build/sdrangel/sdrgui/gui/rollupwidget.cpp:240

23 0x00007ffff7ee245c in RollupWidget::resizeEvent(QResizeEvent*) (this=0x555555bffc60, size=0x7fffffffb600)

at /opt/build/sdrangel/sdrgui/gui/rollupwidget.cpp:427

24 0x00007ffff6f54bfc in QWidget::event(QEvent*) () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5

25 0x00007ffff6f116b3 in QApplicationPrivate::notify_helper(QObject, QEvent) () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5

26 0x00007ffff642316a in QCoreApplication::notifyInternal2(QObject, QEvent) () at /lib/x86_64-linux-gnu/libQt5Core.so.5

27 0x00007ffff6f4ad11 in QWidgetPrivate::setGeometry_sys(int, int, int, int, bool) () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5

28 0x00007ffff6f4bc10 in QWidget::setGeometry(QRect const&) () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5

29 0x00007ffff6f34fca in QWidgetItem::setGeometry(QRect const&) () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5

30 0x00007ffff6f2a987 in QBoxLayout::setGeometry(QRect const&) () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5

31 0x00007ffff6f31228 in QLayoutPrivate::doResize() () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5

32 0x00007ffff6f32855 in QLayout::activate() () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5

--Type for more, q to quit, c to continue without paging--c

33 0x00007ffff6f11697 in QApplicationPrivate::notify_helper(QObject, QEvent) () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5

34 0x00007ffff642316a in QCoreApplication::notifyInternal2(QObject, QEvent) () at /lib/x86_64-linux-gnu/libQt5Core.so.5

35 0x00007ffff6f4ad11 in QWidgetPrivate::setGeometry_sys(int, int, int, int, bool) () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5

36 0x00007ffff6f4b372 in QWidget::resize(QSize const&) () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5

37 0x00007ffff70b5a07 in () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5

38 0x00007ffff6f54bfc in QWidget::event(QEvent*) () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5

39 0x00007ffff7001b52 in QFrame::event(QEvent*) () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5

40 0x00007ffff6422eca in QCoreApplicationPrivate::sendThroughObjectEventFilters(QObject, QEvent) () at /lib/x86_64-linux-gnu/libQt5Core.so.5

41 0x00007ffff6f116a2 in QApplicationPrivate::notify_helper(QObject, QEvent) () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5

42 0x00007ffff642316a in QCoreApplication::notifyInternal2(QObject, QEvent) () at /lib/x86_64-linux-gnu/libQt5Core.so.5

43 0x00007ffff6f4ad11 in QWidgetPrivate::setGeometry_sys(int, int, int, int, bool) () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5

44 0x00007ffff6f4bc10 in QWidget::setGeometry(QRect const&) () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5

45 0x00007ffff7002fde in QAbstractScrollAreaPrivate::layoutChildren_helper(bool, bool) () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5

46 0x00007ffff700348f in QAbstractScrollAreaPrivate::layoutChildren() () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5

47 0x00007ffff7004b64 in QAbstractScrollArea::event(QEvent*) () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5

48 0x00007ffff6f116b3 in QApplicationPrivate::notify_helper(QObject, QEvent) () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5

49 0x00007ffff642316a in QCoreApplication::notifyInternal2(QObject, QEvent) () at /lib/x86_64-linux-gnu/libQt5Core.so.5

50 0x00007ffff6f4ad11 in QWidgetPrivate::setGeometry_sys(int, int, int, int, bool) () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5

51 0x00007ffff6f4bc10 in QWidget::setGeometry(QRect const&) () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5

52 0x00007ffff6f31228 in QLayoutPrivate::doResize() () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5

53 0x00007ffff6f11697 in QApplicationPrivate::notify_helper(QObject, QEvent) () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5

54 0x00007ffff642316a in QCoreApplication::notifyInternal2(QObject, QEvent) () at /lib/x86_64-linux-gnu/libQt5Core.so.5

55 0x00007ffff6f4ad11 in QWidgetPrivate::setGeometry_sys(int, int, int, int, bool) () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5

56 0x00007ffff6f4bc10 in QWidget::setGeometry(QRect const&) () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5

57 0x00007ffff70f1316 in QTabWidget::setUpLayout(bool) () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5

58 0x00007ffff6f5417e in QWidget::event(QEvent*) () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5

59 0x00007ffff6f116b3 in QApplicationPrivate::notify_helper(QObject, QEvent) () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5

60 0x00007ffff642316a in QCoreApplication::notifyInternal2(QObject, QEvent) () at /lib/x86_64-linux-gnu/libQt5Core.so.5

61 0x00007ffff6f50ad7 in QWidgetPrivate::show_helper() () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5

62 0x00007ffff6f50a39 in QWidgetPrivate::showChildren(bool) () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5

63 0x00007ffff6f50ab3 in QWidgetPrivate::show_helper() () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5

64 0x00007ffff6f50a39 in QWidgetPrivate::showChildren(bool) () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5

65 0x00007ffff6f50ab3 in QWidgetPrivate::show_helper() () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5

66 0x00007ffff6f53c73 in QWidgetPrivate::setVisible(bool) () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5

67 0x00007ffff7044ce3 in () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5

68 0x00007ffff7044dc8 in () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5

69 0x00007ffff7076f4d in () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5

70 0x00007ffff7077196 in () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5

71 0x00007ffff706c309 in QMainWindow::restoreState(QByteArray const&, int) () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5

72 0x00007ffff7e6aece in MainWindow::loadPresetSettings(Preset const*, int) (this=0x7fffffffdca0, preset=0x555555bc0d50, tabIndex=) at /opt/build/sdrangel/sdrgui/mainwindow.cpp:783

73 0x00007ffff7e622c1 in MainWindow::qt_static_metacall(QObject*, QMetaObject::Call, int, void**) (_a=0x7fffffffcda0, _id=12, _c=QMetaObject::InvokeMetaMethod, _o=0x7fffffffdca0) at /opt/build/sdrangel/build/sdrgui/sdrgui_autogen/EWIEGA46WW/moc_mainwindow.cpp:255

74 MainWindow::qt_metacall(QMetaObject::Call, int, void**) (this=0x7fffffffdca0, _c=QMetaObject::InvokeMetaMethod, _id=12, _a=0x7fffffffcda0) at /opt/build/sdrangel/build/sdrgui/sdrgui_autogen/EWIEGA46WW/moc_mainwindow.cpp:338

75 0x00007ffff645a7a5 in () at /lib/x86_64-linux-gnu/libQt5Core.so.5

76 0x00007ffff720a104 in QTreeWidget::itemActivated(QTreeWidgetItem*, int) () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5

77 0x00007ffff645aa88 in () at /lib/x86_64-linux-gnu/libQt5Core.so.5

78 0x00007ffff7186729 in QAbstractItemView::activated(QModelIndex const&) () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5

79 0x00007ffff720491e in QTreeView::mouseDoubleClickEvent(QMouseEvent*) () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5

80 0x00007ffff6f54b09 in QWidget::event(QEvent*) () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5

81 0x00007ffff7001b52 in QFrame::event(QEvent*) () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5

82 0x00007ffff6422eca in QCoreApplicationPrivate::sendThroughObjectEventFilters(QObject, QEvent) () at /lib/x86_64-linux-gnu/libQt5Core.so.5

83 0x00007ffff6f116a2 in QApplicationPrivate::notify_helper(QObject, QEvent) () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5

84 0x00007ffff6f192e4 in QApplication::notify(QObject, QEvent) () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5

85 0x00007ffff642316a in QCoreApplication::notifyInternal2(QObject, QEvent) () at /lib/x86_64-linux-gnu/libQt5Core.so.5

86 0x00007ffff6f17dc7 in QApplicationPrivate::sendMouseEvent(QWidget, QMouseEvent, QWidget, QWidget, QWidget**, QPointer&, bool, bool) () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5

87 0x00007ffff6f6d9b0 in () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5

88 0x00007ffff6f70c45 in () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5

89 0x00007ffff6f116b3 in QApplicationPrivate::notify_helper(QObject, QEvent) () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5

90 0x00007ffff642316a in QCoreApplication::notifyInternal2(QObject, QEvent) () at /lib/x86_64-linux-gnu/libQt5Core.so.5

91 0x00007ffff680a400 in QGuiApplicationPrivate::processMouseEvent(QWindowSystemInterfacePrivate::MouseEvent*) () at /lib/x86_64-linux-gnu/libQt5Gui.so.5

92 0x00007ffff67df9bc in QWindowSystemInterface::sendWindowSystemEvents(QFlags) () at /lib/x86_64-linux-gnu/libQt5Gui.so.5

93 0x00007ffff11c4b9e in () at /lib/x86_64-linux-gnu/libQt5XcbQpa.so.5

94 0x00007ffff47918bb in g_main_context_dispatch () at /lib/x86_64-linux-gnu/libglib-2.0.so.0

95 0x00007ffff47e4f08 in () at /lib/x86_64-linux-gnu/libglib-2.0.so.0

96 0x00007ffff478f003 in g_main_context_iteration () at /lib/x86_64-linux-gnu/libglib-2.0.so.0

97 0x00007ffff647c548 in QEventDispatcherGlib::processEvents(QFlags) () at /lib/x86_64-linux-gnu/libQt5Core.so.5

98 0x00007ffff6421a9b in QEventLoop::exec(QFlags) () at /lib/x86_64-linux-gnu/libQt5Core.so.5

99 0x00007ffff642a024 in QCoreApplication::exec() () at /lib/x86_64-linux-gnu/libQt5Core.so.5

100 0x000055555555708a in runQtApplication(int, char*, qtwebapp::LoggerWithFile) (argc=, argv=, logger=0x555555588300) at /opt/build/sdrangel/app/main.cpp:130

101 0x00005555555566cb in main(int, char**) (argc=1, argv=0x7fffffffdfb8) at /opt/build/sdrangel/app/main.cpp:137

(gdb) Quit `

srcejon commented 3 years ago

Thanks. One question, the stack trace includes QDeclarativeGeoMap which is related to the Maps (Either in Map Feature or ADS-B). However, I can't see either of those in your screenshot.

If you select Window > Features, is the Map there?

V96GLF commented 3 years ago

Yes, it is. No particular reason for having it open, but it is there.

srcejon commented 3 years ago

Well, that particular crash is due to something to do with the Map - so if you don't need it, perhaps worth closing it to prevent it causing any problems for you.

I've tried to recreate it, but no luck so far. However, I'm on Ubuntu 20.10 with Qt 5.14.2 - I will install 21.10 with Qt 15.2 to see if that makes any difference (The crash appears to be in Qt code).

If you get any further crashes, keep posting the stack traces, as there may be other problems.

V96GLF commented 3 years ago

Okay, so there is something odd about presets and features... or I'm not driving it correctly.

I go to my S20-24 preset, and close the Map and Sat Tracker features (both were open). I press the "Update selected preset", and "Save the current settings" buttons.

Now I go to the Sat Tracker preset... and the necessary Features (Sat Tracker and Map) are no longer there. So I add them back in (and I have to configure Sat Tracker again), "Update" and "Save".

Now I return to the S20-24 preset, and the Map and Sat Tracker features have reappeared.

So in summary, there is something confusing me (or it is broken) regarding the state and interaction of Features and Presets.

srcejon commented 3 years ago

Feature presets are currently separate from channel presets. In the top of the Features window, next to the add feature button, is a star for saving/loading Feature presets. I'll add an enhancement request for this.

Added #1050

V96GLF commented 3 years ago

Aha! I've never pressed that star ;-)

Deleted my Sat Tracker Channel preset; created a Feature preset, and resuming testing...

srcejon commented 3 years ago

Not crashing for me with Ubuntu 21.10 / Qt 5.15.2.

Aside from the Sat Tracker and Map, did you have any other Features? What was in your Sat Tracker preset?

V96GLF commented 3 years ago

Well, because I didn't understand the difference between Channel and Feature Presets, it probably doesn't contain anything at all!

I kept a copy...

sat.zip ..

srcejon commented 3 years ago

That's just what I needed, thanks.

It seems it can crash if the Map feature is in a window that is undocked. It will crash reproducibly, for me, just by undocking and then docking the Features window containing the Map. The crash only happens for Qt 5.15.2, not for Qt 5.14.2. It doesn't crash on Windows, but it doesn't work properly either once undocked.

It can also crash when undocking the ADS-B window (which contains a Map).

srcejon commented 3 years ago

Looks a bit like this bug: https://bugreports.qt.io/browse/QTBUG-85260 which marked as fixed in Qt 5.15.3

github-actions[bot] commented 2 years ago

This issue is going to be closed due to inactivity