marcogrecopriolo / guglielmo

Qt based FM / Dab tuner
GNU General Public License v2.0
64 stars 2 forks source link

SDRPlay V3 not found #20

Closed frspin closed 2 weeks ago

frspin commented 2 months ago

Compiling with only SDRPlay V3 device don't find any device. Perhaps code for SDRPlay V3 device need to be updated?

Regards Franco Spinelli IW2DHW

marcogrecopriolo commented 2 months ago

Could you run from the command line with max logging enabled (-vvv) and post the output? I only had an SDR play on loan for a short while, and while I had it, it worked. I don't believe I made any major changes? Also, platform, and which version of the SDRPlay library are you using?

frspin commented 2 months ago

Il 27/08/24 14:18, Marco Greco ha scritto:

Could you run from the command line with max logging enabled (-vvv) and post the output?

SOUND: converter created in 16000 out 48000 size 3200 SOUND: converter created in 24000 out 48000 size 4800 SOUND: converter created in 32000 out 48000 size 6400 PLAYV3: functions loaded PLAYV3: api opened PLAYV3: api version 3,150000 detected PLAYV3: 1 devices detected PLAYV3: sdrplay_api_Init failed sdrplay_api_Fail PLAYV3: stopping PLAY: we could not load libmirsdrapi-rsp UI: switching to dab stations UI: close window received UI: yes / no dialog UI: close window accepted SOUND: converter destroyed in 32000 out 48000 size 6400 SOUND: converter destroyed in 24000 out 48000 size 4800 SOUND: converter destroyed in 16000 out 48000 size 3200

I only had an SDR play on loan for a short while, and while I had it, it worked. I don't believe I made any major changes?

Is SDRPlay API changed I suppose.

Also, platform, and which version of the SDRPlay library are you using?

Linux Ubuntu 24.04 and also Debian Testing All on desktop PC When I was using 22.04 I have also version 2 of API and it was working If you make some changes to V3 interface I can test it

Regards

Franco Spinelli IW2DHW

marcogrecopriolo commented 2 months ago

Right it probably is API version change - At the time I tested it, 3.07 was current, and I only tested it against a RSP1A. I'll see if I can spot a parameter value that's wrong in the source... What device do you have?

marcogrecopriolo commented 2 months ago

FWIW, does the appimage work for you?

frspin commented 2 months ago

Il 27/08/24 15:51, Marco Greco ha scritto:

Right it probably is API version change - At the time I tested it, 3.07 was current, and I only tested it against a RSP1A. I'll see if I can spot a parameter value that's wrong in the source... What device do you have?

An old RSP1

Franco Spinelli IW2DHW

frspin commented 2 months ago

Il 27/08/24 15:52, Marco Greco ha scritto:

FWIW, does the appimage work for you?

No, neither of 2 Appimages(v0.5 and v0.4+v0.5)

Status of sdrplay service after running guglielmo is:

● sdrplay.service - SDRplay API Service Loaded: loaded (/etc/systemd/system/sdrplay.service; enabled; preset: enabled) Active: active (running) since Tue 2024-08-27 15:56:46 CEST; 2min 24s ago Main PID: 175677 (sdrplay_apiServ) Tasks: 5 (limit: 18729) Memory: 1.0M (peak: 4.4M) CPU: 599ms CGroup: /system.slice/sdrplay.service └─175677 /opt/sdrplay_api/sdrplay_apiService

ago 27 15:57:15 franco sdrplay_apiService[175677]: [175677]: sdrplay_apiService: ReleaseDevice: Serial number 0000000001 found at pos=0 ago 27 15:57:15 franco sdrplay_apiService[175677]: [176102]: sdrplay_apiService_rsp: streamThread: Exit ago 27 15:57:15 franco sdrplay_apiService[175677]: [175677]: devIdx0: sdrplay_apiService_rsp: ReleaseAll: Setting mKillHrtbtHandler ago 27 15:57:15 franco sdrplay_apiService[175677]: [176100]: devIdx0: sdrplay_apiService_rsp: mHrtbtHandlerThread: mHrtbtHandlerThread: Exit ago 27 15:57:15 franco sdrplay_apiService[175677]: [175677]: devIdx0: sdrplay_apiService_rsp: ReleaseAll: mHrtbtHandler killed ago 27 15:57:15 franco sdrplay_apiService[175677]: [175677]: devIdx0: sdrplay_apiService_rsp: ReleaseAll: Setting mKillCmdHandler ago 27 15:57:15 franco sdrplay_apiService[175677]: [176101]: sdrplay_apiService_device: mCmdHandlerThread: Exit ago 27 15:57:15 franco sdrplay_apiService[175677]: [175677]: devIdx0: sdrplay_apiService_rsp: ReleaseAll: mCmdHandler killed ago 27 15:57:15 franco sdrplay_apiService[175677]: [175677]: sdrplay_apiService: ReleaseDevice: UninitialiseMappingTableFromFile invalid hw version 1 ago 27 15:57:15 franco sdrplay_apiService[175677]: [175677]: sdrplay_apiService: ReleaseDevice: Exit

And, after a restart:

● sdrplay.service - SDRplay API Service Loaded: loaded (/etc/systemd/system/sdrplay.service; enabled; preset: enabled) Active: active (running) since Tue 2024-08-27 16:00:12 CEST; 2s ago Main PID: 178451 (sdrplay_apiServ) Tasks: 3 (limit: 18729) Memory: 480.0K (peak: 740.0K) CPU: 11ms CGroup: /system.slice/sdrplay.service └─178451 /opt/sdrplay_api/sdrplay_apiService

ago 27 16:00:12 franco systemd[1]: Started sdrplay.service - SDRplay API Service. ago 27 16:00:12 franco sdrplay_apiService[178451]: [178451]: sdrplay_apiService: sdrplay_apiServiceWorkerThread: Entry ago 27 16:00:12 franco sdrplay_apiService[178451]: [178452]: sdrplay_apiService_device: heartBeatThread: Entry ago 27 16:00:12 franco sdrplay_apiService[178451]: [178453]: sdrplay_apiService_device: registerDevThread: Entry

Regards

Franco Spinelli IW2DHW

marcogrecopriolo commented 1 month ago

I got an RSP1A on loan from SDRplay - they have been very kind to supply one, but unfortunately didn't have an RSP1 available to supply. I have just tested it on OpenSuse Leap 15.5 with 3.15, I'm afraid it works, so it's got to be the parameters the driver uses not appropriate for the RSP1. I'll see if I can investigate.

marcogrecopriolo commented 1 month ago

could I ask you to change the lna state in

https://github.com/marcogrecopriolo/guglielmo/blob/8358325fed5be15cb67e3d5c0970eae1ed35c955/devices/sdrplay-handler-v3/sdrplay-handler-v3.cpp#L47

to 3?

frspin commented 1 month ago

Il 05/09/24 17:39, Marco Greco ha scritto:

could I ask you to change the lna state in

https://github.com/marcogrecopriolo/guglielmo/blob/8358325fed5be15cb67e3d5c0970eae1ed35c955/devices/sdrplay-handler-v3/sdrplay-handler-v3.cpp#L47 https://github.com/marcogrecopriolo/guglielmo/blob/8358325fed5be15cb67e3d5c0970eae1ed35c955/devices/sdrplay-handler-v3/sdrplay-handler-v3.cpp#L47

to 3?

This is now working and RSP1 is found.

For RSP1 LNA state can be 0 1 2 3 In my setup a value of 1 is required due to my antenna.

Franco Spinelli IW2DHW

marcogrecopriolo commented 1 month ago

FYI - I cleaned up the SDRplay V2 and V3 drivers, and improved LNA changing from the settings. Works on the RSP1A, do you want to give a quick check?

frspin commented 1 month ago

Il 07/09/24 15:11, Marco Greco ha scritto:

FYI - I cleaned up the SDRplay V2 and V3 drivers, and improved LNA changing from the settings. Works on the RSP1A, do you want to give a quick check?

LNA setting is working but compiling guglielmo using cmake give an executable which crash when starting to receive.

