Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QT_ANDROID_MAX_PREPOPULATED_ASSETS_CACHE_SIZE
Forum Updated to NodeBB v4.3 + New Features

QT_ANDROID_MAX_PREPOPULATED_ASSETS_CACHE_SIZE

Scheduled Pinned Locked Moved Solved General and Desktop
5 Posts 2 Posters 805 Views 1 Watching
  • 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.
  • T Offline
    T Offline
    TopNotch_Mach07
    wrote on last edited by TopNotch_Mach07
    #1

    While deploying Qt Project to android i am getting this error

    [WARN | default] Prepopulated cache is too large to read.
    
    LOGCAT: W Custom ApplicationManager: Use environment variable QT_ANDROID_MAX_PREPOPULATED_ASSETS_CACHE_SIZE to adjust size
    

    Can any one point me what is this environment variable and how it is used.

    Thanks,

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      @TopNotch_Mach07 said in QT_ANDROID_MAX_PREPOPULATED_ASSETS_CACHE_SIZE:

      QT_ANDROID_MAX_PREPOPULATED_ASSETS_CACHE_SIZE

      Just a wild guess but if not the Build environment, you can put it in the Run environment part of the Project panel.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • T Offline
        T Offline
        TopNotch_Mach07
        wrote on last edited by
        #3

        The thing is I don't know what value to set to that variable. While googling I found that this comes from qandroidassetsfileenginehandler.cpp class.

        and it is used to set the cache size.

        on line no : 280 , It uses something like 1024LL * 1024LL , which is 1048576 in Bytes I guess.

        Say , If want to set it to 50 MB of cache size , How can I set that ?

        something like
        QT_ANDROID_MAX_PREPOPULATED_ASSETS_CACHE_SIZE =52428800 ??

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          From the looks of it, I would say yes.

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0
          • T Offline
            T Offline
            TopNotch_Mach07
            wrote on last edited by TopNotch_Mach07
            #5

            Giving the parameter in qt creator environment variable didn't work. But using qputenv() environment variable worked.

            1 Reply Last reply
            1

            • Login

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