Bug 6782 - Attempts to engrave a .ly file cause a crash and generate a bug report
Summary: Attempts to engrave a .ly file cause a crash and generate a bug report
Status: RESOLVED DUPLICATE of bug 8034
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: 2
Hardware: i586 Linux
Priority: Normal normal
Target Milestone: ---
Assignee: Mageia Bug Squad
QA Contact:
URL:
Whiteboard:
Keywords: Triaged
Depends on: 8034
Blocks:
  Show dependency treegraph
 
Reported: 2012-07-14 23:21 CEST by Doug Laidlaw
Modified: 2012-11-13 01:57 CET (History)
4 users (show)

See Also:
Source RPM: frescobaldi-2.0.4-1.mga2.src.rpm
CVE:
Status comment:


Attachments

Description Doug Laidlaw 2012-07-14 23:21:54 CEST
Description of problem:

I don't use frescobaldi to compose from scratch, only to edit files and print them.  Altering an existing .ly file, changes were saved.  The following applies even to an unchanged .ly file.

On attempting to run "Preview" the program generated a bug report as follows:

"Frescobaldi: 2.0.4

Python: 2.7.3 -- Qt: 4.8.0 -- PyQt4: 4.9.1 -- sip: 4.13.2
OS: Linux-3.3.6-server-2.mga2-i686-with-mandrake-2-Official

Traceback (most recent call last):
  File
"/usr/lib/python2.7/site-packages/frescobaldi_app/musicview/widget.py",
line 112, in openDocument self.view.load(document) File
"/usr/lib/python2.7/site-packages/frescobaldi_app/qpopplerview/view.py",
line 117, in load self.surface().pageLayout().load(document) File
"/usr/lib/python2.7/site-packages/frescobaldi_app/qpopplerview/layout.py",
line 324, in load p.setScale(self._scale) File
"/usr/lib/python2.7/site-packages/frescobaldi_app/qpopplerview/page.py",
line 129, in setScale self.computeSize() File
"/usr/lib/python2.7/site-packages/frescobaldi_app/qpopplerview/page.py",
line 122, in computeSize x = round(self._pageSize.width() * xdpi / 72.0
* self._scale) AttributeError: 'Scope' object has no attribute 'width'

Optionally describe below what you were doing:


transposing from D to E flat.  That step was O.K.  Started preview: then
got error message.

Ran convert-ly, ran OK, saved.  Same error on preview.

OS is Mageia 2 Official.  I don't know why mandrake is mentioned."

This was emailed to the developer, who replied:

"This occurs when python-poppler-qt4 links to the wrong version of SIP.

Probably some that package needs to be re-installed (and old versions
of it and SIP removed)"

I have no old versions of SIP, only python-sip-4.13.2-1.mga2

In addition, there are visual artefacts, pieces of the splash screen (I think) showing on the icon bar and through the bug report window.



How reproducible:  Any attempt to run "Preview."


Steps to Reproduce:
1.
2.
3.
Manuel Hiebel 2012-07-15 15:19:13 CEST

CC: (none) => dmorganec, fundawang

Comment 1 Doug Laidlaw 2012-07-20 13:08:14 CEST
In case it was something to do with the Frescobaldi RPM, I tried building the tarball and running that without installing it.  It gives me a different error:

Traceback (most recent call last):
  File "/home/doug/builds/frescobaldi-2.0.6/frescobaldi_app/musicview/widget.py", line 112, in openDocument
    self._links = pointandclick.links(document)
  File "/home/doug/builds/frescobaldi-2.0.6/frescobaldi_app/musicview/pointandclick.py", line 75, in links
    l = _cache[document] = Links(document)
  File "/home/doug/builds/frescobaldi-2.0.6/frescobaldi_app/musicview/pointandclick.py", line 95, in __init__
    m = textedit_match(link.url())
TypeError: expected string or buffer


HTH,

Doug.
Comment 2 Doug Laidlaw 2012-07-22 04:11:18 CEST
After the upgrade of Qt, just installed, the original error message no longer comes up.  Instead the error message in Comment 1 appears twice, once on opening a file, and once on clicking Preview.  The progress pane shows that the pdf is indeed generated (which I have confirmed.)  It sounds like a problem in rendering the PDF.  The pieces of splash screen still appear in the menu (the main one looks like a black version of the Frescobaldi logo, a bit like a car tyre,) another graphical issue.

A different bug?
Comment 3 Richard Chonak 2012-10-14 22:07:31 CEST
A similar error message is discussed here:
https://groups.google.com/forum/#!msg/frescobaldi/FNR8Aor9UPE/4viWj8rJOiEJ

Wilbert Berendsen (http://www.wilbertberendsen.nl) wrote:
"This is related to python-poppler-qt4 not being compiled with the same
 PyQt4 version that is used.
 So python-poppler-qt4 must be recompiled with the current PyQt4 version!"

CC: (none) => rac

Comment 4 Doug Laidlaw 2012-10-14 22:29:07 CEST
Slightly different, but sounds like the same problem.  That is why I compiled Frescobaldi from source.  Seems as though if I compile python-poppler-qt4 from source as well, everything will become consistent.  Must give it a try.  It has no dependencies.
Comment 5 Doug Laidlaw 2012-10-14 22:32:58 CEST
Google Groups is playing Windows and telling me that I don't need to see the referenced link, but I saw one like it.
Comment 6 Doug Laidlaw 2012-10-14 22:51:15 CEST
Unfortunately, when trying to compile python-poppler-qt4 I am getting a heap of error messages such as:

undefined reference to `qt_assert_x(char const*, char const*, char const*, int)'

Am I missing a Qt package?  No failed dependencies showed up during the compile.
Comment 7 Richard Chonak 2012-10-14 23:09:51 CEST
Here's the text of the Google Groups post, in case the link above is not working.  


Subject: Re: [Frescobaldi 2.0.0] AttributeError: 'Scope' object has no attribute 'width'

Jan 9
Op Fri, 06 Jan 2012 18:51:25 -0800
Bernardo Barros <ma...@bbarros.com> schreef:

> Frescobaldi: 2.0.0Python: 2.7.2 -- Qt: 4.8.0 -- PyQt4: 4.9 -- sip:
> 4.13.1OS:
> Linux-3.0-rt-x86_64-Intel-R-_Core-TM-_i7_CPU_Q_720_@_1.60GHz-with-glibc2.2.5Traceback
> (most recent call last):  File
> "/usr/lib/python2.7/site-packages/frescobaldi_app/musicview/__init__.py",
> line 102, in openDocument    self.widget().openDocument(doc)  File
> "/usr/lib/python2.7/site-packages/frescobaldi_app/musicview/widget.py",
> line 112, in openDocument    self.view.load(document)  File
> "/usr/lib/python2.7/site-packages/frescobaldi_app/qpopplerview/view.py",
> line 117, in load    self.surface().pageLayout().load(document)  File
> "/usr/lib/python2.7/site-packages/frescobaldi_app/qpopplerview/layout.py",
> line 324, in load    p.setScale(self._scale)  File
> "/usr/lib/python2.7/site-packages/frescobaldi_app/qpopplerview/page.py",
> line 129, in setScale    self.computeSize()  File
> "/usr/lib/python2.7/site-packages/frescobaldi_app/qpopplerview/page.py",
> line 122, in computeSize    x = round(self._pageSize.width() * xdpi /
> 72.0 * self._scale)AttributeError: 'Scope' object has no attribute
> 'width'Optionally describe below what you were doing:
>

This is related to python-poppler-qt4 not being compiled with the same
PyQt4 version that is used.

So python-poppler-qt4 must be recompiled with the current PyQt4 version!

-- 
Wilbert Berendsen
(http://www.wilbertberendsen.nl)

===========

I haven't tried yet, but you may need some of these to compile frescobaldi:

libqt4-dev
python-qt4-dev
python-sip-dev 
libpoppler-qt4-dev 
libqt4-core
python-sip4-dev
Philippe Didier 2012-11-10 16:54:50 CET

Depends on: (none) => 8034

Manuel Hiebel 2012-11-11 00:03:38 CET

Keywords: (none) => Triaged

Comment 8 Philippe Didier 2012-11-12 19:33:47 CET
(In reply to comment #7)
Hi Richard ...
> 
> This is related to python-poppler-qt4 not being compiled with the same
> PyQt4 version that is used.
> 
> So python-poppler-qt4 must be recompiled with the current PyQt4 version!
> 
> -- 
> Wilbert Berendsen
> (http://www.wilbertberendsen.nl)
> 

He's right !
> ===========
> 
> I haven't tried yet, but you may need some of these to compile frescobaldi:
> 
> libqt4-dev
> python-qt4-dev
> python-sip-dev 
> libpoppler-qt4-dev 
> libqt4-core
> python-sip4-dev

No need to compile frescobaldi :

Just need to rebuild python-poppler-qt4 inside Mageia2
it's easy to do : just need to change the release number from 1 to 2 in the spec file of its srpm... and it's OK

see bug 8034

CC: (none) => philippedidier

Comment 9 Funda Wang 2012-11-13 01:57:27 CET

*** This bug has been marked as a duplicate of bug 8034 ***

Status: NEW => RESOLVED
Resolution: (none) => DUPLICATE


Note You need to log in before you can comment on or make changes to this bug.