Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#4328 - PyQT (and/or SIP) broken

Attached to Project: Arch Linux
Opened by Michal Krenek (Mikos) - Friday, 31 March 2006, 20:20 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Tobias Powalowski (tpowa)
Architecture not specified
Severity Critical
Priority Normal
Reported Version 0.7.1 Noodle
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

After latest update to pyqt 3.16-1, sip 4.4-1 (and also qt 3.3.6-2, but I think this bug is not related to Qt), my Python/PyQT programs doesn't work anymore. If I call for example QWidgetFactory.create("form.ui") from qtui module, I get SIGSEGV and Python is killed.

From gdb I get this:

(no debugging symbols found)
.....
.....
(no debugging symbols found)

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1211967808 (LWP 19040)]
0xb7f92531 in initsip () from /usr/lib/python2.4/site-packages/sip.so

So I think this is caused by SIP, but it can be also PyQT.
Also Eric3 (Python IDE written in PyQT) now doesn't work ok (integrated interactive Python console and debugging isn't working), maybe this is also related.
This task depends upon

Closed by  Tobias Powalowski (tpowa)
Saturday, 10 June 2006, 05:32 GMT
Reason for closing:  Fixed
Comment by Tobias Powalowski (tpowa) - Saturday, 01 April 2006, 07:35 GMT
does a rebuild of eric help?
sorry i don't use those programs and only package them so it depends on you how fast this is solved.
Comment by Tobias Powalowski (tpowa) - Saturday, 01 April 2006, 11:01 GMT
updating eric now to .2 release in changelog there are fixes for new sip and pyqt mentioned hope this helps for your problem.
Comment by Michal Krenek (Mikos) - Saturday, 01 April 2006, 12:06 GMT
Thanks for update, now Eric3 works again :-)

But there is still that problem with SIP/PyQT, all my programs which uses QWidgetFactory are giving me SIGSEGV.
Comment by Tobias Powalowski (tpowa) - Saturday, 01 April 2006, 12:15 GMT
perhaps this part has changed, don't know, hplip works fine.
Comment by Michal Krenek (Mikos) - Saturday, 01 April 2006, 12:42 GMT
Well, I have posted this problem with SIGSEGV after calling QwidgetFactory.create() to PyQt/PyKDE mailing-list (I hope... I don't have too much experiences with mailing-lists, I have not subscribed to list, I simply send mail to pykde@mats.imk.fraunhofer.de address, which I have found at http://mats.imk.fraunhofer.de/mailman/listinfo/pykde). So I hope it will be resolved...
Comment by Michal Krenek (Mikos) - Tuesday, 04 April 2006, 14:38 GMT
This segmentation fault doesn't happen to PyQT and SIP developers, so this is clearly Arch Linux related bug, not upstream bug. But I am lost, I don't know where the problem can be.

But Phil Thompson (PyQT / SIP developer) suspect compiler (GCC 4.0.3)...
Comment by Tobias Powalowski (tpowa) - Tuesday, 04 April 2006, 14:43 GMT
updated today sip to latest version, perhaps this fixes the problems.
Comment by Michal Krenek (Mikos) - Tuesday, 04 April 2006, 15:17 GMT
I have tried SIP 4.4.1 yesterday (I have tried even latest CVS snapshot), but that segmentation fault is still there. Phil Thompson suspect compiler - there were problems with it in the past. I have searched SIP/PyQT/PyKDE mailing-list for problems with compiler (as Phil Thompson suggested), but didn't find anything relevant :-(
Comment by Michal Krenek (Mikos) - Tuesday, 04 April 2006, 17:49 GMT
Well, this is final answer from SIP/PyQT/PyKDE mailing-list:

On Tuesday 04 April 2006 5:58 pm, you wrote:
> On Tue, 4 Apr 2006 at 15:46:08, Phil Thompson wrote:
> > I'd suspect the compiler - search this list for problems with it.
>
> I have tried to search this list archives, but I have failed to find
> something which seems to be relevant to this problem. Please can you tell
> me what I should try to recompile to resolve this problem or find where the
> bug is? Or where some similar problem was discussed?

I can't diagnose a problem with your system. Google, or ask more specific
questions on the mailing list, or your distro's support.

Phil

So now I am really lost :-/ Google was first thing I have tried...
Comment by Tobias Powalowski (tpowa) - Tuesday, 04 April 2006, 17:54 GMT
well can you post a demo here, then i can check if it fails here too.
Comment by Michal Krenek (Mikos) - Tuesday, 04 April 2006, 19:10 GMT
Really simple demo example is in attachment. It is giving me segmantation fault, but it has worked for Phil Thompson without problems.
   form.py (0.4 KiB)
   form.ui (3.9 KiB)
Comment by Tobias Powalowski (tpowa) - Tuesday, 04 April 2006, 19:59 GMT
hmm well if i call form.py then i can draw a box,
./form.py: line 1: from: command not found
./form.py: line 2: from: command not found
./form.py: line 5: syntax error near unexpected token `('
./form.py: line 5: `class MyUI(QMainWindow):'
Comment by Tobias Powalowski (tpowa) - Tuesday, 04 April 2006, 20:01 GMT
hmm have you tried to recompile python?
perhaps python needs a rebuild with new gcc, don't know
running python form.py gave me a segmentation fault
Comment by Michal Krenek (Mikos) - Tuesday, 04 April 2006, 20:18 GMT
Rebuilding Python doesn't help.
Comment by Tobias Powalowski (tpowa) - Wednesday, 05 April 2006, 07:04 GMT
from qt changelog:
- QWidget
Fix right-to-left widget gravity bug.

perhaps sip needs changes for new qt.
Comment by Tobias Powalowski (tpowa) - Wednesday, 05 April 2006, 07:35 GMT
does it help to downgrade sip and pyqt?
Comment by Douglas Soares de Andrade (dsa) - Saturday, 10 June 2006, 01:47 GMT
Hi,

It worked for me with sip 4.4.4 and i had to re-generate the ui code with:

pyuic form.ui -x > form.py

After that, i did a python form.py and it worked again.
Comment by Tobias Powalowski (tpowa) - Saturday, 10 June 2006, 05:32 GMT
can confirm that this fixes it, thanks for the report

Loading...