Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. IOS 12 Crash on launch, exactly after splash screen
Forum Updated to NodeBB v4.3 + New Features

IOS 12 Crash on launch, exactly after splash screen

Scheduled Pinned Locked Moved Solved Mobile and Embedded
21 Posts 5 Posters 5.0k Views 6 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    Dimitar.Negrevski
    wrote on last edited by
    #1

    Hi, after update of the IOS 12, some of our users start to receive crash on launch, can you suggest anything about it. Callstack is: 0_1538472133066_IOS12Crashing.jpg

    Any suggestions?

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      What version of Qt are you using ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • A Offline
        A Offline
        Andrew Walsh
        wrote on last edited by
        #3

        I have the same issue.

        Affects all Qt versions at least as far back as 5.9. It occurs when selected Accessibility options are enabled on an iPhone running iOS 12. Features such as "Speak Screen" or "Switch Controls" will cause the crash. I've not yet found a non-Qt application that is similarly affected.

        It is easily reproducible by creating a new Qt (widgets) application and hitting "Run".

        It seems that ALL UIViews will return int64 max (or -1) for accessibilityElementCount.

        I've tried swizzling and overriding implementations to overcome the issue to no avail. You can workaround the issue by reimplementing QUIView's becomeFirstResponder to return NO. Unfortunately however, you will no longer be able to use text input widgets

        1 Reply Last reply
        1
        • D Offline
          D Offline
          Dimitar.Negrevski
          wrote on last edited by
          #4

          I'm using Qt5.9.4. You are right Andrew, when i enable Speak Screen, crash was 100% reproducible on all my IOS devices. I am not sure about widgets application, cause my application is QML. Cause on mobile we don't need window title, cause it is not visible at all, it was empty string for our application. After a lot of investigation, I put a title for our application and it stop crashing, doesn't matter Speak Screen is enabled or not. For me, this is very very strange, but for now this fix our issue...

          ekkescornerE 1 Reply Last reply
          0
          • D Dimitar.Negrevski

            I'm using Qt5.9.4. You are right Andrew, when i enable Speak Screen, crash was 100% reproducible on all my IOS devices. I am not sure about widgets application, cause my application is QML. Cause on mobile we don't need window title, cause it is not visible at all, it was empty string for our application. After a lot of investigation, I put a title for our application and it stop crashing, doesn't matter Speak Screen is enabled or not. For me, this is very very strange, but for now this fix our issue...

            ekkescornerE Offline
            ekkescornerE Offline
            ekkescorner
            Qt Champions 2016
            wrote on last edited by ekkescorner
            #5

            @Dimitar.Negrevski you should open an Issue to get this fixed and also provide your workaround there

            hmmm. just tried some accessibility options with a Qt 5.10.1 QtQuickControls2 app and have no crashes on iOS 12.

            ekke ... Qt Champion 2016 | 2024 ... mobile business apps
            5.15 --> 6.9 https://t1p.de/ekkeChecklist
            QMake --> CMake https://t1p.de/ekkeCMakeMobileApps

            1 Reply Last reply
            0
            • D Offline
              D Offline
              Dimitar.Negrevski
              wrote on last edited by
              #6

              @ekkescorner bug is reported: https://bugreports.qt.io/browse/QTBUG-70909

              ekkescornerE 1 Reply Last reply
              0
              • D Dimitar.Negrevski

                @ekkescorner bug is reported: https://bugreports.qt.io/browse/QTBUG-70909

                ekkescornerE Offline
                ekkescornerE Offline
                ekkescorner
                Qt Champions 2016
                wrote on last edited by
                #7

                @Dimitar.Negrevski just tried to reproduce with my QtQuickControls2 App (Qt 5.10.1) on iOS 12, but got no crash.

                ekke ... Qt Champion 2016 | 2024 ... mobile business apps
                5.15 --> 6.9 https://t1p.de/ekkeChecklist
                QMake --> CMake https://t1p.de/ekkeCMakeMobileApps

                D 1 Reply Last reply
                0
                • ekkescornerE ekkescorner

                  @Dimitar.Negrevski just tried to reproduce with my QtQuickControls2 App (Qt 5.10.1) on iOS 12, but got no crash.

                  D Offline
                  D Offline
                  Dimitar.Negrevski
                  wrote on last edited by
                  #8

                  @ekkescorner With Qt5.9.4 with qt examples it is not 100% reproducible on all devices. But we have one device on which it is 100% reproducible with all applications, but we still can't understand what exactly is causing all qt apps to crash on this iPhone 7(ios 12). I compare most of the device settings with other device on which it is not reproducible with examples, and everything looks same. In few days I will test it with Qt 5.10 or Qt 5.11 too, and I will write what's the result on this iPhone with this Qt versions.

                  ekkescornerE 1 Reply Last reply
                  0
                  • D Dimitar.Negrevski

                    @ekkescorner With Qt5.9.4 with qt examples it is not 100% reproducible on all devices. But we have one device on which it is 100% reproducible with all applications, but we still can't understand what exactly is causing all qt apps to crash on this iPhone 7(ios 12). I compare most of the device settings with other device on which it is not reproducible with examples, and everything looks same. In few days I will test it with Qt 5.10 or Qt 5.11 too, and I will write what's the result on this iPhone with this Qt versions.

                    ekkescornerE Offline
                    ekkescornerE Offline
                    ekkescorner
                    Qt Champions 2016
                    wrote on last edited by
                    #9

                    @Dimitar.Negrevski https://bugreports.qt.io/browse/QTBUG-70683 seems to be a similar issue

                    ekke ... Qt Champion 2016 | 2024 ... mobile business apps
                    5.15 --> 6.9 https://t1p.de/ekkeChecklist
                    QMake --> CMake https://t1p.de/ekkeCMakeMobileApps

                    D 1 Reply Last reply
                    1
                    • ekkescornerE ekkescorner

                      @Dimitar.Negrevski https://bugreports.qt.io/browse/QTBUG-70683 seems to be a similar issue

                      D Offline
                      D Offline
                      Dimitar.Negrevski
                      wrote on last edited by
                      #10

                      @ekkescorner Yep, it looks similar, it will be interesting if they find another workaround.

                      1 Reply Last reply
                      0
                      • M Offline
                        M Offline
                        maitai_vw
                        wrote on last edited by
                        #11

                        I have I think the same problem (Widget based application crashing for some users after upgrading to iOS 12)
                        From the bug reports it is not clear to me if there is a workaround?

                        D 1 Reply Last reply
                        0
                        • M maitai_vw

                          I have I think the same problem (Widget based application crashing for some users after upgrading to iOS 12)
                          From the bug reports it is not clear to me if there is a workaround?

                          D Offline
                          D Offline
                          Dimitar.Negrevski
                          wrote on last edited by
                          #12

                          @maitai_vw For our QML application, adding a title to our QML Window fix the crash.

                          M 1 Reply Last reply
                          0
                          • D Dimitar.Negrevski

                            @maitai_vw For our QML application, adding a title to our QML Window fix the crash.

                            M Offline
                            M Offline
                            maitai_vw
                            wrote on last edited by
                            #13

                            @Dimitar.Negrevski Thanks for your reply
                            My app is widget based. Adding a title to mainwindow passed the crash, but that is not enough. Uses cannot access any menu anymore (i.e. when taping on an action it crashes). Investigation is underway but difficult since I do not have an iOS device compatible with iOS 12.

                            ekkescornerE D 2 Replies Last reply
                            0
                            • M maitai_vw

                              @Dimitar.Negrevski Thanks for your reply
                              My app is widget based. Adding a title to mainwindow passed the crash, but that is not enough. Uses cannot access any menu anymore (i.e. when taping on an action it crashes). Investigation is underway but difficult since I do not have an iOS device compatible with iOS 12.

                              ekkescornerE Offline
                              ekkescornerE Offline
                              ekkescorner
                              Qt Champions 2016
                              wrote on last edited by
                              #14

                              @maitai_vw said in IOS 12 Crash on launch, exactly after splash screen:

                              ... I do not have an iOS device compatible with iOS 12.

                              have you tried with Simulator ?

                              ekke ... Qt Champion 2016 | 2024 ... mobile business apps
                              5.15 --> 6.9 https://t1p.de/ekkeChecklist
                              QMake --> CMake https://t1p.de/ekkeCMakeMobileApps

                              1 Reply Last reply
                              0
                              • M maitai_vw

                                @Dimitar.Negrevski Thanks for your reply
                                My app is widget based. Adding a title to mainwindow passed the crash, but that is not enough. Uses cannot access any menu anymore (i.e. when taping on an action it crashes). Investigation is underway but difficult since I do not have an iOS device compatible with iOS 12.

                                D Offline
                                D Offline
                                Dimitar.Negrevski
                                wrote on last edited by
                                #15

                                @maitai_vw Are you sure that menu crash is related to IOS 12, cause with our QML App, we don't have any problems with Menu.

                                1 Reply Last reply
                                0
                                • M Offline
                                  M Offline
                                  maitai_vw
                                  wrote on last edited by
                                  #16

                                  Still searching on that one.
                                  I have 2 users concerned, on iPhone 6S both. Many others do not have the problem
                                  I do not have a 6S to test with, even worst no device iOS 12 compatible.
                                  Only thing I can tell is that I get this crash report in XCode from appstore

                                  UIAccessibility: _axuiElementForNotificationData

                                  and nothing more.

                                  Users swear they didn't set any accessibility stuff. Only common point is that they are both located in Swiss, lol.

                                  M 1 Reply Last reply
                                  0
                                  • M maitai_vw

                                    Still searching on that one.
                                    I have 2 users concerned, on iPhone 6S both. Many others do not have the problem
                                    I do not have a 6S to test with, even worst no device iOS 12 compatible.
                                    Only thing I can tell is that I get this crash report in XCode from appstore

                                    UIAccessibility: _axuiElementForNotificationData

                                    and nothing more.

                                    Users swear they didn't set any accessibility stuff. Only common point is that they are both located in Swiss, lol.

                                    M Offline
                                    M Offline
                                    maitai_vw
                                    wrote on last edited by
                                    #17

                                    Just to add that I have now switch from Qt 11.1.2 to 5.9.7, same pb for these users.

                                    M 1 Reply Last reply
                                    0
                                    • M maitai_vw

                                      Just to add that I have now switch from Qt 11.1.2 to 5.9.7, same pb for these users.

                                      M Offline
                                      M Offline
                                      maitai_vw
                                      wrote on last edited by
                                      #18

                                      Finally it appears that users were, well, lying. They did have some accessibility options on, namely "speak screen" and another one. Once they finally removed it's all OK
                                      To summarize:
                                      I had the crash you reported, and I added a title to mainwindow (my app is widget-based, not qml)
                                      That fixed the crash. But still there is a crash later if user is calling a qaction (I guess it's trying to speak the qaction.).
                                      Is there a setting in plist or something to override to avoid that?

                                      1 Reply Last reply
                                      0
                                      • M Offline
                                        M Offline
                                        maitai_vw
                                        wrote on last edited by
                                        #19

                                        And finally the problem disappeared with iOS 12.1, without doing anything else. Even the trick with the title is not necessary anymore.

                                        1 Reply Last reply
                                        2
                                        • D Offline
                                          D Offline
                                          Dimitar.Negrevski
                                          wrote on last edited by
                                          #20

                                          Yep, it seems that with IOS 12.1 everything is fine, without any workaround. How can I mark issue as resolved?

                                          1 Reply Last reply
                                          0

                                          • Login

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • Categories
                                          • Recent
                                          • Tags
                                          • Popular
                                          • Users
                                          • Groups
                                          • Search
                                          • Get Qt Extensions
                                          • Unsolved