Frescobaldi crashes when compiling

Bug #1676474 reported by Hotteterre
32
This bug affects 6 people
Affects Status Importance Assigned to Milestone
Python
Invalid
Undecided
Unassigned
frescobaldi (Ubuntu)
Invalid
Undecided
Unassigned
python-poppler-qt5 (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

On Ubuntu 17.04 beta, Frescobaldi 3.0.0 reports an error on opening a score and when attempting to compile; after every attempto to compile, the program crashes. The error log reports:

Traceback (most recent call last):
  File "/usr/share/frescobaldi/frescobaldi_app/musicview/pointandclick.py", line 44, in links
    return _cache[document]
  File "/usr/lib/python3.5/weakref.py", line 394, in __getitem__
    return self.data[ref(key)]
KeyError: <weakref at 0x7f98152903b8; to 'Document' at 0x7f98732fd3a8>

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/share/frescobaldi/frescobaldi_app/musicview/widget.py", line 116, in openDocument
    self._links = pointandclick.links(document)
  File "/usr/share/frescobaldi/frescobaldi_app/musicview/pointandclick.py", line 54, in links
    t = textedit.link(link.url())
  File "/usr/share/frescobaldi/frescobaldi_app/textedit.py", line 48, in link
    m = textedit_match(url)
TypeError: expected string or bytes-like object

tags: added: pytohn3.5
tags: added: frescobaldi zesty
Revision history for this message
Hotteterre (luca-rossetto) wrote :

Another Frescobaldi user pointed out that the issue depends from the version of python-poppler-qt5 available in the repositories: https://github.com/wbsoft/frescobaldi/issues/838

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in frescobaldi (Ubuntu):
status: New → Confirmed
Changed in python-poppler-qt5 (Ubuntu):
status: New → Confirmed
Revision history for this message
John (jweber53) wrote :

I can open an existing file or start a new file without error, but ctrl-M to compose/preview gives this error. ctrl-shift-p to publish crashes frescobaldi. Ubuntu 17.04

Revision history for this message
Gilles TIAR (gilalya-h) wrote :

Hi. Is someone working to find a solution to that bug? It is not easy to use Frescobaldi/Lilypond with that problem. Thanks

Revision history for this message
John (jweber53) wrote :

I set up a new virtual Ubuntu 17.04 machine and I get the same errors. Ctrl-M and Shift-Ctrl-P both compile the file to PDF, but no preview. I open the created PDF in evince and mouse hovering over music elements will give the line and column location in the source code, so I can use Frescobaldi's IDE except for the viewer. It takes an extra Alt-C to close the error window each time and jumping between windows. It's still a pain compared to a fully functional Frescobaldi. I'm glad to test and provide more info.

Revision history for this message
Hotteterre (luca-rossetto) wrote :

Hello! I managed to resolve the issue updating python-poppler-qt5 to the version from Ubuntu 17.10:

https://packages.ubuntu.com/artful/python3-poppler-qt5

Now everything seems to work fine.

Revision history for this message
John (jweber53) wrote :

Updating python-poppler-qt5 to the version from Ubuntu 17.10 seems to have fixed it for me, too! Thanks for the fix, Hotteterre!

Revision history for this message
Gilles TIAR (gilalya-h) wrote :

Hi. Please, how do you update the present python-poppler-qt5 to the version from 17.10? What is the exact name of the new python? Thanks

Revision history for this message
Hotteterre (luca-rossetto) wrote :

Hi, John! Once you'll have downloaded the package from the link quoted in my previous message, you'll can proceed to install right-clicking on the package itself, and selecting from the menu «Open with Software Installer» (or something of that kind: I'm not sure because I'm writing from an Italian interface). In the Software Installer window, simply click on the «Install» button.

Or, if you prefer: from a terminal, go to the folder in which you have downloaded the package, and install it with the command

sudo dpkg -i <package name>

I hope it can be useful. If not, make me know if I can help you.

Revision history for this message
Gilles TIAR (gilalya-h) wrote :

Hi, the first method, that I already tried, did not respond, the second yes. Frescobaldi works now for me again.
Thanks Hotteterre

Revision history for this message
Hotteterre (luca-rossetto) wrote :

If I can go a little OT, my favourite installation app is Gdebi. You can find it in the repositories, and using it from the right click menu («Open with other application»). I find it lighter and more clearly , clearer and cleaner than Ubuntu's default Software Installer (that sometimes seems letting understand not very much what's actually doing).

Revision history for this message
Gilles TIAR (gilalya-h) wrote :

The more often, I use Synaptic instead of Ubuntu's default software installer. Does Gdebi presents benefits compare to Synaptic?

Revision history for this message
Hotteterre (luca-rossetto) wrote :

I prefer using Synaptic too. Gdebi is useful for installing a software from a local package (downloading the relative dependencies), but not from the repositories. It's only an installer, which doesn't consider other purposes than - indeed - installing packages; Synaptic has different functions.

Revision history for this message
Aikawa Takuya (riumutu) wrote :

Mr Hotteterre (a good name related to another great baroque composer!), thank you for good information as I am also experiencing the same problem.

Though I have not yet tested updating the python package, I wonder if the fixes in the Artful package will be introduced also through the ordinary periodical software updates on Zesty? Or should I manually install the package?

Revision history for this message
Hotteterre (luca-rossetto) wrote :

Dear Aikawa, unfortunately I don't know. All I can say is that with the 17.10 package I can work without major issues: some crash occurs again, but very sporadically - but it's sufficient paying attention to save the files often.
Yes, Hotteterre, the 'real' one, is a great composer!

Revision history for this message
John (jweber53) wrote :

Oops. I went to test things and started looking at version numbers, I think I saw a recent update on 17.04 for libpoppler-qt5 and got confused...Never mind what I said in my last post.

Revision history for this message
Christoph Wagner (wagner-naunhof) wrote :

The given solution to upgrade to the python3-poppler-qt5 of artful (0.24.2-3build1) did not work for me. I still get the same error in frescobaldi.

My Versions are:

Frescobaldi: 3.0.0
Python: 3.5.3
python-ly: 0.9.4
Qt: 5.7.1
PyQt: 5.7
sip: 4.18.1
poppler: 0.44.0
python-poppler-qt: 0.24.2
OS: Linux-4.10.0-28-generic-x86_64-with-Ubuntu-17.04-zesty

I downloaded the package python3-poppler-qt5 and installed it manually with dpkg.
$ sudo dpkg -i python3-poppler-qt5_0.24.2-3build1_amd64.deb

What did I wrong or what else could be broken?

$ apt show python3-poppler-qt5
Package: python3-poppler-qt5
Version: 0.24.2-3build1
Status: install ok installed
Priority: optional
Section: python
Source: python-poppler-qt5
Maintainer: Ubuntu Developers <email address hidden>
Original-Maintainer: Debian Python Modules Team <email address hidden>
Installed-Size: 795 kB
Depends: python3 (<< 3.7), python3 (>= 3.5~), sip-py3api-11.3, libc6 (>= 2.14), libgcc1 (>= 1:3.0), libpoppler-qt5-1 (>= 0.24.5), libstdc++6 (>= 5), python3-pyqt5
Homepage: https://github.com/wbsoft/python-poppler-qt5
Download-Size: unbekannt
APT-Manual-Installed: yes
APT-Sources: /var/lib/dpkg/status
Description: Python binding to Poppler-Qt5 C++ library (Python 3)
 Python binding to libpoppler-qt5 that aims for completeness and for being
 actively maintained. The bindings closely follow the C++ library API
 documented at http://people.freedesktop.org/~aacid/docs/qt5/ .
 .
 This package contains the Python 3 binding.

Revision history for this message
Gilles TIAR (gilalya-h) wrote :

Hi Christoph,

I am sorry you did not find yet a solution.

The only point I see in your mail is that your package is named "0.24.2-3build1". Mine is "0.24.2-3build2".

I don't know if it is relevant.

Revision history for this message
dino99 (9d9) wrote :
Changed in python-poppler-qt5 (Ubuntu):
status: Confirmed → Invalid
Changed in frescobaldi (Ubuntu):
status: Confirmed → Invalid
Changed in python:
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.