SDRPlusPlus icon indicating copy to clipboard operation
SDRPlusPlus copied to clipboard

Scanner module crashing the app

Open 8dcc opened this issue 5 months ago • 1 comments

Hardware

  • CPU: i7
  • RAM: 16GiB
  • GPU: Intel
  • SDR: RTL-SDR v4

Software

  • Operating System: Arch Linux
  • SDR++: Nightly (currently a94e2d6, manually compiled).

Bug Description Starting the scanner module crashes the whole application. This is the GDB log and backtrace:

...
RTL-SDR Blog V4 Detected
[08/07/2025 19:24:03.000] [INFO] RTL-SDR Sample Rate: 2400000.000000
Disabled direct sampling mode
[New Thread 0x7fff79c076c0 (LWP 58549)]
[08/07/2025 19:24:04.000] [INFO] RTLSDRSourceModule 'RTL-SDR Source': Start!
[08/07/2025 19:24:04.000] [INFO] RTLSDRSourceModule 'RTL-SDR Source': Tune: 459029193.000000!
[New Thread 0x7fff794066c0 (LWP 58758)]
[Thread 0x7fff794066c0 (LWP 58758) exited]
[New Thread 0x7fff78c056c0 (LWP 58759)]
terminate called without an active exception

Thread 1 "sdrpp" received signal SIGABRT, Aborted.
0x00007ffff6aa5624 in ?? () from /usr/lib/libc.so.6
(gdb) where
#0  0x00007ffff6aa5624 in ?? () from /usr/lib/libc.so.6
#1  0x00007ffff6a4bba0 in raise () from /usr/lib/libc.so.6
#2  0x00007ffff6a33582 in abort () from /usr/lib/libc.so.6
#3  0x00007ffff6c97b2c in __gnu_cxx::__verbose_terminate_handler () at /usr/src/debug/gcc/gcc/libstdc++-v3/libsupc++/vterminate.cc:95
#4  0x00007ffff6cae3ba in __cxxabiv1::__terminate (handler=<optimized out>) at /usr/src/debug/gcc/gcc/libstdc++-v3/libsupc++/eh_terminate.cc:48
#5  0x00007ffff6c9752a in std::terminate () at /usr/src/debug/gcc/gcc/libstdc++-v3/libsupc++/eh_terminate.cc:58
#6  0x00007fffdc002083 in std::__terminate () at /usr/include/c++/14.2.1/x86_64-pc-linux-gnu/bits/c++config.h:324
#7  std::thread::operator= (this=0x555556536778, __t=...) at /usr/include/c++/14.2.1/bits/std_thread.h:195
#8  ScannerModule::start (this=0x555556536700) at /usr/src/debug/sdrpp-git/sdrpp/misc_modules/scanner/src/main.cpp:128
#9  ScannerModule::start (this=0x555556536700) at /usr/src/debug/sdrpp-git/sdrpp/misc_modules/scanner/src/main.cpp:124
#10 ScannerModule::menuHandler (ctx=0x555556536700) at /usr/src/debug/sdrpp-git/sdrpp/misc_modules/scanner/src/main.cpp:104
#11 0x00007ffff792b41e in Menu::draw(bool) () from /home/SNIP/SDRPlusPlus/build/core/libsdrpp_core.so
#12 0x00007ffff78d897f in MainWindow::draw() () from /home/SNIP/SDRPlusPlus/build/core/libsdrpp_core.so
#13 0x00007ffff7a0f11f in backend::renderLoop() () from /home/SNIP/SDRPlusPlus/build/core/libsdrpp_core.so
#14 0x00007ffff78a9f57 in sdrpp_main(int, char**) () from /home/SNIP/SDRPlusPlus/build/core/libsdrpp_core.so
#15 0x00007ffff6a35488 in ?? () from /usr/lib/libc.so.6
#16 0x00007ffff6a3554c in __libc_start_main () from /usr/lib/libc.so.6
#17 0x0000555555555075 in _start ()
(gdb)

Steps To Reproduce

  1. Enable the "scanner" module.
  2. Start the program on any frequency (e.g. 450MHz)
  3. Press the "start" scanner button.

Screenshots

Image

8dcc avatar Jul 08 '25 15:07 8dcc

known issue, unfixable before the 2.0 rewrite. The current tuning system just can't be fixed to accomodate how the tuner needs to operate. I'll close this once 2.0 is released.

AlexandreRouma avatar Aug 07 '25 04:08 AlexandreRouma