1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-12-23 18:15:45 -05:00
Commit Graph

107 Commits

Author SHA1 Message Date
Daniele Forsi
8829df3c3b Fix memleaks found with AddressSanitizer/LeakSanitizer
Found with:
ASAN_OPTIONS="detect_odr_violation=1,strip_path_prefix=$(pwd)/" build/sdrangel

Fixes:
Direct leak of 448 byte(s) in 2 object(s) allocated from:
    #0 0x7f78cd8f46b8 in operator new(unsigned long) ../../../../src/libsanitizer/asan/asan_new_delete.cpp:95
    #1 0x7f788e0e9d9c in GS232ControllerWorker::MsgConfigureGS232ControllerWorker::create(GS232ControllerSettings const&, QList<QString> const&, bool) sdrangel/plugins/feature/gs232controller/gs232controllerworker.h:51
    #2 0x7f788e0eeedf in GS232Controller::applySettings(GS232ControllerSettings const&, QList<QString> const&, bool) sdrangel/plugins/feature/gs232controller/gs232controller.cpp:291
    #3 0x7f788e0ec595 in GS232Controller::handleMessage(Message const&) sdrangel/plugins/feature/gs232controller/gs232controller.cpp:156
    #4 0x7f78cabe899f in Feature::handleInputMessages() sdrangel/sdrbase/feature/feature.cpp:46
    #5 0x7f78ca9f9b5c in Feature::qt_static_metacall(QObject*, QMetaObject::Call, int, void**) build-sdrangel-Desktop_qt5-Debug/sdrbase/sdrbase_autogen/3DM3QXXG3A/moc_feature.cpp:89
    #6 0x7f78c7f05fcc  (/lib/x86_64-linux-gnu/libQt5Core.so.5+0x305fcc) (BuildId: ed2abb344a128279a866aa6c4a79f3fa5c87c59e)
    #7 0x7f78caa0584a in MessageQueue::messageEnqueued() build-sdrangel-Desktop_qt5-Debug/sdrbase/sdrbase_autogen/KH43KSYMFX/moc_messagequeue.cpp:131
    #8 0x7f78cad19c77 in MessageQueue::push(Message*, bool) sdrangel/sdrbase/util/messagequeue.cpp:55
    #9 0x7f788e142936 in GS232ControllerGUI::applySettings(QStringList const&, bool) sdrangel/plugins/feature/gs232controller/gs232controllergui.cpp:969
    #10 0x7f788e142727 in GS232ControllerGUI::applySetting(QString const&) sdrangel/plugins/feature/gs232controller/gs232controllergui.cpp:960
    #11 0x7f788e133c26 in GS232ControllerGUI::onWidgetRolled(QWidget*, bool) sdrangel/plugins/feature/gs232controller/gs232controllergui.cpp:206
    #12 0x7f788e0e25d9 in GS232ControllerGUI::qt_static_metacall(QObject*, QMetaObject::Call, int, void**) build-sdrangel-Desktop_qt5-Debug/plugins/feature/gs232controller/featuregs232controller_autogen/EWIEGA46WW/moc_gs232controllergui.cpp:234
    #13 0x7f78c7f05fcc  (/lib/x86_64-linux-gnu/libQt5Core.so.5+0x305fcc) (BuildId: ed2abb344a128279a866aa6c4a79f3fa5c87c59e)
    #14 0x7f78ccdcd9a1 in RollupContents::widgetRolled(QWidget*, bool) build-sdrangel-Desktop_qt5-Debug/sdrgui/sdrgui_autogen/DMHXEJ42XS/moc_rollupcontents.cpp:146
    #15 0x7f78cd06a080 in RollupContents::eventFilter(QObject*, QEvent*) sdrangel/sdrgui/gui/rollupcontents.cpp:403
    #16 0x7f78c7ecc4b2 in QCoreApplicationPrivate::sendThroughObjectEventFilters(QObject*, QEvent*) (/lib/x86_64-linux-gnu/libQt5Core.so.5+0x2cc4b2) (BuildId: ed2abb344a128279a866aa6c4a79f3fa5c87c59e)

and more
2024-05-19 19:44:45 +02:00
Simon Ruderich
3307000a72 plugins: fix non-matching <hx> tags in readme.md 2024-04-26 08:37:24 +02:00
Daniele Forsi
570c1f6877 Remove unused includes and use more direct includes 2024-04-20 19:10:18 +02:00
Mykola Dvornik
15337cac66 Fix bug that prevents settings changes updates via reverse API
Most plugins that use reverse API to PATCH settings updates to remote
server only do so when `useReverseAPI` is toggled, but not when the
relevant settings are being updated. So lets fix the precondition to
use the `m_useReverseAPI` flag instead.
2024-04-14 18:58:12 +02:00
f4exb
cdae5ca048 Updated versions and changelogs 2024-04-14 11:41:00 +02:00
Daniele Forsi
8c3f7e3775 Remove unused includes and use more direct includes 2024-04-11 23:31:34 +02:00
f4exb
ac651ff798 Updated versions and changelogs 2024-02-18 11:56:40 +01: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
607d7db702 Use MainCore code for managing available channel and feature list. 2024-02-14 15:36:22 +00:00
srcejon
1ace16cfe2 Add Sky Map support to Rotator Controller. 2024-02-14 13:21:26 +00:00
f4exb
07e8ae0de1 Updated changelogs and plugins versions 2023-11-29 05:00:58 +01:00
f4exb
00b041d762 Rewriting of copyright notices for plugins/features. Part of #1893 2023-11-18 13:12:18 +01:00
Jon Beniston
e799e5eb72 Fix resize cursor not being cleared when mouse moves over child widgets 2023-11-13 20:51:03 +00:00
f4exb
7b85db4885 Update versions and changelogs 2023-09-02 23:18:51 +02:00
Jon Beniston
fa33270c55 Fix Mac compilation 2023-08-23 10:14:45 +01:00
Lamar Owen
ba7cb15541 Patch to cause single-step controls in gs232controller to use precision to determine step size 2023-08-09 12:18:37 -04:00
Jon Beniston
5e803621aa Fix gcc errors 2023-08-05 12:56:21 +01:00
Jon Beniston
2d7c572040 Rotator Controller: Add additional gamepad calibration and functionality 2023-08-05 12:33:01 +01:00
f4exb
83834674c0 Updated versions and changelogs 2023-08-04 03:20:40 +02:00
Jon Beniston
46f9c1a493 Rotator Controller: Use floats for az/el offsets. For #1739 2023-07-27 14:57:57 +01:00
f4exb
b12e2822fc Updated versions and changelogs 2023-05-24 08:43:50 +02:00
Jon Beniston
42215c7bd2 Rotator Controller: Allow negative azimuth. 2023-05-23 22:34:55 +01:00
f4exb
8260721f2d Updated cersions and changelogs 2023-05-23 22:39:27 +02:00
Daniele Forsi
c6195634f9 Fix repeated words
Found with:
grep -r " \([[:alpha:]]\+\) \1 " --color=yes --include=*.md
2023-05-04 21:42:49 +02:00
Daniele Forsi
794be61957 Fix spelling using ispell 2023-05-02 19:43:59 +02:00
Jon Beniston
ef76e34040 Add gamepad dependency 2023-04-24 12:42:13 +01:00
Jon Beniston
d1e7d6f1e2 Only show config button on Linux/Android 2023-04-24 12:14:59 +01:00
Jon Beniston
fae899926f Only show config button if supported 2023-04-24 12:11:31 +01:00
Jon Beniston
fe3aeaed5b Add support for gamepad axis configuration 2023-04-24 11:38:52 +01:00
Jon Beniston
a1c1308580 Rotator Controller: Add gamepad input controller support. 2023-04-23 19:52:02 +01:00
Jon Beniston
fabcd7a795 Fix corrupted char 2023-04-03 17:14:01 +01:00
Jon Beniston
4ac5e729ff Rotator Controller Updates
Add support for X/Y coordinates.
Add coordinate precision setting.
Automatically scan for serial port changes.
Refactor so each protocol is implemented in a separate class.
Add start of DFM protocol.
2023-04-03 16:47:13 +01:00
f4exb
cf0489d96f Updated versions and changelogs 2023-04-01 13:42:53 +02:00
Jon Beniston
8ad1b3c04b Add missing setting ket in Rotator Controller. 2023-03-30 11:15:16 +01:00
Jon Beniston
a4beb0e0d5 Fix #1559. Update protocol before calling setAzimuthElevation 2023-01-06 09:18:02 +00:00
Jon Beniston
0dd466a900 Add DialogPositioner to ensure dialogs are fully on screen and remain on
screen when screen orientation changes.
Add DialPopup to allow dials to adjusted with a slider, which is easier
on touchscreens.
Add TableTapAndHold to support table context menus on touchscreens.
2022-12-20 10:31:15 +00:00
f4exb
5a0fc37241 Updated versions and changelogs 2022-12-01 22:02:11 +01:00
f4exb
005cee925d Rotator Controller feature: Make settings assignments atomic. Part of #1329 2022-11-24 16:40:36 +01:00
Jon Beniston
e6b54ccb1d Rotator controller: Fix initialisation of serial port. Fix crash when serial port not initialised 2022-11-18 10:55:15 +00:00
Jon Beniston
fc7c9c1fc8 Update CMakeLists.txt to support both Qt5 and Qt6. Add option ENABLE_QT6 2022-11-17 14:34:54 +00:00
Jon Beniston
c966f1cb5a dd maximize button to MainSpectrum and expandible Channels and Features.
Add sizeToContents in ChannelGUI and FeatureGUI, called when widget is
rolled, so we can remove resizing code from all of the individual
channels and features.

In RollupContents, use minimumSizeHint for calculated size, so that
minimumWidth can come from .ui file.

In DeviceGUI::sizeToContents(), call adjustSize(), so Device GUIs start
out at minimum needed size (which should restore appearance prior to
last patch).

In stackSubWindows, use available space for channels if no
spectrum/features present.
In stackSubWindows, fix spectrum from being sized too big, resulting in
scroll bars appearing.
Reset user-defined channel width in stackSubWindows, when channels are
removed.
Don't stack maximized windows.

There's one hack in Channel/FeatureGUI::maximizeWindow(). It seems that
when maximimzing a window, QOpenGLWidgets aren't always paint properly
immediately afterwards, so the code forces an additional update. I can't
see why the first call to paintGL doesn't work.
2022-11-11 12:24:27 +00:00
Jon Beniston
139642ad4a Fix support for using Serial or TCP for either protocol 2022-10-28 13:56:39 +01:00
Jon Beniston
a618dae6e7 Check for existing pipes after GUI is created. For #1484 2022-10-27 19:15:46 +01:00
f4exb
47a6ddddd8 Updated versions and changelogs 2022-10-07 00:24:31 +02:00
Jon Beniston
b1ce69fb2b Call stopWork from destructor. 2022-09-20 21:13:12 +01:00
Jon Beniston
5da8d6d28c Update threading in Rotator Controller for #1346 2022-09-18 16:47:06 +01:00
Jiří Pinkava
0df2d75e6d Replace deprecated QMutex(Recursive) with QRecursiveMutex 2022-09-17 23:00:07 +02:00
Daniele Forsi
902012641d Fix typing errors in readme's
Fixed with:
find . -name '*.md' -exec codespell --ignore-words-list=doas,ehr,lits,verry --write-changes --summary {} \+
2022-05-15 12:39:57 +02:00
f4exb
de94ea01b5 Updated main and plugin versions 2022-05-14 13:16:33 +02:00