IconAndLink.qml:39:5: QML QQuickImage: Invalid image provider: image://scaling/1//

Bug #1505597 reported by Cris Dywan
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
qtcreator-plugin-ubuntu (Ubuntu)
New
Undecided
Unassigned
ubuntu-ui-toolkit (Ubuntu)
New
Undecided
Unassigned

Bug Description

I'm seeing a huge amount of image loading errors of the type

file:///usr/ubuntu-sdk-ide/share/qtcreator/welcomescreen/widgets/IconAndLink.qml:39:5: QML QQuickImage: Invalid image provider: image://scaling/1//usr/ubuntu-sdk-ide/share/qtcreator/welcomescreen/widgets/images/icons/onlineCommunity.png

with different filenames.

Note: QT_DEVICE_PIXEL_RATIO=2

The bug fix is to add

import Ubuntu.Components 1.2

to

/usr/ubuntu-sdk-ide/share/qtcreator/welcomescreen/widgets/IconAndLin
k.qml

Otherwise there is a race in loading the image provider depending on other code. This is expected because the loader is part of the UITK.

Cris Dywan (kalikiana)
description: updated
Cris Dywan (kalikiana)
description: updated
Revision history for this message
Benjamin Zeller (zeller-benjamin) wrote :

The proposed solution is not a bugfix but more a workaround. The /usr/ubuntu-sdk-ide/share/qtcreator/welcomescreen/widgets/IconAndLink.qml is a upstream source file and should not need to import UITK.

Can we somehow get the same behaviour in a different way?

Revision history for this message
Cris Dywan (kalikiana) wrote :

I assumed you were using the scaling image provider intentionally. if you're not, there must be a chance Image.source extension is loaded due to an import elsewhere without the image loader being in place - maybe ucqquickimageextension.cpp should check http://doc.qt.io/qt-5/qqmlengine.html#imageProvider before using it?

Revision history for this message
Benjamin Zeller (zeller-benjamin) wrote :

Adding ubuntu-ui-toolkit to the affected packages.
This should be fixed in the toolkit ultimately because mixing different QML toolkits will be common
at least on desktop (using Qt Controls)

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.