[Silica][Pickers] Folder Picker hangs in Landscape orientation

REPRODUCIBILITY: 100%
OS VERSION: 5.0.0.62 (Tampella)
HARDWARE: Jolla C2 (s19mps / c2)
UI LANGUAGE: en_GB
REGRESSION: unknown

DESCRIPTION:

When selecting a directory using a Sailfish.Picker component, the UI hangs if the device is in Landscape orientation.

PRECONDITIONS:

unknown

STEPS TO REPRODUCE:

  1. Open QML app (see below) in Portrait orientation
  2. Click the button (or open a FolderPickerDialog in another way)
  3. Navigate to a dir with subdirs
  4. Navigate to a dir → see contents shown
  5. Navigate back
  6. Turn device into Landscape orientation
  7. Navigate to a dir → Empty page opens (in Portrait orientation), showing a spinner that never finishes
  8. If you have time, navigate back, rotate into Portrait again, go back to step 4

EXPECTED RESULT:

Functionality should be the same despite any device orientation

ACTUAL RESULT:

Hanging UI

MODIFICATIONS:

  • Chum
  • OpenRepos
  • Patchmanager
  • Tinkering

ADDITIONAL INFORMATION:

QML app showing the issue:

import QtQuick 2.6
import Sailfish.Silica 1.0
import Sailfish.Pickers 1.0

ApplicationWindow { id: app
    allowedOrientations: Orientation.All
    initialPage: Page {
        allowedOrientations: Orientation.All
        SilicaFlickable {
            anchors.fill: parent
            PageHeader { title: "Demo" }
            Button {
                anchors.centerIn: parent
                text: "Click Me"
                onClicked: pageStack.push(picker)
            }
        }
    }
    Component { id: picker
        FolderPickerDialog  {
            allowedOrientations: Orientation.All
        }
    }
}

Copy into a file, run with qmlscene demo.qml.


the initial version of this bug report was not created using any version of Bugger!.

2 Likes

To any users reading this, could you try running the code and confirm that you can reproduce?

Thanks.

What you should do approximately is:

Open a terminal, and have the code above in the clipboard (this is easiest by using a ssh connection):

devel-su pkcon install qt5-qtdeclarative-qmlscene
cat > /tmp/demo.qml
# << now paste the clipboard >>
# press ctrl-d
qmlscene  /tmp/demo.qml

Confirmed! I can reproduce on my X10III.

1 Like