Closed srs4511351 closed 2 years ago
Would be useful if you could let us know exactly which demods you have open. A screenshot might help.
If you want to debug, you can do:
gdb /path/to/sdrangel
run
Then when it crashes
info stack
And copy and paste the output here.
The demods were SSB or DSD. Either one will do it. NFM may occasionally cause the crash, but the satellite presets included that.
I can try the debug info when I have time.
——Steve
I ran SDRangel 7.2.1-8-g93e51e140 under debug with the usual switches and to my surprise, it worked much better than it had been working. The only problem was that the spectrum/waterfall display froze.
gdb /opt/install/sdrangel/bin/sdrangel run --soapy --fftwf-wisdom ~/.config/f4exb/fftw-wisdom
Was listening to SSB, when NOAA 18 became available. SSB closed and APT opened. ISS became available while NOAA 18 was visible. APT closed and NFM opened. After ISS was no longer available, NFM closed and NOAA 18 opened APT again and received the satellite.
I received NFM and DSD for about 30 minutes.
I changed to SSB demod and closed NFM, but I left DSD Demod running. DSD Constellation did not freeze, but after about 30 minutes, the spectrum and waterfall display froze with SSB demod still receiving a signal. I quit SDRangel and typed info stack.
at /lib/aarch64-linux-gnu/libc.so.6
at /lib/aarch64-linux-gnu/libpthread.so.0
There are no more satellites tonight.
Later, without gdb, I received with SSB demod while DSD demod was running. After about 20 minutes, the DSD constellation display froze, but it seemed to be receiving.
----Steve
For some reason, SDRangel have been behaving much better that it had been. In the past, 6.19 and newer crashed more often than not when Satellite tracker loaded a satellite preset.
V7 crashed frequently before I installed gdb. One strange thing that happened is that DSD demod constellation display never froze while running under gdb, but often did without gdb.
With that in mind, I booted up a Raspberry Pi OS with SDRangel 6.20.2. It does not have gdb installed. With SDRangel 6.20.2, I had Satellite tracker, Maps, NFM, DSD running. Added SSB, there was no sound. Tried to close SSB and SDRangel froze. Force quit and restarted SDRangel and it happened again. Added SSB before hitting play and starting Satellite tracker and SSB works. With those demods running, Satellite tracker loaded APT and NFM, spoke the message, then froze on satellite acquisition. The terminal was rapidly displaying: 2022-06-01 23:02:40.745 (C) AudioFifo::write: (NFMDemod [0:0]) overflow 16384 samples 2022-06-01 23:02:40.746 (D) NFMDemodSink::feed: 0/16384 audio samples written 2022-06-01 23:02:40.746 (D) NFMDemodSink::feed: m_audioSampleRate: 48000 m_channelSampleRate: 0 2022-06-01 23:02:40.775 (C) AudioFifo::write: (NFMDemod [0:0]) overflow 16384 samples 2022-06-01 23:02:40.776 (D) NFMDemodSink::feed: 0/16384 audio samples written 2022-06-01 23:02:40.776 (D) NFMDemodSink::feed: m_audioSampleRate: 48000 m_channelSampleRate: 0 2022-06-01 23:02:40.805 (C) AudioFifo::write: (NFMDemod [0:0]) overflow 16384 samples 2022-06-01 23:02:40.805 (D) NFMDemodSink::feed: 0/16384 audio samples written 2022-06-01 23:02:40.805 (D) NFMDemodSink::feed: m_audioSampleRate: 48000 m_channelSampleRate: 0 2022-06-01 23:02:40.835 (C) AudioFifo::write: (NFMDemod [0:0]) overflow 16384 samples 2022-06-01 23:02:40.835 (D) NFMDemodSink::feed: 0/16384 audio samples written 2022-06-01 23:02:40.836 (D) NFMDemodSink::feed: m_audioSampleRate: 48000 m_channelSampleRate: 0 Killed
After this, cannot start SDRangel: [ERROR] ReleaseDevice Error: sdrplay_api_ServiceNotResponding
I hope this is useful.
SDRangel 7.2.1-8-g93e51e140 running under gdb: gdb /opt/install/sdrangel/bin/sdrangel run --soapy --fftwf-wisdom ~/.config/f4exb/fftw-wisdom Note: I restarted SDRangel and ran it with the same configuration. The crash happened again, the same way. I have that data also.
Had been receiving NFM and DSD. NOAA 15 became visible and it received the satellite image. Durng this time, NOAA 19 became visible, but NOAA 15 continued to be received. When NOAA 15 was no longer visible, SDRangel had a Segmentation fault, probably when switching to NOAA 19, which was still visible.
I kept this terminal output, including info stack near the end:
2022-06-02 19:31:07.740 (D) SatelliteTrackerWorker::doppler "NOAA 15"
2022-06-02 19:31:07.741 (D) APTDemod::webapiSettingsPutPatch: forward to GUI: 0x5558d8b3d0
2022-06-02 19:31:07.781 (D) APTDemod::handleMessage: MsgConfigureAPTDemod
2022-06-02 19:31:07.782 (D) APTDemod::applySettings: m_cropNoise: false m_denoise: true m_linearEqualise: false m_histogramEqualise: false m_precipitationOverlay: false m_flip: true m_channels: 0 m_decodeEnabled: true m_autoSave: false m_autoSavePath: "" m_autoSaveMinScanLines: 200 m_streamIndex: 0 m_useReverseAPI: false m_reverseAPIAddress: "127.0.0.1" m_reverseAPIPort: 8888 m_reverseAPIDeviceIndex: 0 m_reverseAPIChannelIndex: 0 force: false
2022-06-02 19:31:07.782 (D) APTDemodGUI::handleMessage: APTDemod::MsgConfigureAPTDemod
2022-06-02 19:31:07.783 (D) APTDemodImageWorker::handleMessage: MsgConfigureAPTDemodImageWorker
2022-06-02 19:31:07.784 (D) APTDemodBaseband::handleMessage
2022-06-02 19:31:07.784 (D) APTDemodBaseband::handleMessage: MsgConfigureAPTDemodBaseband
2022-06-02 19:31:07.784 (D) DownChannelizer::applyChannelization done: nb stages: 4 in (baseband): 2000000 req: 48000 out (channel): 125000 fc: -7630
2022-06-02 19:31:07.784 (D) APTDemodSink::applyChannelSettings: channelSampleRate: 125000 channelFrequencyOffset: -7630
2022-06-02 19:31:07.784 (D) NCO freq: 7630.000000 phase inc 250
2022-06-02 19:31:07.784 (D) APTDemodSink::applySettings: m_rfBandwidth: 40000 m_fmDeviation: 17000 m_decodeEnabled: true force: false
2022-06-02 19:31:08.740 (D) SatelliteTrackerWorker::los "NOAA 15" target: "NOAA 15"
2022-06-02 19:31:08.741 (D) APTDemod::webapiActionsPost - LOS "NOAA 15"
2022-06-02 19:31:08.741 (D) SatelliteTrackerWorker::los - autoTarget setting "NOAA 19"
2022-06-02 19:31:08.741 (D) SatelliteTrackerWorker::aos: Loading preset "NOAA 19" to device set at 0
2022-06-02 19:31:08.754 (D) SatelliteTracker::handleMessage: MsgConfigureSatelliteTracker
2022-06-02 19:31:08.754 (D) SatelliteTracker::applySettings: m_latitude: 42.2336 m_longitude: -83.5802 m_heightAboveSeaLevel: 227 m_target: "NOAA 19" m_satellites: ("ISS", "NOAA 15", "NOAA 18", "NOAA 19") m_tles: ("https://db.satnogs.org/api/tle/", "https://www.amsat.org/tle/current/nasabare.txt", "https://www.celestrak.com/NORAD/elements/goes.txt") m_dateTime: "" m_minAOSElevation: 5 m_minPassElevation: 15 m_azElUnits: 1 m_groundTrackPoints: 100 m_dateFormat: "yyyy/MM/dd" m_utc: false m_updatePeriod: 1 m_dopplerPeriod: 10 m_defaultFrequency: 1e+08 m_drawOnMap: true m_autoTarget: true m_aosSpeech: "${name} is visible for ${duration} minutes. Max elevation, ${elevation} degrees." m_losSpeech: "${name} is no longer visible." m_aosCommand: "" m_losCommand: "" m_predictionPeriod: 5 m_passStartTime: QTime("00:00:00.000") m_passFinishTime: QTime("23:59:59.000") m_deviceSettings: QHash(("NOAA 15", 0x555692fb20)("NOAA 18", 0x5556c52bd0)("NOAA 19", 0x5556938c20)("ISS", 0x5556928870)) m_title: "Satellite Tracker" m_rgbColor: 4292942179 m_useReverseAPI: false m_reverseAPIAddress: "127.0.0.1" m_reverseAPIPort: 8888 m_reverseAPIFeatureSetIndex: 0 m_reverseAPIFeatureIndex: 0 force: false
2022-06-02 19:31:08.755 (D) SatelliteTrackerWorker::applySettings: m_target: "NOAA 19" m_satellites: ("ISS", "NOAA 15", "NOAA 18", "NOAA 19") m_dateTime: "" m_utc: false m_updatePeriod: 1 force: false
2022-06-02 19:31:08.756 (D) APTDemod::handleMessage: MsgConfigureAPTDemod
2022-06-02 19:31:08.756 (D) APTDemod::applySettings: m_cropNoise: false m_denoise: true m_linearEqualise: false m_histogramEqualise: false m_precipitationOverlay: false m_flip: true m_channels: 0 m_decodeEnabled: false m_autoSave: false m_autoSavePath: "" m_autoSaveMinScanLines: 200 m_streamIndex: 0 m_useReverseAPI: false m_reverseAPIAddress: "127.0.0.1" m_reverseAPIPort: 8888 m_reverseAPIDeviceIndex: 0 m_reverseAPIChannelIndex: 0 force: false
2022-06-02 19:31:08.756 (D) APTDemodGUI::handleMessage: APTDemod::MsgConfigureAPTDemod
2022-06-02 19:31:08.756 (D) APTDemodImageWorker::handleMessage: MsgConfigureAPTDemodImageWorker
2022-06-02 19:31:08.757 (D) APTDemodBaseband::handleMessage
2022-06-02 19:31:08.757 (D) APTDemodBaseband::handleMessage: MsgConfigureAPTDemodBaseband
2022-06-02 19:31:08.758 (D) APTDemodSink::applySettings: m_rfBandwidth: 40000 m_fmDeviation: 17000 m_decodeEnabled: false force: false
2022-06-02 19:31:08.759 (D) SDRPlayV3Input::handleMessage: MsgStartStop: stop
2022-06-02 19:31:08.759 (D) DSPDeviceSourceEngine::stopAcquistion
2022-06-02 19:31:08.760 (D) DSPDeviceSourceEngine::handleSynchronousMessages: DSPAcquisitionStop
2022-06-02 19:31:08.760 (D) DSPDeviceSourceEngine::gotoIdle
2022-06-02 19:31:08.760 (D) SDRPlayV3Input::stop
2022-06-02 19:31:09.096 (D) GLSpectrumGUI::handleInputMessages: message: SpectrumVis::MsgStartStop
2022-06-02 19:31:09.096 (D) APTDemod::stop
2022-06-02 19:31:09.096 (D) SDRPlayV3Gui::handleInputMessages: message: SDRPlayV3Input::MsgStartStop
2022-06-02 19:31:09.096 (D) MainWindow::handleMessages: message: MainCore::MsgLoadPreset
2022-06-02 19:31:09.096 (D) DeviceUISet::loadDeviceSetSettings: preset: [Satellites, NOAA 19]
[Thread 0x7f7128a080 (LWP 4040) exited]
2022-06-02 19:31:09.097 (D) GLSpectrumGUI::applySettings: refLevel: 0.000000e+00 powerRange: 1.000000e+02
2022-06-02 19:31:09.097 (D) GLSpectrumGUI::handleInputMessages: message: GLSpectrum::MsgReportCalibrationShift
2022-06-02 19:31:09.097 (D) SpectrumVis::handleMessage: MsgConfigureSpectrumVis
2022-06-02 19:31:09.097 (D) SpectrumVis::applySettings: m_fftSize: 4096 m_fftWindow: 4 m_fftOverlap: 0 m_averagingIndex: 3 m_averagingMode: 2 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
2022-06-02 19:31:09.098 (D) DeviceAPI::loadSamplingDeviceSettings: Loading Rx preset [Satellites | NOAA 19]
2022-06-02 19:31:09.098 (D) Preset::findBestDeviceConfig: serial matched (exact): id: sdrangel.samplesource.sdrplayv3 ser: 19110C0797
2022-06-02 19:31:09.098 (D) DeviceAPI::loadSamplingDeviceSettings: source center frequency: 137000000 Hz
2022-06-02 19:31:09.099 (D) DeviceAPI::loadSamplingDeviceSettings: deserializing source sdrangel.samplesource.sdrplayv3[0]: 19110C0797
2022-06-02 19:31:09.099 (D) SDRPlayV3Input::handleMessage: MsgConfigureSDRPlayV3
2022-06-02 19:31:09.100 (D) SDRPlayV3Input::applySettings
2022-06-02 19:31:09.101 (D) DeviceSampleStatic::calculateSourceDeviceCenterFrequency: frequencyShiftScheme: 0 desired center freq: 137500000 Hz device center freq: 137500000 Hz device sample rate: 2000000 S/s Actual sample rate: 2000000 S/s center freq position code: 2 image frequency: 137500000 Hz
2022-06-02 19:31:09.101 (D) SDRPlayV3Input::handleMessage: MsgConfigureSDRPlayV3
2022-06-02 19:31:09.102 (D) SDRPlayV3Input::applySettings
2022-06-02 19:31:09.103 (D) DSPDeviceSourceEngine::handleInputMessages: message: DSPSignalNotification
2022-06-02 19:31:09.103 (D) DSPDeviceSourceEngine::handleInputMessages: DSPSignalNotification: m_sampleRate: 2000000 m_centerFrequency: 137500000
2022-06-02 19:31:09.103 (D) DSPDeviceSourceEngine::handleInputMessages: forward message to SpectrumVis
2022-06-02 19:31:09.103 (D) DSPDeviceSourceEngine::handleInputMessages: forward message to APTDemod
2022-06-02 19:31:09.104 (D) DSPDeviceSourceEngine::handleInputMessages: DSPSignalNotification: guiMessageQueue: 0x5555edee10
2022-06-02 19:31:09.104 (D) DeviceSampleStatic::calculateSourceDeviceCenterFrequency: frequencyShiftScheme: 0 desired center freq: 137000000 Hz device center freq: 137000000 Hz device sample rate: 2000000 S/s Actual sample rate: 2000000 S/s center freq position code: 2 image frequency: 137000000 Hz
2022-06-02 19:31:09.105 (D) DeviceUISet::loadRxChannelSettings: Loading preset [Satellites | NOAA 19]
2022-06-02 19:31:09.112 (D) DSPDeviceSourceEngine::handleInputMessages: message: DSPSignalNotification
2022-06-02 19:31:09.112 (D) DSPDeviceSourceEngine::handleInputMessages: DSPSignalNotification: m_sampleRate: 2000000 m_centerFrequency: 137000000
2022-06-02 19:31:09.112 (D) DSPDeviceSourceEngine::handleInputMessages: forward message to SpectrumVis
2022-06-02 19:31:09.112 (D) DSPDeviceSourceEngine::handleInputMessages: forward message to APTDemod
2022-06-02 19:31:09.112 (D) DSPDeviceSourceEngine::handleInputMessages: DSPSignalNotification: guiMessageQueue: 0x5555edee10
2022-06-02 19:31:09.112 (D) DeviceUISet::loadRxChannelSettings: destroying old channel [sdrangel.channel.aptdemod]
2022-06-02 19:31:09.113 (D) APTDemod::~APTDemod
2022-06-02 19:31:09.113 (D) DSPDeviceSourceEngine::removeSink: APTDemod
2022-06-02 19:31:09.113 (D) DSPDeviceSourceEngine::handleSynchronousMessages: DSPRemoveBasebandSampleSink
2022-06-02 19:31:09.114 (D) APTDemod::stopImageWorker
2022-06-02 19:31:09.242 (D) SatelliteTrackerWorker: Current time: "2022-06-02T23:31:09.241Z"
2022-06-02 19:31:09.242 (D) SatelliteTrackerWorker: New AOS: "NOAA 15" new: QDateTime(2022-06-03 00:59:04.000 UTC Qt::UTC) old: QDateTime(2022-06-02 23:20:17.000 UTC Qt::UTC)
2022-06-02 19:31:09.242 (D) SatelliteTrackerWorker: New LOS: "NOAA 15" new: QDateTime(2022-06-03 01:11:21.000 UTC Qt::UTC) old: QDateTime(2022-06-02 23:31:09.000 UTC Qt::UTC)
2022-06-02 19:31:09.242 (D) SatelliteTrackerWorker:: Interval to LOS 6011759
--Type
Thread 198 "QThread" received signal SIGSEGV, Segmentation fault. [Switching to Thread 0x7f4bfff080 (LWP 4038)] 0x0000007ff650b1fc in ?? () from /lib/aarch64-linux-gnu/libQt5Core.so.5 (gdb) info stack
at /lib/aarch64-linux-gnu/libQt5Core.so.5
(this=this@entry=0x0, message=message@entry=0x7f875cd750, emitSignal=emitSignal@entry=true)
at /home/dietpi/SDRangel/sdrangel/sdrbase/util/messagequeue.cpp:47
(this=this@entry=0x555826be00)
at /home/dietpi/SDRangel/sdrangel/plugins/channelrx/demodapt/aptdemodimageworker.cpp:443
at /home/dietpi/SDRangel/sdrangel/plugins/channelrx/demodapt/aptdemodimageworker.cpp:199
(this=0x555826be00, cmd=...)
at /home/dietpi/SDRangel/sdrangel/plugins/channelrx/demodapt/aptdemodimageworker.h:50
(this=0x555826be00)
at /home/dietpi/SDRangel/sdrangel/plugins/channelrx/demodapt/aptdemodimageworker.cpp:92
--Type
at /lib/aarch64-linux-gnu/libQt5Core.so.5
() at /lib/aarch64-linux-gnu/libQt5Widgets.so.5
() at /lib/aarch64-linux-gnu/libQt5Core.so.5
at /lib/aarch64-linux-gnu/libglib-2.0.so.0
at /lib/aarch64-linux-gnu/libglib-2.0.so.0
at /lib/aarch64-linux-gnu/libQt5Core.so.5
at /lib/aarch64-linux-gnu/libpthread.so.0
--Type
(gdb)
The crash there appears to be in the APT demodulator - you might want to try running without that demod for now.
Thanks for looking at this. I hope that you will fix this when you have time. The trouble seems to have started after v6.18.1. I still love SDRangel.
----Steve
This issue is going to be closed due to inactivity
I am hoping that you will be able to fix it when you get time. Thanks, Steve
I am hoping that you will be able to fix APT. This issue serves as a reminder.
----Steve
On Sat, Aug 6, 2022, 9:37 PM github-actions[bot] @.***> wrote:
This issue is going to be closed due to inactivity
— Reply to this email directly, view it on GitHub https://github.com/f4exb/sdrangel/issues/1260#issuecomment-1207329734, or unsubscribe https://github.com/notifications/unsubscribe-auth/AQQ3FMPOBLMORQAULESS5LLVX44PVANCNFSM5XHUN3OQ . You are receiving this because you authored the thread.Message ID: @.***>
I am having Satellite tracker problems on SDRangel running on Raspberry Pi OS Bullseye 64 bit or DietPi Bullseye 64 bit. Same on both OS distributions.
Starting with version 6.19, I added presets for the satellites that I have in Satellite tracker and configured SDRangel Control. SDRangel will freeze when SDRangel Control starts a satellite path procedure while another Channel demod is running. It freezes less often when there is nothing running between satellite passes.
The latest version that I tried with Satellite tracking working well was version 6.18.1.
Starting with version 6.19, in addition to the Satellite tracker crashes, the DSD demod constellation will freeze after running for a few minutes, sometimes longer.
I tried SDRangel version 7.2.1-8-g93e51e140 Satellite tracker/SDRangel control did not load the preset that I had set for the satellite when it became visible. Speech is working, as it announced the satellite becoming visible. I closed the SSB demod that was running and opened APT. Satellite tracker was already running. I set the frequencies and pressed play. SDRangel quit with this error: 2022-05-28 12:21:39.674 (D) APTDemodImageWorker::calcCoord: No TLE for satellite. Is Satellite Tracker running? Segmentation fault
I restarted SDRangel, but it crashed again. The next time I ran SDRangel, it did not quit with Segmentation fault and I received the satellite.
I can provide more debug data if you tell me what and how to get it.
----Steve