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

Qt application crashes (requestFeature() must be called before adding content ) on android 6 but works on android 7 and above

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Not Evaluated
    • Resolution: Invalid
    • Affects Version/s: 5.13.2
    • Fix Version/s: None
    • Component/s: Build tools: Other
    • Labels:
      None
    • Platform/s:
      Android

      Description

      java.lang.RuntimeException: Unable to start activity ComponentInfo{org.protox/org.protox.activity.QtActivityEx}: android.util.AndroidRuntimeException: requestFeature() must be called before adding content
       at android.app (https://www.google.com/url?q=http://android.app&sa=D&source=hangouts&ust=1584112036032000&usg=AFQjCNH99mSbocaMNV6el8nUGJGjlZBnig).ActivityThread.performLaunchActivity(ActivityThread.java:2449 (https://www.google.com/url?q=http://ActivityThread.java:2449&sa=D&source=hangouts&ust=1584112036032000&usg=AFQjCNEuP4l_398gi2fg6YgRUAFcvH7bjw))
       at android.app (https://www.google.com/url?q=http://android.app&sa=D&source=hangouts&ust=1584112036032000&usg=AFQjCNH99mSbocaMNV6el8nUGJGjlZBnig).ActivityThread.handleLaunchActivity(ActivityThread.java:2509 (https://www.google.com/url?q=http://ActivityThread.java:2509&sa=D&source=hangouts&ust=1584112036032000&usg=AFQjCNEOTnKJf2HBuXTDXOWT9nljq7tamQ))
       at android.app (https://www.google.com/url?q=http://android.app&sa=D&source=hangouts&ust=1584112036032000&usg=AFQjCNH99mSbocaMNV6el8nUGJGjlZBnig).ActivityThread.access$1000(ActivityThread.java:153 (https://www.google.com/url?q=http://ActivityThread.java:153&sa=D&source=hangouts&ust=1584112036032000&usg=AFQjCNEGyQk-SyxrlGs3bfpLbsWl9IOfFA))
       at android.app (https://www.google.com/url?q=http://android.app&sa=D&source=hangouts&ust=1584112036032000&usg=AFQjCNH99mSbocaMNV6el8nUGJGjlZBnig).ActivityThread$H.handleMessage(ActivityThread.java:1373 (https://www.google.com/url?q=http://ActivityThread.java:1373&sa=D&source=hangouts&ust=1584112036032000&usg=AFQjCNHKZ_Fv7V1gaxdZnviWk_su5c2ePw))
       at android.os.Handler.dispatchMessage(Handler.java:102 (https://www.google.com/url?q=http://Handler.java:102&sa=D&source=hangouts&ust=1584112036032000&usg=AFQjCNFD9DCDqCL_UJ7luIVEupteYE0aHw))
       at android.os.Looper.loop(Looper.java:154 (https://www.google.com/url?q=http://Looper.java:154&sa=D&source=hangouts&ust=1584112036032000&usg=AFQjCNGTlp56Z1rPQRAhXlWc4knxAllfVQ))
       at android.app (https://www.google.com/url?q=http://android.app&sa=D&source=hangouts&ust=1584112036032000&usg=AFQjCNH99mSbocaMNV6el8nUGJGjlZBnig).ActivityThread.main(ActivityThread.java:5527 (https://www.google.com/url?q=http://ActivityThread.java:5527&sa=D&source=hangouts&ust=1584112036032000&usg=AFQjCNGd7oX3LnRMKOjsy-8F9Hc3D9bohg))
       at java.lang.reflect.Method.invoke(Native Method)
       at com.android (https://www.google.com/url?q=http://com.android&sa=D&source=hangouts&ust=1584112036032000&usg=AFQjCNGCBOa0moj29OxHh4RnjyLpRFWFmQ).internal.os.ZygoteInit$MethodAndArgsCaller.run (https://www.google.com/url?q=http://MethodAndArgsCaller.run&sa=D&source=hangouts&ust=1584112036032000&usg=AFQjCNGi18XqQJ8TmKXfe1mmtOFukPHGPA)(ZygoteInit.java:739 (https://www.google.com/url?q=http://ZygoteInit.java:739&sa=D&source=hangouts&ust=1584112036032000&usg=AFQjCNGW_l-dWNCRxQoax3H89hpMQ00p7Q))
       at com.android (https://www.google.com/url?q=http://com.android&sa=D&source=hangouts&ust=1584112036032000&usg=AFQjCNGCBOa0moj29OxHh4RnjyLpRFWFmQ).internal.os.ZygoteInit.main(ZygoteInit.java:629 (https://www.google.com/url?q=http://ZygoteInit.java:629&sa=D&source=hangouts&ust=1584112036032000&usg=AFQjCNFYPWuFClVF73WJPFdUJ5X5zFQOMA))
      Caused by: android.util.AndroidRuntimeException: requestFeature() must be called before adding content
       at com.android (https://www.google.com/url?q=http://com.android&sa=D&source=hangouts&ust=1584112036032000&usg=AFQjCNGCBOa0moj29OxHh4RnjyLpRFWFmQ).internal.policy.PhoneWindow.requestFeature(PhoneWindow.java:317 (https://www.google.com/url?q=http://PhoneWindow.java:317&sa=D&source=hangouts&ust=1584112036032000&usg=AFQjCNHPfqoy31it4bel8RcYOv5h-KxrdQ))
       at android.app (https://www.google.com/url?q=http://android.app&sa=D&source=hangouts&ust=1584112036032000&usg=AFQjCNH99mSbocaMNV6el8nUGJGjlZBnig).Activity.requestWindowFeature(Activity.java:3705 (https://www.google.com/url?q=http://Activity.java:3705&sa=D&source=hangouts&ust=1584112036032000&usg=AFQjCNGOvhXYJCcUdcMEs6sqsrgicmv__g))
       at org.qtproject.qt5.android (https://www.google.com/url?q=http://org.qtproject.qt5.android&sa=D&source=hangouts&ust=1584112036032000&usg=AFQjCNF8e0G2Oa9SuqWonneduTG8vlQJ3Q).bindings.QtActivityLoader.onCreate(QtActivityLoader.java:158 (https://www.google.com/url?q=http://QtActivityLoader.java:158&sa=D&source=hangouts&ust=1584112036032000&usg=AFQjCNEgXHgeC9dDWPhNepXXBWUDEZCg4w))
       at org.qtproject.qt5.android (https://www.google.com/url?q=http://org.qtproject.qt5.android&sa=D&source=hangouts&ust=1584112036032000&usg=AFQjCNF8e0G2Oa9SuqWonneduTG8vlQJ3Q).bindings.QtActivity.onCreateHook(QtActivity.java:266 (https://www.google.com/url?q=http://QtActivity.java:266&sa=D&source=hangouts&ust=1584112036032000&usg=AFQjCNE1QqD-_mmZktoQd6U2mwMDNJdZKA))
       at org.qtproject.qt5.android (https://www.google.com/url?q=http://org.qtproject.qt5.android&sa=D&source=hangouts&ust=1584112036032000&usg=AFQjCNF8e0G2Oa9SuqWonneduTG8vlQJ3Q).bindings.QtActivity.onCreate(QtActivity.java:273 (https://www.google.com/url?q=http://QtActivity.java:273&sa=D&source=hangouts&ust=1584112036032000&usg=AFQjCNGHdrXml8vQHXSrPsd4H_vHsITMdw))
       at org.protox.activity.QtActivityEx.onCreate(QtActivityEx.java:30 (https://www.google.com/url?q=http://QtActivityEx.java:30&sa=D&source=hangouts&ust=1584112036032000&usg=AFQjCNGgI8b-KI-eKwx2VqswgWtcbXJUGQ))
       at android.app (https://www.google.com/url?q=http://android.app&sa=D&source=hangouts&ust=1584112036032000&usg=AFQjCNH99mSbocaMNV6el8nUGJGjlZBnig).Activity.performCreate(Activity.java:6303 (https://www.google.com/url?q=http://Activity.java:6303&sa=D&source=hangouts&ust=1584112036032000&usg=AFQjCNE55Z682regIdT1wxASrJ6AuBk7FA))
       at android.app (https://www.google.com/url?q=http://android.app&sa=D&source=hangouts&ust=1584112036032000&usg=AFQjCNH99mSbocaMNV6el8nUGJGjlZBnig).Instrumentation.callActivityOnCreate(Instrumentation.java:1108 (https://www.google.com/url?q=http://Instrumentation.java:1108&sa=D&source=hangouts&ust=1584112036032000&usg=AFQjCNHCbZ0tf0UtjW2NJdKBfont0IfSOQ))
       at android.app (https://www.google.com/url?q=http://android.app&sa=D&source=hangouts&ust=1584112036032000&usg=AFQjCNH99mSbocaMNV6el8nUGJGjlZBnig).ActivityThread.performLaunchActivity(ActivityThread.java:2402 (https://www.google.com/url?q=http://ActivityThread.java:2402&sa=D&source=hangouts&ust=1584112036032000&usg=AFQjCNGBfzv009QQj_gWAFRZvmtKaAPm8Q))
       ... 9 more
      

        Attachments

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

          Activity

            People

            Assignee:
            qtbuildsystem Qt Build System Team
            Reporter:
            monsterovich monsterovich
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes