Opened 7 years ago

Closed 6 years ago

#53236 closed defect (worksforme)

Run time exception in gqrx caused by gnuradio log

Reported by: nr0q (Matthew Chambers) Owned by:
Priority: Normal Milestone:
Component: ports Version: 2.3.5
Keywords: Cc: michaelld (Michael Dickens)
Port: gqrx

Description

$ gqrx
Mac OS; Clang version 4.2 (clang-425.0.28); Boost_105900; UHD_003.010.001.000-MacPorts-Release

gr-osmosdr v0.1.x-xxx-xunknown (0.1.5git) gnuradio 3.7.10.1
built-in source types: file fcd rtl rtl_tcp uhd sdrplay hackrf bladerf rfspace airspy soapy 

FATAL: unterminated conversion specifier in 'gr::log :%p: %c{1} - %m%n' at index -1

terminate called throwing an exceptionAbort trap: 6

I've attached the Mac OSX error report too

Attachments (1)

gqrx_runtime_error.log (49.1 KB) - added by nr0q (Matthew Chambers) 7 years ago.
gqrx Mac OSX error report

Download all attachments as: .zip

Change History (14)

Changed 7 years ago by nr0q (Matthew Chambers)

Attachment: gqrx_runtime_error.log added

gqrx Mac OSX error report

comment:1 Changed 7 years ago by nr0q (Matthew Chambers)

I'm told on the gqrx email group that

gr::log is a GNU Radio component so the error is not in gqrx itself.

so this ticket might need to be reassigned to the gnuradio port

comment:2 Changed 7 years ago by michaelld (Michael Dickens)

Interesting. What does "port installed" return for you?

comment:3 Changed 7 years ago by nr0q (Matthew Chambers)

$ sudo port installed
The following ports are currently installed:
  airspy @20160924_0 (active)
  atk @2.22.0_0 (active)
  autoconf @2.69_5 (active)
  autoconf-archive @2016.03.20_0 (active)
  automake @1.15_1 (active)
  bison @3.0.4_1 (active)
  bison-runtime @3.0.4_0 (active)
  bladeRF @20160824_0+tecla (active)
  boost @1.59.0_2+no_single+no_static+python27 (active)
  bzip2 @1.0.6_0 (active)
  cairo @1.14.8_0+quartz+x11 (active)
  cctools @895_3+llvm34 (active)
  clang-3.6 @3.6.2_5+analyzer (active)
  clang-3.7 @3.7.1_5+analyzer (active)
  clang-3.8 @3.8.1_7+analyzer (active)
  clang_select @2_0 (active)
  cloog @0.18.4_0 (active)
  cmake @3.7.1_0 (active)
  coreutils @8.26_0 (active)
  cppunit @1.13.2_0 (active)
  ctags @5.8_2 (active)
  curl @7.51.0_1+ssl (active)
  curl-ca-bundle @7.51.0_0 (active)
  cython_select @0.1_0 (active)
  db48 @4.8.30_4 (active)
  db60 @6.0.30_1+sql (active)
  dbus @1.10.12_0 (active)
  dbus-glib @0.108_0 (active)
  dbus-python27 @1.2.0_2 (active)
  docbook-xml @5.0_3 (active)
  docbook-xml-4.1.2 @5.0_1 (active)
  docbook-xml-4.2 @5.0_1 (active)
  docbook-xml-4.3 @5.0_1 (active)
  docbook-xml-4.4 @5.0_1 (active)
  docbook-xml-4.5 @5.0_1 (active)
  docbook-xml-5.0 @5.0_1 (active)
  docbook-xsl @1.79.1_0 (active)
  doxygen @1.8.10_2 (active)
  expat @2.2.0_0 (active)
  fftw-3 @3.3.5_0 (active)
  fftw-3-single @3.3.5_0 (active)
  findutils @4.6.0_0 (active)
  flac @1.3.1_2 (active)
  flex @2.6.0_0 (active)
  fontconfig @2.12.1_1 (active)
  fop @1.1_0 (active)
  freetype @2.7_0 (active)
  gawk @4.1.4_0 (active)
  gcc6 @6.2.0_2 (active)
  gcc_select @0.1_8 (active)
  gd2 @2.2.3_0+x11 (active)
  gdbm @1.12_0 (active)
  gdk-pixbuf2 @2.36.2_0+x11 (active)
  getopt @1.1.6_0 (active)
  gettext @0.19.8.1_0 (active)
  ghostscript @9.19_0+x11 (active)
  giflib @4.2.3_0+x11 (active)
  glib2 @2.50.2_0 (active)
  glpk @4.60_0 (active)
  gmp @6.1.2_0 (active)
  gnome-common @3.18.0_0 (active)
  gnuradio @3.7.10.1_1+docs+grc+jack+portaudio+qtgui+sdl+swig+uhd+wavelet+wxgui (active)
  gobject-introspection @1.50.0_0 (active)
  gperf @3.0.4_2 (active)
  gqrx @2.6_1 (active)
  gr-fcdproplus @20160830_0 (active)
  gr-osmosdr @20160622_0+airspy+bladeRF+docs+fcdproplus+hackrf+rtlsdr+sdrplay+soapysdr+swig+uhd (active)
  graphite2 @1.3.9_0 (active)
  graphviz @2.38.0_3+pangocairo+x11 (active)
  groff @1.22.3_1 (active)
  gsed @4.2.2_0 (active)
  gsl @2.2.1_0 (active)
  gtk-doc @1.25_1 (active)
  gtk2 @2.24.31_0+x11 (active)
  gts @0.7.6_3 (active)
  gzip @1.8_0 (active)
  hackrf @20160922_0 (active)
  harfbuzz @1.3.4_0 (active)
  help2man @1.47.4_1 (active)
  hicolor-icon-theme @0.15_0 (active)
  icu @55.1_0 (active)
  intltool @0.51.0_2 (active)
  isl @0.14.1_0 (active)
  itstool @2.0.2_2 (active)
  jack @0.124.1_1 (active)
  jasper @2.0.6_2 (active)
  jbig2dec @0.11_2 (active)
  jbigkit @2.1_0 (active)
  jpeg @9b_0 (active)
  lcms2 @2.8_0 (active)
  ld64 @2_0 (active)
  ld64-latest @274.1_1+llvm34 (active)
  libarchive @3.2.2_0 (active)
  libcxx @3.9.0_0+universal (active)
  libedit @20160903-3.1_1 (active)
  libffi @3.2.1_0 (active)
  libgcc @6.2.0_0 (active)
  libglade2 @2.6.4_8 (active)
  libiconv @1.14_0 (active)
  libidn @1.33_0 (active)
  libLASi @1.1.1_1 (active)
  libmacho-headers @895_0 (active)
  libmng @2.0.3_0 (active)
  libmpc @1.0.3_0 (active)
  libnetpbm @10.76.00_0 (active)
  libogg @1.3.2_1 (active)
  libomp @3.8.1_2+universal (active)
  libpaper @1.1.24.4_0 (active)
  libpixman @0.34.0_0 (active)
  libpng @1.6.26_0 (active)
  libsamplerate @0.1.9_0 (active)
  libsdl @1.2.15_3+x11 (active)
  libsndfile @1.0.26_0 (active)
  libtool @2.4.6_2 (active)
  libunwind-headers @3.9.0_0 (active)
  libusb @1.0.21_0 (active)
  libuv @1.10.1_0 (active)
  libvorbis @1.3.5_0 (active)
  libxml2 @2.9.4_0 (active)
  libxslt @1.1.29_1 (active)
  llvm-3.4 @3.4.2_11 (active)
  llvm-3.6 @3.6.2_4 (active)
  llvm-3.7 @3.7.1_4 (active)
  llvm-3.8 @3.8.1_2 (active)
  llvm_select @2_0 (active)
  log4cpp @1.1.1_0 (active)
  lzo2 @2.09_0 (active)
  m4 @1.4.17_0 (active)
  mpfr @3.1.4_0 (active)
  ncurses @6.0_0 (active)
  netpbm @10.76.00_2+x11 (active)
  nosetests_select @0.1_0 (active)
  openjade @1.3.2_10 (active)
  openjpeg @2.1.0_0 (active)
  opensp @1.5.2_2 (active)
  openssl @1.0.2j_0 (active)
  orc @0.4.26_0 (active)
  p5.24-encode-locale @1.50.0_0 (active)
  p5.24-file-listing @6.40.0_1 (active)
  p5.24-getopt-long @2.49.1_0 (active)
  p5.24-html-form @6.30.0_1 (active)
  p5.24-html-parser @3.720.0_0 (active)
  p5.24-html-tagset @3.200.0_4 (active)
  p5.24-http-cookies @6.10.0_1 (active)
  p5.24-http-daemon @6.10.0_1 (active)
  p5.24-http-date @6.20.0_1 (active)
  p5.24-http-message @6.110.0_0 (active)
  p5.24-http-negotiate @6.10.0_1 (active)
  p5.24-io @1.250.0_4 (active)
  p5.24-io-html @1.1.0_0 (active)
  p5.24-io-socket-inet6 @2.720.0_0 (active)
  p5.24-io-socket-ip @0.380.0_0 (active)
  p5.24-io-socket-ssl @2.40.0_0 (active)
  p5.24-libwww-perl @6.150.0_0+ssl (active)
  p5.24-locale-gettext @1.70.0_0 (active)
  p5.24-lwp-mediatypes @6.20.0_1 (active)
  p5.24-lwp-protocol-https @6.60.0_1 (active)
  p5.24-mime-base64 @3.150.0_0 (active)
  p5.24-mozilla-ca @20160104_0 (active)
  p5.24-net-http @6.90.0_0 (active)
  p5.24-net-libidn @0.120.0_4 (active)
  p5.24-net-ssleay @1.780.0_0 (active)
  p5.24-pathtools @3.620.0_0 (active)
  p5.24-scalar-list-utils @1.470.0_0 (active)
  p5.24-socket @2.24.0_0 (active)
  p5.24-socket6 @0.280.0_0 (active)
  p5.24-sub-uplevel @0.260.0_0 (active)
  p5.24-test-exception @0.430.0_0 (active)
  p5.24-test-nowarnings @1.40.0_1 (active)
  p5.24-test-warn @0.310.0_0 (active)
  p5.24-uri @1.710.0_0 (active)
  p5.24-www-robotrules @6.20.0_1 (active)
  p5.24-xml-parser @2.440.0_0 (active)
  pango @1.40.3_1+quartz+x11 (active)
  pcre @8.39_0 (active)
  perl5 @5.24.0_0+perl5_24 (active)
  perl5.24 @5.24.0_0 (active)
  pkgconfig @0.29.1_0 (active)
  portaudio @19.20140130_1 (active)
  ppl @1.2_0 (active)
  psutils @p17_1 (active)
  py27-alabaster @0.7.6_0 (active)
  py27-altgraph @0.13_0 (active)
  py27-babel @2.3.4_0 (active)
  py27-backports_abc @0.5_0 (active)
  py27-beaker @1.7.0_0 (active)
  py27-cairo @1.10.0_3 (active)
  py27-certifi @2016.09.26_0 (active)
  py27-cheetah @2.4.4_1 (active)
  py27-cycler @0.10.0_0 (active)
  py27-cython @0.25.2_0 (active)
  py27-dateutil @2.6.0_0 (active)
  py27-docutils @0.13.1_0 (active)
  py27-gobject @2.28.6_3 (active)
  py27-imagesize @0.7.1_0 (active)
  py27-jinja2 @2.8_0 (active)
  py27-libxml2 @2.9.4_0 (active)
  py27-lxml @3.6.0_0 (active)
  py27-macholib @1.7_1 (active)
  py27-mako @1.0.6_0 (active)
  py27-markupsafe @0.23_0 (active)
  py27-matplotlib @1.5.3_0+cairo (active)
  py27-modulegraph @0.12.1_0 (active)
  py27-monotonic @1.2_0 (active)
  py27-nose @1.3.7_0 (active)
  py27-numpy @1.11.2_1+gfortran (active)
  py27-opengl @3.1.0_0 (active)
  py27-opengl-accelerate @3.1.0_0 (active)
  py27-parsing @2.1.10_0 (active)
  py27-Pillow @3.4.2_0 (active)
  py27-py2app @0.10_0 (active)
  py27-pygments @2.1.3_0 (active)
  py27-pygtk @2.24.0_3+x11 (active)
  py27-pyobjc @3.0.4_0 (active)
  py27-pyobjc-cocoa @3.0.4_1 (active)
  py27-pyqt4 @4.11.4_4 (active)
  py27-pyqwt @5.2.0_11 (active)
  py27-requests @2.12.4_0 (active)
  py27-roman @2.0.0_0 (active)
  py27-scipy @0.18.1_0+gfortran (active)
  py27-setuptools @32.1.1_0 (active)
  py27-singledispatch @3.4.0.3_0 (active)
  py27-sip @4.18.1_0 (active)
  py27-six @1.10.0_0 (active)
  py27-snowballstemmer @1.2.0_0 (active)
  py27-sphinx @1.5.1_0 (active)
  py27-tkinter @2.7.13_2 (active)
  py27-tornado @4.4.2_0 (active)
  py27-tz @2016.10_0 (active)
  py27-wxpython-3.0 @3.0.2.0_0 (active)
  python2_select @0.0_2 (active)
  python27 @2.7.13_0 (active)
  python_select @0.3_7 (active)
  qhull @2015.2_1 (active)
  qt4-mac @4.8.7_4 (active)
  qt5-qtbase @5.6.2_0 (active)
  qwt52 @5.2.3_1+qt4 (active)
  qwtplot3d @0.2.7_5+qt4 (active)
  readline @6.3.003_1 (active)
  rtl-sdr @20150608_1 (active)
  SDRplay @1.97.3_0 (active)
  shared-mime-info @1.7_2 (active)
  SoapySDR @0.5.2_0 (active)
  source-highlight @3.1.8_0 (active)
  sphinx_select @0.1_0 (active)
  sqlite3 @3.15.2_2 (active)
  swig @3.0.10_0 (active)
  swig-python @3.0.10_0 (active)
  tcl @8.6.6_0+corefoundation+threads (active)
  tecla @1.6.2_1 (active)
  texinfo @6.3_0 (active)
  tiff @4.0.7_0 (active)
  tk @8.6.6_0+x11 (active)
  uhd @3.10.1.0_0+docs+examples+libusb+manpages+manual+python27+test (active)
  urw-fonts @1.0.7pre44_0 (active)
  volk @1.3_0+docs+orc (active)
  webp @0.5.2_0 (active)
  wxPython-3.0 @3.0.2_5 (active)
  wxWidgets-common @3.1.0_0 (active)
  wxWidgets_select @1.0_1 (active)
  Xft2 @2.3.2_0 (active)
  xmlcatmgr @2.2_1 (active)
  xmlto @0.0.28_0 (active)
  xorg-bigreqsproto @1.1.2_0 (active)
  xorg-compositeproto @0.4.2_0 (active)
  xorg-damageproto @1.2.1_0 (active)
  xorg-fixesproto @5.0_0 (active)
  xorg-inputproto @2.3.2_0 (active)
  xorg-kbproto @1.0.7_0 (active)
  xorg-libice @1.0.9_0 (active)
  xorg-libpthread-stubs @0.3_0 (active)
  xorg-libsm @1.2.1_0 (active)
  xorg-libX11 @1.6.4_0 (active)
  xorg-libXau @1.0.8_0 (active)
  xorg-libXaw @1.0.13_2 (active)
  xorg-libxcb @1.12_2+python27 (active)
  xorg-libXcomposite @0.4.4_0 (active)
  xorg-libXcursor @1.1.14_0 (active)
  xorg-libXdamage @1.1.4_0 (active)
  xorg-libXdmcp @1.1.2_0 (active)
  xorg-libXext @1.3.3_0 (active)
  xorg-libXfixes @5.0.3_0 (active)
  xorg-libXi @1.7.8_0 (active)
  xorg-libXinerama @1.1.3_0 (active)
  xorg-libXmu @1.1.2_0 (active)
  xorg-libXrandr @1.5.1_0 (active)
  xorg-libXScrnSaver @1.2.2_0 (active)
  xorg-libXt @1.1.5_1 (active)
  xorg-randrproto @1.5.0_0 (active)
  xorg-renderproto @0.11.1_0 (active)
  xorg-scrnsaverproto @1.2.2_0 (active)
  xorg-util-macros @1.19.0_0 (active)
  xorg-xcb-proto @1.12_1+python27 (active)
  xorg-xcb-util @0.4.0_0 (active)
  xorg-xcmiscproto @1.2.2_0 (active)
  xorg-xextproto @7.3.0_0 (active)
  xorg-xf86bigfontproto @1.2.0_0 (active)
  xorg-xineramaproto @1.2.1_0 (active)
  xorg-xproto @7.0.31_0 (active)
  xorg-xtrans @1.3.5_0 (active)
  xpm @3.5.11_0 (active)
  xrender @0.9.10_0 (active)
  xz @5.2.2_0 (active)
  zlib @1.2.8_0 (active)

