initial app surface size wrong

Bug #1606501 reported by dinamic
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Canonical System Image
Confirmed
Undecided
Unassigned
QtMir
Confirmed
High
Unassigned
qtmir (Ubuntu)
Confirmed
High
Unassigned
unity8 (Ubuntu)
Confirmed
High
Unassigned

Bug Description

ubuntu 16.10 - unity8.13+16.10.20160714+fix1-0ubuntu2~1

initial app surface size wrong
i don't know how to better describe this bug, PLEASE see the attached screenshot

note: if you resize the windows the app recovers and scales fine however if you reopen the app you get the same bug

Revision history for this message
dinamic (dinamic6661) wrote :
Revision history for this message
dinamic (dinamic6661) wrote :
Revision history for this message
dinamic (dinamic6661) wrote :
Revision history for this message
dinamic (dinamic6661) wrote :
Revision history for this message
dinamic (dinamic6661) wrote :
Revision history for this message
dinamic (dinamic6661) wrote :
Revision history for this message
Michał Sawicz (saviq) wrote :

Hmm weird, can't see that here.

Can you please:

$ rm ~/.cache/unity8/windowstatestorage.sqlite

And restart unity8? See if the problem persists?

Changed in unity8 (Ubuntu):
status: New → Incomplete
Revision history for this message
dinamic (dinamic6661) wrote :

tried that and did nothing (obviously), it's not a problem with initial window size

Revision history for this message
dinamic (dinamic6661) wrote :

the launcher menu is also wrong see screenshot.

it always opens in the same place upper left corner

Revision history for this message
Michał Sawicz (saviq) wrote :

The only idea I have is that your display scale (grid unit size) is being changed and gets broken... Can you reproduce this in clean user account?

Revision history for this message
dinamic (dinamic6661) wrote :
Revision history for this message
dinamic (dinamic6661) wrote :

i see this in unity8.log while playing with dotty

[2016-59-26:13:59:28.369] qtmir.applications: Application["com.ubuntu.developer.robert-ancell.dotty_dotty"]::setInitialSurfaceSize(size=QSize(-1, -1))
[2016-59-26:13:59:28.372] qtmir.surfaces: MirSurfaceItem::MirSurfaceItem
[2016-59-26:13:59:28.375] qtmir.surfaces: MirSurfaceItem::setSurface surface=QObject(0x0)
[2016-59-26:13:59:28.376] qtmir.surfaces: MirSurfaceItem::setOrientationAngle(0)
[2016-59-26:13:59:28.376] qtmir.surfaces: MirSurfaceItem::setSurface surface=QObject(0x0)
[2016-59-26:13:59:28.390] qtmir.applications: Application["com.ubuntu.developer.robert-ancell.dotty_dotty"]::setInitialSurfaceSize(size=QSize(80, 56))
[2016-59-26:13:59:28.404] unity.topsurfacelist: raiseId(id=10) - Model busy (modelState=1). Try again in the next event loop.
[2016-59-26:13:59:28.405] file:///usr/share/unity8//Stages/DesktopStage.qml:258:23: QML FocusScope: Binding loop detected for property "requestedY"
[2016-59-26:13:59:28.405] file:///usr/share/unity8//Stages/DesktopStage.qml:258:23: QML FocusScope: Binding loop detected for property "requestedX"
[2016-59-26:13:59:28.407] qtmir.surfaces: MirSurface[0x55da3257ac90,"unity8-dash"]::updateActiveFocus() unfocused
[2016-59-26:13:59:28.408] qtmir.applications: Application["com.ubuntu.developer.robert-ancell.dotty_dotty"]::setInitialSurfaceSize(size=QSize(801, 56))
[2016-59-26:13:59:28.409] qtmir.applications: Application["com.ubuntu.developer.robert-ancell.dotty_dotty"]::setInitialSurfaceSize(size=QSize(801, 637))

Revision history for this message
dinamic (dinamic6661) wrote :

and for the launcher's menu position i see this "file:///usr/share/unity8//Launcher/LauncherPanel.qml:761; TypeError: Type error

Revision history for this message
dinamic (dinamic6661) wrote :

761: property int itemCenter: item ? root.mapFromItem(quickList.item).y + (item.height /2) + quickList.item.offset : units.gu(1)

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Is Unity8 unconditionally resizing all app windows (to a wrong size) on start-up? That's what it feels like. But I assumed that was my fault for using --desktop_file_hint=unity8 on everything.

Changed in qtmir:
status: New → Confirmed
importance: Undecided → High
Changed in unity8 (Ubuntu):
importance: Undecided → High
status: Incomplete → Confirmed
Changed in qtmir (Ubuntu):
status: New → Confirmed
importance: Undecided → High
tags: added: unity8-desktop
Changed in canonical-devices-system-image:
status: New → Confirmed
Revision history for this message
dinamic (dinamic6661) wrote :

at first run? yes, all app windows have the same size but if resize the window the app resizes fine :>

Revision history for this message
dinamic (dinamic6661) wrote :
Revision history for this message
Michał Sawicz (saviq) wrote :

We respect the requested size if the app provided one, otherwise we default to a size - and on next start we restore the same size this app had when closed.

> 761: property int itemCenter: item ? root.mapFromItem(quickList.item).y + (item.height /2) + quickList.item.offset : units.gu(1)

dinamic, can you please try and print these values, write something like:

property int itemCenter: {
  console.debug(item);
  console.debug(quickList.item);
  console.debug(root.mapFromItem(quickList.item).y);
  console.debug(quickList.item.offset);
  console.debug(units.gu(1));
  return item ? root.mapFromItem(quickList.item).y + (item.height /2) + quickList.item.offset : units.gu(1);
}

This will print the values every time this property is evaluated, should help in identifying what the problem is.

Revision history for this message
dinamic (dinamic6661) wrote :

@saviq sure :>

Revision history for this message
dinamic (dinamic6661) wrote :

[2016-51-27:10:51:51.756] qml: LauncherDelegate_QMLTYPE_70_QML_77(0x55e65d294910, "launcherDelegate7")
[2016-51-27:10:51:51.756] qml: LauncherDelegate_QMLTYPE_70_QML_77(0x55e65d294910, "launcherDelegate7")
[2016-51-27:10:51:51.756] file:///usr/share/unity8//Launcher/LauncherPanel.qml:764: TypeError: Type error
[2016-51-27:10:51:52.412] qml: LauncherDelegate_QMLTYPE_70_QML_77(0x55e65cfa8460, "launcherDelegate6")
[2016-51-27:10:51:52.412] qml: LauncherDelegate_QMLTYPE_70_QML_77(0x55e65cfa8460, "launcherDelegate6")
[2016-51-27:10:51:52.412] file:///usr/share/unity8//Launcher/LauncherPanel.qml:764: TypeError: Type error
[2016-51-27:10:51:52.652] qml: LauncherDelegate_QMLTYPE_70_QML_77(0x55e65cfa8460, "launcherDelegate6")
[2016-51-27:10:51:52.652] qml: LauncherDelegate_QMLTYPE_70_QML_77(0x55e65cfa8460, "launcherDelegate6")
[2016-51-27:10:51:52.652] file:///usr/share/unity8//Launcher/LauncherPanel.qml:764: TypeError: Type error
[2016-51-27:10:51:52.860] qml: LauncherDelegate_QMLTYPE_70_QML_77(0x55e65cfa8460, "launcherDelegate6")
[2016-51-27:10:51:52.860] qml: LauncherDelegate_QMLTYPE_70_QML_77(0x55e65cfa8460, "launcherDelegate6")
[2016-51-27:10:51:52.860] file:///usr/share/unity8//Launcher/LauncherPanel.qml:764: TypeError: Type error
[2016-51-27:10:51:53.076] qml: LauncherDelegate_QMLTYPE_70_QML_77(0x55e65d1dea10, "launcherDelegate5")
[2016-51-27:10:51:53.076] qml: LauncherDelegate_QMLTYPE_70_QML_77(0x55e65d1dea10, "launcherDelegate5")
[2016-51-27:10:51:53.076] file:///usr/share/unity8//Launcher/LauncherPanel.qml:764: TypeError: Type error
[2016-51-27:10:51:53.260] qml: LauncherDelegate_QMLTYPE_70_QML_77(0x55e65d1dea10, "launcherDelegate5")
[2016-51-27:10:51:53.260] qml: LauncherDelegate_QMLTYPE_70_QML_77(0x55e65d1dea10, "launcherDelegate5")
[2016-51-27:10:51:53.260] file:///usr/share/unity8//Launcher/LauncherPanel.qml:764: TypeError: Type error
[2016-51-27:10:51:53.508] qml: LauncherDelegate_QMLTYPE_70_QML_77(0x55e65cf28450, "launcherDelegate4")
[2016-51-27:10:51:53.508] qml: LauncherDelegate_QMLTYPE_70_QML_77(0x55e65cf28450, "launcherDelegate4")
[2016-51-27:10:51:53.508] file:///usr/share/unity8//Launcher/LauncherPanel.qml:764: TypeError: Type error
[2016-51-27:10:51:53.732] qml: LauncherDelegate_QMLTYPE_70_QML_77(0x55e65cf28450, "launcherDelegate4")
[2016-51-27:10:51:53.732] qml: LauncherDelegate_QMLTYPE_70_QML_77(0x55e65cf28450, "launcherDelegate4")
[2016-51-27:10:51:53.732] file:///usr/share/unity8//Launcher/LauncherPanel.qml:764: TypeError: Type error

Revision history for this message
Michał Sawicz (saviq) wrote :

@dinamic, are you using yakkety with proposed enabled? What's your Qt version? We're seeing similar errors with Qt 5.6.1, released yesterday to yakkety-proposed - bug #1606835.

Revision history for this message
dinamic (dinamic6661) wrote :

@saviq yes i have proposed enabled. and yes looks like it's the same bug

Revision history for this message
Emanuele Antonio Faraone (emanueleant03) wrote :

I've the same problem

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.