Bug#940068: gr-gsm FTBFS in unstable

2019-09-11 Thread Vasil Velichkov
Hi Peter,

On 12/09/2019 01.36, peter green wrote:
> Package: gr-gsm
> Version: 0.42.2-1
> Severity: serious
> Tags: bullseye, sid
> 
> gr-gsm failed to build with the following errors when an attempt was made to 
> binnmu it for the new gnuradio.
> 
>> CMake Warning at CMakeLists.txt:135 (find_package):
>>    Found package configuration file:
>>
>>  /usr/lib/x86_64-linux-gnu/cmake/gnuradio/GnuradioConfig.cmake
>>
>>    but it set Gnuradio_FOUND to FALSE so package "Gnuradio" is considered to
>>    be NOT FOUND.  Reason given by package:
>>
>>    Gnuradio could not be found because dependency MPLIB could not be found.
>>
>>
>>
>> -- Checking for module 'volk'
>> --   Found volk, version 2.0
>> -- Found VOLK: /usr/lib/x86_64-linux-gnu/libvolk.so
>> -- Checking for module 'cppunit'
>> --   Found cppunit, version 1.14.0
>> -- Found CPPUNIT: /usr/lib/x86_64-linux-gnu/libcppunit.so;dl
>> -- Checking for module 'libosmocore'
>> --   Found libosmocore, version 0.12.0
>> -- Found libosmocore: /usr/lib/x86_64-linux-gnu/libosmocore.so
>> -- Checking for module 'libosmocodec'
>> --   Found libosmocodec, version 0.12.0
>> -- Found libosmocodec: /usr/lib/x86_64-linux-gnu/libosmocodec.so
>> -- Checking for module 'libosmocoding'
>> --   Found libosmocoding, version 0.12.0
>> -- Found libosmocoding: /usr/lib/x86_64-linux-gnu/libosmocoding.so
>> -- Checking for module 'libosmogsm'
>> --   Found libosmogsm, version 0.12.0
>> -- Found libosmogsm: /usr/lib/x86_64-linux-gnu/libosmogsm.so
>> CMake Error at CMakeLists.txt:150 (message):
>>    GnuRadio Runtime required to compile gr-gsm

We are working on gnuradio 3.8 support in 
https://github.com/ptrkrysik/gr-gsm/issues/475



Bug#902371: gnuradio: grcc: No module named gtk

2018-06-25 Thread Vasil Velichkov
Package: gnuradio
Version: 3.7.13.3-1
Severity: normal

Dear Maintainer,

Dependency to package python-gtk2 is missing and it is needed to compile
grc flowgraphs using grcc

$ grcc -d . empty.grc 
Warning: Can't parse color code "#000" for domain "gr_message" 
Warning: Can't parse color code "#000" for domain "gr_stream" 
>>> Warning: This flow graph may not have flow control: no audio or RF hardware 
>>> blocks found. Add a Misc->Throttle block to your flow graph to avoid CPU 
>>> congestion.
No module named gtk
Error during file compilation.

$ apt-cache depends gnuradio
gnuradio
  Depends: libvolk1-bin
  Depends: python-cheetah
  Depends: python-gobject-2
  Depends: python-lxml
  Depends: python-numpy
  Depends: python-opengl
  Depends: python-pyqt5
  Depends: python-sip
  Depends: python-wxgtk3.0
  Depends: python-zmq
  Depends: python
  Depends: python
  Depends: 
python
  Depends: 
python
  Depends: libasound2
  Depends: libboost-atomic1.62.0
  Depends: libboost-chrono1.62.0
  Depends: libboost-date-time1.62.0
  Depends: libboost-filesystem1.62.0
  Depends: libboost-program-options1.62.0
  Depends: libboost-regex1.62.0
  Depends: libboost-system1.62.0
  Depends: libboost-thread1.62.0
  Depends: libc6
  Depends: libcodec2-0.8
  Depends: libcomedi0
  Depends: libfftw3-single3
  Depends: libgcc1
  Depends: libgnuradio-analog3.7.13
  Depends: libgnuradio-atsc3.7.13
  Depends: libgnuradio-audio3.7.13
  Depends: libgnuradio-blocks3.7.13
  Depends: libgnuradio-channels3.7.13
  Depends: libgnuradio-comedi3.7.13
  Depends: libgnuradio-digital3.7.13
  Depends: libgnuradio-dtv3.7.13
  Depends: libgnuradio-fcd3.7.13
  Depends: libgnuradio-fec3.7.13
  Depends: libgnuradio-fft3.7.13
  Depends: libgnuradio-filter3.7.13
  Depends: libgnuradio-noaa3.7.13
  Depends: libgnuradio-pager3.7.13
  Depends: libgnuradio-pmt3.7.13
  Depends: libgnuradio-qtgui3.7.13
  Depends: libgnuradio-runtime3.7.13
  Depends: libgnuradio-trellis3.7.13
  Depends: libgnuradio-uhd3.7.13
  Depends: libgnuradio-video-sdl3.7.13
  Depends: libgnuradio-vocoder3.7.13
  Depends: libgnuradio-wavelet3.7.13
  Depends: libgnuradio-wxgui3.7.13
  Depends: libgnuradio-zeromq3.7.13
  Depends: libgsl23
  Depends: libgslcblas0
  Depends: libgsm1
 |Depends: libjack-jackd2-0
  Depends: 
libjack-jackd2-0
libjack0
  Depends: liblog4cpp5v5
  Depends: libportaudio2
  Depends: libpython2.7
  Depends: libqt5core5a
  Depends: libqt5gui5
  Depends: libqt5widgets5
  Depends: libqwt-qt5-6
  Depends: libsdl1.2debian
  Depends: libstdc++6
  Depends: libuhd3.12.0
  Depends: libusb-1.0-0
  Depends: libvolk1.4
  Depends: libzmq5
  Recommends: gnuradio-dev
  Recommends: python-matplotlib
  Recommends: python-networkx
  Recommends: 
  Recommends: python-scipy
  Recommends: python-tk
  Recommends: rtl-sdr
  Recommends: uhd-host
  Suggests: gr-fosphor
  Suggests: gr-osmosdr

-- System Information:
Debian Release: buster/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 3.10.0-514.21.2.el7.x86_64 (SMP w/24 CPU cores)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968), LANGUAGE=C 
(charmap=ANSI_X3.4-1968)
Shell: /bin/sh linked to /usr/bin/dash
Init: unable to detect

Versions of packages gnuradio depends on:
ii  libasound21.1.6-1
ii  libboost-atomic1.62.0 1.62.0+dfsg-5.1
ii  libboost-chrono1.62.0 1.62.0+dfsg-5.1
ii  libboost-date-time1.62.0  1.62.0+dfsg-5.1
ii  libboost-filesystem1.62.0 1.62.0+dfsg-5.1
ii  libboost-program-options1.62.01.62.0+dfsg-5.1
ii  libboost-regex1.62.0  1.62.0+dfsg-5.1
ii  libboost-system1.62.0 1.62.0+dfsg-5.1
ii  libboost-thread1.62.0 1.62.0+dfsg-5.1
ii  libc6 2.27-3
ii  libcodec2-0.8 0.8-2
ii  libcomedi00.10.2-4+b5
ii  libfftw3-single3  3.3.7-1+b1
ii  libgcc1   1:8.1.0-8
ii  libgnuradio-analog3.7.13  3.7.13.3-1
ii  libgnuradio-atsc3.7.133.7.13.3-1
ii  libgnuradio-audio3.7.13   3.7.13.3-1
ii  libgnuradio-blocks3.7.13  3.7.13.3-1
ii  libgnuradio-channels3.7.133.7.13.3-1
ii  libgnuradio-comedi3.7.13  3.7.13.3-1
ii  libgnuradio-digital3.7.13 3.7.13.3-1
ii  libgnuradio-dtv3.7.13 3.7.13.3-1
ii  libgnuradio-fcd3.7.13 3.7.13.3-1
ii  libgnuradio-fec3.7.13 3.7.13.3-1
ii  libgnuradio-fft3.7.13 3.7.13.3-1
ii  libgnuradio-filter3.7.13  3.7.13.3-1
ii  libgnuradio-noaa3.7.133.7.13.3-1
ii  libgnuradio-pager3.7.13   3.7.13.3-1
ii  libgnuradio-pmt3.7.13 3.7.13.3-1
ii  libgnuradio-qtgui3.7.13   3.7.13.3-1
ii  libgnuradio-runtime3.7.13 3.7.13.3-1
ii  libgnuradio-trellis3.7.13 3.7.13.3-1
ii  libgnuradio-uhd3.7.13 3.7.13.3-1
ii  libgnuradio-video-sdl3.7.13   3.7.13.3-1
ii  libgnuradio-vocoder3.7.13 

Bug#895255: gnuradio: grcc: ImportError: No module named _runtime_swig

2018-04-08 Thread Vasil Velichkov
Package: gnuradio
Version: 3.7.11-8
Severity: normal

Dear Maintainer,

grcc always fails with the following error

# grcc 
Traceback (most recent call last):
  File "/usr/bin/grcc", line 29, in 
from gnuradio import gr
  File "/usr/lib/python2.7/dist-packages/gnuradio/gr/__init__.py", line 41, 
in 
from runtime_swig import *
  File "/usr/lib/python2.7/dist-packages/gnuradio/gr/runtime_swig.py", line 
17, in 
_runtime_swig = swig_import_helper()
  File "/usr/lib/python2.7/dist-packages/gnuradio/gr/runtime_swig.py", line 
16, in swig_import_helper
return importlib.import_module('_runtime_swig')
  File "/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module
__import__(name)
ImportError: No module named _runtime_swig

It's because libvolk.so.1.3 could not be found

# ldd 
/usr/lib/python2.7/dist-packages/gnuradio/gr/_runtime_swig.x86_64-linux-gnu.so 
linux-vdso.so.1 (0x7ffe651fe000)
libpython2.7.so.1.0 => /lib/x86_64-linux-gnu/libpython2.7.so.1.0 
(0x7ffa79dce000)
libgnuradio-runtime.so.3.7.11 => 
/lib/x86_64-linux-gnu/libgnuradio-runtime.so.3.7.11 (0x7ffa79ada000)
liblog4cpp.so.5 => /lib/x86_64-linux-gnu/liblog4cpp.so.5 
(0x7ffa7989c000)
libgnuradio-pmt.so.3.7.11 => 
/lib/x86_64-linux-gnu/libgnuradio-pmt.so.3.7.11 (0x7ffa79648000)
libvolk.so.1.3 => not found
libboost_date_time.so.1.62.0 => 
/lib/x86_64-linux-gnu/libboost_date_time.so.1.62.0 (0x7ffa79437000)
libboost_program_options.so.1.62.0 => 
/lib/x86_64-linux-gnu/libboost_program_options.so.1.62.0 (0x7ffa791b6000)
libboost_filesystem.so.1.62.0 => 
/lib/x86_64-linux-gnu/libboost_filesystem.so.1.62.0 (0x7ffa78f9d000)
libboost_system.so.1.62.0 => 
/lib/x86_64-linux-gnu/libboost_system.so.1.62.0 (0x7ffa78d99000)
libboost_regex.so.1.62.0 => 
/lib/x86_64-linux-gnu/libboost_regex.so.1.62.0 (0x7ffa78a83000)
libboost_thread.so.1.62.0 => 
/lib/x86_64-linux-gnu/libboost_thread.so.1.62.0 (0x7ffa7885b000)
libboost_chrono.so.1.62.0 => 
/lib/x86_64-linux-gnu/libboost_chrono.so.1.62.0 (0x7ffa78654000)
libboost_atomic.so.1.62.0 => 
/lib/x86_64-linux-gnu/libboost_atomic.so.1.62.0 (0x7ffa7845)
libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 
(0x7ffa78232000)
librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x7ffa7802a000)
libstdc++.so.6 => /lib/x86_64-linux-gnu/libstdc++.so.6 
(0x7ffa77ca5000)
libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x7ffa77912000)
libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 
(0x7ffa776fa000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x7ffa7733e000)
libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x7ffa77124000)
libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x7ffa76f2)
libutil.so.1 => /lib/x86_64-linux-gnu/libutil.so.1 (0x7ffa76d1d000)
libvolk.so.1.3 => not found
libnsl.so.1 => /lib/x86_64-linux-gnu/libnsl.so.1 (0x7ffa76b05000)
libicudata.so.57 => /lib/x86_64-linux-gnu/libicudata.so.57 
(0x7ffa75086000)
libicui18n.so.57 => /lib/x86_64-linux-gnu/libicui18n.so.57 
(0x7ffa74c12000)
libicuuc.so.57 => /lib/x86_64-linux-gnu/libicuuc.so.57 
(0x7ffa7486d000)
/lib64/ld-linux-x86-64.so.2 (0x55e9a390e000)


# dpkg -L libvolk1.3
/.
/usr
/usr/lib
/usr/lib/x86_64-linux-gnu
/usr/lib/x86_64-linux-gnu/libvolk.so.1.3.1

A simple rebuild of gnuradio with libvolk1.3 1.3.1-1 should fix the problem

-- System Information:
Debian Release: buster/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 3.10.0-693.11.6.el7.x86_64 (SMP w/4 CPU cores)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968), LANGUAGE=C 
(charmap=ANSI_X3.4-1968)
Shell: /bin/sh linked to /usr/bin/dash
Init: unable to detect

Versions of packages gnuradio depends on:
ii  libasound21.1.3-5
ii  libboost-atomic1.62.0 1.62.0+dfsg-5
ii  libboost-chrono1.62.0 1.62.0+dfsg-5
ii  libboost-date-time1.62.0  1.62.0+dfsg-5
ii  libboost-filesystem1.62.0 1.62.0+dfsg-5
ii  libboost-program-options1.62.01.62.0+dfsg-5
ii  libboost-regex1.62.0  1.62.0+dfsg-5
ii  libboost-system1.62.0 1.62.0+dfsg-5
ii  libboost-thread1.62.0 1.62.0+dfsg-5
ii  libc6 2.27-3
ii  libcodec2-0.7 0.7-1
ii  libcomedi00.10.2-4+b5
ii  libfftw3-single3  3.3.7-1
ii  libgcc1   1:8-20180402-1
ii  libgnuradio-analog3.7.11  3.7.11-8
ii  libgnuradio-atsc3.7.113.7.11-8
ii  libgnuradio-audio3.7.11   3.7.11-8
ii  libgnuradio-blocks3.7.11  3.7.11-8
ii  libgnuradio-channels3.7.113.7.11-8

Bug#890914: gr-gsm: grgsm_livemon: ImportError: No module named PyQt4

2018-02-21 Thread Vasil Velichkov
My attempt to fix the problem and compile grgsm_livemon and 
grgsm_livemon_headless with cmake and grcc 
https://github.com/ptrkrysik/gr-gsm/pull/378




Bug#890914: gr-gsm: grgsm_livemon: ImportError: No module named PyQt4

2018-02-20 Thread Vasil Velichkov
Package: gr-gsm
Version: 0.41.2-1
Severity: important

Dear Maintainer,

The grgsm_livemon fails with ImportError: No module named PyQt4

vasko@vvelichkov2:~$ grgsm_livemon
Warning: failed to XInitThreads()
Traceback (most recent call last):
  File "/usr/bin/grgsm_livemon", line 41, in 
from PyQt4 import Qt
ImportError: No module named PyQt4

The gnuradio have been migrated to Qt5 
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=874893
and the grgsm_livemon have to be rebuilt from grgsm_livemon.grc

-- System Information:
Debian Release: buster/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 4.14.18-200.fc26.x86_64 (SMP w/4 CPU cores)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968), LANGUAGE=C 
(charmap=ANSI_X3.4-1968)
Shell: /bin/sh linked to /usr/bin/dash
Init: unable to detect

Versions of packages gr-gsm depends on:
ii  gnuradio   3.7.11-8
ii  gr-osmosdr 0.1.4-14+b2
ii  libboost-atomic1.62.0  1.62.0+dfsg-5
ii  libboost-chrono1.62.0  1.62.0+dfsg-5
ii  libboost-date-time1.62.0   1.62.0+dfsg-5
ii  libboost-filesystem1.62.0  1.62.0+dfsg-5
ii  libboost-system1.62.0  1.62.0+dfsg-5
ii  libboost-thread1.62.0  1.62.0+dfsg-5
ii  libc6  2.26-6
ii  libgcc11:8-20180207-2
ii  libgnuradio-fft3.7.11  3.7.11-8
ii  libgnuradio-filter3.7.11   3.7.11-8
ii  libgnuradio-pmt3.7.11  3.7.11-8
ii  libgnuradio-runtime3.7.11  3.7.11-8
ii  libjs-jquery   3.2.1-1
ii  liblog4cpp5v5  1.1.1-3
ii  libosmocodec0  0.9.0-7
ii  libosmocore6   0.9.0-7
ii  libosmogsm50.9.0-7
ii  libpython2.7   2.7.14-6
ii  libstdc++6 8-20180207-2
ii  libvolk1.3 1.3-3
ii  python 2.7.14-4

gr-gsm recommends no packages.

gr-gsm suggests no packages.

-- no debconf information



Bug#885943: Fails to start: GLX version not found

2018-01-10 Thread Vasil Velichkov

Hi Baruch,

On Sun, 31 Dec 2017 20:28:18 +0200 Baruch Even  wrote:
> Package: gr-osmosdr
> Version: 0.1.4-14
> Severity: grave
>
> I installed gr-osmosdr and tried to run it only to get an error:
>
> wx._core.PyAssertionError: C++ assertion "ok" failed at
> ../src/unix/glx11.cpp(589) in GetGLXVersion(): GLX version not found

This indicates a problem with the video drivers or packages

Please post the output of

glxinfo
dpkg -l | grep glx

Similar problems on Raspberry Pi had been resolved by installing 
/libgl1-mesa-swx11


https://medium.com/@rxseger/sdr-first-project-initial-setup-node-hackrf-gnu-radio-on-linux-os-x-rpi-3-w-fm-tuner-ee16cdc8fd82
https://www.rs-online.com/designspark/taking-the-raspberry-pi-2-for-a-test-drive-with-gnu-radio-2
https://github.com/rxseger/linuxproblems/issues/3
/


Bug#886807: Acknowledgement (gnuradio: QT GUI fails with AttributeError: 'NoneType' object has no attribute 'toByteArray')

2018-01-10 Thread Vasil Velichkov

Tags: patch

Here is my attempt to fix this bug

На 10.01.2018 в 05:12, Debian Bug Tracking System написа:

Thank you for filing a new Bug report with Debian.

You can follow progress on this Bug here: 886807: 
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=886807.

This is an automatically generated reply to let you know your message
has been received.

