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. Two SurfaceViews in my Activity
Qt 6.11 is out! See what's new in the release blog

Two SurfaceViews in my Activity

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
1 Posts 1 Posters 419 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.
  • gcaleroG Offline
    gcaleroG Offline
    gcalero
    wrote on last edited by
    #1

    Hi everyone
    I have a Qt application for android that has some particular features:

    • It starts a QtActivity but later you may navigate to other activities
    • It uses Open GLES 3.2 to render in a widget set as the center widget of my QWindow

    The problem is that I'm getting a random graphical issue specially when the screen is rotated. To describe the graphical issue I will say my scene is overlayed by a semi-transparent corrupted frame. I've already debugged my application and dumped the default framebuffer to an image file when the image is corrupted on the screen and I don't see the corruption in the file. So my guess is in the underlying qt/android views system.
    In SurfaceFlinger's logs I see 2 SurfaceViews for my Activity, something like this

    Display[0] configurations (* current):
    * 0: 1440x2960, xdpi=562.706970, ydpi=565.293030, refresh=16666666, colorMode=0
    numHwLayers=3, flags=00000000
    type | handle | hint | flag | tr | blnd | format | source crop (l,t,r,b) | frame | name
    -----------+----------+------+------+----+------+-------------+--------------------------------+------------------------+------
    HWC | 743e62b380 | 0000 | 0000 | 00 | 0105 | RGBA_8888 | 0.0, 0.0, 1080.0, 2220.0 | 0, 0, 1080, 2220 | SurfaceView - com.package/com.package.MyActivity@c03bea1@14#0
    HWC | 743ea56420 | 0000 | 0000 | 04 | 0105 | RGBA_8888 | 0.0, 0.0, 2220.0, 1080.0 | 0, 0, 1080, 2220 | SurfaceView - com.package/com.package.MyActivity@5a97be1@0#0
    FB TARGET | 743ea558c0 | 0000 | 0000 | 00 | 0105 | RGBA_8888 | 0.0, 0.0, 1440.0, 2960.0 | 0, 0, 1440, 2960 | HWC_FRAMEBUFFER_TARGET

    Is it normal to have more than one SurfaceView for a single activity? This happens also if I remove screen rotation.

    Thanks in advance!
    Gabriel

    Gabriel Calero

    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