Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-73723

Crash when calling QML grabToImage consequtively

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P2: Important
    • 5.12.3
    • 5.11.3, 5.12.0, 5.12.1
    • None
    • Android 8.0
      Tested on Motorola G6 and Samsung Galaxy S8, crash happens on both

      Android 6.0
      Sony Xperia, crash happens on this as well
    • Android

    Description

      I have something like the following lines of code in my QML file:

       

          Timer
          {
              id: timer
              running: true
              repeat: true
              interval: 30
              onTriggered:
              {
                  someItem.grabToImage(function(result)
                  {
                      // do something (this line doesn't matter, even when there's nothing here, the crash still occures)
                  })
              }
          }
      

       

       

      When doing this on Android platform (namely Android 8.0), my application crashes after some time (randomly crashing after between 300 to 500 calls to grabToImage)

      To be precise, first I start seeing the following in my debugger output, many times:

      E Adreno-GSL: <gsl_memory_alloc_pure:2203>: GSL MEM ERROR: kgsl_sharedmem_alloc ioctl failed.W Adreno-GSL: <sharedmem_gpuobj_alloc:2337>: sharedmem_gpumem_alloc: mmap failed errno 12 Out of memory
      

      And crash after a few moments.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            valentyn.doroshchuk Valentyn Doroshchuk
            ahmadi Amin Ahmadi
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes