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#24601 - [qt] Segmentation fault with qmlviewer

Attached to Project: Arch Linux
Opened by Matteo Agostinelli (matteo81) - Monday, 06 June 2011, 14:34 GMT
Last edited by Andrea Scarpino (BaSh) - Thursday, 09 June 2011, 13:24 GMT
Task Type Bug Report
Category Upstream Bugs
Status Closed
Assigned To Andrea Scarpino (BaSh)
Architecture All
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

I get segmentation faults on several qml files (provided in the Qt examples and demos).

Example:
agostine@es-lap11 /usr/share/doc/qt/demos/declarative/calculator> qmlviewer calculator.qml
[1] 4341 segmentation fault qmlviewer calculator.qml

I also have a local build of Qt v4.7.1 installed, and with that the examples/demos are running fine

Package version:
Name : qt
Version : 4.7.3-1
URL : http://qt.nokia.com/

Steps to reproduce:
cd /usr/share/doc/qt/demos/declarative/calculator
qmlviewer calculator.qml
This task depends upon

Closed by  Andrea Scarpino (BaSh)
Thursday, 09 June 2011, 13:24 GMT
Reason for closing:  Fixed
Additional comments about closing:  qt 4.7.3-3
Comment by Andrea Scarpino (BaSh) - Tuesday, 07 June 2011, 10:30 GMT
there is some issue with the qt-private-headers

0x00007ffff7a7a69a in disconnect (this=0xa2e390, instrIndex=<value optimized out>, context=0x9ef6f0, error=0x9df400, scope=0x9ed1f0, output=0x9ed1f0, storeFlags=...)
at ../../include/QtDeclarative/private/../../../src/declarative/qml/qdeclarativenotifier_p.h:206
206 ../../include/QtDeclarative/private/../../../src/declarative/qml/qdeclarativenotifier_p.h: No such file or directory.
in ../../include/QtDeclarative/private/../../../src/declarative/qml/qdeclarativenotifier_p.h
Comment by Matteo Agostinelli (matteo81) - Tuesday, 07 June 2011, 11:32 GMT
The problem still persists with qt 4.7.3-2
Comment by Andrea Scarpino (BaSh) - Tuesday, 07 June 2011, 11:47 GMT
yes, that fixes an issue with KDEPIM 4.6
Comment by Logan McNaughton (loganmc10) - Tuesday, 07 June 2011, 13:11 GMT
I believe this issue also affects qtcreator, I reported a bug there where Qtcreator segfaults everytime you try to use QT Quick Designer to edit a QML file. Still happens with 4.7.3-2
Comment by Sven-Hendrik Haase (Svenstaro) - Tuesday, 07 June 2011, 22:49 GMT
This bug prevents a fairly important aspect of the new qt from working, it should be given a higher priority. It does indeed affect qtcreator.
Comment by Logan McNaughton (loganmc10) - Wednesday, 08 June 2011, 02:42 GMT
True that, according to Nokia: "We should expect that over time all UIs will be written in QML". And it doesn't even work in the version of Qt packaged with Arch!
Comment by Andrea Scarpino (BaSh) - Wednesday, 08 June 2011, 08:26 GMT
I tried every qml and only calculator, twitter and rssnews crash. Maybe could be related to this upstream bug: http://bugreports.qt.nokia.com/browse/QTBUG-18906
Comment by Matteo Agostinelli (matteo81) - Wednesday, 08 June 2011, 08:51 GMT
Actually, it crashed also on the "getting started" tutorial (/usr/share/doc/qt/examples/tutorials/gettingStarted/gsQml) which is how I encountered the bug. I haven't tried all the 'declarative' examples (/usr/share/doc/qt/examples/declarative, not demos) so there could be more.

However, it looks like that this bug is related to the mentioned upstream bug. My local build of 4.7.1, which is working, was compiled with gcc 4.5.
Comment by Andrea Scarpino (BaSh) - Wednesday, 08 June 2011, 09:06 GMT
  • Field changed: Category (Packages: Extra → Upstream Bugs)
  • Field changed: Architecture (x86_64 → All)
  • Field changed: Severity (Medium → High)
confirmed upstream. Downgrading to 4.7.2-6 (built with gcc 4.5) fixes this.
also see http://bugreports.qt.nokia.com/browse/QTBUG-19736
Comment by Matteo Agostinelli (matteo81) - Thursday, 09 June 2011, 12:52 GMT
The issue is not fixed in 4.7.3-3 for me.
Comment by Andrea Scarpino (BaSh) - Thursday, 09 June 2011, 13:03 GMT
The QtDeclarative module doesn't crash anymore but the tutorial is broken:
$ qmlviewer /usr/share/doc/qt/examples/tutorials/gettingStarted/gsQml/texteditor.qml
file:///usr/share/doc/qt/examples/tutorials/gettingStarted/gsQml/texteditor.qml:42:1: module ".usr.share.doc.qt.examples.tutorials.gettingStarted.gsQml.core" plugin "FileDialog" not found
import "core"
^
Comment by Matteo Agostinelli (matteo81) - Thursday, 09 June 2011, 13:09 GMT
Actually you have to compile a plugin (written in C++) to build the tutorial. Do a qmake, make and then qmlviewer to run the tutorial correctly.
However I am still getting a segmentation fault.

agostine@es-lap11 ~/src/qtquick/gsQml> qmlviewer texteditor.qml
[1] 9510 segmentation fault qmlviewer texteditor.qml

And I am still getting a segfault on the calculator demo as well.
Comment by Andrea Scarpino (BaSh) - Thursday, 09 June 2011, 13:11 GMT
You are right, but I built the tutorial (qmake & make) then qmlviewer texteditor.qml and it works here.
Comment by Matteo Agostinelli (matteo81) - Thursday, 09 June 2011, 13:21 GMT
Somehow, I thought I upgraded to 4.3.3 but I didn't, sorry for that. Now I upgraded correctly and everything is working fine. You can close this report as far as I am concerned.
BTW, thanks for your help. You managed to solve this issue really quickly!

A happy Arch user

Loading...