1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-11-18 14:21:49 -05:00
Commit Graph

9770 Commits

Author SHA1 Message Date
Daniele Forsi
dbf630c424 Fix memleaks found with AddressSanitizer/LeakSanitizer
Fixes:
Direct leak of 32 byte(s) in 1 object(s) allocated from:
    #0 0x7eff8bcf46c8 in operator new(unsigned long) ../../../../src/libsanitizer/asan/asan_new_delete.cpp:95
    #1 0x7eff897b484d in DeviceUserArgs::serialize() const sdrbase/device/deviceuserargs.cpp:43
    #2 0x7eff897f4904 in MainSettings::save() const sdrbase/settings/mainsettings.cpp:237
    #3 0x7eff8b578654 in MainWindow::closeEvent(QCloseEvent*) sdrgui/mainwindow.cpp:1749
    #4 0x7eff877a5dc7 in QWidget::event(QEvent*) (/lib/x86_64-linux-gnu/libQt5Widgets.so.5+0x1a5dc7) (BuildId: 983eca66d9695a1892aa796da4160d8d6f9b9ac4)

Direct leak of 32 byte(s) in 1 object(s) allocated from:
    #0 0x7eff8bcf46c8 in operator new(unsigned long) ../../../../src/libsanitizer/asan/asan_new_delete.cpp:95
    #1 0x7eff897b484d in DeviceUserArgs::serialize() const sdrbase/device/deviceuserargs.cpp:43
    #2 0x7eff897f4904 in MainSettings::save() const sdrbase/settings/mainsettings.cpp:237
    #3 0x7eff8b552c9a in MainWindow::~MainWindow() sdrgui/mainwindow.cpp:326
    #4 0x564e8b36e1e5 in runQtApplication app/main.cpp:212
    #5 0x564e8b36bab7 in main app/main.cpp:248
    #6 0x7eff862456c9 in __libc_start_call_main ../sysdeps/nptl/libc_start_call_main.h:58
2024-05-19 19:44:45 +02:00
Daniele Forsi
87be13fcae Fix memleaks found with AddressSanitizer/LeakSanitizer
Found with:
ASAN_OPTIONS="detect_odr_violation=1,strip_path_prefix=$(pwd)/" build/sdrangel

Fixes:
Direct leak of 72 byte(s) in 1 object(s) allocated from:
    #0 0x7f7b94ef46c8 in operator new(unsigned long) ../../../../src/libsanitizer/asan/asan_new_delete.cpp:95
    #1 0x7f7b929ff74c in MainSettings::load() sdrbase/settings/mainsettings.cpp:153
    #2 0x7f7b947614f6 in MainWindow::loadSettings() sdrgui/mainwindow.cpp:1230
    #3 0x7f7b94759e11 in MainWindow::MainWindow(qtwebapp::LoggerWithFile*, MainParser const&, QWidget*) sdrgui/mainwindow.cpp:211
    #4 0x55b694e0a175 in runQtApplication app/main.cpp:196
    #5 0x55b694e07ab7 in main app/main.cpp:248
    #6 0x7f7b8f4456c9 in __libc_start_call_main ../sysdeps/nptl/libc_start_call_main.h:58

Indirect leak of 136 byte(s) in 1 object(s) allocated from:
    #0 0x7f7b94ef46c8 in operator new(unsigned long) ../../../../src/libsanitizer/asan/asan_new_delete.cpp:95
    #1 0x7f7b929e734d in QList<Preset>::node_construct(QList<Preset>::Node*, Preset const&) /usr/include/x86_64-linux-gnu/qt5/QtCore/qlist.h:465
    #2 0x7f7b929e734d in QList<Preset>::append(Preset const&) /usr/include/x86_64-linux-gnu/qt5/QtCore/qlist.h:625
    #3 0x7f7b929e734d in QList<Preset>::push_back(Preset const&) /usr/include/x86_64-linux-gnu/qt5/QtCore/qlist.h:377
    #4 0x7f7b929e734d in Configuration::deserialize(QByteArray const&) sdrbase/settings/configuration.cpp:112
    #5 0x7f7b929ff934 in MainSettings::load() sdrbase/settings/mainsettings.cpp:155
    #6 0x7f7b947614f6 in MainWindow::loadSettings() sdrgui/mainwindow.cpp:1230
    #7 0x7f7b94759e11 in MainWindow::MainWindow(qtwebapp::LoggerWithFile*, MainParser const&, QWidget*) sdrgui/mainwindow.cpp:211
    #8 0x55b694e0a175 in runQtApplication app/main.cpp:196
    #9 0x55b694e07ab7 in main app/main.cpp:248
    #10 0x7f7b8f4456c9 in __libc_start_call_main ../sysdeps/nptl/libc_start_call_main.h:58

Indirect leak of 32 byte(s) in 1 object(s) allocated from:
    #0 0x7f7b94ef46c8 in operator new(unsigned long) ../../../../src/libsanitizer/asan/asan_new_delete.cpp:95
    #1 0x7f7b929e9706 in QList<Preset::DeviceConfig>::node_construct(QList<Preset::DeviceConfig>::Node*, Preset::DeviceConfig const&) /usr/include/x86_64-linux-gnu/qt5/QtCore/qlist.h:465
    #2 0x7f7b929e9706 in QList<Preset::DeviceConfig>::append(Preset::DeviceConfig const&) /usr/include/x86_64-linux-gnu/qt5/QtCore/qlist.h:625
    #3 0x7f7b929f627c in Preset::deserialize(QByteArray const&) sdrbase/settings/preset.cpp:193
    #4 0x7f7b929e74ca in Configuration::deserialize(QByteArray const&) sdrbase/settings/configuration.cpp:113
    #5 0x7f7b929ff934 in MainSettings::load() sdrbase/settings/mainsettings.cpp:155
    #6 0x7f7b947614f6 in MainWindow::loadSettings() sdrgui/mainwindow.cpp:1230
    #7 0x7f7b94759e11 in MainWindow::MainWindow(qtwebapp::LoggerWithFile*, MainParser const&, QWidget*) sdrgui/mainwindow.cpp:211
    #8 0x55b694e0a175 in runQtApplication app/main.cpp:196
    #9 0x55b694e07ab7 in main app/main.cpp:248
    #10 0x7f7b8f4456c9 in __libc_start_call_main ../sysdeps/nptl/libc_start_call_main.h:58
2024-05-19 19:44:45 +02:00
Daniele Forsi
0c6842ff68 Add cmake option to optionally compile with LeakSanitizer
Alse change the description of the existing option SANITIZE_ADDRESS to avoid ambiguity.
2024-05-19 19:44:45 +02:00
f4exb
1836ae3a74 Updated version and changelogs 2024-05-15 12:16:37 +02:00
Edouard Griffiths
20af5cc88e
Merge pull request #2078 from dforsi/fix/mac-build
Fix CI for Mac OS
2024-05-14 23:28:36 +02:00
Edouard Griffiths
20aed1b00d
Merge pull request #2110 from dforsi/feature/my-position
Explain that GPS is not the only means to get the position of the station
2024-05-14 09:42:32 +02:00
Daniele Forsi
dbc9ebbb64 Explain that GPS is not the only means to get the position of the station
Also print a debug message with the position provider in use.
2024-05-13 22:55:34 +02:00
f4exb
5231d1877b Metis MISO: added lock all Rx frequencies option 2024-05-13 22:09:12 +02:00
Edouard Griffiths
79310b2008
Merge pull request #2095 from dforsi/fix/typos
Fix/typos
2024-05-13 19:03:41 +02:00
f4exb
a9dab43abe Interferometer: updated documentation. Part of #2098 2024-05-13 01:02:44 +02:00
f4exb
69be0d28bf LocalSink: refactored getLocalDevice method 2024-05-13 01:02:44 +02:00
f4exb
a85731d3f7 Interferometer: added localDeviceIndex and play to API 2024-05-13 01:02:44 +02:00
f4exb
62ffcde69f Interferometer: added possibility to send correlated IQ to a Local Input device 2024-05-13 01:02:44 +02:00
f4exb
40d7fece02 Interferometer: list local input devices and make update settings atomic 2024-05-13 01:02:44 +02:00
f4exb
dae5a9174b LocalSink: update local input device list at construction time 2024-05-13 01:02:44 +02:00
f4exb
bab47d41c7 Interferometer: implement gain and phase in API 2024-05-13 01:02:44 +02:00
f4exb
b6b4eb405f Interferometer: added channel B gain control 2024-05-13 01:02:44 +02:00
Edouard Griffiths
75afe418c1
Merge pull request #2109 from dforsi/fix/settings-save
Fix saving configurations after deleting some entries
2024-05-12 00:48:44 +02:00
Daniele Forsi
08c918f194 Fix saving configurations after deleting some entries 2024-05-11 19:36:31 +02:00
Edouard Griffiths
7db387995e
Merge pull request #2104 from srcejon/freq_scanner
Don't call start() in demod constructors
2024-05-10 10:14:28 +02:00
srcejon
fd623ea5d6 Fix thread parent warning. 2024-05-09 07:44:47 +01:00
srcejon
9078ea21d4 Fix warnings 2024-05-08 20:15:01 +01:00
srcejon
c0fc8c3b73 Don't call start() in Demod's constructors. #2102
SSDDemodGUI: Disable AGC widgets when AGC disabled.
2024-05-08 18:52:34 +01:00
srcejon
60db324abc Bring BFM demod closer to AM demod design. 2024-05-08 18:43:19 +01:00
srcejon
605cf51d7f BFM Demod: Delete baseband on stop() 2024-05-08 15:00:20 +01:00
Edouard Griffiths
a31e83d43c
Merge pull request #2096 from srcejon/freq_scanner
Two bug fixes
2024-04-30 15:28:52 +02:00
srcejon
39760146d4 ValueDial: Fix array being accessed out of range. 2024-04-30 09:33:54 +01:00
srcejon
4f2b03646f AIS: Fix string decoding in safetey messages. #2094 2024-04-30 09:32:22 +01:00
Daniele Forsi
31dc594b46 Fix Markdown 2024-04-29 19:07:29 +02:00
Daniele Forsi
b1643ee9b5 Fix typos 2024-04-29 19:07:29 +02:00
Daniele Forsi
2b895d4cf2 Fix description 2024-04-29 11:07:08 +02:00
f4exb
217c900609 AudioCATSISO: fixed transverter processing 2024-04-28 01:15:36 +02:00
f4exb
956d1e6c07 AudioCATSISO: fixed CAT worker handling 2024-04-27 22:12:03 +02:00
Edouard Griffiths
c33c8464cd
Merge pull request #2093 from dforsi/fix/typos
Fix title of UDP Sample Sink window in the documentation
2024-04-27 19:17:55 +02:00
Daniele Forsi
147368d518 Fix title of window (s/Source/Sink/)
Fixes issue #2092
2024-04-27 18:48:02 +02:00
Edouard Griffiths
52a440e400
Merge pull request #2091 from dforsi/fix/typos
Fix/typos
2024-04-27 11:08:10 +02:00
Edouard Griffiths
498ff9e94d
Merge pull request #2089 from rudis/master
Minor documenation fixes
2024-04-27 11:06:47 +02:00
Daniele Forsi
954748f452 Temporarily disable building DATV plugins for MacOS CI
This is a temporary workaround to make CI succeed until the plugins code
is modified to be compatible with a newer version of ffmpeg.
2024-04-26 23:04:12 +02:00
Daniele Forsi
6f107cd915 Fix CI for Mac OS
Build ffmpeg as external project to work around missing includes:
/Users/runner/work/sdrangel/sdrangel/plugins/channelrx/demoddatv/datvideorender.cpp:282:46: error: no member named 'channels' in 'AVCodecContext'
(and similar)
2024-04-26 22:57:41 +02:00
Daniele Forsi
b30158c0cc Fix reference to image 2024-04-26 22:39:34 +02:00
Daniele Forsi
15433bb324 Fix spellling errors found with LibreOffice Writer 2024-04-26 21:18:32 +02:00
Daniele Forsi
d135dd9028 Fix spellling errors found with aspell 2024-04-26 21:18:32 +02:00
Edouard Griffiths
34871bfa0f
Merge pull request #2088 from rudis/sdrplay
sdrplayv3: use SDRPLAY_MAX_DEVICES in enumOriginDevices()
2024-04-26 19:10:56 +02:00
Edouard Griffiths
2a9c679c02
Merge pull request #2087 from agatti/vulkan-fix
Fix building with recent Vulkan SDKs.
2024-04-26 17:16:38 +02:00
Simon Ruderich
39575c10fa channelrx/channelpower/readme.md: fix minor typo 2024-04-26 08:37:56 +02:00
Simon Ruderich
6086fb328e plugins: remove UTF-8 BOMB from readme.md
BOMB is normally not used for UTF-8/ASCII files.
2024-04-26 08:37:24 +02:00
Simon Ruderich
3307000a72 plugins: fix non-matching <hx> tags in readme.md 2024-04-26 08:37:24 +02:00
Simon Ruderich
f5b43fec2d sdrplayv3: use SDRPLAY_MAX_DEVICES in enumOriginDevices()
This makes it consistent with openDevice() which already uses
this constant provided by the API.
2024-04-26 08:34:50 +02:00
Simon Ruderich
97b1a6a70d sdrgui/gui/spectrum.md: add missing FFT window values 2024-04-26 08:14:13 +02:00
Simon Ruderich
fc13be4d69 samplesink/fileoutput/readme.md: use ASCII dashes in sox command line
Otherwise sox fails with this non-helpful message:

    sox FAIL formats: bad input format for file `myfile.raw': sampling rate was not specified
2024-04-26 08:14:13 +02:00