comment:4 Changed 7 years ago by kencu (Ken)

I wonder if this is connected to this error <https://trac.macports.org/ticket/53187#comment:8> running gnu radio, also in the log section.

comment:5 Changed 7 years ago by nr0q (Matthew Chambers)

It's the same error. I hadn't looked at it as closely before :(

comment:6 Changed 7 years ago by michaelld (Michael Dickens)

Summary: Run time exception in gqrxRun time exception in gqrx caused by gnuradio log

comment:7 Changed 7 years ago by michaelld (Michael Dickens)

I'm asking to move the discussion from #53187 comment 8 & forward to here. That ticket was about not building; this is a runtime issue.

comment:8 Changed 7 years ago by michaelld (Michael Dickens)

I'm getting close to having a Mac OS X 10.7.5 install for testing. Out of curiosity, how do folks install volk? GCC provided with Xcode for that MacOS X version fail to build it, so I ended up installing and using clang 3.4. I'll revisit this volk issue once I get this ticket fixed.

comment:9 Changed 7 years ago by kencu (Ken)

I upgrade all my machines to libc++ -- part of the LibcxxOnOlderSystems instructions lead you to install clang-3.7 (or clang-3.8) and set that as the default compiler. Once you do that, many things, including volk, will just install without special attention. For example, volk installed on 10.6 without any attention from me:

$ port -v installed volk
The following ports are currently installed:
  volk @1.3_0+docs+orc platform='darwin 10' archs='x86_64'

If you want my opinion, macports should just insist all users follow those instructions, and set the buildbots up to that as well. The installation of libc++ and defaulting to clang-3.7 or newer fixes a great many issues with installs on the older systems that then need no further attention.

comment:10 Changed 7 years ago by kencu (Ken)

I also made a very tiny patch in clang-3.7, clang-3.8, and clang-3.9 to make them default to adding stdlib=libc++ instead of stdlib=libstdc++ if no stdlib was specified, on all systems. The patch is available in my github SnowLeopardPorts repo for anyone interested in trying it.

This little change has solved tons of problems on these older systems by making them match the behaviour of all the newer ( > 10.8 ) systems, to which most of the current portfiles have been written.

However it is not default behaviour, and so Jeremy is not keen on this for general use at present. I have to say, though, for users of these old systems, all which need to have libc++ installed to allow clang-3.7+ to run, it does seem to me to be a pretty sweet fix. But I defer to Jeremy here, of course.

Last edited 7 years ago by kencu (Ken) (previous) (diff)

comment:11 Changed 7 years ago by michaelld (Michael Dickens)

OK. I finally coerced the various GR ports to install. I had to "install gr-osmosdr -sdrplay -soapysdr", since those don't work for various reasons. I had to use "configure.compiler=macports-clang-3.4" for a few ports, but on the whole things worked. For the Gqrx port, I also had to insert "set qt_name qt5" just before "PortGroup qmake5 1.0" to get dependencies to work. Quite a PITA.

I'm using gnuradio-devel, volk-devel, uhd-devel, and gqrx-devel. I don't see this issue. It is possible that when not using the devel versions this issue pops up. IIRC, logging was tweaked in gnuradio-devel & is not tweaked in the latest release -- this will obviously be fixed with the next release, but it isn't yet.

My recommendation is to try gnuradio-devel & gqrx-devel & see if this problem goes away. on my end I'll try the non-devel port versions & see if I can replicate this issue using those.

comment:12 Changed 7 years ago by michaelld (Michael Dickens)

Is this ticket still an issue?

comment:13 Changed 6 years ago by michaelld (Michael Dickens)

Resolution: worksforme
Status: newclosed

I'm closing this ticket since Gqrx and GNU Radio have both progressed significantly. If I am mistaken, then please reopen and attach logs showing the issue.

Note: See TracTickets for help on using tickets.