Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-49321

Title on Dialog crashes application on Lenovo Yoga Tablet 2-1050L (Android 5.0.1)


    • Type: Bug
    • Status: Reported
    • Priority: P3: Somewhat important
    • Resolution: Unresolved
    • Affects Version/s: 5.4.0, 5.4.1, 5.4.2, 5.5.0, 5.5.1
    • Fix Version/s: None
    • Component/s: QPA: Other
    • Environment:
      Fails only on Lenovo Yoga Tablet 2-1050L with Android 5.0.1. It works on the same device with Android 4.2.2. It has also been tested on lots of other Android devices, and it works on all other devices.
    • Platform/s:


      If a title is set on a Dialog, the application crashes when the dialog is opened.

      import QtQuick 2.4
      import QtQuick.Controls 1.3
      import QtQuick.Dialogs 1.1
      ApplicationWindow {
          visible: true
          width: 640
          height: 480
          title: qsTr("Hello World")
          MessageDialog {
              id: md
              title: "Does this work?"
          Button {
              text: "Open Message Dialog"
              onClicked: {

      The error only affects Lenovo Yoga Tablet 2-1050L with Android 5.0.1, producing the following error log:

      D/AndroidRuntime( 7796): Shutting down VM E/AndroidRuntime( 7796): FATAL EXCEPTION: main E/AndroidRuntime( 7796): Process: org.qtproject.example.x86_test_5_5_1, PID: 7796 E/AndroidRuntime( 7796): java.lang.RuntimeException: InputChannel is not initialized.
      E/AndroidRuntime( 7796): 	at android.view.InputEventReceiver.nativeInit(Native Method)
      E/AndroidRuntime( 7796): 	at android.view.InputEventReceiver.<init>(InputEventReceiver.java:70)
      E/AndroidRuntime( 7796): 	at android.view.ViewRootImpl$WindowInputEventReceiver.<init>(ViewRootImpl.java:5815)
      E/AndroidRuntime( 7796): 	at android.view.ViewRootImpl.setView(ViewRootImpl.java:612)
      E/AndroidRuntime( 7796): 	at android.view.WindowManagerGlobal.addView(WindowManagerGlobal.java:272)
      E/AndroidRuntime( 7796): 	at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:69)
      E/AndroidRuntime( 7796): 	at android.app.Dialog.show(Dialog.java:298)
      E/AndroidRuntime( 7796): 	at org.qtproject.qt5.android.QtMessageDialogHelper$1.run(QtMessageDialogHelper.java:386)
      E/AndroidRuntime( 7796): 	at android.os.Handler.handleCallback(Handler.java:739)
      E/AndroidRuntime( 7796): 	at android.os.Handler.dispatchMessage(Handler.java:95)
      E/AndroidRuntime( 7796): 	at android.os.Looper.loop(Looper.java:135)
      E/AndroidRuntime( 7796): 	at android.app.ActivityThread.main(ActivityThread.java:5306)
      E/AndroidRuntime( 7796): 	at java.lang.reflect.Method.invoke(Native Method)
      E/AndroidRuntime( 7796): 	at java.lang.reflect.Method.invoke(Method.java:372)
      E/AndroidRuntime( 7796): 	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:899)
      E/AndroidRuntime( 7796): 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:694)


        No reviews matched the request. Check your Options in the drop-down menu of this sections header.



            • Assignee:
              esabraha Eskil Abrahamsen Blomfeldt
              tomaslov Tomas Løvbukten
            • Votes:
              1 Vote for this issue
              5 Start watching this issue


              • Created:

                Gerrit Reviews

                There are no open Gerrit changes