[PyQt] Regression with guiqwt somewhere after PyQt4 4.10

Scott Kitterman debian at kitterman.com
Sat Nov 9 17:47:02 GMT 2013


Below is a part of an Ubuntu bug report.  You can find a reproduction test case 
at https://bugs.launchpad.net/ubuntu/+source/python-qt4/+bug/1249571/+attachment/3903922/+files/test_guiqwt.py

Scott K
----------  Forwarded Message  ----------

Subject: [Bug 1249571] Re: Segmentation fault on Ubuntu 13.10 when using 
guiqwt
Date: Saturday, November 09, 2013, 16:52:07
From: Ningfei Li <1249571 at bugs.launchpad.net>
To: ubuntu at kitterman.com

Hi Scott,

Thanks again for your quick reply! Here I can give a short test script to 
reproduce this problem (as in attachment).
It's basically a test case provided in guiqwt.tests (histogram.py). 
During debugging, it will stucks at line 12: win = CurveDialog(edit=False, 
toolbar=True, wintitle="Histogram test")
Then you trace into it to plot.py, curve.py and then baseplot.py. Finally you 
will be here in baseplot.py: self.emit(SIG_PLOT_LABELS_CHANGED, self) in 
function: def update_axis_style(self, axis_id)

Package: python-qt4 (4.10.3-1ubuntu1)
Package: python-sip (4.15.2-1ubuntu1)

reverting to python-qt4 (4.10-0ubuntu3) ) and python-sip
(4.14.5-0ubuntu1) then everything works fine.

** Attachment added: "test_guiqwt.py"
   https://bugs.launchpad.net/ubuntu/+source/python-qt4/+bug/1249571/+attachment/3903922/+files/test_guiqwt.py

-- 
You received this bug notification because you are a member of Ubuntu
Pythoneers, which is subscribed to python-qt4 in Ubuntu.
https://bugs.launchpad.net/bugs/1249571

Title:
  Segmentation fault on Ubuntu 13.10 when using guiqwt

Status in “python-qt4” package in Ubuntu:
  New

Bug description:
  Ubuntu 13.10
  Package: python-qt4 (4.10.3-1ubuntu1)
  Package: python-sip (4.15.2-1ubuntu1) 

  In Python, when I tried "guiqwt.tests.run()" and ran any script with
  plot function in it, it would cause the segmentation fault. But when I
  revert python-qt4 adn python-sip to the version in Ubuntu 13.04:
  python-qt4 (4.10-0ubuntu3) ) and python-sip (4.14.5-0ubuntu1),
  everything works fine.

  I traced the bug, found that: with new version of python-qt4 and
  python-sip, the guiqwt script will stuck there in this line:
  self.emit(SIG_PLOT_LABELS_CHANGED, self).

  After googling it, I find this segfault problem also affect some other 
users/packages:
  https://bbs.archlinux.org/viewtopic.php?id=168667
  https://bugs.archlinux.org/task/36652

  So this seems not a bug of python-guiqwt but a build problem with the
  python-qt4 and python-sip.

  I tried to build latest snapshot version of PyQt and sip and install
  them locally. But this seg fault still exist.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/python-qt4/+bug/1249571/+subscriptions
-----------------------------------------


More information about the PyQt mailing list