Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Qt on Android: manifest debuggable="false" flag slows down application dramatically
QtWS25 Last Chance

Qt on Android: manifest debuggable="false" flag slows down application dramatically

Scheduled Pinned Locked Moved Mobile and Embedded
4 Posts 2 Posters 5.4k Views
  • 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.
  • N Offline
    N Offline
    Neurofog
    wrote on last edited by
    #1

    Here's the fragment of AndroidManifest.xml:

    @<?xml version='1.0' encoding='utf-8'?>
    <manifest package="..." xmlns:android="http://schemas.android.com/apk/res/android" android:versionName="1.0" android:versionCode="1" android:installLocation="auto">
    <application android:name="org.qtproject.qt5.android.bindings.QtApplication"
    android:label="@string/app_name"
    android:debuggable="false"
    >
    @

    in which android:debuggable="false" makes application run dramatically slow which is noticeable when much redrawing is required.
    Setting android:debuggable to "true" removes an issue but not allow releasing application on Play Market.
    I tried to build Qt with minimal settings to avoid using most modules but it didn't help.
    Now I'll try to make smallest example reproducing an issue but it will take much time.

    Why can this happen anyway?

    1 Reply Last reply
    0
    • N Offline
      N Offline
      Neurofog
      wrote on last edited by
      #2

      I've found out that such behavior (very slow painting) is only exposed with rendering gradients.
      So if I remove gradient painting code, the settings android:debuggable to “false” doesn't slow down painting.
      I'm not sure if I'm going to continue my investigation further. But that's really a nasty bug.

      1 Reply Last reply
      0
      • V Offline
        V Offline
        Vincent007
        wrote on last edited by
        #3

        Would you mind showing your code so that we can try reproducing the issue you faced?

        1 Reply Last reply
        0
        • N Offline
          N Offline
          Neurofog
          wrote on last edited by
          #4

          Here's the source code with bug exposed:

          http://devel.nomrhis.net/files/exposed.tar.gz

          Since I've stripped most things to expose only valuable code the application looks like white screen at the beginning so start touching it.

          The code which causes slowing down is at "widgets/analogtimer.cpp".
          The flag is at "android-sources/AndroidManifest.xml" (set debuggable="true" to make it work faster).
          You may try to replace C++ drawing code with something heavier but without gradients and you'll see that it works even faster in case of debuggable="false".

          1 Reply Last reply
          0

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved