Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

logger_set_level: Bad level type error #1316

Open
briankc1 opened this issue Oct 29, 2023 · 27 comments
Open

logger_set_level: Bad level type error #1316

briankc1 opened this issue Oct 29, 2023 · 27 comments
Labels

Comments

@briankc1
Copy link

briankc1 commented Oct 29, 2023

Hello - Ever since I upgraded to 22.04 LTS (jammy) I've not been able to run any gqrx Appimages - keep getting "logger_set_level: Bad level type" errors per the attached crash notice.

gqrx_crash

Also, when I try to run this within the terminal, I get this response:

linux; GNU C++ version 7.3.0; Boost_106501; UHD_003.010.003.000-0-unknown

gr-osmosdr 0.2.0.0 (0.2.0) gnuradio 3.8.2.0
built-in source types: file fcd rtl rtl_tcp uhd hackrf bladerf rfspace airspy airspyhf soapy redpitaya freesrp

Maybe some kind of version conflict?

Any suggestions on how to resolve this?
Thank you,
Brian

@ADolbyB
Copy link

ADolbyB commented Oct 30, 2023

Hello,

I have the same exact error and terminal output using Mint 20.3 Cinnamon.
Both the AppImage (v2.17.3-x86_64) and the release in the SW Manager (v2.12.1-1build2) provide the same error.

Thank You,

-- Joel

@willcode
Copy link
Contributor

willcode commented Oct 30, 2023

Same on Fedora 38.

Also, running with the lib env vars set up for a custom GNU Radio install (e.g., PyBOMBS) causes a seg fault with both main and maint-3.10 GR versions.

@argilo argilo added the bug label Oct 31, 2023
@argilo
Copy link
Member

argilo commented Oct 31, 2023

Also, running with the lib env vars set up for a custom GNU Radio install (e.g., PyBOMBS) causes a seg fault with both main and maint-3.10 GR versions.

I expect that's because LD_LIBRARY_PATH causes the system's libgnuradio-osmosdr to be selected instead of the AppImage's, and libgnuradio-osmosdr depends on various GNU Radio libraries whose versions will conflict with the ones supplied by the AppImage.

@argilo
Copy link
Member

argilo commented Oct 31, 2023

So far I haven't been able to reproduce this.

@briankc1 @ADolbyB @willcode While the error dialog is on your screen, could you open another terminal window, execute the following command, and paste the output?

ldd /tmp/.mount_Gqrx-*/usr/bin/gqrx

Also, please send the output of echo $LD_LIBRARY_PATH, if any.

@briankc1
Copy link
Author

briankc1 commented Oct 31, 2023 via email

@briankc1
Copy link
Author

briankc1 commented Oct 31, 2023 via email

@willcode
Copy link
Contributor

willcode commented Oct 31, 2023

The error is coming from libgnuradio-runtime.so.3.8.2.

@argilo
Copy link
Member

argilo commented Oct 31, 2023

Perhaps this change broke things? gnuradio/gnuradio#6673

It changed the default log level in gnuradio-runtime.conf from emerg to critical, which GNU Radio 3.8 doesn't accept.

@argilo
Copy link
Member

argilo commented Oct 31, 2023

That change went into GNU Radio 3.10.7.0.

@briankc1 @ADolbyB @willcode Could you check the contents of /etc/gnuradio/conf.d/gnuradio-runtime.conf to see whether debug_level is set to critical? If so, changing it back to emerg should solve the problem.

It's also possible the bad value could be in ~/.gnuradio/config.conf.

@argilo
Copy link
Member

argilo commented Oct 31, 2023

Also, did you folks install GNU Radio 3.10.7.0 or later from source?

@willcode
Copy link
Contributor

willcode commented Oct 31, 2023

Yes, but to a non-standard location. My ~/.gnuradio/config.conf already has [log]/debug_level set to emerg. No change when I comment it out or replace it with critical, either.

@argilo
Copy link
Member

argilo commented Oct 31, 2023

Is it reading from a gnuradio-runtime.conf somewhere on your system?

@willcode
Copy link
Contributor

No, I don't have that file anywhere reachable without additional path variables being set.

@willcode
Copy link
Contributor

The app is not attempting to open that file. It is opening my ~/.gnuradio/config.conf.

@argilo
Copy link
Member

argilo commented Oct 31, 2023

No change when I comment it out or replace it with critical, either.

On my system, I can readily reproduce the problem by changing debug_level or log_level to an invalid value in config.conf.

@argilo
Copy link
Member

argilo commented Oct 31, 2023

I tested with Gqrx-2.17.3-x86_64.AppImage.

@argilo
Copy link
Member

argilo commented Oct 31, 2023

I imagine that upgrading the AppImage to GNU Radio 3.10 (as #1301 does) would solve the problem, since 3.10 doesn't throw an exception if the log level is unknown.

@ADolbyB
Copy link

ADolbyB commented Oct 31, 2023

Hello,

Using fresh download of AppImage Gqrx-2.17.3-x86_64.AppImage

Output from command: ldd /tmp/.mount_Gqrx-*/usr/bin/gqrx
linux-vdso.so.1 (0x00007fffba9e2000)
libQt5Network.so.5 => /tmp/.mount_Gqrx-2BdD3f9/usr/bin/../lib/libQt5Network.so.5 (0x00007f703b07f000)
libQt5Svg.so.5 => /tmp/.mount_Gqrx-2BdD3f9/usr/bin/../lib/libQt5Svg.so.5 (0x00007f703ae20000)
libgnuradio-osmosdr.so.0.2.0 => /tmp/.mount_Gqrx-2BdD3f9/usr/bin/../lib/libgnuradio-osmosdr.so.0.2.0 (0x00007f703ab29000)
libpulse.so.0 => /tmp/.mount_Gqrx-2BdD3f9/usr/bin/../lib/libpulse.so.0 (0x00007f703a8d9000)
libpulse-simple.so.0 => /tmp/.mount_Gqrx-2BdD3f9/usr/bin/../lib/libpulse-simple.so.0 (0x00007f703a6d4000)
libgnuradio-digital.so.3.8.2 => /tmp/.mount_Gqrx-2BdD3f9/usr/bin/../lib/libgnuradio-digital.so.3.8.2 (0x00007f703a380000)
libQt5Widgets.so.5 => /tmp/.mount_Gqrx-2BdD3f9/usr/bin/../lib/libQt5Widgets.so.5 (0x00007f7039ac0000)
libQt5Gui.so.5 => /tmp/.mount_Gqrx-2BdD3f9/usr/bin/../lib/libQt5Gui.so.5 (0x00007f70392f5000)
libQt5Core.so.5 => /tmp/.mount_Gqrx-2BdD3f9/usr/bin/../lib/libQt5Core.so.5 (0x00007f7038b6c000)
libgnuradio-analog.so.3.8.2 => /tmp/.mount_Gqrx-2BdD3f9/usr/bin/../lib/libgnuradio-analog.so.3.8.2 (0x00007f70388e1000)
libgnuradio-filter.so.3.8.2 => /tmp/.mount_Gqrx-2BdD3f9/usr/bin/../lib/libgnuradio-filter.so.3.8.2 (0x00007f70385f5000)
libgnuradio-blocks.so.3.8.2 => /tmp/.mount_Gqrx-2BdD3f9/usr/bin/../lib/libgnuradio-blocks.so.3.8.2 (0x00007f7038104000)
libgnuradio-fft.so.3.8.2 => /tmp/.mount_Gqrx-2BdD3f9/usr/bin/../lib/libgnuradio-fft.so.3.8.2 (0x00007f7037ec8000)
libgnuradio-runtime.so.3.8.2 => /tmp/.mount_Gqrx-2BdD3f9/usr/bin/../lib/libgnuradio-runtime.so.3.8.2 (0x00007f7037bbd000)
libvolk.so.2.2 => /tmp/.mount_Gqrx-2BdD3f9/usr/bin/../lib/libvolk.so.2.2 (0x00007f70376f9000)
libgnuradio-pmt.so.3.8.2 => /tmp/.mount_Gqrx-2BdD3f9/usr/bin/../lib/libgnuradio-pmt.so.3.8.2 (0x00007f7037496000)
libboost_system.so.1.65.1 => /tmp/.mount_Gqrx-2BdD3f9/usr/bin/../lib/libboost_system.so.1.65.1 (0x00007f7037290000)
libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f703724e000)
libstdc++.so.6 => /lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007f703706a000)
libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f7036f1b000)
libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f7036f00000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f7036d0e000)
libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007f7036cf2000)
libboost_thread.so.1.65.1 => /tmp/.mount_Gqrx-2BdD3f9/usr/bin/../lib/libboost_thread.so.1.65.1 (0x00007f7036ac3000)
librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007f7036ab7000)
libgnuradio-iqbalance.so.3.8.0 => /tmp/.mount_Gqrx-2BdD3f9/usr/bin/../lib/libgnuradio-iqbalance.so.3.8.0 (0x00007f70368a1000)
libgnuradio-fcdproplus.so.3.8.0 => /tmp/.mount_Gqrx-2BdD3f9/usr/bin/../lib/libgnuradio-fcdproplus.so.3.8.0 (0x00007f7036674000)
librtlsdr.so.0 => /tmp/.mount_Gqrx-2BdD3f9/usr/bin/../lib/librtlsdr.so.0 (0x00007f703645e000)
libgnuradio-uhd.so.3.8.2 => /tmp/.mount_Gqrx-2BdD3f9/usr/bin/../lib/libgnuradio-uhd.so.3.8.2 (0x00007f70361fe000)
libuhd.so.003.010.003 => /tmp/.mount_Gqrx-2BdD3f9/usr/bin/../lib/libuhd.so.003.010.003 (0x00007f7035665000)
libhackrf.so.0 => /tmp/.mount_Gqrx-2BdD3f9/usr/bin/../lib/libhackrf.so.0 (0x00007f703545c000)
libbladeRF.so.2 => /tmp/.mount_Gqrx-2BdD3f9/usr/bin/../lib/libbladeRF.so.2 (0x00007f70351c2000)
libairspy.so.0 => /tmp/.mount_Gqrx-2BdD3f9/usr/bin/../lib/libairspy.so.0 (0x00007f7034fb9000)
libairspyhf.so.0 => /tmp/.mount_Gqrx-2BdD3f9/usr/bin/../lib/libairspyhf.so.0 (0x00007f7034db2000)
libSoapySDR.so.0.6 => /tmp/.mount_Gqrx-2BdD3f9/usr/bin/../lib/libSoapySDR.so.0.6 (0x00007f7034b75000)
libfreesrp.so.0 => /tmp/.mount_Gqrx-2BdD3f9/usr/bin/../lib/libfreesrp.so.0 (0x00007f7034963000)
libpulsecommon-11.1.so => /tmp/.mount_Gqrx-2BdD3f9/usr/bin/../lib/libpulsecommon-11.1.so (0x00007f70346da000)
libdbus-1.so.3 => /tmp/.mount_Gqrx-2BdD3f9/usr/bin/../lib/libdbus-1.so.3 (0x00007f7034487000)
libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f7034481000)
liblog4cpp.so.5 => /tmp/.mount_Gqrx-2BdD3f9/usr/bin/../lib/liblog4cpp.so.5 (0x00007f7034239000)
libvolk.so.2.0 => /tmp/.mount_Gqrx-2BdD3f9/usr/bin/../lib/libvolk.so.2.0 (0x00007f7033d7a000)
libGL.so.1 => /lib/x86_64-linux-gnu/libGL.so.1 (0x00007f7033cf0000)
libpng16.so.16 => /tmp/.mount_Gqrx-2BdD3f9/usr/bin/../lib/libpng16.so.16 (0x00007f7033abc000)
libharfbuzz.so.0 => /lib/x86_64-linux-gnu/libharfbuzz.so.0 (0x00007f70339b8000)
libicui18n.so.60 => /tmp/.mount_Gqrx-2BdD3f9/usr/bin/../lib/libicui18n.so.60 (0x00007f70334a2000)
libicuuc.so.60 => /tmp/.mount_Gqrx-2BdD3f9/usr/bin/../lib/libicuuc.so.60 (0x00007f70330c0000)
libdouble-conversion.so.1 => /tmp/.mount_Gqrx-2BdD3f9/usr/bin/../lib/libdouble-conversion.so.1 (0x00007f7032ead000)
libglib-2.0.so.0 => /tmp/.mount_Gqrx-2BdD3f9/usr/bin/../lib/libglib-2.0.so.0 (0x00007f7032b87000)
/lib64/ld-linux-x86-64.so.2 (0x00007f703b8c3000)
libboost_filesystem.so.1.65.1 => /tmp/.mount_Gqrx-2BdD3f9/usr/bin/../lib/libboost_filesystem.so.1.65.1 (0x00007f7032969000)
libfftw3f.so.3 => /tmp/.mount_Gqrx-2BdD3f9/usr/bin/../lib/libfftw3f.so.3 (0x00007f7032553000)
libfftw3f_threads.so.3 => /tmp/.mount_Gqrx-2BdD3f9/usr/bin/../lib/libfftw3f_threads.so.3 (0x00007f703234b000)
libboost_program_options.so.1.65.1 => /tmp/.mount_Gqrx-2BdD3f9/usr/bin/../lib/libboost_program_options.so.1.65.1 (0x00007f70320b0000)
libgmp.so.10 => /lib/x86_64-linux-gnu/libgmp.so.10 (0x00007f703202a000)
liborc-0.4.so.0 => /tmp/.mount_Gqrx-2BdD3f9/usr/bin/../lib/liborc-0.4.so.0 (0x00007f7031daa000)
libosmodsp.so.0 => /tmp/.mount_Gqrx-2BdD3f9/usr/bin/../lib/libosmodsp.so.0 (0x00007f7031ba4000)
libgnuradio-audio.so.3.8.2 => /tmp/.mount_Gqrx-2BdD3f9/usr/bin/../lib/libgnuradio-audio.so.3.8.2 (0x00007f7031945000)
libhidapi-libusb.so.0 => /tmp/.mount_Gqrx-2BdD3f9/usr/bin/../lib/libhidapi-libusb.so.0 (0x00007f703173c000)
libusb-1.0.so.0 => /lib/x86_64-linux-gnu/libusb-1.0.so.0 (0x00007f703171e000)
libboost_date_time.so.1.65.1 => /tmp/.mount_Gqrx-2BdD3f9/usr/bin/../lib/libboost_date_time.so.1.65.1 (0x00007f7031508000)
libboost_regex.so.1.65.1 => /tmp/.mount_Gqrx-2BdD3f9/usr/bin/../lib/libboost_regex.so.1.65.1 (0x00007f70311cb000)
libboost_serialization.so.1.65.1 => /tmp/.mount_Gqrx-2BdD3f9/usr/bin/../lib/libboost_serialization.so.1.65.1 (0x00007f7030f82000)
libxcb.so.1 => /lib/x86_64-linux-gnu/libxcb.so.1 (0x00007f7030f58000)
libsystemd.so.0 => /tmp/.mount_Gqrx-2BdD3f9/usr/bin/../lib/libsystemd.so.0 (0x00007f7030ccd000)
libwrap.so.0 => /tmp/.mount_Gqrx-2BdD3f9/usr/bin/../lib/libwrap.so.0 (0x00007f7030ac2000)
libsndfile.so.1 => /tmp/.mount_Gqrx-2BdD3f9/usr/bin/../lib/libsndfile.so.1 (0x00007f7030847000)
libasyncns.so.0 => /tmp/.mount_Gqrx-2BdD3f9/usr/bin/../lib/libasyncns.so.0 (0x00007f7030640000)
libapparmor.so.1 => /tmp/.mount_Gqrx-2BdD3f9/usr/bin/../lib/libapparmor.so.1 (0x00007f703042f000)
libGLdispatch.so.0 => /lib/x86_64-linux-gnu/libGLdispatch.so.0 (0x00007f7030375000)
libGLX.so.0 => /lib/x86_64-linux-gnu/libGLX.so.0 (0x00007f7030341000)
libfreetype.so.6 => /lib/x86_64-linux-gnu/libfreetype.so.6 (0x00007f7030282000)
libgraphite2.so.3 => /lib/x86_64-linux-gnu/libgraphite2.so.3 (0x00007f7030255000)
libicudata.so.60 => /tmp/.mount_Gqrx-2BdD3f9/usr/bin/../lib/libicudata.so.60 (0x00007f702e6ab000)
libpcre.so.3 => /tmp/.mount_Gqrx-2BdD3f9/usr/bin/../lib/libpcre.so.3 (0x00007f702e437000)
libasound.so.2 => /lib/x86_64-linux-gnu/libasound.so.2 (0x00007f702e33c000)
libjack.so.0 => /lib/x86_64-linux-gnu/libjack.so.0 (0x00007f702e2f0000)
libportaudio.so.2 => /tmp/.mount_Gqrx-2BdD3f9/usr/bin/../lib/libportaudio.so.2 (0x00007f702e0bf000)
libudev.so.1 => /lib/x86_64-linux-gnu/libudev.so.1 (0x00007f702e092000)
libXau.so.6 => /lib/x86_64-linux-gnu/libXau.so.6 (0x00007f702e08a000)
libXdmcp.so.6 => /lib/x86_64-linux-gnu/libXdmcp.so.6 (0x00007f702e082000)
liblzma.so.5 => /tmp/.mount_Gqrx-2BdD3f9/usr/bin/../lib/liblzma.so.5 (0x00007f702de5a000)
liblz4.so.1 => /tmp/.mount_Gqrx-2BdD3f9/usr/bin/../lib/liblz4.so.1 (0x00007f702dc3d000)
libgcrypt.so.20 => /tmp/.mount_Gqrx-2BdD3f9/usr/bin/../lib/libgcrypt.so.20 (0x00007f702d91f000)
libnsl.so.1 => /tmp/.mount_Gqrx-2BdD3f9/usr/bin/../lib/libnsl.so.1 (0x00007f702d703000)
libFLAC.so.8 => /tmp/.mount_Gqrx-2BdD3f9/usr/bin/../lib/libFLAC.so.8 (0x00007f702d486000)
libogg.so.0 => /tmp/.mount_Gqrx-2BdD3f9/usr/bin/../lib/libogg.so.0 (0x00007f702d27c000)
libvorbis.so.0 => /tmp/.mount_Gqrx-2BdD3f9/usr/bin/../lib/libvorbis.so.0 (0x00007f702d04f000)
libvorbisenc.so.2 => /tmp/.mount_Gqrx-2BdD3f9/usr/bin/../lib/libvorbisenc.so.2 (0x00007f702cda5000)
libresolv.so.2 => /lib/x86_64-linux-gnu/libresolv.so.2 (0x00007f702cd89000)
libX11.so.6 => /lib/x86_64-linux-gnu/libX11.so.6 (0x00007f702cc4a000)
libbsd.so.0 => /lib/x86_64-linux-gnu/libbsd.so.0 (0x00007f702cc30000)
libgpg-error.so.0 => /lib/x86_64-linux-gnu/libgpg-error.so.0 (0x00007f702cc0d000)

Also note that there is no output from echo $LD_LIBRARY_PATH

Thanks,

--Joel

So far I haven't been able to reproduce this.

@briankc1 @ADolbyB @willcode While the error dialog is on your screen, could you open another terminal window, execute the following command, and paste the output?

ldd /tmp/.mount_Gqrx-*/usr/bin/gqrx

Also, please send the output of echo $LD_LIBRARY_PATH, if any.

@argilo
Copy link
Member

argilo commented Oct 31, 2023

@ADolbyB Do you have debug_level / log_level settings in ~/.gnuradio/config.conf or /etc/gnuradio/conf.d/gnuradio-runtime.conf? If so, what are the values?

@briankc1
Copy link
Author

briankc1 commented Oct 31, 2023 via email

@briankc1
Copy link
Author

briankc1 commented Oct 31, 2023 via email

@briankc1
Copy link
Author

briankc1 commented Oct 31, 2023 via email

@argilo
Copy link
Member

argilo commented Nov 1, 2023

@briankc1 Thanks for confirming my suspicion that debug_level = critical is causing trouble.

I think the path forward is for Gqrx to update its AppImage releases to use GNU Radio 3.10, which doesn't throw an exception when it encounters an unknown log level in a configuration file.

@ADolbyB
Copy link

ADolbyB commented Nov 3, 2023

@ADolbyB Do you have debug_level / log_level settings in ~/.gnuradio/config.conf or /etc/gnuradio/conf.d/gnuradio-runtime.conf? If so, what are the values?

Thank You!

I can confirm also that /etc/gnuradio/conf.d/gnuradio-runtime.conf had debug_level = critical and changing to debug_level = emerg worked for me.

Sorry for the late reply.

Thanks again,

Joel

@argilo
Copy link
Member

argilo commented Nov 3, 2023

Thanks for confirming. I'm glad to hear that the workaround was successful.

I'll leave this issue open until the AppImage is updated to GNU Radio 3.10.

@ss32
Copy link

ss32 commented Jan 8, 2024

Similar solution here editing /etc/gnuradio/conf.d/gnuradio-runtime.conf but is emerg a valid log level forgnuradio?

# levels, in ascending order of severity:
# trace, debug, info, warning, error, critical, off

@argilo
Copy link
Member

argilo commented Jan 8, 2024

Yes it is. For backwards compatibility, emerg is still accepted:

https://github.com/gnuradio/gnuradio/blob/148a10913df03180e01bb63713c256683b5ad783/gnuradio-runtime/lib/logger.cc#L109-L124

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants