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

Application crash on start on iOS 7.1

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • None
    • 5.3.0 Alpha
    • QPA
    • None
    • iOS 7.1, iPad 4
    • iOS/tvOS/watchOS

    Description

      Application sometimes crashes on start on iOS 7.1.

      When QIOSScreen is created, [UIScreen screens] method is called to get screen objects. On iOS 7.1 this method sometimes returns empty array (Apple docs say that this method always returns at least one UIScreen object, the main screen, so this is bug in iOS 7.1).

      It can be triggered by starting application via urlscheme, but reproduction rate isn't 100 %.

      I wrote a patch that uses [UIScreen mainScreen] if [UIScreen screens] is empty and it works fine: http://pastebin.com/Mr6dYZUd

      It's just a workaround, but there will be many iPad 4 devices with iOS 7.1, so Qt should use some workaround...

      Attachments

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

        Activity

          People

            vestbo Tor Arne Vestbø
            edois Eduard Veleba
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes