Logs from app crash
-
@Andrisk
Is this for debugging one app that you are building ? -
@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
-
@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.
-
@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. -
@kugiigi thanks that did the trick
-
@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
-
@Andrisk Then that is probably not the issue causing the crash. Is your code online somewhere?
-
@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.
-
@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.
-
@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.
-
@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.