Using qmake after editing guglielmo.pro:

linux { DESTDIR = ./linux-bin CONFIG += mpris

# FIXME currently needs to be set by hand
INCLUDEPATH += /usr/include/qwt
#INCLUDEPATH    += /usr/include/qt5/qwt6
LIBS        += -lqwt-qt5
#LIBS       += -lqwt
CONFIG      += PC

} give a bigger executable:

-rwxrwxr-x 1 spin spin 864232 set 8 09:51 build/guglielmo -rwxrwxr-x 1 spin spin 19585720 set 8 10:05 linux-bin/guglielmo

but is working for DAB and FM.

All on Ubuntu 24.04 full updated.

Franco Spinelli IW2DHW

marcogrecopriolo commented 1 month ago

Works both sides here. I guess you are using QT 6? I'm on Opensuse Leap 15.5, which is still on 5. If you run it through gdb, could you give me the stack?

frspin commented 1 month ago

Il 08/09/24 12:41, Marco Greco ha scritto:

Works both sides here. I guess you are using QT 6?

No.

Qwt is libqwt-qt5-6, as:

This package contains the files necessary for running applications that use the Qwt library and Qt5.

and libqt5* are at 5.15.13 version.

Ldd on guglielmo show:

..... libQt5Core.so.5 => /lib/x86_64-linux-gnu/libQt5Core.so.5 (0x0000715e32a00000) libQt5Widgets.so.5 => /lib/x86_64-linux-gnu/libQt5Widgets.so.5 (0x0000715e32200000) libQt5Multimedia.so.5 => /lib/x86_64-linux-gnu/libQt5Multimedia.so.5 (0x0000715e33054000) libQt5Gui.so.5 => /lib/x86_64-linux-gnu/libQt5Gui.so.5 (0x0000715e31a00000) .....

I'm on Opensuse Leap 15.5, which is still on 5. If you run it through gdb, could you give me the stack?

Please send me info on this. I'm not very familiar with gdb!

All I am able to do with gdb is, in build directory:

gdb ./guglielmo

and, simply selecting a station in Dab, I get:

Thread 11 "threaded-ml" received signal SIGSEGV, Segmentation fault. [Switching to Thread 0x7fffe0c006c0 (LWP 34094)] 0x00007ffff568a2aa in ?? () from /lib/x86_64-linux-gnu/libpulse.so.0

Franco Spinelli IW2DHW

marcogrecopriolo commented 1 month ago

Once gdb goes back to the prompt, reporting the SEGV, could you type at the prompt

bt

If you report here the output (the stack) that'll give me an idea.

frspin commented 1 month ago

Il 08/09/24 13:46, Marco Greco ha scritto:

Once gdb goes back to the prompt, reporting the SEGV, could you type at the prompt

bt

If you report here the output (the stack) that'll give me an idea.

Thread 11 "threaded-ml" received signal SIGSEGV, Segmentation fault. [Switching to Thread 0x7fffe0c006c0 (LWP 35405)] 0x00007ffff568a2aa in ?? () from /lib/x86_64-linux-gnu/libpulse.so.0 (gdb) bt

0 0x00007ffff568a2aa in ??? () at /lib/x86_64-linux-gnu/libpulse.so.0

1 0x00007ffff5682a54 in pa_context_get_sink_info_by_index ()

 at /lib/x86_64-linux-gnu/libpulse.so.0

2 0x00007fffe9cf029f in ??? ()

 at /usr/lib/x86_64-linux-gnu/qt5/plugins/audio/libqtmedia_pulse.so

3 0x00007ffff56a1575 in ??? () at /lib/x86_64-linux-gnu/libpulse.so.0

4 0x00007ffff2d26979 in pa_pdispatch_run ()

 at /usr/lib/x86_64-linux-gnu/pulseaudio/libpulsecommon-16.1.so

5 0x00007ffff567d1db in ??? () at /lib/x86_64-linux-gnu/libpulse.so.0

6 0x00007ffff2d2daaf in ??? ()

 at /usr/lib/x86_64-linux-gnu/pulseaudio/libpulsecommon-16.1.so

7 0x00007ffff2d2f3c7 in ??? ()

 at /usr/lib/x86_64-linux-gnu/pulseaudio/libpulsecommon-16.1.so

8 0x00007ffff5690b3b in pa_mainloop_dispatch ()

 at /lib/x86_64-linux-gnu/libpulse.so.0

9 0x00007ffff56911a1 in pa_mainloop_iterate ()

 at /lib/x86_64-linux-gnu/libpulse.so.0

10 0x00007ffff5691258 in pa_mainloop_run ()

 at /lib/x86_64-linux-gnu/libpulse.so.0

11 0x00007ffff56a1771 in ??? () at /lib/x86_64-linux-gnu/libpulse.so.0

12 0x00007ffff2d3f3eb in ??? ()

 at /usr/lib/x86_64-linux-gnu/pulseaudio/libpulsecommon-16.1.so

13 0x00007ffff5c9ca94 in start_thread (arg=)

 at ./nptl/pthread_create.c:447

14 0x00007ffff5d29c3c in clone3 ()

 at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:78

(gdb)

Franco Spinelli IW2DHW

marcogrecopriolo commented 1 month ago

That is a pulseaudio thread segving, and, as you may have guessed, does not happen in my environment. It's not even something that I have any control on, as libpulse.so is referenced directly by libQtMultimedia.so, my code does not use it directly. I have done a bit of investigation, and the only difference that I find is that cmake builds reference the actual shared library files, (eg libQt5Multimedia.so.5.15.8, while qmake builds just reference the symlink (libQt5Multimedia.so). I can offer two things: 1- you can use portaudio rather than qt sound (in the settings): I actually hacked qt sound support together, because my sound card is not supported by portaudio. 2- can you do an ldd on both build/guglielmo and linux-bin/guglielmo and post them here? Maybe I can spot some difference.

frspin commented 1 month ago

Il 08/09/24 21:03, Marco Greco ha scritto:

That is a pulseaudio thread segving, and, as you may have guessed, does not happen in my environment. It's not even something that I have any control on, as libpulse.so is referenced directly by libQtMultimedia.so, my code does not use it directly. I have done a bit of investigation, and the only difference that I find is that cmake builds reference the actual shared library files, (eg libQt5Multimedia.so.5.15.8, while qmake builds just reference the symlink (libQt5Multimedia.so). I can offer two things: 1- you can use portaudio rather than qt sound (in the settings): I actually hacked qt sound support together, because my sound card is not supported by portaudio.

Using portaudio version done with qmake is working with no audio output (no device in pulse is created) but crash at exit and version done with cmake crash simply opening menu and this is gdb bt output

Thread 51 "threaded-ml" received signal SIGSEGV, Segmentation fault. [Switching to Thread 0x7fff9fe006c0 (LWP 6475)] 0x00007ffff2d1062d in pa_hashmap_put () from /usr/lib/x86_64-linux-gnu/pulseaudio/libpulsecommon-16.1.so (gdb) bt

0 0x00007ffff2d1062d in pa_hashmap_put ()

 at /usr/lib/x86_64-linux-gnu/pulseaudio/libpulsecommon-16.1.so

1 0x00007ffff2d00782 in pa_proplist_sets ()

 at /usr/lib/x86_64-linux-gnu/pulseaudio/libpulsecommon-16.1.so

2 0x00007ffff2d28376 in pa_init_proplist ()

 at /usr/lib/x86_64-linux-gnu/pulseaudio/libpulsecommon-16.1.so

3 0x00007ffff567d8f7 in ??? () at /lib/x86_64-linux-gnu/libpulse.so.0

4 0x00007ffff2d22558 in ??? ()

 at /usr/lib/x86_64-linux-gnu/pulseaudio/libpulsecommon-16.1.so

5 0x00007ffff2d269ec in pa_pdispatch_run ()

 at /usr/lib/x86_64-linux-gnu/pulseaudio/libpulsecommon-16.1.so

6 0x00007ffff567d1db in ??? () at /lib/x86_64-linux-gnu/libpulse.so.0

7 0x00007ffff2d2daaf in ??? ()

 at /usr/lib/x86_64-linux-gnu/pulseaudio/libpulsecommon-16.1.so

8 0x00007ffff2d2f3c7 in ??? ()

 at /usr/lib/x86_64-linux-gnu/pulseaudio/libpulsecommon-16.1.so

9 0x00007ffff5690b3b in pa_mainloop_dispatch ()

 at /lib/x86_64-linux-gnu/libpulse.so.0

10 0x00007ffff56911a1 in pa_mainloop_iterate ()

 at /lib/x86_64-linux-gnu/libpulse.so.0

11 0x00007ffff5691258 in pa_mainloop_run ()

 at /lib/x86_64-linux-gnu/libpulse.so.0

12 0x00007ffff56a1771 in ??? () at /lib/x86_64-linux-gnu/libpulse.so.0

--Type for more, q to quit, c to continue without paging--

13 0x00007ffff2d3f3eb in ??? ()

 at /usr/lib/x86_64-linux-gnu/pulseaudio/libpulsecommon-16.1.so

14 0x00007ffff5c9ca94 in start_thread (arg=)

 at ./nptl/pthread_create.c:447

15 0x00007ffff5d29c3c in clone3 ()

 at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:78

And package installed for libqt5multimedia5 show

/usr/lib/x86_64-linux-gnu/libQt5Multimedia.so.5 /usr/lib/x86_64-linux-gnu/libQt5Multimedia.so.5.15 /usr/lib/x86_64-linux-gnu/libQt5Multimedia.so.5.15.13

2- can you do an ldd on both build/guglielmo and linux-bin/guglielmo and post them here? Maybe I can spot some difference.

Here ldd on version with qmake

@.***:/mnt/Prog/ham/guglielmo$ ldd linux-bin/guglielmo linux-vdso.so.1 (0x00007fffc4993000) libqwt-qt5.so.6 => /lib/libqwt-qt5.so.6 (0x00007c4920f1c000) libfftw3f.so.3 => /lib/x86_64-linux-gnu/libfftw3f.so.3 (0x00007c491f200000) libportaudio.so.2 => /lib/x86_64-linux-gnu/libportaudio.so.2 (0x00007c4920eed000) libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007c4920ed1000) libsndfile.so.1 => /lib/x86_64-linux-gnu/libsndfile.so.1 (0x00007c491f578000) libsamplerate.so.0 => /lib/x86_64-linux-gnu/libsamplerate.so.0 (0x00007c491f091000) libfaad.so.2 => /lib/x86_64-linux-gnu/libfaad.so.2 (0x00007c491f52c000) libmpris-qt5.so.1 => /lib/x86_64-linux-gnu/libmpris-qt5.so.1 (0x00007c491f4d4000) libQt5Core.so.5 => /lib/x86_64-linux-gnu/libQt5Core.so.5 (0x00007c491ea00000) libQt5Widgets.so.5 => /lib/x86_64-linux-gnu/libQt5Widgets.so.5 (0x00007c491e200000) libQt5Multimedia.so.5 => /lib/x86_64-linux-gnu/libQt5Multimedia.so.5 (0x00007c491ef80000) libQt5Gui.so.5 => /lib/x86_64-linux-gnu/libQt5Gui.so.5 (0x00007c491da00000) libstdc++.so.6 => /lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007c491d600000) libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007c491e917000) libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007c491f4a7000) libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007c491d200000) libQt5Svg.so.5 => /lib/x86_64-linux-gnu/libQt5Svg.so.5 (0x00007c491f44c000) libQt5OpenGL.so.5 => /lib/x86_64-linux-gnu/libQt5OpenGL.so.5 (0x00007c491e1a3000) libasound.so.2 => /lib/x86_64-linux-gnu/libasound.so.2 (0x00007c491d8f6000) libjack.so.0 => /lib/x86_64-linux-gnu/libjack.so.0 (0x00007c491e8c4000) libFLAC.so.12 => /lib/x86_64-linux-gnu/libFLAC.so.12 (0x00007c491e13f000) libvorbis.so.0 => /lib/x86_64-linux-gnu/libvorbis.so.0 (0x00007c491e111000) libvorbisenc.so.2 => /lib/x86_64-linux-gnu/libvorbisenc.so.2 (0x00007c491d555000) libopus.so.0 => /lib/x86_64-linux-gnu/libopus.so.0 (0x00007c491d897000) libogg.so.0 => /lib/x86_64-linux-gnu/libogg.so.0 (0x00007c4920ebf000) libmpg123.so.0 => /lib/x86_64-linux-gnu/libmpg123.so.0 (0x00007c491d4f9000) libmp3lame.so.0 => /lib/x86_64-linux-gnu/libmp3lame.so.0 (0x00007c491d483000) libQt5DBus.so.5 => /lib/x86_64-linux-gnu/libQt5DBus.so.5 (0x00007c491d16d000) libdouble-conversion.so.3 => /lib/x86_64-linux-gnu/libdouble-conversion.so.3 (0x00007c491e0fc000) libicui18n.so.74 => /lib/x86_64-linux-gnu/libicui18n.so.74 (0x00007c491ce00000) libicuuc.so.74 => /lib/x86_64-linux-gnu/libicuuc.so.74 (0x00007c491ca00000) libpcre2-16.so.0 => /lib/x86_64-linux-gnu/libpcre2-16.so.0 (0x00007c491cd74000) libzstd.so.1 => /lib/x86_64-linux-gnu/libzstd.so.1 (0x00007c491ccba000) libglib-2.0.so.0 => /lib/x86_64-linux-gnu/libglib-2.0.so.0 (0x00007c491c8b7000) /lib64/ld-linux-x86-64.so.2 (0x00007c4921090000) libQt5Network.so.5 => /lib/x86_64-linux-gnu/libQt5Network.so.5 (0x00007c491c70b000) libpulse.so.0 => /lib/x86_64-linux-gnu/libpulse.so.0 (0x00007c491d432000) libGL.so.1 => /lib/x86_64-linux-gnu/libGL.so.1 (0x00007c491cc33000) libpng16.so.16 => /lib/x86_64-linux-gnu/libpng16.so.16 (0x00007c491c6d3000) libharfbuzz.so.0 => /lib/x86_64-linux-gnu/libharfbuzz.so.0 (0x00007c491c5c6000) libmd4c.so.0 => /lib/x86_64-linux-gnu/libmd4c.so.0 (0x00007c491f43a000) libdb-5.3.so => /lib/x86_64-linux-gnu/libdb-5.3.so (0x00007c491c416000) libdbus-1.so.3 => /lib/x86_64-linux-gnu/libdbus-1.so.3 (0x00007c491c3c7000) libicudata.so.74 => /lib/x86_64-linux-gnu/libicudata.so.74 (0x00007c491a600000) libpcre2-8.so.0 => /lib/x86_64-linux-gnu/libpcre2-8.so.0 (0x00007c491a566000) libgssapi_krb5.so.2 => /lib/x86_64-linux-gnu/libgssapi_krb5.so.2 (0x00007c491c373000) libpulsecommon-16.1.so => /usr/lib/x86_64-linux-gnu/pulseaudio/libpulsecommon-16.1.so (0x00007c491a4e8000) libGLdispatch.so.0 => /lib/x86_64-linux-gnu/libGLdispatch.so.0 (0x00007c491a430000) libGLX.so.0 => /lib/x86_64-linux-gnu/libGLX.so.0 (0x00007c491a3fd000) libfreetype.so.6 => /lib/x86_64-linux-gnu/libfreetype.so.6 (0x00007c491a331000) libgraphite2.so.3 => /lib/x86_64-linux-gnu/libgraphite2.so.3 (0x00007c491cc0d000) libsystemd.so.0 => /lib/x86_64-linux-gnu/libsystemd.so.0 (0x00007c491a251000) libkrb5.so.3 => /lib/x86_64-linux-gnu/libkrb5.so.3 (0x00007c491a188000) libk5crypto.so.3 => /lib/x86_64-linux-gnu/libk5crypto.so.3 (0x00007c491a15c000) libcom_err.so.2 => /lib/x86_64-linux-gnu/libcom_err.so.2 (0x00007c491ef7a000) libkrb5support.so.0 => /lib/x86_64-linux-gnu/libkrb5support.so.0 (0x00007c491d88a000) libX11-xcb.so.1 => /lib/x86_64-linux-gnu/libX11-xcb.so.1 (0x00007c491ef75000) libX11.so.6 => /lib/x86_64-linux-gnu/libX11.so.6 (0x00007c491a01f000) libxcb.so.1 => /lib/x86_64-linux-gnu/libxcb.so.1 (0x00007c4919ff6000) libasyncns.so.0 => /lib/x86_64-linux-gnu/libasyncns.so.0 (0x00007c491e8bc000) libapparmor.so.1 => /lib/x86_64-linux-gnu/libapparmor.so.1 (0x00007c491d41e000) libbz2.so.1.0 => /lib/x86_64-linux-gnu/libbz2.so.1.0 (0x00007c491d159000) libbrotlidec.so.1 => /lib/x86_64-linux-gnu/libbrotlidec.so.1 (0x00007c491c365000) libcap.so.2 => /lib/x86_64-linux-gnu/libcap.so.2 (0x00007c491d87d000) libgcrypt.so.20 => /lib/x86_64-linux-gnu/libgcrypt.so.20 (0x00007c4919eae000) liblz4.so.1 => /lib/x86_64-linux-gnu/liblz4.so.1 (0x00007c4919e8c000) liblzma.so.5 => /lib/x86_64-linux-gnu/liblzma.so.5 (0x00007c4919e5a000) libkeyutils.so.1 => /lib/x86_64-linux-gnu/libkeyutils.so.1 (0x00007c491d417000) libresolv.so.2 => /lib/x86_64-linux-gnu/libresolv.so.2 (0x00007c4919e47000) libXau.so.6 => /lib/x86_64-linux-gnu/libXau.so.6 (0x00007c491d153000) libXdmcp.so.6 => /lib/x86_64-linux-gnu/libXdmcp.so.6 (0x00007c4919e3f000) libbrotlicommon.so.1 => /lib/x86_64-linux-gnu/libbrotlicommon.so.1 (0x00007c4919e1c000) libgpg-error.so.0 => /lib/x86_64-linux-gnu/libgpg-error.so.0 (0x00007c4919df7000) libbsd.so.0 => /lib/x86_64-linux-gnu/libbsd.so.0 (0x00007c4919de1000) libmd.so.0 => /lib/x86_64-linux-gnu/libmd.so.0 (0x00007c4919dd2000)

and here ldd on version with cmake

@.***:/mnt/Prog/ham/guglielmo$ ldd build/guglielmo linux-vdso.so.1 (0x00007ffcf49c2000) libQt5Widgets.so.5 => /lib/x86_64-linux-gnu/libQt5Widgets.so.5 (0x000079b81c200000) libfftw3f.so.3 => /lib/x86_64-linux-gnu/libfftw3f.so.3 (0x000079b81be00000) libsndfile.so.1 => /lib/x86_64-linux-gnu/libsndfile.so.1 (0x000079b81db3c000) libsamplerate.so.0 => /lib/x86_64-linux-gnu/libsamplerate.so.0 (0x000079b81c091000) libmpris-qt5.so.1 => /lib/x86_64-linux-gnu/libmpris-qt5.so.1 (0x000079b81dae4000) libQt5Core.so.5 => /lib/x86_64-linux-gnu/libQt5Core.so.5 (0x000079b81b800000) libportaudio.so.2 => /lib/x86_64-linux-gnu/libportaudio.so.2 (0x000079b81dab3000) libQt5Multimedia.so.5 => /lib/x86_64-linux-gnu/libQt5Multimedia.so.5 (0x000079b81c8ef000) libfaad.so.2 => /lib/x86_64-linux-gnu/libfaad.so.2 (0x000079b81da67000) libqwt-qt5.so.6 => /lib/libqwt-qt5.so.6 (0x000079b81b6b5000) libQt5Gui.so.5 => /lib/x86_64-linux-gnu/libQt5Gui.so.5 (0x000079b81ae00000) libstdc++.so.6 => /lib/x86_64-linux-gnu/libstdc++.so.6 (0x000079b81aa00000) libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x000079b81b5cc000) libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x000079b81c8c2000) libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x000079b81a600000) libFLAC.so.12 => /lib/x86_64-linux-gnu/libFLAC.so.12 (0x000079b81bd9c000) libvorbis.so.0 => /lib/x86_64-linux-gnu/libvorbis.so.0 (0x000079b81c063000) libvorbisenc.so.2 => /lib/x86_64-linux-gnu/libvorbisenc.so.2 (0x000079b81b521000) libopus.so.0 => /lib/x86_64-linux-gnu/libopus.so.0 (0x000079b81ada1000) libogg.so.0 => /lib/x86_64-linux-gnu/libogg.so.0 (0x000079b81c059000) libmpg123.so.0 => /lib/x86_64-linux-gnu/libmpg123.so.0 (0x000079b81ad45000) libmp3lame.so.0 => /lib/x86_64-linux-gnu/libmp3lame.so.0 (0x000079b81accf000) libQt5DBus.so.5 => /lib/x86_64-linux-gnu/libQt5DBus.so.5 (0x000079b81a96d000) libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x000079b81c03d000) libdouble-conversion.so.3 => /lib/x86_64-linux-gnu/libdouble-conversion.so.3 (0x000079b81bd87000) libicui18n.so.74 => /lib/x86_64-linux-gnu/libicui18n.so.74 (0x000079b81a200000) libicuuc.so.74 => /lib/x86_64-linux-gnu/libicuuc.so.74 (0x000079b819e00000) libpcre2-16.so.0 => /lib/x86_64-linux-gnu/libpcre2-16.so.0 (0x000079b81a8e1000) libzstd.so.1 => /lib/x86_64-linux-gnu/libzstd.so.1 (0x000079b81a827000) libglib-2.0.so.0 => /lib/x86_64-linux-gnu/libglib-2.0.so.0 (0x000079b81a0b7000) /lib64/ld-linux-x86-64.so.2 (0x000079b81dbed000) libasound.so.2 => /lib/x86_64-linux-gnu/libasound.so.2 (0x000079b819cf6000) libjack.so.0 => /lib/x86_64-linux-gnu/libjack.so.0 (0x000079b81a5ad000) libQt5Network.so.5 => /lib/x86_64-linux-gnu/libQt5Network.so.5 (0x000079b819b4a000) libpulse.so.0 => /lib/x86_64-linux-gnu/libpulse.so.0 (0x000079b81ac7e000) libQt5Svg.so.5 => /lib/x86_64-linux-gnu/libQt5Svg.so.5 (0x000079b81a552000) libQt5OpenGL.so.5 => /lib/x86_64-linux-gnu/libQt5OpenGL.so.5 (0x000079b81a05a000) libGL.so.1 => /lib/x86_64-linux-gnu/libGL.so.1 (0x000079b819ac3000) libpng16.so.16 => /lib/x86_64-linux-gnu/libpng16.so.16 (0x000079b81a022000) libharfbuzz.so.0 => /lib/x86_64-linux-gnu/libharfbuzz.so.0 (0x000079b8199b6000) libmd4c.so.0 => /lib/x86_64-linux-gnu/libmd4c.so.0 (0x000079b81bd75000) libdbus-1.so.3 => /lib/x86_64-linux-gnu/libdbus-1.so.3 (0x000079b819967000) libicudata.so.74 => /lib/x86_64-linux-gnu/libicudata.so.74 (0x000079b817c00000) libpcre2-8.so.0 => /lib/x86_64-linux-gnu/libpcre2-8.so.0 (0x000079b817b66000) libdb-5.3.so => /lib/x86_64-linux-gnu/libdb-5.3.so (0x000079b8179b6000) libgssapi_krb5.so.2 => /lib/x86_64-linux-gnu/libgssapi_krb5.so.2 (0x000079b817962000) libpulsecommon-16.1.so => /usr/lib/x86_64-linux-gnu/pulseaudio/libpulsecommon-16.1.so (0x000079b8178e4000) libGLdispatch.so.0 => /lib/x86_64-linux-gnu/libGLdispatch.so.0 (0x000079b81782c000) libGLX.so.0 => /lib/x86_64-linux-gnu/libGLX.so.0 (0x000079b8177f9000) libfreetype.so.6 => /lib/x86_64-linux-gnu/libfreetype.so.6 (0x000079b81772d000) libgraphite2.so.3 => /lib/x86_64-linux-gnu/libgraphite2.so.3 (0x000079b81b4fb000) libsystemd.so.0 => /lib/x86_64-linux-gnu/libsystemd.so.0 (0x000079b81764d000) libkrb5.so.3 => /lib/x86_64-linux-gnu/libkrb5.so.3 (0x000079b817584000) libk5crypto.so.3 => /lib/x86_64-linux-gnu/libk5crypto.so.3 (0x000079b817558000) libcom_err.so.2 => /lib/x86_64-linux-gnu/libcom_err.so.2 (0x000079b81a821000) libkrb5support.so.0 => /lib/x86_64-linux-gnu/libkrb5support.so.0 (0x000079b81a814000) libX11-xcb.so.1 => /lib/x86_64-linux-gnu/libX11-xcb.so.1 (0x000079b81a01d000) libX11.so.6 => /lib/x86_64-linux-gnu/libX11.so.6 (0x000079b81741b000) libxcb.so.1 => /lib/x86_64-linux-gnu/libxcb.so.1 (0x000079b8173f2000) libasyncns.so.0 => /lib/x86_64-linux-gnu/libasyncns.so.0 (0x000079b81a015000) libapparmor.so.1 => /lib/x86_64-linux-gnu/libapparmor.so.1 (0x000079b8173de000) libbz2.so.1.0 => /lib/x86_64-linux-gnu/libbz2.so.1.0 (0x000079b8173ca000) libbrotlidec.so.1 => /lib/x86_64-linux-gnu/libbrotlidec.so.1 (0x000079b8173bc000) libcap.so.2 => /lib/x86_64-linux-gnu/libcap.so.2 (0x000079b8173af000) libgcrypt.so.20 => /lib/x86_64-linux-gnu/libgcrypt.so.20 (0x000079b817267000) liblz4.so.1 => /lib/x86_64-linux-gnu/liblz4.so.1 (0x000079b817245000) liblzma.so.5 => /lib/x86_64-linux-gnu/liblzma.so.5 (0x000079b817213000) libkeyutils.so.1 => /lib/x86_64-linux-gnu/libkeyutils.so.1 (0x000079b81a00e000) libresolv.so.2 => /lib/x86_64-linux-gnu/libresolv.so.2 (0x000079b817200000) libXau.so.6 => /lib/x86_64-linux-gnu/libXau.so.6 (0x000079b819961000) libXdmcp.so.6 => /lib/x86_64-linux-gnu/libXdmcp.so.6 (0x000079b8171f8000) libbrotlicommon.so.1 => /lib/x86_64-linux-gnu/libbrotlicommon.so.1 (0x000079b8171d5000) libgpg-error.so.0 => /lib/x86_64-linux-gnu/libgpg-error.so.0 (0x000079b8171b0000) libbsd.so.0 => /lib/x86_64-linux-gnu/libbsd.so.0 (0x000079b81719a000) libmd.so.0 => /lib/x86_64-linux-gnu/libmd.so.0 (0x000079b81718b000)

Franco Spinelli IW2DHWù

marcogrecopriolo commented 1 month ago

OK, with portaudio, it looks like you still are going through pulse - so it's worth testing using a different device from the pulldown list (any of the HW ones would go through ALSA). That said, this looks to be very much platform specific: I don't see any pulse panics in OpenSuse Leap 15.2 (I use it for the appImage), 15.5 (my desktop), and Kubuntu 22.04 (my old work laptop). I'll spin up a 24.04 (is it Kubuntu or ubuntu?) VM and check it out. Slight issue, I'm off for 3 weeks, so this will be early Oct.

marcogrecopriolo commented 1 month ago

Off topic - ever had a QSL from IT9PAK?

frspin commented 1 month ago

Il 09/09/24 10:11, Marco Greco ha scritto:

OK, with portaudio, it looks like you still are going through pulse - so it's worth testing using a different device from the pulldown list (any of the HW ones would go through ALSA). That said, this looks to be very much platform specific: I don't see any pulse panics in OpenSuse Leap 15.2 (I use it for the appImage), 15.5 (my desktop), and Kubuntu 22.04 (my old work laptop). I'll spin up a 24.04 (is it Kubuntu or ubuntu?) VM and check it out.

Ubuntu with Gnome, the default. Fresh install in a disk partition, without upgrade from my old 22.04

Slight issue, I'm off for 3 weeks, so this will be early Oct.

No problem at all. It is an hobby.

Regards Franco Spinelli IW2DHW

frspin commented 1 month ago

Il 09/09/24 10:30, Marco Greco ha scritto:

Off topic - ever had a QSL from IT9PAK?

No

Franco Spinelli IW2DHW

marcogrecopriolo commented 3 weeks ago

I'm back, and have a fresh Ubuntu 24.04 on a VB VM. It's a clean install with just enough packages to build guglielmo and use it against an RP1A I have not seen panics, but what I have found, on both cmake and qmake builds, is that I can only get sound out of portaudio when using the default, and sysdefault devices, with the front device sometimes working, and sometimes not. With Qt sound, I had no sound - and seen one panic on exit - until I installed libqt5multimedia5-plugins. Maybe that's what you are missing?

marcogrecopriolo commented 3 weeks ago

BTW, I have totally rewritten the SDRplay and rtlsdr devices, so you may want to git pull before you try again.

frspin commented 3 weeks ago

Il 09/10/24 19:44, Marco Greco ha scritto:

I'm back, and have a fresh Ubuntu 24.04 on a VB VM. It's a clean install with just enough packages to build guglielmo and use it against an RP1A I have not seen panics, but what I have found, on both cmake and qmake builds, is that I can only get sound out of portaudio when using the default, and sysdefault devices, with the front device sometimes working, and sometimes not. With Qt sound, I had no sound - and seen one panic on exit - until I installed libqt5multimedia5-plugins. Maybe that's what you are missing?

libqt5multimedia5-plugins package is installed and at 5.15.13-1 version I use portaudio and sysdefault for audio and pavucontrol to redirect audio where needed.

Also with recent version, done with latest code from Github, I get all working if compiled with qmake and make (18036400 bytes)and a crash if compiled with cmake (867952 bytes) Program compiled with cmake start, start RSP1, find stations and crash when "start" button is clicked.

gdb stack is:

(gdb) bt

0 0x00007ffff568a2aa in memset (len=88, ch=0, __dest=0x550156a4d940)

 at /usr/include/x86_64-linux-gnu/bits/string_fortified.h:59

1 pa_operation_new

 (c=0x555556a1b520, s=0x0, cb=0x7fffea058bf0 <sinkInfoCallback(pa_context*, pa_sink_info const*, 

int, void*)>, userdata=0x7fffea060640 <(anonymous namespace)::Q_QGS_pulseEngine::innerFunction()::holder>) at ../src/pulse/operation.c:41

2 0x00007ffff5682a54 in pa_context_get_sink_info_by_index

 (c=0x555556a1b520, idx=88, cb=0x7fffea058bf0 <sinkInfoCallback(pa_context*, pa_sink_info 

const, int, void)>, userdata=0x7fffea060640 <(anonymous namespace)::Q_QGS_pulseEngine::innerFunction()::holder>) at ../src/pulse/introspect.c:329

3 0x00007fffea05929f in event_cb

 (context=<optimized out>, t=<optimized out>, index=88, userdata=0x7fffea060640 <(anonymous 

namespace)::Q_QGS_pulseEngine::innerFunction()::holder>) at qpulseaudioengine.cpp:188

4 0x00007ffff56a1575 in pa_command_subscribe_event

 (pd=<optimized out>, command=<optimized out>, tag=<optimized out>, t=0x7fffb4002aa0, 

userdata=0x555556a1b520) at ../src/pulse/subscribe.c:53

5 0x00007ffff2d26979 in pa_pdispatch_run

 (pd=0x7fffb4001840, ***@***.***=0x7fffb4003d60, 

@.=0x7fffb4000ea8, @.=0x555556a1b520) at ../src/pulsecore/pdispatch.c:349

6 0x00007ffff567d1db in pstream_packet_callback

 (p=<optimized out>, packet=0x7fffb4003d60, ancil_data=0x7fffb4000ea8, userdata=0x555556a1b520) 

at ../src/pulse/context.c:364

7 0x00007ffff2d2daaf in do_read

 ***@***.***=0x7fffb4000c10, ***@***.***=0x7fffb4000d90)
 at ../src/pulsecore/pstream.c:1023

8 0x00007ffff2d2f3c7 in do_pstream_read_write (p=0x7fffb4000c10)

 at ../src/pulsecore/pstream.c:261

9 0x00007ffff5690b3b in dispatch_pollfds (m=0x555556a08ac0)

 at ../src/pulse/mainloop.c:676

10 pa_mainloop_dispatch @.***=0x555556a08ac0)

 at ../src/pulse/mainloop.c:917

11 0x00007ffff56911a1 in pa_mainloop_iterate

 ***@***.***=0x555556a08ac0, ***@***.***=1, ***@***.***=0x0)
 at ../src/pulse/mainloop.c:948

12 0x00007ffff5691258 in pa_mainloop_run (m=0x555556a08ac0, retval=0x0)

 at ../src/pulse/mainloop.c:963

13 0x00007ffff56a1771 in thread (userdata=0x555556a2cc80)

 at ../src/pulse/thread-mainloop.c:101

14 0x00007ffff2d3f3eb in internal_thread_func (userdata=0x5555569f5140)

 at ../src/pulsecore/thread-posix.c:81

15 0x00007ffff5c9ca94 in start_thread (arg=)

 at ./nptl/pthread_create.c:447

16 0x00007ffff5d29c3c in clone3 ()

 at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:78

Franco Spinelli IW2DHW

marcogrecopriolo commented 2 weeks ago

Any better?

frspin commented 2 weeks ago

No, also after latest update. SDRPlay is working. Qmake; make produce a working exec cmake; make still crash as in my message of previous week

Franco Spinelli IW2DHW

marcogrecopriolo commented 2 weeks ago

Are the binary sizes similar now?

frspin commented 2 weeks ago

Il 15/10/24 19:20, Marco Greco ha scritto:

Are the binary sizes similar now?

No

@.***:/mnt/Prog/ham/guglielmo$ ls -l linux-bin -rwxrwxr-x 1 spin spin 16397648 ott 15 18:58 guglielmo

@.***:/mnt/Prog/ham/guglielmo$ ls -l build/guglielmo -rwxrwxr-x 1 spin spin 868024 ott 15 18:54 build/guglielmo

Franco Spinelli IW2DHW

marcogrecopriolo commented 2 weeks ago

OK - you may have not got the latest version of guglielmo.pro. The difference between cmake and qmake is that the default qmake uses -O1 while cmake -O3. I have forced qmake to use high optimisation, and I was rather hoping that qmake builds would show the same issue as cmake builds:

marco@ernesto:~/devel/guglielmo> ls -l linux-bin
total 896
-rwxr-xr-x 1 marco users 917368 Oct 15 16:57 guglielmo
marco@ernesto:~/devel/guglielmo> ls -l build2/guglielmo
-rwxr-xr-x 1 marco users 835272 Oct 15 13:34 build2/guglielmo

I still don't have a testcase - no issues shown on my ubuntu 24.04 environment, and I am going blind...

frspin commented 2 weeks ago

Il 15/10/24 20:36, Marco Greco ha scritto:

OK - you may have not got the latest version of guglielmo.pro. The difference between cmake and qmake is that the default qmake uses -O1 while cmake -O3. I have forced qmake to use high optimisation, and I was rather hoping that qmake builds would show the same issue as cmake builds:

@.:/devel/guglielmo> ls -l linux-bin total 896 -rwxr-xr-x 1 marco users 917368 Oct 15 16:57 guglielmo @.:/devel/guglielmo> ls -l build2/guglielmo -rwxr-xr-x 1 marco users 835272 Oct 15 13:34 build2/guglielmo

Modified by hand Makefile and removed any -O1 and -O2 Now dimensions are 1007768 for qmake/make and 868024 for cmake/make

Still program done by qmake is running and program dome by cmake crash at audio startup or simply opening audio page on "Setting".

ldd on both programs show:

@.***:/mnt/Prog/ham/guglielmo$ ldd linux-bin/guglielmo linux-vdso.so.1 (0x00007ffc8f779000) libqwt-qt5.so.6 => /lib/libqwt-qt5.so.6 (0x000076b0dd8b5000) libfftw3f.so.3 => /lib/x86_64-linux-gnu/libfftw3f.so.3 (0x000076b0dd600000) libportaudio.so.2 => /lib/x86_64-linux-gnu/libportaudio.so.2 (0x000076b0deab6000) libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x000076b0dea9a000) libsndfile.so.1 => /lib/x86_64-linux-gnu/libsndfile.so.1 (0x000076b0dd578000) libsamplerate.so.0 => /lib/x86_64-linux-gnu/libsamplerate.so.0 (0x000076b0dd409000) libfaad.so.2 => /lib/x86_64-linux-gnu/libfaad.so.2 (0x000076b0dd869000) libmpris-qt5.so.1 => /lib/x86_64-linux-gnu/libmpris-qt5.so.1 (0x000076b0dd3b1000) libQt5Core.so.5 => /lib/x86_64-linux-gnu/libQt5Core.so.5 (0x000076b0dce00000) libQt5Widgets.so.5 => /lib/x86_64-linux-gnu/libQt5Widgets.so.5 (0x000076b0dc600000) libQt5Multimedia.so.5 => /lib/x86_64-linux-gnu/libQt5Multimedia.so.5 (0x000076b0dccef000) libQt5Gui.so.5 => /lib/x86_64-linux-gnu/libQt5Gui.so.5 (0x000076b0dbe00000) libstdc++.so.6 => /lib/x86_64-linux-gnu/libstdc++.so.6 (0x000076b0dba00000) libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x000076b0dc517000) libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x000076b0dd83b000) libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x000076b0db600000) libQt5Svg.so.5 => /lib/x86_64-linux-gnu/libQt5Svg.so.5 (0x000076b0dbda5000) libQt5OpenGL.so.5 => /lib/x86_64-linux-gnu/libQt5OpenGL.so.5 (0x000076b0dbd48000) libasound.so.2 => /lib/x86_64-linux-gnu/libasound.so.2 (0x000076b0db8f6000) libjack.so.0 => /lib/x86_64-linux-gnu/libjack.so.0 (0x000076b0dbcf5000) libFLAC.so.12 => /lib/x86_64-linux-gnu/libFLAC.so.12 (0x000076b0dbc91000) libvorbis.so.0 => /lib/x86_64-linux-gnu/libvorbis.so.0 (0x000076b0dd383000) libvorbisenc.so.2 => /lib/x86_64-linux-gnu/libvorbisenc.so.2 (0x000076b0db84b000) libopus.so.0 => /lib/x86_64-linux-gnu/libopus.so.0 (0x000076b0db5a1000) libogg.so.0 => /lib/x86_64-linux-gnu/libogg.so.0 (0x000076b0dea88000) libmpg123.so.0 => /lib/x86_64-linux-gnu/libmpg123.so.0 (0x000076b0db545000) libmp3lame.so.0 => /lib/x86_64-linux-gnu/libmp3lame.so.0 (0x000076b0db4cf000) libQt5DBus.so.5 => /lib/x86_64-linux-gnu/libQt5DBus.so.5 (0x000076b0db43c000) libdouble-conversion.so.3 => /lib/x86_64-linux-gnu/libdouble-conversion.so.3 (0x000076b0dccda000) libicui18n.so.74 => /lib/x86_64-linux-gnu/libicui18n.so.74 (0x000076b0db000000) libicuuc.so.74 => /lib/x86_64-linux-gnu/libicuuc.so.74 (0x000076b0dac00000) libpcre2-16.so.0 => /lib/x86_64-linux-gnu/libpcre2-16.so.0 (0x000076b0db3b0000) libzstd.so.1 => /lib/x86_64-linux-gnu/libzstd.so.1 (0x000076b0daf46000) libglib-2.0.so.0 => /lib/x86_64-linux-gnu/libglib-2.0.so.0 (0x000076b0daab7000) /lib64/ld-linux-x86-64.so.2 (0x000076b0deb0e000) libQt5Network.so.5 => /lib/x86_64-linux-gnu/libQt5Network.so.5 (0x000076b0da90b000) libpulse.so.0 => /lib/x86_64-linux-gnu/libpulse.so.0 (0x000076b0db35f000) libGL.so.1 => /lib/x86_64-linux-gnu/libGL.so.1 (0x000076b0daebf000) libpng16.so.16 => /lib/x86_64-linux-gnu/libpng16.so.16 (0x000076b0db813000) libharfbuzz.so.0 => /lib/x86_64-linux-gnu/libharfbuzz.so.0 (0x000076b0da7fe000) libmd4c.so.0 => /lib/x86_64-linux-gnu/libmd4c.so.0 (0x000076b0dccc8000) libdb-5.3.so => /lib/x86_64-linux-gnu/libdb-5.3.so (0x000076b0da64e000) libdbus-1.so.3 => /lib/x86_64-linux-gnu/libdbus-1.so.3 (0x000076b0dae70000) libicudata.so.74 => /lib/x86_64-linux-gnu/libicudata.so.74 (0x000076b0d8800000) libpcre2-8.so.0 => /lib/x86_64-linux-gnu/libpcre2-8.so.0 (0x000076b0da5b4000) libgssapi_krb5.so.2 => /lib/x86_64-linux-gnu/libgssapi_krb5.so.2 (0x000076b0dae1c000) libpulsecommon-16.1.so => /usr/lib/x86_64-linux-gnu/pulseaudio/libpulsecommon-16.1.so (0x000076b0d8782000) libGLdispatch.so.0 => /lib/x86_64-linux-gnu/libGLdispatch.so.0 (0x000076b0d86ca000) libGLX.so.0 => /lib/x86_64-linux-gnu/libGLX.so.0 (0x000076b0da581000) libfreetype.so.6 => /lib/x86_64-linux-gnu/libfreetype.so.6 (0x000076b0d85fe000) libgraphite2.so.3 => /lib/x86_64-linux-gnu/libgraphite2.so.3 (0x000076b0d85d8000) libsystemd.so.0 => /lib/x86_64-linux-gnu/libsystemd.so.0 (0x000076b0d84f8000) libkrb5.so.3 => /lib/x86_64-linux-gnu/libkrb5.so.3 (0x000076b0d842f000) libk5crypto.so.3 => /lib/x86_64-linux-gnu/libk5crypto.so.3 (0x000076b0d8403000) libcom_err.so.2 => /lib/x86_64-linux-gnu/libcom_err.so.2 (0x000076b0dea76000) libkrb5support.so.0 => /lib/x86_64-linux-gnu/libkrb5support.so.0 (0x000076b0dd376000) libX11-xcb.so.1 => /lib/x86_64-linux-gnu/libX11-xcb.so.1 (0x000076b0dccc3000) libX11.so.6 => /lib/x86_64-linux-gnu/libX11.so.6 (0x000076b0d82c6000) libxcb.so.1 => /lib/x86_64-linux-gnu/libxcb.so.1 (0x000076b0d829d000) libasyncns.so.0 => /lib/x86_64-linux-gnu/libasyncns.so.0 (0x000076b0dccbb000) libapparmor.so.1 => /lib/x86_64-linux-gnu/libapparmor.so.1 (0x000076b0dc503000) libbz2.so.1.0 => /lib/x86_64-linux-gnu/libbz2.so.1.0 (0x000076b0da56d000) libbrotlidec.so.1 => /lib/x86_64-linux-gnu/libbrotlidec.so.1 (0x000076b0dbc83000) libcap.so.2 => /lib/x86_64-linux-gnu/libcap.so.2 (0x000076b0db352000) libgcrypt.so.20 => /lib/x86_64-linux-gnu/libgcrypt.so.20 (0x000076b0d8155000) liblz4.so.1 => /lib/x86_64-linux-gnu/liblz4.so.1 (0x000076b0d8133000) liblzma.so.5 => /lib/x86_64-linux-gnu/liblzma.so.5 (0x000076b0d8101000) libkeyutils.so.1 => /lib/x86_64-linux-gnu/libkeyutils.so.1 (0x000076b0dc4fc000) libresolv.so.2 => /lib/x86_64-linux-gnu/libresolv.so.2 (0x000076b0d80ee000) libXau.so.6 => /lib/x86_64-linux-gnu/libXau.so.6 (0x000076b0dae16000) libXdmcp.so.6 => /lib/x86_64-linux-gnu/libXdmcp.so.6 (0x000076b0dae0e000) libbrotlicommon.so.1 => /lib/x86_64-linux-gnu/libbrotlicommon.so.1 (0x000076b0d80cb000) libgpg-error.so.0 => /lib/x86_64-linux-gnu/libgpg-error.so.0 (0x000076b0d80a6000) libbsd.so.0 => /lib/x86_64-linux-gnu/libbsd.so.0 (0x000076b0d8090000) libmd.so.0 => /lib/x86_64-linux-gnu/libmd.so.0 (0x000076b0d8081000)

@.***:/mnt/Prog/ham/guglielmo$ ldd build/guglielmo linux-vdso.so.1 (0x00007fff67bfd000) libQt5Widgets.so.5 => /lib/x86_64-linux-gnu/libQt5Widgets.so.5 (0x00007da39c600000) libfftw3f.so.3 => /lib/x86_64-linux-gnu/libfftw3f.so.3 (0x00007da39c200000) libsndfile.so.1 => /lib/x86_64-linux-gnu/libsndfile.so.1 (0x00007da39df9e000) libsamplerate.so.0 => /lib/x86_64-linux-gnu/libsamplerate.so.0 (0x00007da39c491000) libmpris-qt5.so.1 => /lib/x86_64-linux-gnu/libmpris-qt5.so.1 (0x00007da39df46000) libQt5Core.so.5 => /lib/x86_64-linux-gnu/libQt5Core.so.5 (0x00007da39bc00000) libportaudio.so.2 => /lib/x86_64-linux-gnu/libportaudio.so.2 (0x00007da39df15000) libQt5Multimedia.so.5 => /lib/x86_64-linux-gnu/libQt5Multimedia.so.5 (0x00007da39ccef000) libfaad.so.2 => /lib/x86_64-linux-gnu/libfaad.so.2 (0x00007da39dec9000) libqwt-qt5.so.6 => /lib/libqwt-qt5.so.6 (0x00007da39bab5000) libQt5Gui.so.5 => /lib/x86_64-linux-gnu/libQt5Gui.so.5 (0x00007da39b200000) libstdc++.so.6 => /lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007da39ae00000) libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007da39b9cc000) libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007da39de99000) libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007da39aa00000) libFLAC.so.12 => /lib/x86_64-linux-gnu/libFLAC.so.12 (0x00007da39c19c000) libvorbis.so.0 => /lib/x86_64-linux-gnu/libvorbis.so.0 (0x00007da39de69000) libvorbisenc.so.2 => /lib/x86_64-linux-gnu/libvorbisenc.so.2 (0x00007da39b921000) libopus.so.0 => /lib/x86_64-linux-gnu/libopus.so.0 (0x00007da39b1a1000) libogg.so.0 => /lib/x86_64-linux-gnu/libogg.so.0 (0x00007da39de5f000) libmpg123.so.0 => /lib/x86_64-linux-gnu/libmpg123.so.0 (0x00007da39b145000) libmp3lame.so.0 => /lib/x86_64-linux-gnu/libmp3lame.so.0 (0x00007da39b0cf000) libQt5DBus.so.5 => /lib/x86_64-linux-gnu/libQt5DBus.so.5 (0x00007da39ad6d000) libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007da39ccd3000) libdouble-conversion.so.3 => /lib/x86_64-linux-gnu/libdouble-conversion.so.3 (0x00007da39ccbe000) libicui18n.so.74 => /lib/x86_64-linux-gnu/libicui18n.so.74 (0x00007da39a600000) libicuuc.so.74 => /lib/x86_64-linux-gnu/libicuuc.so.74 (0x00007da39a200000) libpcre2-16.so.0 => /lib/x86_64-linux-gnu/libpcre2-16.so.0 (0x00007da39ace1000) libzstd.so.1 => /lib/x86_64-linux-gnu/libzstd.so.1 (0x00007da39ac27000) libglib-2.0.so.0 => /lib/x86_64-linux-gnu/libglib-2.0.so.0 (0x00007da39a4b7000) /lib64/ld-linux-x86-64.so.2 (0x00007da39e04f000) libasound.so.2 => /lib/x86_64-linux-gnu/libasound.so.2 (0x00007da39a0f6000) libjack.so.0 => /lib/x86_64-linux-gnu/libjack.so.0 (0x00007da39c43e000) libQt5Network.so.5 => /lib/x86_64-linux-gnu/libQt5Network.so.5 (0x00007da399f4a000) libpulse.so.0 => /lib/x86_64-linux-gnu/libpulse.so.0 (0x00007da39b07e000) libQt5Svg.so.5 => /lib/x86_64-linux-gnu/libQt5Svg.so.5 (0x00007da39a9a5000) libQt5OpenGL.so.5 => /lib/x86_64-linux-gnu/libQt5OpenGL.so.5 (0x00007da39a45a000) libGL.so.1 => /lib/x86_64-linux-gnu/libGL.so.1 (0x00007da399ec3000) libpng16.so.16 => /lib/x86_64-linux-gnu/libpng16.so.16 (0x00007da39a96d000) libharfbuzz.so.0 => /lib/x86_64-linux-gnu/libharfbuzz.so.0 (0x00007da399db6000) libmd4c.so.0 => /lib/x86_64-linux-gnu/libmd4c.so.0 (0x00007da39c18a000) libdbus-1.so.3 => /lib/x86_64-linux-gnu/libdbus-1.so.3 (0x00007da399d67000) libicudata.so.74 => /lib/x86_64-linux-gnu/libicudata.so.74 (0x00007da398000000) libpcre2-8.so.0 => /lib/x86_64-linux-gnu/libpcre2-8.so.0 (0x00007da397f66000) libdb-5.3.so => /lib/x86_64-linux-gnu/libdb-5.3.so (0x00007da397db6000) libgssapi_krb5.so.2 => /lib/x86_64-linux-gnu/libgssapi_krb5.so.2 (0x00007da397d62000) libpulsecommon-16.1.so => /usr/lib/x86_64-linux-gnu/pulseaudio/libpulsecommon-16.1.so (0x00007da397ce4000) libGLdispatch.so.0 => /lib/x86_64-linux-gnu/libGLdispatch.so.0 (0x00007da397c2c000) libGLX.so.0 => /lib/x86_64-linux-gnu/libGLX.so.0 (0x00007da39a427000) libfreetype.so.6 => /lib/x86_64-linux-gnu/libfreetype.so.6 (0x00007da397b60000) libgraphite2.so.3 => /lib/x86_64-linux-gnu/libgraphite2.so.3 (0x00007da39b8fb000) libsystemd.so.0 => /lib/x86_64-linux-gnu/libsystemd.so.0 (0x00007da397a80000) libkrb5.so.3 => /lib/x86_64-linux-gnu/libkrb5.so.3 (0x00007da3979b7000) libk5crypto.so.3 => /lib/x86_64-linux-gnu/libk5crypto.so.3 (0x00007da39798b000) libcom_err.so.2 => /lib/x86_64-linux-gnu/libcom_err.so.2 (0x00007da39c180000) libkrb5support.so.0 => /lib/x86_64-linux-gnu/libkrb5support.so.0 (0x00007da39c173000) libX11-xcb.so.1 => /lib/x86_64-linux-gnu/libX11-xcb.so.1 (0x00007da39ac22000) libX11.so.6 => /lib/x86_64-linux-gnu/libX11.so.6 (0x00007da39784e000) libxcb.so.1 => /lib/x86_64-linux-gnu/libxcb.so.1 (0x00007da397825000) libasyncns.so.0 => /lib/x86_64-linux-gnu/libasyncns.so.0 (0x00007da39ac1a000) libapparmor.so.1 => /lib/x86_64-linux-gnu/libapparmor.so.1 (0x00007da39a959000) libbz2.so.1.0 => /lib/x86_64-linux-gnu/libbz2.so.1.0 (0x00007da39a413000) libbrotlidec.so.1 => /lib/x86_64-linux-gnu/libbrotlidec.so.1 (0x00007da397817000) libcap.so.2 => /lib/x86_64-linux-gnu/libcap.so.2 (0x00007da39780a000) libgcrypt.so.20 => /lib/x86_64-linux-gnu/libgcrypt.so.20 (0x00007da3976c2000) liblz4.so.1 => /lib/x86_64-linux-gnu/liblz4.so.1 (0x00007da3976a0000) liblzma.so.5 => /lib/x86_64-linux-gnu/liblzma.so.5 (0x00007da39766e000) libkeyutils.so.1 => /lib/x86_64-linux-gnu/libkeyutils.so.1 (0x00007da39a952000) libresolv.so.2 => /lib/x86_64-linux-gnu/libresolv.so.2 (0x00007da39765b000) libXau.so.6 => /lib/x86_64-linux-gnu/libXau.so.6 (0x00007da39ac12000) libXdmcp.so.6 => /lib/x86_64-linux-gnu/libXdmcp.so.6 (0x00007da397653000) libbrotlicommon.so.1 => /lib/x86_64-linux-gnu/libbrotlicommon.so.1 (0x00007da397630000) libgpg-error.so.0 => /lib/x86_64-linux-gnu/libgpg-error.so.0 (0x00007da39760b000) libbsd.so.0 => /lib/x86_64-linux-gnu/libbsd.so.0 (0x00007da3975f5000) libmd.so.0 => /lib/x86_64-linux-gnu/libmd.so.0 (0x00007da3975e6000)

Franco Spinelli IW2DHW

marcogrecopriolo commented 2 weeks ago

I have started rewriting the sound system, which was still the one that came with QtDAB / SDR-J-FM. I have cleaned up some of the portaudio code, in particular with regards to initialisation and device selection. Could you check it out?

frspin commented 2 weeks ago

Il 16/10/24 18:11, Marco Greco ha scritto:

I have started rewriting the sound system, which was still the one that came with QtDAB / SDR-J-FM. I have cleaned up some of the portaudio code, in particular with regards to initialisation and device selection. Could you check it out?

Done.

Now dimensions are:

-rwxrwxr-x 1 spin spin 868136 ott 16 17:35 build/guglielmo -rwxrwxr-x 1 spin spin 1007464 ott 16 17:31 linux-bin/guglielmo

and both, with portaudio and "default" or "pulse" device, are running without crash Same with Qt audio system

Franco Spinelli

marcogrecopriolo commented 2 weeks ago

are we good?

frspin commented 2 weeks ago

Il 16/10/24 20:00, Marco Greco ha scritto:

are we good?

Yes. The issue can be closed

Franco Spinelli IW2DHW