1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-11-22 08:04:49 -05:00
Commit Graph

2842 Commits

Author SHA1 Message Date
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
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
f4exb
a85731d3f7 Interferometer: added localDeviceIndex and play to API 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
Daniele Forsi
08c918f194 Fix saving configurations after deleting some entries 2024-05-11 19:36:31 +02: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
4f2b03646f AIS: Fix string decoding in safetey messages. #2094 2024-04-30 09:32:22 +01:00
Alessandro Gatti
fa5dc41503 vkFFT: Fix building with recent Vulkan SDKs.
Signed-off-by: Alessandro Gatti <a.gatti@frob.it>
2024-04-26 00:35:16 +02:00
Edouard Griffiths
4d43e53272
Merge pull request #2076 from dforsi/fix/includes
Fix/includes
2024-04-21 11:15:46 +02:00
Daniele Forsi
fe84c20aff Make all include directives identical
Fixes the 5 includes that are different from the majority:
grep -Ehr "#include .+dsptypes" --include=*.h | sort | uniq -c
    110 #include "dsp/dsptypes.h"
      1 #include <dsp/dsptypes.h>
      4 #include "dsptypes.h"
2024-04-20 19:19:11 +02:00
Daniele Forsi
613d9e4005 Fix "More '%' conversions than data arguments"
Fixes a compiler warning:
.../sdrangel/sdrbase/audio/audioinputdevice.cpp:106: warning: format ‘%d’ expects a matching ‘int’ argument [-Wformat=]
2024-04-20 19:11:16 +02:00
Daniele Forsi
570c1f6877 Remove unused includes and use more direct includes 2024-04-20 19:10:18 +02:00
Daniele Forsi
8c3f7e3775 Remove unused includes and use more direct includes 2024-04-11 23:31:34 +02:00
srcejon
84960eff03 Fix Qt5 compilation 2024-04-10 01:58:31 +01:00
srcejon
2973eff337 Preset: Copy and initialise all fields for #2061. 2024-04-10 01:40:57 +01:00
srcejon
a77b6f1b36 Radiosonde: Support uploading to SondeHub. Improve humidity calculation. Fix a couple of bugs. 2024-04-10 01:31:39 +01:00
srcejon
7b6bbe88f3 Regenerate swagger files 2024-04-07 16:53:16 +01:00
srcejon
67723563a4
Merge branch 'f4exb:master' into freq_scanner 2024-04-07 14:05:29 +01:00
Edouard Griffiths
98f5e610d7
Merge pull request #2056 from mxi-box/audio
Fix audio sink/source mapping
2024-04-07 11:42:40 +02:00
srcejon
035e6f59be Add additional patchChannelSettings variants and addChannel. 2024-04-06 22:22:28 +01:00
mxi-box
32aee52ab3 Fix audio sink/source mapping 2024-04-07 03:25:31 +08:00
srcejon
83498f848b Regnerate swagger files 2024-04-06 19:04:52 +01:00
srcejon
6134a2cf78 Add caching of index page, as can take 5s to load. 2024-04-05 16:34:35 +01:00
srcejon
2e169a1c4c
Merge branch 'f4exb:master' into freq_scanner 2024-04-05 10:49:10 +01:00
srcejon
4955e6ab08 Map: Add save to KML. Support MUF/foF2 varying with time. Support VLF transmitters being read from .csv. 2024-04-05 10:41:24 +01:00
RoboSchmied
6947d892a0 Fix typo
Signed-off-by: Michael Seibt <github@roboschmie.de>
2024-04-05 00:21:29 +02:00
srcejon
535f5c5e8f Plot SID paths on map. 2024-04-04 21:41:07 +01:00
srcejon
879ce0e17b Regenerate swagger 2024-04-04 15:24:08 +01:00
srcejon
3c75ac4f9e Add add and removed channels or features. 2024-04-04 15:21:09 +01:00
srcejon
eac144acba #2028 - Check for Cr or LF. 2024-04-03 15:14:14 +01:00
srcejon
610c36004e Add SID (Sudden Ionospheric Disturbances) feature 2024-04-02 16:13:01 +01:00
srcejon
625513eaeb
Merge branch 'f4exb:master' into freq_scanner 2024-04-02 13:52:10 +01:00
mxi-box
1dddbd4424 Packet Plugin: packetmod supports multi Via; packetdemod fix H bit 2024-03-30 19:03:31 +08:00
mxi-box
556cc8ad45 Move AudioDeviceInfo singleton 2024-03-30 14:51:38 +08:00
mxi-box
ce3e78322b Fix default audio boolean mark 2024-03-30 12:12:57 +08:00
mxi-box
eef0084a6e Make AudioDeviceInfo singleton, remove the ones in AudioDeviceManager 2024-03-30 12:10:21 +08:00
srcejon
10993b447b FeatureWebAPIUtils: Add method to open Sky Map and find a target. 2024-03-28 15:26:56 +00:00
srcejon
2be14f944a Add util classes for getting data from GOES, SDO, Solar Orbiter STIX and Fermi satellites. 2024-03-28 15:26:23 +00:00
srcejon
605628567b Regenerate swagger files 2024-03-27 16:49:46 +00:00
srcejon
7e859c938d ChannelWebAPIUtils: Add method to run / stop feature. 2024-03-27 16:47:13 +00:00
srcejon
0ab0f33d00 Astronomy: Add sunrise / sunset calculation. 2024-03-27 16:46:27 +00:00
srcejon
68b833ad97 APRS: Fix forwarding of binary data to APRS-IS for #2028. Support UTF-8.
PacketDemod: Support UTF-8.
2024-03-20 13:54:15 +00:00
srcejon
be554146bd Regenerate swagger files 2024-03-18 14:20:07 +00:00
srcejon
c4e2bf2a38 FeatureWebAPIUtils: Add skyMapFind() 2024-03-18 14:16:41 +00:00
srcejon
29ae05a494 MainCore::getFeatureIndexFromId - Support Feature Ids without feature set index. 2024-03-18 14:10:02 +00:00
srcejon
c6143ca456 Db - Decrease default floor to -150dB. 2024-03-14 15:41:01 +00:00
srcejon
6a2a4d1281 Fix typo 2024-03-13 16:14:47 +00:00
srcejon
d45058d08f Add Channel Power to Web API 2024-03-13 15:52:45 +00:00
srcejon
ddcd08ba15 Regnerate swagger files 2024-03-13 15:46:05 +00:00
srcejon
2fdd92c85c Regenerate swagger files 2024-03-13 14:32:16 +00:00
f4exb
b0b4fa521f Use mouse keys for CW modulation in SSB modulator. Fixes #1948 2024-03-13 01:30:10 +01:00
sebi
3aa3de0687 fix memset() arguments order in vkfftengine 2024-03-11 02:25:44 +02:00
f4exb
788190872b Callsign: removed comma separated country data 2024-03-08 15:36:03 +01:00
f4exb
41eb0fea9b Added missing exports for MSVC. Part of #2008 2024-03-07 16:34:57 +01:00
f4exb
446e1a258a Added missing files. Part of #2008 2024-03-07 15:28:31 +01:00
f4exb
56f3cfb769 Class to handle amateur radio callsigns and corresponding country data. Part of #2008 2024-03-07 14:48:54 +01:00
srcejon
2a85550fd9 Merge branch 'freq_scanner' of https://github.com/srcejon/sdrangel into freq_scanner 2024-03-05 10:28:12 +00:00
srcejon
885cddc981 Use F:n for feature Ids instead of Fn:m as discussed in #1912
Update Demod Analzyer to use AvailableChannelsOrFeature - removes need for Refresh Channels button
2024-03-05 10:28:01 +00:00
f4exb
b1a54d867f A couple of compilation warning fixes 2024-03-04 23:15:01 +01:00
f4exb
ef2fbb844e SigMF file sink: updated API with new record size log2 2024-03-04 23:05:54 +01:00
f4exb
e97ea32f3b SigMF File Sink: implement 16 and 8 bits sample sizes. Fixes #1921 2024-03-04 21:21:33 +01:00
srcejon
84e091a1b2 Mark log2fapprox as const. 2024-03-04 15:51:03 +00:00
srcejon
0b372d983e Use log2 approximation to increase performance. Part of #2004 2024-03-04 15:17:23 +00:00
srcejon
506a0e2fcc Regenerate swagger files 2024-03-03 21:29:22 +00:00
srcejon
ae64f2c652 Fix gcc warnings. 2024-03-03 13:57:10 +00:00
srcejon
5919f234c0 Add End-of-Train demodulator for #1866 2024-03-03 13:40:42 +00:00
srcejon
8f0475984b Regenerate swagger files 2024-03-03 10:49:26 +00:00
srcejon
cf3aeae55f
Merge branch 'f4exb:master' into freq_scanner 2024-02-28 16:17:16 +00:00
mxi-box
2de9f16be4 Fix renumberate deviceset without modifying claimed of SamplingDevice 2024-02-28 06:46:35 +08:00
srcejon
fafeb822d9 Fix Kiwi location. 2024-02-27 18:09:28 +00:00
srcejon
ca8a537a50 HTTPDownloadManager: Support latest updates to Google Drive. 2024-02-27 15:41:39 +00:00
srcejon
36a25b5450 Add utils. 2024-02-27 15:41:14 +00:00
srcejon
e0839fce82 Map: Add Spy Server and Kiwi SDR. Add weather and satellite overlays. 2024-02-27 15:40:06 +00:00
srcejon
8ad555972e Generate swagger files 2024-02-27 14:07:53 +00:00
mxi-box
aeafe51220 Fix not remove source buddy 2024-02-27 07:13:09 +08:00
wysiwyng
24e3fb2d76 add rsp1b to remote sinks/sources 2024-02-18 19:57:00 +01:00
srcejon
431fda30cb Qt6 fix 2024-02-16 20:32:19 +00:00
srcejon
e96831326e Qt6 fix 2024-02-16 20:30:17 +00:00
srcejon
e1817958b5 Fix warnings and Sky Map connections. 2024-02-16 18:08:31 +00:00
srcejon
483e338614 Add AvailableChannelOrFeatureHandler for handling lists of channels, features and message pipes to them. 2024-02-16 16:31:12 +00:00
srcejon
e6e4d1661e Fix compiler warnings. 2024-02-14 13:58:44 +00:00
srcejon
2708a81623 Add Sky Map feature plugin. 2024-02-14 13:20:33 +00:00
srcejon
03232b094c
Merge branch 'f4exb:master' into freq_scanner 2024-02-13 10:23:09 +00:00
srcejon
4b227f73b8 Update Sky Map yaml 2024-02-12 09:33:58 +00:00
mxi-box
3623e059f9 Optimize eumerator of origin device
Add enumerateAllDevices to reduce startup period; Optimize LimeSDR enumerating by skipping LMS_Init
2024-02-12 16:10:54 +08:00
srcejon
c93444a75a Update Sky Map yaml 2024-02-08 11:37:17 +00:00
srcejon
2e389d2607 Update Sky Map yaml 2024-02-08 11:07:57 +00:00
srcejon
cabb6dd339 Update Sky Map yaml 2024-02-08 10:26:40 +00:00
srcejon
cd0deb5bdf Add Sky Map yaml 2024-02-08 09:21:14 +00:00
Anton Kotenko
3a6fb11a4c Demod Analyzer plugin: channel selection via api
Problem: It's not possible to select channel in Demod Analyzer feature
via api.

Solution:
Add new "action" into
POST /sdrangel/featureset/feature/{featureIndex}/actions
endpoint
2024-01-21 13:51:41 +01:00
Anton Kotenko
2a47ab2e60 Fix failure due to access by null pointer
Editing FrequencyScanner via api fails due to null pointer.
Failure happens when swagger generated setValue method is called for
complicated/nested structure on the object with is created by
constructor, but not initialized by the ::init method.

Solution:
1. Call init on newly created object
2. Proactively fix this for all types of settings objects
2024-01-14 14:34:49 +01:00
f4exb
86a1d15eba Frequency Scanner: handle change of I/Q stream in tracked channels 2023-12-14 21:57:49 +01:00
f4exb
5ed6f060a0 Frequency Scanner: allow scanning channels of a MIMO device 2023-12-14 21:57:49 +01:00
f4exb
f98800702c Fixed some AGC issues 2023-12-11 01:49:11 +01:00
f4exb
4e25f4d678 Removed useless AGC clamping 2023-12-11 01:49:11 +01:00
f4exb
d97f92dcc3 Fixed AudioNetSink stereo handling 2023-12-11 01:49:11 +01:00
srcejon
8d37579076 Add support for setting center frequency on Tx devices. 2023-12-05 12:34:15 +00:00
srcejon
d989561df5 Use common code for creating and processing device and channel Ids. 2023-12-05 12:32:53 +00:00