Skip to content

Resize of github.com before rendering completes causes scrambled text, graphics #11323

Closed
servo/webrender
#276

Description

@mikedilger

Using current master, built fresh today, on a gentoo linux x86_64 system, running this:

./mach run --release -- -w http://github.com

seems to work fine if it is not resized until after the first render completes.
screenshot_2016-05-22_13-13-57

But if you resize it (I resize from bottom right corner) before rendering completes, the text and some graphics get quite scrambled.
screenshot_2016-05-22_13-14-42

EDIT: It may not be related to "before rendering completes". It seems to be hit or miss. I cannot consistently reproduce it, but I can reproduce it about 1 out of every 6 tries or so.

Activity

  1. metajack commented on May 22, 2016

    @metajack
    Collaborator

    I assume this is webrender specific. Have you tried without -w?

    cc @glennw @pcwalton

  2. mikedilger commented on May 22, 2016

    @mikedilger
    Author

    Without the -w I can't get it to happen, so yes probably webrender.

  3. kilobtye commented on May 23, 2016

    @kilobtye
    Contributor

    I can confirm this issue. And I would like to look into this issue.

  4. metajack commented on May 23, 2016

    @metajack
    Collaborator

    @kilobtye Feel free to investigate. It's likely caused by the texture caches getting misused in webrender I think. Ping gw (@glennw) and @pcwalton in IRC if you have specific questions.

  5. kilobtye commented on May 24, 2016

    @kilobtye
    Contributor

    Thanks @metajack , it is about texture cache.
    This issue is caused by text-shadow. Resize changes font-size and does text-shadow. Then

    1. texture blur allocates textures but does not free.
    2. texture becomes full and grows its size and messes up.
      I will submit a PR to fix a bug in 2, that should fix this issue.
  6. metajack commented on May 24, 2016

    @metajack
    Collaborator

    Excellent sleuthing!

  7. added a commit that references this issue on May 24, 2016
    02bfa59
  8. added a commit that references this issue on May 24, 2016
  9. added 2 commits that reference this issue on May 25, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions