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. Random white squares in my window

Random white squares in my window

Scheduled Pinned Locked Moved Solved General and Desktop
7 Posts 2 Posters 639 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.
  • C Offline
    C Offline
    Cubi
    wrote on last edited by
    #1

    In Qt5.11 I have a problem with white squares (8x8) appearing in my QML application. Usually it happens, where text rendered.
    If a text with this problem changes (just changing the color is enough), the squares disappear. When changing the text back, the problem is back.
    If I have multiple widgets with the same text, sometimes both of them have the squares on identical positions in the text.
    When restarting the application, the squares may disappear or be in different positions.
    Rarely I see the squares where an image is displayed.
    The size of the sqares always seems to be 8x8 pixels.
    It's not a displaying / video problem. If I make a screenshot using QQuickWindow::grabWindow(), it's in the image, too.
    In the appended image, the numbers 1 and 0 have the problem.
    screenshot-part.png

    Is there any idea, what I can try to fix this?

    Thanks!

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

      Hi and welcome to the forums
      What platform are you on ?
      Did you check that your OpenGL is ok using some other app?
      Do you also see these white dots if you run tsome of the QML examples ?
      Did you try app on other device to see if that also gets white dots ?`

      1 Reply Last reply
      0
      • C Offline
        C Offline
        Cubi
        wrote on last edited by
        #3

        Hello mrjj,
        thank you for your reply.

        The application runs on Wayland (Weston with drm backend) on an ARM machine.
        On other devices (older Qt versions, eglfs@ARM) or X@x86-64) there are no problems.
        Non-Qt applications (also with 3d acceleration) work fine.

        I will test the QML examples.

        1 Reply Last reply
        1
        • C Offline
          C Offline
          Cubi
          wrote on last edited by
          #4

          I did some more testing, but still nothing helped.

          • Sometimes, the same letters have the exact same problem. Could there be some graphics buffer problem?
          • Sometimes there are not white squares, but black/white patterns
          • It happens with different screen resolutions on different devices (of the same type)

          So far I have not seen the effect with qteverywhere-demo or other qt examples.

          I ran profilers and static analyzers to check for memory problems, but nothing relevant was found in our code.

          Are there any ideas?

          screenshot2.png

          1 Reply Last reply
          0
          • mrjjM Offline
            mrjjM Offline
            mrjj
            Lifetime Qt Champion
            wrote on last edited by
            #5

            Hi
            It really looks like a driver issue but since you never it with Qt QML samples, its a bit odd.
            It could be related to the actual font but if you see this on different system its hard to imagine they all have a broken font file unless all came from same image/clone ?

            1 Reply Last reply
            0
            • C Offline
              C Offline
              Cubi
              wrote on last edited by
              #6

              Hello mrjj,
              After updating Qt, I was able to see the same problem in the qt demos, too.
              As you assumed, it is a graphics driver bug The processor manufacturer confirmed and fixed the issue.
              Thank you for your help!

              mrjjM 1 Reply Last reply
              3
              • C Cubi

                Hello mrjj,
                After updating Qt, I was able to see the same problem in the qt demos, too.
                As you assumed, it is a graphics driver bug The processor manufacturer confirmed and fixed the issue.
                Thank you for your help!

                mrjjM Offline
                mrjjM Offline
                mrjj
                Lifetime Qt Champion
                wrote on last edited by
                #7

                @Cubi
                Im glad to hear you found the reason and thank you for reporting back.

                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