• 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 660 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
      last edited by 18 Jun 2023, 21:12

      Hi,

      I am trying to see what is happening when one of my applications crashes on Volla phone 22. There is nothing when using log viewer. I also tried searching through other log files in terminal app.

      Then I found this web page: https://ubports.com/en/blog/ubports-news-1/post/logviewer-3093. There I read this point:

      "crash logs: /var/crash (in order for these logs to generate you need to activate Application crashes and errors at the following location: System settings > Security and privacy)"

      But I do not see any such settings. Is there some way how to enable /var/crash logs in current version of Ubuntu Touch?

      Many thanks
      Andrej

      K K 2 Replies Last reply 18 Jun 2023, 22:36 Reply Quote 0
      • K Offline
        Keneda @Andrisk
        last edited by 18 Jun 2023, 22:36

        @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 18 Jun 2023, 23:43 Reply Quote 0
        • 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