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

App crash after splashscreen

Scheduled Pinned Locked Moved App Development
5 Posts 2 Posters 802 Views 1 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.
    • G Offline
      Giampy
      last edited by 29 Oct 2018, 17:04

      This is my code
      0_1540832640420_Mainqml.png

      What's wrong?
      Help please!

      1 Reply Last reply Reply Quote 0
      • F Offline
        fulvio
        last edited by 29 Oct 2018, 20:27

        Hi @Giampy,
        if you haven't already done try to:

        • check apparmor file of you App, it should contains the "webview" permission (maybe with the new Morph.Web have a different name) to allow at the App to connect with a URL (virginRadio..it)
        • if you are running on a device Install logViewer App from Openstore to see log messages of your app
        • check if policy version in apparmor file are correct for your target Ubports version (xenial, vivid)
        • check manifest file of you app if "framework" entry is correct for Ubports version (xenial, vivid)

        Hope are useful suggestions

        G 1 Reply Last reply 30 Oct 2018, 18:18 Reply Quote 1
        • G Offline
          Giampy @fulvio
          last edited by 30 Oct 2018, 18:18

          @fulvio Thanks,
          I made the clickable template with last release and after I insert the code. First without the qtwebengine API with the normal code that I used for others app and after with new code with qtwebengine API. Apparmor and manifest are correct, only I have to try the logViewer on the phone.

          1 Reply Last reply Reply Quote 0
          • G Offline
            Giampy
            last edited by 31 Oct 2018, 09:00

            I tried the app on my pc desktop with clickable and this is the result:
            Command '['docker', 'run', '-v', '
            /home/giampy/AppUbuntuTouch/virginradio:/home/giampy/AppUbuntuTouch/virginradio', '-v', '
            /tmp/.X11-unix:/tmp/.X11-unix', '-v', '/tmp/.docker.xauth:/tmp/.docker.xauth', '-v', '
            /tmp/clickable/share:/tmp/.local/share', '-v', '
            /tmp/clickable/cacge:/tmp/.cache', '-v', '
            /tmp/clickable/config:/tmp/.config', '-e', 'XAUTHORITY=/tmp/.docker.xauth', '-e', 'DISPLAY=:0', '-e', '
            QML2_IMPORT_PATH=/home/giampy/AppUbuntuTouch/virginradio/build/tmp/lib/x86_64-linux-gnu:/home/giampy/AppUbuntuTouch/virginradio/build/tmp/lib:/usr/local/nvidia/lib:/usr/local/nvidia/lib64', '-e', '
            LD_LIBRARY_PATH=/home/giampy/AppUbuntuTouch/virginradio/build/tmp/lib/x86_64-linux-gnu:/home/giampy/AppUbuntuTouch/virginradio/build/tmp/lib:/usr/local/nvidia/lib:/usr/local/nvidia/lib64', '-e', '
            PATH=/usr/local/nvidia/bin:/bin:/usr/bin:/home/giampy/AppUbuntuTouch/virginradio/build/tmp/bin:/home/giampy/AppUbuntuTouch/virginradio/build/tmp/lib/x86_64-linux-gnu/bin:/home/giampy/AppUbuntuTouch/virginradio/build/tmp', '-e', '
            HOME=/tmp', '-e', 'OXIDE_NO_SANDBOX=1', '-w', '
            /home/giampy/AppUbuntuTouch/virginradio/build/tmp', '-u', '1000', '--rm', '-i', 'clickable/ubuntu-sdk:16.04-amd64', 'bash', '-c', 'qmlscene qml/Main.qml']' returned non-zero exit status 255.

            What does it made OXIDE_NO_SANDBOX?

            1 Reply Last reply Reply Quote 0
            • G Offline
              Giampy
              last edited by Giampy 31 Oct 2018, 09:32

              SOLVED!
              The problem is the header at the line 29, it must be delete. The webapp crash on the nexus5 because there is a bug in UT. Someone solved forcing full screen and disable the gpu but I think it is a bad solution. The command lines from 34 to 42 can be delete, they run only with oxide. After this operations, all run correcly on the pc desktop!

              1 Reply Last reply Reply Quote 0
              4 out of 5
              • First post
                4/5
                Last post