Hi Vasil

I could resolve the problem.  First I deleted the libqwt.so.6.1.3.abi1 and
libqwt.so.6abi1. Then I installed gnuradio 3.8.4 from source (I make
uninstall any other version of GR). After make test, only my error was in
qtgui. so What I did was deleted ALL the qt from my usr/lb, in my case:
libqwtplot3d-qt5.so libqwtplot3d-qt5.so.0 libqwtplot3d-qt5.so.0.2
libqwtplot3d-qt5.so.0.2.7 libqwt-qt5.so libqwt-qt5.so.6 an qt5. Then I
deleted and create the file build and run cmake ../ GR to prove that I need
the qt5.

-- Configuring gr-channels support...
--   Dependency ENABLE_VOLK = ON
--   Dependency Boost_FOUND = 1
--   Dependency ENABLE_GNURADIO_RUNTIME = ON
--   Dependency ENABLE_GR_BLOCKS = ON
--   Dependency ENABLE_GR_FFT = ON
--   Dependency ENABLE_GR_FILTER = ON
--   Dependency ENABLE_GR_ANALOG = ON
--   Enabling gr-channels support.
--   Override with -DENABLE_GR_CHANNELS=ON/OFF
-- Python checking for PyQt5 - found
-- Checking for module 'Qt5Qwt6'
--   No package 'Qt5Qwt6' found

-- Configuring gr-qtgui support...
--   Dependency Boost_FOUND = 1
--   Dependency QT_FOUND = 0
--   Dependency QWT_FOUND = FALSE
--   Dependency ENABLE_VOLK = ON
--   Dependency ENABLE_GNURADIO_RUNTIME = ON
--   Dependency ENABLE_GR_FFT = ON
--   Dependency ENABLE_GR_FILTER = ON
--   Dependency PYTHONLIBS_FOUND = TRUE
--   Dependency PYQT5_FOUND = TRUE
--   Disabling gr-qtgui support.
--   Override with -DENABLE_GR_QTGUI=ON/OFF

After that I RE-INSTALL qt5 : sudo apt-get install python3-pyqt5 sudo
apt-get install pyqt5-dev-tools sudo apt-get install qttools5-dev-tools and
RE-INSTALL libqwt-qt5 with python 3: sudo apt-get -y install
libqt5opengl5-dev libqwt-qt5-dev

soporte@CI-50:~$ ls /usr/lib | grep qt
libqwt-qt5.so
libqwt-qt5.so.6
libqwt-qt5.so.6.1
libqwt-qt5.so.6.1.3
qt5

Finally, I deleted the build directory and again rebuild and my make test
passed 100% well :)

Regards
Isaac T.

El mar, 30 nov 2021 a las 10:43, isaac mario tupac davila (<
[email protected]>) escribió:

> Hi Vasil
>
> Which Linux distribution do you use? Why 3.8.1 and not the latest 3.8.4.0?
> I use Ubuntu 18.04.6 LTS. I thought GR 3.8.1 was stable. I will install
> 3.8.4.0 from source now
>
> Do you have qt4-dev and libqwt-dev packages installed on your system? If
> you have them but you don't need them for something else then try removing
> and then a clean rebuild (e.g. delete the gnuradio's build directory and
> start from scratch)
> I'll delete libqwt.so.6.1.3.abi1 and libqwt.so.6abi1. And then I will
> install 3.8.4.0 from source.
>
> soporte@CI-50:/$ ls /usr/lib | grep libqwt
> libqwtplot3d-qt5.so
> libqwtplot3d-qt5.so.0
> libqwtplot3d-qt5.so.0.2
> libqwtplot3d-qt5.so.0.2.7
> libqwt-qt5.so
> libqwt-qt5.so.6
> libqwt-qt5.so.6.1
> libqwt-qt5.so.6.1.3
> libqwt.so.6.1.3.abi1
> libqwt.so.6abi1
>
> You may try running the qt test under gdb as well. In the test's shell
> script instead of valgrind add the following
> This is what I see...
>
> Regards
> Isaac T.
>
> soporte@CI-50:~/GR-workarea/gnuradio/build/gr-qtgui/python/qtgui$
> ./qa_qtgui_test.sh
> Segmentation fault (core dumped)
> GNU gdb (Ubuntu 8.1.1-0ubuntu1) 8.1.1
> Copyright (C) 2018 Free Software Foundation, Inc.
> License GPLv3+: GNU GPL version 3 or later <
> http://gnu.org/licenses/gpl.html>
> This is free software: you are free to change and redistribute it.
> There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
> and "show warranty" for details.
> This GDB was configured as "x86_64-linux-gnu".
> Type "show configuration" for configuration details.
> For bug reporting instructions, please see:
> <http://www.gnu.org/software/gdb/bugs/>.
> Find the GDB manual and other documentation resources online at:
> <http://www.gnu.org/software/gdb/documentation/>.
> For help, type "help".
> Type "apropos word" to search for commands related to "word"...
> Reading symbols from /usr/bin/python3.6...(no debugging symbols
> found)...done.
> Starting program: /usr/bin/python3.6 -B
> /home/soporte/GR-workarea/gnuradio/gr-qtgui/python/qtgui/qa_qtgui.py
> [Thread debugging using libthread_db enabled]
> Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
> [New Thread 0x7ffff08e7700 (LWP 19637)]
> [New Thread 0x7ffff00e6700 (LWP 19638)]
> [New Thread 0x7fffe78e5700 (LWP 19639)]
>
> Thread 1 "python3.6" received signal SIGSEGV, Segmentation fault.
> 0x0000000000002cf0 in ?? ()
> (gdb) bt
> #0  0x0000000000002cf0 in ?? ()
> #1  0x00007ffff7de38d3 in call_init (env=0xcbb290, argv=0x7fffffffdc08,
>     argc=3, l=<optimized out>) at dl-init.c:72
> #2  _dl_init (main_map=main_map@entry=0xabd800, argc=3,
> argv=0x7fffffffdc08,
>     env=0xcbb290) at dl-init.c:119
> #3  0x00007ffff7de839f in dl_open_worker (a=a@entry=0x7fffffffc2d0)
>     at dl-open.c:522
> #4  0x00007ffff7b491ef in __GI__dl_catch_exception
> (exception=0x7fffffffc2b0,
>     operate=0x7ffff7de7f60 <dl_open_worker>, args=0x7fffffffc2d0)
>     at dl-error-skeleton.c:196
> #5  0x00007ffff7de796a in _dl_open (
>     file=0x7fffd3369120 "/usr/lib/python3/dist-packages/
> apt_pkg.cpython-36m-x86_64-linux-gnu.so", mode=-2147483646,
>     caller_dlopen=0x5f88bd <_PyImport_FindSharedFuncptr+109>,
>     nsid=<optimized out>, argc=3, argv=<optimized out>, env=0xcbb290)
>     at dl-open.c:605
> #6  0x00007ffff75bff96 in dlopen_doit (a=a@entry=0x7fffffffc500) at
> dlopen.c:66
> #7  0x00007ffff7b491ef in __GI__dl_catch_exception (
>     exception=exception@entry=0x7fffffffc4a0,
>     operate=0x7ffff75bff40 <dlopen_doit>, args=0x7fffffffc500)
>     at dl-error-skeleton.c:196
> #8  0x00007ffff7b4927f in __GI__dl_catch_error (objname=0xa961d0,
>     errstring=0xa961d8, mallocedp=0xa961c8, operate=<optimized out>,
> ---Type <return> to continue, or q <return> to quit---return
>     ized out>) at dl-error-skeleton.c:215
> #9  0x00007ffff75c0745 in _dlerror_run (operate=operate@entry=0x7ffff75bff40
> <dlopen_doit>, args=args@entry=0x7fffffffc500) at dlerror.c:162
> #10 0x00007ffff75c0051 in __dlopen (file=<optimized out>, mode=<optimized
> out>) at dlopen.c:87
> #11 0x00000000005f88bd in _PyImport_FindSharedFuncptr ()
> #12 0x00000000005fbb28 in _PyImport_LoadDynamicModuleWithSpec ()
> #13 0x00000000005fbded in ?? ()
> #14 0x0000000000566ff2 in PyCFunction_Call ()
> #15 0x0000000000510f56 in _PyEval_EvalFrameDefault ()
> #16 0x0000000000507cd4 in ?? ()
> #17 0x0000000000509a00 in ?? ()
> #18 0x000000000050a3fd in ?? ()
> #19 0x000000000050bf44 in _PyEval_EvalFrameDefault ()
> #20 0x00000000005096c8 in ?? ()
> #21 0x000000000050a3fd in ?? ()
> #22 0x000000000050bf44 in _PyEval_EvalFrameDefault ()
> #23 0x00000000005096c8 in ?? ()
> #24 0x000000000050a3fd in ?? ()
> #25 0x000000000050bf44 in _PyEval_EvalFrameDefault ()
> #26 0x00000000005096c8 in ?? ()
> #27 0x000000000050a3fd in ?? ()
> #28 0x000000000050bf44 in _PyEval_EvalFrameDefault ()
> #29 0x00000000005096c8 in ?? ()
> #30 0x000000000050a3fd in ?? ()
> #31 0x000000000050bf44 in _PyEval_EvalFrameDefault ()
> #32 0x0000000000508dc5 in _PyFunction_FastCallDict ()
> #33 0x00000000005a5481 in _PyObject_FastCallDict ()
> #34 0x00000000005a64be in _PyObject_CallMethodIdObjArgs ()
> #35 0x00000000004f6dbd in PyImport_ImportModuleLevelObject ()
> #36 0x000000000050deee in _PyEval_EvalFrameDefault ()
> #37 0x0000000000508dc5 in _PyFunction_FastCallDict ()
> #38 0x00000000005a5481 in _PyObject_FastCallDict ()
> #39 0x000000000063870b in PyErr_PrintEx ()
> #40 0x0000000000638af3 in PyRun_SimpleFileExFlags ()
> #41 0x0000000000639671 in Py_Main ()
> #42 0x00000000004b0e40 in main ()
> (gdb) quit
> A debugging session is active.
>
> Inferior 1 [process 19633] will be killed.
>
> Quit anyway? (y or n) y
> soporte@CI-50:~/GR-workarea/gnuradio/build/gr-qtgui
>
>
>
> El mar, 30 nov 2021 a las 9:58, Vasil Velichkov (<[email protected]>)
> escribió:
>
>> Hi Isaac,
>>
>> On 30/11/2021 16.15, isaac mario tupac davila wrote:
>> > Thanks for the respond. This is what I see. I had a GR 3.7.13 before. I
>> > desintaled with make uninstall but I didn't erase its workarea file.
>> This
>> > could be the problem?...I'm installing this new GNR 3.8.1 in a new
>> worarea
>> > file by the way.
>>
>> Which Linux distribution do you use? Why 3.8.1 and not the latest 3.8.4.0?
>>
>> > ==18632==    by 0x544F050: dlopen@@GLIBC_2.2.5 (dlopen.c:87)
>> > ==18632==    by 0x5F88BC: _PyImport_FindSharedFuncptr (in
>> > /usr/bin/python3.6)
>> > ==18632==    by 0x5FBB27: _PyImport_LoadDynamicModuleWithSpec (in
>>
>> Your crash looks similar to [1], [2], [3]. In all previously reported
>> such cases the issue was mixing Qt5 with Qt4 libraries.
>>
>> Do you have qt4-dev and libqwt-dev packages installed on your system? If
>> you have them but you don't need them for something else then try removing
>> and then a clean rebuild (e.g. delete the gnuradio's build directory and
>> start from scratch)
>>
>> You may try running the qt test under gdb as well. In the test's shell
>> script instead of valgrind add the following
>>
>>   gdb --ex run --args /usr/bin/python3 -B
>> /home/soporte/GR-workarea/gnuradio/gr-qtgui/python/qtgui/qa_qtgui.py
>>
>> and after it stops take a backtrace by executing `bt` command inside the
>> gdb shell.
>>
>> [1] https://github.com/gnuradio/gnuradio/issues/3494
>> [2] https://github.com/gnuradio/gnuradio/issues/2506
>> [3] https://github.com/gnuradio/gnuradio/issues/2027
>>
>> Regards,
>> Vasil
>>
>

Reply via email to