UBports Robot Logo UBports Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    Logs from app crash

    Scheduled Pinned Locked Moved App Development
    12 Posts 4 Posters 673 Views 2 Watching
    Loading More Posts
    • 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.
      • KenedaK Offline
        Keneda @Andrisk
        last edited by

        @Andrisk
        Is this for debugging one app that you are building ?

        2015-2023 : Meizu MX4 ☠️⚰️✝️
        2023-2024 : Nexus 5 ☠️⚰️✝️
        2024-***** : FPOS Fairphone 5 waiting UT for freedom 😉
        🇲🇫🇬🇧

        A 1 Reply Last reply Reply Quote 0
        • A Offline
          Andrisk @Keneda
          last edited by

          @Keneda yes

          I am building app hnefatafl.andrisk and it always crashes when loading on Volla phone 22 with Ubports 16.04 OTA-25. Update to 20.04 might solve this, but I still want to know why it does not work. I also tried to build Rust template app for 16.04 and it crashes on Volla phone 22 as well.

          Andrej

          1 Reply Last reply Reply Quote 0
          • K Offline
            kugiigi @Andrisk
            last edited by

            @Andrisk App logs are deleted upon closing an app by default, at least in some devices. You need to enable developer mode (Settings > About > Developer mode) so that they will be retained.

            arubislanderA A 2 Replies Last reply Reply Quote 0
            • arubislanderA Offline
              arubislander @kugiigi
              last edited by

              @kugiigi does your app work using clickable desktop? If it does and only crashes on the device you might be missing app armor permissions. Which ones depends on what your app is doing.

              🇦🇼 🇳🇱 🇺🇸 🇪🇸
              Happily running Ubuntu Touch
              Google Pixel 3a (20.04 DEV)
              JingPad (24.04 preview)
              Meizu Pro 5 (16.04 DEV)

              A 1 Reply Last reply Reply Quote 0
              • A Offline
                Andrisk @kugiigi
                last edited by

                @kugiigi thanks that did the trick

                1 Reply Last reply Reply Quote 0
                • A Offline
                  Andrisk @arubislander
                  last edited by

                  @arubislander yes. Using clickable desktol it works without a problem. After crash there is only this message in the log:

                  file offset for the library "/vendor/lib64/hw/gralloc.default.so" >= file size: 0 >= 0
                  

                  It is the same if I build rust template application and try to run it on the phone. But I am not sure if the message is relevant because I found the same message in logs of applications that are not crashing.

                  Andrej

                  arubislanderA 1 Reply Last reply Reply Quote 0
                  • arubislanderA Offline
                    arubislander @Andrisk
                    last edited by

                    @Andrisk Then that is probably not the issue causing the crash. Is your code online somewhere?

                    🇦🇼 🇳🇱 🇺🇸 🇪🇸
                    Happily running Ubuntu Touch
                    Google Pixel 3a (20.04 DEV)
                    JingPad (24.04 preview)
                    Meizu Pro 5 (16.04 DEV)

                    A 2 Replies Last reply Reply Quote 0
                    • A Offline
                      Andrisk @arubislander
                      last edited by Andrisk

                      @arubislander Yes. The repo is here: https://gitlab.com/andrisk/hnefatafl and the xenial branch is the one I used. But I have seen the crash only on the Volla phone 22 so far.

                      1 Reply Last reply Reply Quote 0
                      • A Offline
                        Andrisk @arubislander
                        last edited by

                        @arubislander I finally figured it out. It was kind of a stupid mistake. I had a wrong click framework (16.04). After changing to 16.04.5 it works just fine.

                        arubislanderA 1 Reply Last reply Reply Quote 0
                        • arubislanderA Offline
                          arubislander @Andrisk
                          last edited by

                          @Andrisk I am sorry I did not have a chance to check out your code earlier. And I am happy you got it sorted in the end. Looking forward to seeing your app in the Open Store.

                          🇦🇼 🇳🇱 🇺🇸 🇪🇸
                          Happily running Ubuntu Touch
                          Google Pixel 3a (20.04 DEV)
                          JingPad (24.04 preview)
                          Meizu Pro 5 (16.04 DEV)

                          A 1 Reply Last reply Reply Quote 0
                          • A Offline
                            Andrisk @arubislander
                            last edited by

                            @arubislander No worries. I understand and respect that people have their lives. Also I know how it is sometimes hard to find time and energy for hobby projects. I appreciate all replies you sent me.

                            1 Reply Last reply Reply Quote 0
                            • First post
                              Last post