Your message is being forwarded to the package maintainers and other
interested parties for their attention; they will reply in due course.

Your message has been sent to the package maintainer(s):
  A. Maitland Bottoms <bott...@debian.org>

If you wish to submit further information on this problem, please
send it to 886...@bugs.debian.org.

Please do not send mail to ow...@bugs.debian.org unless you wish
to report a problem with the Bug-tracking system.



>From 80997947ce9278b1be5caf1f17afed164e32af85 Mon Sep 17 00:00:00 2001
From: Vasil Velichkov <vvvelich...@gmail.com>
Date: Thu, 11 Jan 2018 00:32:37 +
Subject: [PATCH] Fix AttributeError: 'NoneType' object has no attribute
 'toByteArray'

Debian Bug #886807
---
 gr-uhd/apps/uhd_fft| 6 +++---
 gr-uhd/apps/uhd_siggen_gui | 4 ++--
 grc/blocks/options.xml | 2 +-
 grc/core/generator/flow_graph.tmpl | 2 +-
 4 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/gr-uhd/apps/uhd_fft b/gr-uhd/apps/uhd_fft
index 44bd270..fc944de 100755
--- a/gr-uhd/apps/uhd_fft
+++ b/gr-uhd/apps/uhd_fft
@@ -40,7 +40,7 @@ import sip
 import threading
 import time
 from distutils.version import StrictVersion
-from PyQt5 import Qt
+from PyQt5 import Qt, QtCore
 from gnuradio import eng_notation
 from gnuradio import eng_arg
 from gnuradio import gr
@@ -60,7 +60,7 @@ class uhd_fft(gr.top_block, Qt.QWidget, UHDApp):
 """
 def __init__(self, args):
 gr.top_block.__init__(self, "UHD FFT")
-Qt.QWidget.__init__(self)
+Qt.QWidget.__init__(self, args=args)
 UHDApp.__init__(self, args=args, prefix="UHD FFT")
 ##
 # Init QT App
@@ -82,7 +82,7 @@ class uhd_fft(gr.top_block, Qt.QWidget, UHDApp):
 self.top_grid_layout = Qt.QGridLayout()
 self.top_layout.addLayout(self.top_grid_layout)
 self.settings = Qt.QSettings("GNU Radio", "uhd_fft")
-self.restoreGeometry(self.settings.value("geometry").toByteArray())
+self.restoreGeometry(self.settings.value("geometry", type=QtCore.QByteArray))
 
 ##
 # Parameters
diff --git a/gr-uhd/apps/uhd_siggen_gui b/gr-uhd/apps/uhd_siggen_gui
index 52c0182..16f472f 100755
--- a/gr-uhd/apps/uhd_siggen_gui
+++ b/gr-uhd/apps/uhd_siggen_gui
@@ -39,7 +39,7 @@ import threading
 import time
 from distutils.version import StrictVersion
 from PyQt5 import Qt
-from PyQt5.QtCore import pyqtSlot
+from PyQt5.QtCore import pyqtSlot, QByteArray
 from gnuradio import analog
 from gnuradio import eng_notation
 from gnuradio import gr
@@ -85,7 +85,7 @@ class uhd_siggen_gui(Qt.QWidget):
 self.top_grid_layout = Qt.QGridLayout()
 self.top_layout.addLayout(self.top_grid_layout)
 self.settings = Qt.QSettings("GNU Radio", "uhd_siggen_gui")
-self.restoreGeometry(self.settings.value("geometry").toByteArray())
+self.restoreGeometry(self.settings.value("geometry", type=QByteArray))
 
 ##
 # Widgets + Controls
diff --git a/grc/blocks/options.xml b/grc/blocks/options.xml
index 1ef1e9d..414a167 100644
--- a/grc/blocks/options.xml
+++ b/grc/blocks/options.xml
@@ -16,7 +16,7 @@ from grc_gnuradio import wxgui as grc_wxgui
 import wx
 #end if
 #if $generate_options() == 'qt_gui'
-from PyQt5 import Qt
+from PyQt5 import Qt, QtCore
 import sys
 #end if
 #if not $generate_options().startswith('hb')
diff --git a/grc/core/generator/flow_graph.tmpl b/grc/core/generator/flow_graph.tmpl
index 9fdc1fb..8b18184 100644
--- a/grc/core/generator/flow_graph.tmpl
+++ b/grc/core/generator/flow_graph.tmpl
@@ -118,7 +118,7 @@ class $(class_name)(gr.top_block, Qt.QWidget):
 self.top_layout.addLayout(self.top_grid_layout)
 
 self.settings = Qt.QSettings("GNU Radio", "$class_name")
-self.restoreGeometry(self.settings.value("geometry").toByteArray())
+self.restoreGeometry(self.settings.value("geometry", type=QtCore.QByteArray))
 #elif $generate_options == 'no_gui'
 
 
-- 
2.15.1



Bug#886807: gnuradio: QT GUI fails with AttributeError: 'NoneType' object has no attribute 'toByteArray'

2018-01-09 Thread Vasil Velichkov
Package: gnuradio
Version: 3.7.11-6
Severity: normal

Dear Maintainer,

How to reproduce:

1. File -> New -> QT GUI (Ctrl + N)
2. File -> Save (Ctrl + S)
3. Run -> Execute (F6)

and it fails with

Traceback (most recent call last):
  File "/home/grgsm/test_qt_gui.py", line 96, in 
main()
  File "/home/grgsm/test_qt_gui.py", line 84, in main
tb = top_block_cls()
  File "/home/grgsm/test_qt_gui.py", line 53, in __init__
self.restoreGeometry(self.settings.value("geometry").toByteArray())
AttributeError: 'NoneType' object has no attribute 'toByteArray'

-- System Information:
Debian Release: buster/sid
  APT prefers testing-debug
  APT policy: (500, 'testing-debug'), (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 4.14.11-200.fc26.x86_64 (SMP w/4 CPU cores)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968), LANGUAGE=C 
(charmap=ANSI_X3.4-1968)
Shell: /bin/sh linked to /usr/bin/dash
Init: unable to detect

Versions of packages gnuradio depends on:
ii  libasound21.1.3-5
ii  libboost-atomic1.62.0 1.62.0+dfsg-4+b2
ii  libboost-chrono1.62.0 1.62.0+dfsg-4+b2
ii  libboost-date-time1.62.0  1.62.0+dfsg-4+b2
ii  libboost-filesystem1.62.0 1.62.0+dfsg-4+b2
ii  libboost-program-options1.62.01.62.0+dfsg-4+b2
ii  libboost-regex1.62.0  1.62.0+dfsg-4+b2
ii  libboost-system1.62.0 1.62.0+dfsg-4+b2
ii  libboost-thread1.62.0 1.62.0+dfsg-4+b2
ii  libc6 2.25-5
ii  libcodec2-0.7 0.7-1
ii  libcomedi00.10.2-4+b5
ii  libfftw3-single3  3.3.7-1
ii  libgcc1   1:7.2.0-18
ii  libgnuradio-analog3.7.11  3.7.11-6
ii  libgnuradio-atsc3.7.113.7.11-6
ii  libgnuradio-audio3.7.11   3.7.11-6
ii  libgnuradio-blocks3.7.11  3.7.11-6
ii  libgnuradio-channels3.7.113.7.11-6
ii  libgnuradio-comedi3.7.11  3.7.11-6
ii  libgnuradio-digital3.7.11 3.7.11-6
ii  libgnuradio-dtv3.7.11 3.7.11-6
ii  libgnuradio-fcd3.7.11 3.7.11-6
ii  libgnuradio-fec3.7.11 3.7.11-6
ii  libgnuradio-fft3.7.11 3.7.11-6
ii  libgnuradio-filter3.7.11  3.7.11-6
ii  libgnuradio-noaa3.7.113.7.11-6
ii  libgnuradio-pager3.7.11   3.7.11-6
ii  libgnuradio-pmt3.7.11 3.7.11-6
ii  libgnuradio-qtgui3.7.11   3.7.11-6
ii  libgnuradio-runtime3.7.11 3.7.11-6
ii  libgnuradio-trellis3.7.11 3.7.11-6
ii  libgnuradio-uhd3.7.11 3.7.11-6
ii  libgnuradio-video-sdl3.7.11   3.7.11-6
ii  libgnuradio-vocoder3.7.11 3.7.11-6
ii  libgnuradio-wavelet3.7.11 3.7.11-6
ii  libgnuradio-wxgui3.7.11   3.7.11-6
ii  libgnuradio-zeromq3.7.11  3.7.11-6
ii  libgsl23  2.4+dfsg-6
ii  libgslcblas0  2.4+dfsg-6
ii  libgsm1   1.0.13-4+b2
ii  libjack-jackd2-0 [libjack-0.125]  1.9.10+20150825git1ed50c92~dfsg-5
ii  liblog4cpp5v5 1.1.1-3
ii  libportaudio2 19.6.0-1
ii  libpython2.7  2.7.14-4
ii  libqt5core5a  5.9.2+dfsg-6
ii  libqt5gui55.9.2+dfsg-6
ii  libqt5widgets55.9.2+dfsg-6
ii  libqwt-qt5-6  6.1.2-6
ii  libsdl1.2debian   1.2.15+dfsg2-0.1
ii  libstdc++67.2.0-18
ii  libuhd003.010.002 3.10.2.0-3
ii  libusb-1.0-0  2:1.0.21-2
ii  libvolk1-bin  1.3-2
ii  libvolk1.31.3-2
ii  libzmq5   4.2.3-1+b1
ii  python2.7.14-4
ii  python-cheetah2.4.4-4
ii  python-gtk2   2.24.0-5.1+b1
ii  python-lxml   4.1.0-1
ii  python-numpy  1:1.13.3-2
ii  python-opengl 3.1.0+dfsg-1
ii  python-sip4.19.6+dfsg-1
ii  python-wxgtk3.0   3.0.2.0+dfsg-6
ii  python-zmq16.0.2-2+b1

Versions of packages gnuradio recommends:
ii  gnuradio-dev   3.7.11-6
ii  python-matplotlib  2.0.0+dfsg1-2+b1
ii  python-networkx1.11-2
ii  python-pyqt5   5.9.2+dfsg-1
pn  python-qwt-qt5 
ii  python-scipy   0.19.1-1
ii  python-tk  2.7.14-1
ii  rtl-sdr0.5.3-13
ii  uhd-host   3.10.2.0-3

Versions of packages gnuradio suggests:
ii  gr-fosphor  3.7.0.2.7b6b996-2
ii  gr-osmosdr  0.1.4-14

-- no debconf information



Bug#728354: inkscape: segfault on importing from Open Clip Art Library

2013-10-30 Thread Vasil Velichkov
Package: inkscape
Version: 0.48.3.1-1.3
Severity: important

Dear Maintainer,

Here are the steps that I used to reproduce the bug on my machine.

* Click menu “File” -- “Import from Open Clip Art” 
* Type Tubo de Ensaio
* Click Search
* Select the fist or second item in the list

X dialog appears: “Inkscape encountered an internal error and will close
now

The console output:

 Emergency save activated!
 Emergency save completed. Inkscape will close now.
 If you can reproduce this crash, please file a bug at www.inkscape.org
 with a detailed description of the steps leading to the crash, so we can
 fix it.
 Segmentation fault (core dumped)

I have recompiled the package from source in order to get usable backtrace

 DEB_BUILD_OPTIONS=nostrip noopt fakeroot apt-get -b source inkscape

And here is the backtrace:

$ gdb inkscape core 
GNU gdb (GDB) 7.4.1-debian
Copyright (C) 2012 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.
For bug reporting instructions, please see:
http://www.gnu.org/software/gdb/bugs/...
Reading symbols from /usr/bin/inkscape...done.
[New LWP 16264]

warning: Can't read pathname for load map: Input/output error.
[Thread debugging using libthread_db enabled]
Using host libthread_db library /lib/x86_64-linux-gnu/libthread_db.so.1.
Core was generated by `inkscape'.
Program terminated with signal 11, Segmentation fault.
#0  __strcmp_sse42 () at ../sysdeps/x86_64/multiarch/strcmp.S:260
260 ../sysdeps/x86_64/multiarch/strcmp.S: No such file or directory.
(gdb) bt
#0  __strcmp_sse42 () at ../sysdeps/x86_64/multiarch/strcmp.S:260
#1  0x014269d2 in cr_rgb_set_from_name (a_this=0x7fff53355ad0, 
a_color_name=0x7db9a20 none) at libcroco/cr-rgb.c:422
#2  0x7fad31950aff in rsvg_css_parse_color (str=optimized out, 
inherit=0x7db97e4) at rsvg-css.c:380
#3  0x7fad319683a0 in rsvg_parse_style_pair (important=0, value=0x7db9a20 
none, name=0x7db9980 stop-color, state=0x7db9640, ctx=0x6213450)
at rsvg-styles.c:756
#4  rsvg_parse_style_pair (ctx=0x6213450, state=0x7db9640, name=0x7db9980 
stop-color, value=0x7db9a20 none, important=0) at rsvg-styles.c:463
#5  0x7fad31969780 in rsvg_parse_style (ctx=0x6213450, state=0x7db9640, 
str=optimized out) at rsvg-styles.c:972
#6  0x7fad31952734 in rsvg_stop_set_atts (self=0x7db95e0, ctx=0x6213450, 
atts=0x6b948c0) at rsvg-paint-server.c:206
#7  0x7fad3196c052 in rsvg_node_set_atts (atts=0x6b948c0, ctx=0x6213450, 
node=0x7db95e0) at rsvg-base.c:1952
#8  rsvg_standard_element_start (ctx=0x6213450, name=optimized out, 
atts=0x6b948c0) at rsvg-base.c:283
#9  0x7fad3196f548 in rsvg_start_element (data=0x6213450, name=optimized 
out, atts=optimized out) at rsvg-base.c:647
#10 0x7fad46eec668 in xmlParseStartTag__internal_alias 
(ctxt=ctxt@entry=0x7d6e450) at ../../parser.c:8411
#11 0x7fad46ef4ff0 in xmlParseTryOrFinish (ctxt=ctxt@entry=0x7d6e450, 
terminate=terminate@entry=0) at ../../parser.c:11120
#12 0x7fad46ef5d61 in xmlParseChunk__internal_alias (ctxt=0x7d6e450, 
chunk=0x7fff53356160 ?xml version=\1.0\ encoding=\UTF-8\ 
standalone=\no\?\n!-- Created with Inkscape (http://www.inkscape.org/) 
--\nsvg xmlns:dc=\http://purl.org/dc/elements/1.1/\; 
xmlns:cc=\http://web.resource.org/cc/\;..., size=28252, terminate=0) at 
../../parser.c:11897
#13 0x7fad3196ecef in rsvg_handle_write_impl (error=0x7fff533671f8, 
count=28252, 
buf=0x7fff53356160 ?xml version=\1.0\ encoding=\UTF-8\ 
standalone=\no\?\n!-- Created with Inkscape (http://www.inkscape.org/) 
--\nsvg xmlns:dc=\http://purl.org/dc/elements/1.1/\; 
xmlns:cc=\http://web.resource.org/cc/\;..., handle=0x6213450) at 
rsvg-base.c:1121
#14 rsvg_handle_write (handle=0x6213450, 
buf=0x7fff53356160 ?xml version=\1.0\ encoding=\UTF-8\ 
standalone=\no\?\n!-- Created with Inkscape (http://www.inkscape.org/) 
--\nsvg xmlns:dc=\http://purl.org/dc/elements/1.1/\; 
xmlns:cc=\http://web.resource.org/cc/\;..., count=28252, 
error=0x7fff533671f8) at rsvg-base.c:1680
#15 0x7fad31b7dd51 in gdk_pixbuf__svg_image_load_increment (data=0x7ce5820, 
buf=0x7fff53356160 ?xml version=\1.0\ encoding=\UTF-8\ 
standalone=\no\?\n!-- Created with Inkscape (http://www.inkscape.org/) 
--\nsvg xmlns:dc=\http://purl.org/dc/elements/1.1/\; 
xmlns:cc=\http://web.resource.org/cc/\;..., size=28252, error=0x7fff533671f8) 
at io-svg.c:135
#16 0x7fad43df2394 in ?? () from 
/usr/lib/x86_64-linux-gnu/libgdk_pixbuf-2.0.so.0
#17 0x7fad43df25ac in gdk_pixbuf_new_from_file () from 
/usr/lib/x86_64-linux-gnu/libgdk_pixbuf-2.0.so.0
#18 0x7fad46332a21 in Gdk::Pixbuf::create_from_file(std::string const) () 
from /usr/lib/libgdkmm-2.4.so.1
#19 0x0104f18b in Inkscape::UI::Dialog::SVGPreview::showImage 

Bug#728354: inkscape: segfault on importing from Open Clip Art Library

2013-10-30 Thread Vasil Velichkov
Package: inkscape
Version: 0.48.3.1-1.3
Followup-For: Bug #728354

Dear Maintainer,

I was able to fix the problem.
Patch attached.

Cheers

P.S. The branch master.wip is missing

$ cat debian/gbp.conf
 debian-branch = master.wip

$ git branch -r
  origin/HEAD - origin/master
  origin/master
  origin/pristine-tar
  origin/upstream
From 32d391e4fac4a65bbb8377d844f014ffa0c6ed95 Mon Sep 17 00:00:00 2001
From: Vasil Velichkov vvvelich...@gmail.com
Date: Thu, 31 Oct 2013 05:03:11 +0200
Subject: [PATCH] Properly check gv_standard_colors array bounds

This fixes a segmentation fault.

Closes: #728354
---
 src/libcroco/cr-rgb.c |4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/libcroco/cr-rgb.c b/src/libcroco/cr-rgb.c
index 893c208..b7f89a5 100644
--- a/src/libcroco/cr-rgb.c
+++ b/src/libcroco/cr-rgb.c
@@ -418,14 +418,14 @@ cr_rgb_set_from_name (CRRgb * a_this, const guchar * a_color_name)
 
 g_return_val_if_fail (a_this  a_color_name, CR_BAD_PARAM_ERROR);
 
-for (i = 0; i  sizeof (gv_standard_colors); i++) {
+for (i = 0; i  (sizeof (gv_standard_colors) / sizeof (gv_standard_colors[0])); i++) {
 if (!strcmp ((char *)a_color_name, gv_standard_colors[i].name)) {
 cr_rgb_set_from_rgb (a_this, gv_standard_colors[i]);
 break;
 }
 }
 
-if (i  sizeof (gv_standard_colors))
+if (i  (sizeof (gv_standard_colors) / sizeof (gv_standard_colors[0])))
 status = CR_OK;
 else
status = CR_UNKNOWN_TYPE_ERROR;
-- 
1.7.10.4