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. Unable to debug Android App (Windows + Qt Creator 12 + LLDB)

Unable to debug Android App (Windows + Qt Creator 12 + LLDB)

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
169 Posts 9 Posters 61.7k Views
  • 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.
  • C CodesInChaoss
    25 Feb 2024, 14:10

    @CodesInChaoss

    ok I know, 31 API compilers are only within NDK 25

    C Offline
    C Offline
    CodesInChaoss
    wrote on 25 Feb 2024, 14:31 last edited by CodesInChaoss
    #131

    3ceb8247-b89b-49d0-868a-1f5ca9d61a9d-image.png
    compiler settings looking GOOD, right?

    C 1 Reply Last reply 25 Feb 2024, 14:46
    0
    • C CodesInChaoss
      25 Feb 2024, 14:31

      3ceb8247-b89b-49d0-868a-1f5ca9d61a9d-image.png
      compiler settings looking GOOD, right?

      C Offline
      C Offline
      CodesInChaoss
      wrote on 25 Feb 2024, 14:46 last edited by CodesInChaoss
      #132

      Folks really counting on you as otherwise wev'e got to spend 4K EURO on a yearly license from QT for them to at least offer us a helpful hand.... just trying to debug the sample Clock app....

      C 1 Reply Last reply 25 Feb 2024, 23:26
      0
      • C CodesInChaoss
        25 Feb 2024, 14:46

        Folks really counting on you as otherwise wev'e got to spend 4K EURO on a yearly license from QT for them to at least offer us a helpful hand.... just trying to debug the sample Clock app....

        C Offline
        C Offline
        CodesInChaoss
        wrote on 25 Feb 2024, 23:26 last edited by
        #133

        Is anyone here actually using QT 5.15.16 (the latest commercial version from the 5x branch) ?

        All segmentation faults appear on 4 distinct Android 13-14 devices I've tried.

        On android 10 there are no segmentation faults. BUT debugging either does not work at all in most cases OR why by chance when it kick-in at all then this happens after a delay lasting minutes after the app has long launched and been executing code. ONCE today it happened that a breakpoint hit fist line in main FIRST time in a week and that happened on Android 10.

        C 1 Reply Last reply 26 Feb 2024, 06:34
        0
        • C CodesInChaoss
          25 Feb 2024, 23:26

          Is anyone here actually using QT 5.15.16 (the latest commercial version from the 5x branch) ?

          All segmentation faults appear on 4 distinct Android 13-14 devices I've tried.

          On android 10 there are no segmentation faults. BUT debugging either does not work at all in most cases OR why by chance when it kick-in at all then this happens after a delay lasting minutes after the app has long launched and been executing code. ONCE today it happened that a breakpoint hit fist line in main FIRST time in a week and that happened on Android 10.

          C Offline
          C Offline
          CodesInChaoss
          wrote on 26 Feb 2024, 06:34 last edited by
          #134

          https://bugreports.qt.io/browse/QTCREATORBUG-29928?filter=-4&jql=text ~ "android breakpoints" order by created DESC

          https://bugreports.qt.io/browse/QTCREATORBUG-30425?filter=-4&jql=text ~ "android breakpoints" order by created DESC

          A C 4 Replies Last reply 26 Feb 2024, 08:27
          1
          • C CodesInChaoss
            26 Feb 2024, 06:34

            https://bugreports.qt.io/browse/QTCREATORBUG-29928?filter=-4&jql=text ~ "android breakpoints" order by created DESC

            https://bugreports.qt.io/browse/QTCREATORBUG-30425?filter=-4&jql=text ~ "android breakpoints" order by created DESC

            A Offline
            A Offline
            Axel Spoerl
            Moderators
            wrote on 26 Feb 2024, 08:27 last edited by
            #135

            @CodesInChaoss

            Having read through this thread, I must say: Sorry! I understand your frustration and feel your pain.
            This issue is a bug, and not related to a local configuration problem. Thanks a lot for your patience and effort in trying alternatives and troubleshooting.

            I have been observing and reproducing Qt Creator landing in the disassembler since November 2023. Rremote debugging on Android is complex - I haven't been able to pin it to a specific reason. This needs more attention, I fully agree. I'll channel it internally and keep you posted.

            I trust you understand that this is not a trivial matter. It may take a little while, until it's nailed down and solved.

            Software Engineer
            The Qt Company, Oslo

            1 Reply Last reply
            0
            • C CodesInChaoss
              26 Feb 2024, 06:34

              https://bugreports.qt.io/browse/QTCREATORBUG-29928?filter=-4&jql=text ~ "android breakpoints" order by created DESC

              https://bugreports.qt.io/browse/QTCREATORBUG-30425?filter=-4&jql=text ~ "android breakpoints" order by created DESC

              C Offline
              C Offline
              CodesInChaoss
              wrote on 26 Feb 2024, 08:28 last edited by CodesInChaoss
              #136

              Plain and simple - on which configuration would 5.15.16 debugging work with an Android device.

              We would buy and invest into the VERY EXACT configuration.

              Exact mobile device/ OS, PC setup, QT Version.

              We would also pay for the hint to anyone who provides an effective solution. Payment today.

              T 1 Reply Last reply 26 Feb 2024, 11:33
              0
              • C CodesInChaoss
                26 Feb 2024, 06:34

                https://bugreports.qt.io/browse/QTCREATORBUG-29928?filter=-4&jql=text ~ "android breakpoints" order by created DESC

                https://bugreports.qt.io/browse/QTCREATORBUG-30425?filter=-4&jql=text ~ "android breakpoints" order by created DESC

                C Offline
                C Offline
                CodesInChaoss
                wrote on 26 Feb 2024, 08:32 last edited by CodesInChaoss
                #137

                @Axel-Spoerl

                Axel, thank you yet still - we've got a client base which expects us to have the development rolling.

                Kindly please advise on what configuration we would be able to use 5.15.16 with an Android setup, we would just like to be able to debug.

                If we wouldn't be able to have 5.15.16 working then kindly PLEASE advise which QT version in the 5.X branch to use.

                I'm having one developer rolling back to QTC 11 without avail through QTC 10,. he's now o QTC8
                We would like to use Qt 5.15.16 with all the bug fixes, the very reason why we bought into QT commercial license to begin with, is that possible?
                Please. Thank you so much

                1 Reply Last reply
                0
                • C CodesInChaoss
                  26 Feb 2024, 06:34

                  https://bugreports.qt.io/browse/QTCREATORBUG-29928?filter=-4&jql=text ~ "android breakpoints" order by created DESC

                  https://bugreports.qt.io/browse/QTCREATORBUG-30425?filter=-4&jql=text ~ "android breakpoints" order by created DESC

                  C Offline
                  C Offline
                  CodesInChaoss
                  wrote on 26 Feb 2024, 08:39 last edited by CodesInChaoss
                  #138

                  @Axel-Spoerl
                  Are you / is Qt able to provide us with a working VM/ docker image on which debugging with Qt 5.15.16 would work. Or is that asking too much?

                  We can pay. Money is NOT an issue.

                  C 1 Reply Last reply 26 Feb 2024, 09:43
                  0
                  • C CodesInChaoss
                    26 Feb 2024, 08:39

                    @Axel-Spoerl
                    Are you / is Qt able to provide us with a working VM/ docker image on which debugging with Qt 5.15.16 would work. Or is that asking too much?

                    We can pay. Money is NOT an issue.

                    C Offline
                    C Offline
                    CodesInChaoss
                    wrote on 26 Feb 2024, 09:43 last edited by
                    #139

                    @Axel-Spoerl how is 5.15.16 support / Qt Creator
                    when considering debugging from Apple M2?

                    1 Reply Last reply
                    0
                    • C CodesInChaoss
                      24 Feb 2024, 13:46

                      so since Android SDK with API 31 EMPLOYS Java class version 61 objects for its components this IMPLIES a requirements for JDK version 17. ​

                      QT ... kindly update your docs?

                      T Offline
                      T Offline
                      TomZ
                      wrote on 26 Feb 2024, 11:29 last edited by TomZ
                      #140

                      @CodesInChaoss said in Unable to debug Android App (Windows + Qt Creator 12 + LLDB):

                      QT ... kindly update your docs?

                      Please note that Qt has an actual jira bugtracker. https://bugreports.qt.io/ I expect that direct actionable issues you find are better traceable there.

                      1 Reply Last reply
                      0
                      • C CodesInChaoss
                        26 Feb 2024, 08:28

                        Plain and simple - on which configuration would 5.15.16 debugging work with an Android device.

                        We would buy and invest into the VERY EXACT configuration.

                        Exact mobile device/ OS, PC setup, QT Version.

                        We would also pay for the hint to anyone who provides an effective solution. Payment today.

                        T Offline
                        T Offline
                        TomZ
                        wrote on 26 Feb 2024, 11:33 last edited by
                        #141

                        @CodesInChaoss said in Unable to debug Android App (Windows + Qt Creator 12 + LLDB):

                        We would also pay for the hint to anyone who provides an effective solution. Payment today.

                        you might want to contact kdab.com with such questions. I think they have the most expertise in such matters. And they are simply a commercial company so it should be a relatively simple question to get such a service.

                        A 1 Reply Last reply 26 Feb 2024, 11:56
                        0
                        • T TomZ
                          26 Feb 2024, 11:33

                          @CodesInChaoss said in Unable to debug Android App (Windows + Qt Creator 12 + LLDB):

                          We would also pay for the hint to anyone who provides an effective solution. Payment today.

                          you might want to contact kdab.com with such questions. I think they have the most expertise in such matters. And they are simply a commercial company so it should be a relatively simple question to get such a service.

                          A Offline
                          A Offline
                          Axel Spoerl
                          Moderators
                          wrote on 26 Feb 2024, 11:56 last edited by
                          #142

                          Since the OP refers to a commercial license, there is commercial support available.
                          The root cause could be unrelated to Qt, but Qt Creator should at least come up with a meaningful error message.
                          Landing in the disassembler, instead of the debugger for no obvious reason (which I can reproduce on openSuSE Linux and Windows) is likely a bug in Qt and needs to be fixed.

                          I have worked around it in some cases by throwing a lot of qDebug()into the pie. Those are always printed correctly. Such immediate workarounds and some deeper troubleshooting are available with commercial support.

                          Software Engineer
                          The Qt Company, Oslo

                          C 1 Reply Last reply 26 Feb 2024, 12:05
                          0
                          • A Axel Spoerl
                            26 Feb 2024, 11:56

                            Since the OP refers to a commercial license, there is commercial support available.
                            The root cause could be unrelated to Qt, but Qt Creator should at least come up with a meaningful error message.
                            Landing in the disassembler, instead of the debugger for no obvious reason (which I can reproduce on openSuSE Linux and Windows) is likely a bug in Qt and needs to be fixed.

                            I have worked around it in some cases by throwing a lot of qDebug()into the pie. Those are always printed correctly. Such immediate workarounds and some deeper troubleshooting are available with commercial support.

                            C Offline
                            C Offline
                            CodesInChaoss
                            wrote on 26 Feb 2024, 12:05 last edited by CodesInChaoss
                            #143

                            @Axel-Spoerl

                            As of now we are on the "Start Up License for 600$ per seat" and as we've learned the hard way it does not include Technical Support.

                            All we want is to debug......

                            Can anyone advise on a setup which would allow for debugging (QT 5.15.16 and Android API 31)

                            Or at least tell us if we would be able to work from an Apple Sillicon setup? We would like to avoid porting the entire app to Qt 6 as of now... we simply want to debug that's all.

                            we've tried the official sample apps to no avail. we use fresh installs of windows and linux.

                            C 1 Reply Last reply 26 Feb 2024, 12:10
                            0
                            • C CodesInChaoss
                              26 Feb 2024, 12:05

                              @Axel-Spoerl

                              As of now we are on the "Start Up License for 600$ per seat" and as we've learned the hard way it does not include Technical Support.

                              All we want is to debug......

                              Can anyone advise on a setup which would allow for debugging (QT 5.15.16 and Android API 31)

                              Or at least tell us if we would be able to work from an Apple Sillicon setup? We would like to avoid porting the entire app to Qt 6 as of now... we simply want to debug that's all.

                              we've tried the official sample apps to no avail. we use fresh installs of windows and linux.

                              C Offline
                              C Offline
                              CodesInChaoss
                              wrote on 26 Feb 2024, 12:10 last edited by CodesInChaoss
                              #144

                              So to be on-point, which latest

                              • QT Creator version
                              • QT 5.* branch
                              • Windows/Linux version

                              triplet

                              could be used to debug say an official 'clock' app targeting Android API 31 (min required by play store as of now). We would go from there. That's all we want to know.

                              And if Windows/Linux can't be used then would Mac and apple silicon/iOS coupling be any better? We would then work on mac and simply recompile for Android

                              C 1 Reply Last reply 26 Feb 2024, 12:13
                              0
                              • C CodesInChaoss
                                26 Feb 2024, 12:10

                                So to be on-point, which latest

                                • QT Creator version
                                • QT 5.* branch
                                • Windows/Linux version

                                triplet

                                could be used to debug say an official 'clock' app targeting Android API 31 (min required by play store as of now). We would go from there. That's all we want to know.

                                And if Windows/Linux can't be used then would Mac and apple silicon/iOS coupling be any better? We would then work on mac and simply recompile for Android

                                C Offline
                                C Offline
                                CodesInChaoss
                                wrote on 26 Feb 2024, 12:13 last edited by CodesInChaoss
                                #145

                                We do not have time for bugs to be solved so hopefully there's there's some setup which WOULD work?

                                C 1 Reply Last reply 26 Feb 2024, 15:03
                                0
                                • C CodesInChaoss
                                  26 Feb 2024, 12:13

                                  We do not have time for bugs to be solved so hopefully there's there's some setup which WOULD work?

                                  C Offline
                                  C Offline
                                  CodesInChaoss
                                  wrote on 26 Feb 2024, 15:03 last edited by
                                  #146

                                  Gents, we've just tried debugging a latest QT 6.6.2 API mobile app on Android 33 API mobile device..... breakpoints do not work, what the heck is up with Qt?

                                  C 1 Reply Last reply 26 Feb 2024, 15:11
                                  0
                                  • C CodesInChaoss
                                    26 Feb 2024, 15:03

                                    Gents, we've just tried debugging a latest QT 6.6.2 API mobile app on Android 33 API mobile device..... breakpoints do not work, what the heck is up with Qt?

                                    C Offline
                                    C Offline
                                    CodesInChaoss
                                    wrote on 26 Feb 2024, 15:11 last edited by
                                    #147

                                    @CodesInChaoss 3b641416-22f0-4fd3-9e97-d7ade0b5b738-image.png

                                    That's what we get when attempting to debug a sample 'cofee machine' QT 6.6 app on Android.

                                    J 1 Reply Last reply 26 Feb 2024, 18:45
                                    0
                                    • C CodesInChaoss
                                      26 Feb 2024, 15:11

                                      @CodesInChaoss 3b641416-22f0-4fd3-9e97-d7ade0b5b738-image.png

                                      That's what we get when attempting to debug a sample 'cofee machine' QT 6.6 app on Android.

                                      J Offline
                                      J Offline
                                      JoeCFD
                                      wrote on 26 Feb 2024, 18:45 last edited by
                                      #148

                                      @CodesInChaoss I had a spin on Qt 6.6.2 with Qt Creator 12 for Android and saw the same problem with a simple qt example. Will take a detailed look at the issue. Qt 5.15.2 was used in my previous run. It seems a lot of things have been changed in QT for Android build. Unluckily, the newer Qt Creator is not compatible with the old project.

                                      C 1 Reply Last reply 27 Feb 2024, 08:57
                                      0
                                      • J JoeCFD
                                        26 Feb 2024, 18:45

                                        @CodesInChaoss I had a spin on Qt 6.6.2 with Qt Creator 12 for Android and saw the same problem with a simple qt example. Will take a detailed look at the issue. Qt 5.15.2 was used in my previous run. It seems a lot of things have been changed in QT for Android build. Unluckily, the newer Qt Creator is not compatible with the old project.

                                        C Offline
                                        C Offline
                                        CodesInChaoss
                                        wrote on 27 Feb 2024, 08:57 last edited by CodesInChaoss
                                        #149

                                        Yeah.. folks.. but tell you what....

                                        We've been also using 5.15.2 previously for our project along with the Community version of Qt.

                                        As you can imagine, a bit frustrated I was, so we bought a brand new Macbook with M2.

                                        Everything works out of the box.

                                        (..) with a damn Android VM.. even no need to attach a phone... the Android VM works crazy fast. Breakpoints keep spinning... no errors.... no assembly shit... no exceptions.. with out own project........

                                        I'll give it a try with real device later on.

                                        But presumably... all Qt user and development base moved to Apple hardware as of recent...

                                        Spend 7 days from dawn till dusk fighting with Windows and Linux.

                                        Buy a Macbook with M2 and have everything resolved.

                                        I mean... breakpoints ARE not hitting within main(), but other than that? it's f*** PERFECT.

                                        as if 100 bugs have been fixed. it simply works as it SHOULD.

                                        Breakpoitns can be dynamically inserted, removed, these fire each time.

                                        but yet again... not as soon as in main()

                                        A cristian-adamC T 3 Replies Last reply 27 Feb 2024, 09:09
                                        1
                                        • C CodesInChaoss
                                          27 Feb 2024, 08:57

                                          Yeah.. folks.. but tell you what....

                                          We've been also using 5.15.2 previously for our project along with the Community version of Qt.

                                          As you can imagine, a bit frustrated I was, so we bought a brand new Macbook with M2.

                                          Everything works out of the box.

                                          (..) with a damn Android VM.. even no need to attach a phone... the Android VM works crazy fast. Breakpoints keep spinning... no errors.... no assembly shit... no exceptions.. with out own project........

                                          I'll give it a try with real device later on.

                                          But presumably... all Qt user and development base moved to Apple hardware as of recent...

                                          Spend 7 days from dawn till dusk fighting with Windows and Linux.

                                          Buy a Macbook with M2 and have everything resolved.

                                          I mean... breakpoints ARE not hitting within main(), but other than that? it's f*** PERFECT.

                                          as if 100 bugs have been fixed. it simply works as it SHOULD.

                                          Breakpoitns can be dynamically inserted, removed, these fire each time.

                                          but yet again... not as soon as in main()

                                          A Offline
                                          A Offline
                                          Axel Spoerl
                                          Moderators
                                          wrote on 27 Feb 2024, 09:09 last edited by
                                          #150

                                          @CodesInChaoss
                                          Thats good news, glad to hear!
                                          May I ask you, which constellation works on the Mac?
                                          Android SDK / NDB / ABI, Qt Creator & Qt Version?
                                          That will help us to narrow down the issue and fix it asap.
                                          Thanks in advance - and I hope you'll get some rest after 168 sleepless hours ;-)

                                          Software Engineer
                                          The Qt Company, Oslo

                                          1 Reply Last reply
                                          0

                                          140/169

                                          26 Feb 2024, 11:29

                                          • Login

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