File Manager fails to launch after r131 on desktop

Bug #1294365 reported by Nicholas Skaggs
This bug report is a duplicate of:  Bug #1295242: Repeater in Tabs doesn't work. Edit Remove
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ubuntu File Manager App
Fix Committed
Undecided
Unassigned

Bug Description

After the upgrade to qt 5.2, filemanager fails to load it's UI. All tests fails, and the app fails to run on the device. The traceback from the desktop is:

qmlscene ../../ubuntu-filemanager-app.qml
unity::action::ActionManager::ActionManager(QObject*):
 Could not determine application identifier. HUD will not work properly.
 Provide your application identifier in $APP_ID environment variable.
file:///usr/lib/x86_64-linux-gnu/qt5/qml/Ubuntu/Components/Tabs.qml:335: TypeError: Cannot call method 'indexOf' of undefined
Spacing for count 1 is -33 gu
Spacing for count 0 is -Infinity gu
file:///home/nskaggs/projects/ubuntutouch/ubuntu-filemanager-app/components/PlacesSidebar.qml:97:17: QML Image: Cannot open: file:///usr/share/icons/ubuntu-mobile/actions/scalable/arrow.svg
file:///home/nskaggs/projects/ubuntutouch/ubuntu-filemanager-app/components/PlacesSidebar.qml:97:17: QML Image: Cannot open: file:///usr/share/icons/ubuntu-mobile/actions/scalable/arrow.svg
file:///home/nskaggs/projects/ubuntutouch/ubuntu-filemanager-app/components/PlacesSidebar.qml:97:17: QML Image: Cannot open: file:///usr/share/icons/ubuntu-mobile/actions/scalable/arrow.svg
file:///home/nskaggs/projects/ubuntutouch/ubuntu-filemanager-app/components/PlacesSidebar.qml:97:17: QML Image: Cannot open: file:///usr/share/icons/ubuntu-mobile/actions/scalable/arrow.svg
file:///home/nskaggs/projects/ubuntutouch/ubuntu-filemanager-app/components/PlacesSidebar.qml:97:17: QML Image: Cannot open: file:///usr/share/icons/ubuntu-mobile/actions/scalable/arrow.svg
file:///home/nskaggs/projects/ubuntutouch/ubuntu-filemanager-app/components/PlacesSidebar.qml:97:17: QML Image: Cannot open: file:///usr/share/icons/ubuntu-mobile/actions/scalable/arrow.svg
file:///home/nskaggs/projects/ubuntutouch/ubuntu-filemanager-app/components/PlacesSidebar.qml:97:17: QML Image: Cannot open: file:///usr/share/icons/ubuntu-mobile/actions/scalable/arrow.svg
Spacing for count 1 is -33 gu
Spacing for count 0 is -Infinity gu
Spacing for count 1 is 67 gu
Spacing for count 2 is 28 gu
Spacing for count 3 is 15 gu
Spacing for count 4 is 8.5 gu
Spacing for count 5 is 4.6 gu
Spacing for count 6 is 2 gu
Spacing for count 7 is 0.14285714285714285 gu
Spacing for count 6 is 2 gu
file:///home/nskaggs/projects/ubuntutouch/ubuntu-filemanager-app/ubuntu-filemanager-app.qml:113: ReferenceError: settingsPage is not defined
file:///home/nskaggs/projects/ubuntutouch/ubuntu-filemanager-app/ubuntu-filemanager-app.qml:93: TypeError: Cannot read property 'opened' of null
file:///home/nskaggs/projects/ubuntutouch/ubuntu-filemanager-app/ubuntu-filemanager-app.qml:93: TypeError: Cannot read property 'opened' of null
Spacing for count 1 is 67 gu
Spacing for count 2 is 28 gu
Spacing for count 3 is 15 gu
Spacing for count 4 is 8.5 gu
Spacing for count 5 is 4.6 gu
Spacing for count 6 is 2 gu
Spacing for count 7 is 0.14285714285714285 gu
Spacing for count 6 is 2 gu

** (qmlscene:31326): WARNING **: Unable to register app: GDBus.Error:org.freedesktop.DBus.Error.InvalidArgs: Invalid application ID

The last good working version is rev 131. Rev 131 will launch and operate properly.

Related branches

summary: - Qt 5.2 break file manager
+ Qt 5.2 breaks file manager
Revision history for this message
Timo Jyrinki (timo-jyrinki) wrote : Re: Qt 5.2 breaks file manager

So is this on desktop only?

It seems to work ok on mako, and also all the tests are passing on images: http://ci.ubuntu.com/smokeng/trusty/touch/mako/245:20140318.2:20140304/7250/

Changed in ubuntu-filemanager-app:
status: New → Incomplete
Revision history for this message
Dimitri John Ledkov (xnox) wrote : Re: [Bug 1294365] [NEW] Qt 5.2 breaks file manager
Download full text (3.6 KiB)

On 18 March 2014 21:44, Nicholas Skaggs <email address hidden> wrote:
> Public bug reported:
>
> After the upgrade to qt 5.2, filemanager fails to load it's UI. All
> tests fails, and the app fails to run on the device. The traceback from
> the desktop is:
>
> qmlscene ../../ubuntu-filemanager-app.qml

That's an odd way to run the app.

Did you build a full .deb, installed it and run it "normally" e.g.
from /usr/bin/ubuntu-filemanager-app ?!

> unity::action::ActionManager::ActionManager(QObject*):
> Could not determine application identifier. HUD will not work properly.
> Provide your application identifier in $APP_ID environment variable.
> file:///usr/lib/x86_64-linux-gnu/qt5/qml/Ubuntu/Components/Tabs.qml:335: TypeError: Cannot call method 'indexOf' of undefined
> Spacing for count 1 is -33 gu
> Spacing for count 0 is -Infinity gu
> file:///home/nskaggs/projects/ubuntutouch/ubuntu-filemanager-app/components/PlacesSidebar.qml:97:17: QML Image: Cannot open: file:///usr/share/icons/ubuntu-mobile/actions/scalable/arrow.svg

Well, ubuntu-mobile-icons on my machine does not have such file.

I don't see anything "Qt5.2" failing here so far.

> file:///home/nskaggs/projects/ubuntutouch/ubuntu-filemanager-app/components/PlacesSidebar.qml:97:17: QML Image: Cannot open: file:///usr/share/icons/ubuntu-mobile/actions/scalable/arrow.svg
> file:///home/nskaggs/projects/ubuntutouch/ubuntu-filemanager-app/components/PlacesSidebar.qml:97:17: QML Image: Cannot open: file:///usr/share/icons/ubuntu-mobile/actions/scalable/arrow.svg
> file:///home/nskaggs/projects/ubuntutouch/ubuntu-filemanager-app/components/PlacesSidebar.qml:97:17: QML Image: Cannot open: file:///usr/share/icons/ubuntu-mobile/actions/scalable/arrow.svg
> file:///home/nskaggs/projects/ubuntutouch/ubuntu-filemanager-app/components/PlacesSidebar.qml:97:17: QML Image: Cannot open: file:///usr/share/icons/ubuntu-mobile/actions/scalable/arrow.svg
> file:///home/nskaggs/projects/ubuntutouch/ubuntu-filemanager-app/components/PlacesSidebar.qml:97:17: QML Image: Cannot open: file:///usr/share/icons/ubuntu-mobile/actions/scalable/arrow.svg
> file:///home/nskaggs/projects/ubuntutouch/ubuntu-filemanager-app/components/PlacesSidebar.qml:97:17: QML Image: Cannot open: file:///usr/share/icons/ubuntu-mobile/actions/scalable/arrow.svg
> Spacing for count 1 is -33 gu
> Spacing for count 0 is -Infinity gu
> Spacing for count 1 is 67 gu
> Spacing for count 2 is 28 gu
> Spacing for count 3 is 15 gu
> Spacing for count 4 is 8.5 gu
> Spacing for count 5 is 4.6 gu
> Spacing for count 6 is 2 gu
> Spacing for count 7 is 0.14285714285714285 gu
> Spacing for count 6 is 2 gu
> file:///home/nskaggs/projects/ubuntutouch/ubuntu-filemanager-app/ubuntu-filemanager-app.qml:113: ReferenceError: settingsPage is not defined
> file:///home/nskaggs/projects/ubuntutouch/ubuntu-filemanager-app/ubuntu-filemanager-app.qml:93: TypeError: Cannot read property 'opened' of null
> file:///home/nskaggs/projects/ubuntutouch/ubuntu-filemanager-app/ubuntu-filemanager-app.qml:93: TypeError: Cannot read property 'opened' of null

these seem qml / programming errors, maybe cause by previous warnings.

> Spacing for coun...

Read more...

summary: - Qt 5.2 breaks file manager
+ File Manager fails to launch after r131 on desktop
Revision history for this message
Dimitri John Ledkov (xnox) wrote :

Let's not put assumptions into the title of the bug report =)

Revision history for this message
Dimitri John Ledkov (xnox) wrote :

* Right the "arrow" icon is suppose to come from local ./icons/, it is included in the package but not loaded.

* ubuntu-filemanager-app.qml:113: ReferenceError: settingsPage is not defined, indeed I don't see were settingsPage is defined. Are there uncommitted / missing files?

* ubuntu-filemanager-app.qml:93: TypeError: Cannot read property 'opened' of null: did the toolbar api changed? cause that object appears to be null now, and thus one can't read any of its properties anymore.

-r131 does run against Qt5.2 fine, thus it's not a "qt5.2 problem". We should investigate r132 as it seems to introduce a lot of changes, which might be incomplete based on above comments.

Revision history for this message
Nicholas Skaggs (nskaggs) wrote :

Yes, r132 introduced many changes and seems to be the cause of the breakage.

I had jenkins run r131 with an updated cmake and it seems fine.
https://code.launchpad.net/~nskaggs/ubuntu-filemanager-app/revert-rev132/+merge/211636

Sorry for blaming qt5.2, that wasn't my intent :-)

@Timo, the version on the images is old (r99). I was hoping to update it and realized several things were broken and a new version couldn't be landed.

Revision history for this message
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote :

Fix committed into lp:ubuntu-filemanager-app at revision 141, scheduled for release in ubuntu-filemanager-app, milestone alpha-1

Changed in ubuntu-filemanager-app:
status: Incomplete → Fix Committed
Revision history for this message
Nicholas Skaggs (nskaggs) wrote :

A workaround was implemented by Michael which landed here:

https://bugs.launchpad.net/ubuntu-ui-toolkit/+bug/1295242

The bug itself was isolated and is now being tracked here:
https://bugs.launchpad.net/ubuntu-ui-toolkit/+bug/1295242

Thanks Michael!

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.