• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login
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 675 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.
    • A Offline
      Andrisk @Keneda
      last edited by 18 Jun 2023, 23:43

      @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 19 Jun 2023, 07:19

        @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.

        A A 2 Replies Last reply 19 Jun 2023, 08:47 Reply Quote 0
        • A Offline
          arubislander @kugiigi
          last edited by 19 Jun 2023, 08:47

          @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 21 Jun 2023, 08:17 Reply Quote 0
          • A Offline
            Andrisk @kugiigi
            last edited by 21 Jun 2023, 08:12

            @kugiigi thanks that did the trick

            1 Reply Last reply Reply Quote 0
            • A Offline
              Andrisk @arubislander
              last edited by 21 Jun 2023, 08:17

              @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

              A 1 Reply Last reply 21 Jun 2023, 08:31 Reply Quote 0
              • A Offline
                arubislander @Andrisk
                last edited by 21 Jun 2023, 08:31

                @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 21 Jun 2023, 23:24 Reply Quote 0
                • A Offline
                  Andrisk @arubislander
                  last edited by Andrisk 21 Jun 2023, 23:24

                  @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 1 Jul 2023, 00:09

                    @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.

                    A 1 Reply Last reply 1 Jul 2023, 19:21 Reply Quote 0
                    • A Offline
                      arubislander @Andrisk
                      last edited by 1 Jul 2023, 19:21

                      @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 1 Jul 2023, 19:54 Reply Quote 0
                      • A Offline
                        Andrisk @arubislander
                        last edited by 1 Jul 2023, 19:54

                        @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