Code Monkey home page Code Monkey logo

Comments (4)

emersion avatar emersion commented on July 28, 2024

Hm I think this happens because there's no damage. Can you try this to confirm?

diff --git a/backend/drm/atomic.c b/backend/drm/atomic.c
index 70f55afff614..18060ea7d681 100644
--- a/backend/drm/atomic.c
+++ b/backend/drm/atomic.c
@@ -205,6 +205,7 @@ static bool atomic_crtc_commit(struct wlr_drm_connector *conn,
 		int rects_len;
 		const pixman_box32_t *rects = pixman_region32_rectangles(
 			(pixman_region32_t *)&state->base->damage, &rects_len);
+		wlr_log(WLR_INFO, "FB_DAMAGE_CLIPS: len=%d", rects_len);
 		if (drmModeCreatePropertyBlob(drm->fd, rects,
 				sizeof(*rects) * rects_len, &fb_damage_clips) != 0) {
 			wlr_log_errno(WLR_ERROR, "Failed to create FB_DAMAGE_CLIPS property blob");

from wlroots.

fbernier avatar fbernier commented on July 28, 2024

That seems to be the case indeed:

00:02:12.624 [ERROR] [wlr] [backend/drm/atomic.c:211] Failed to create FB_DAMAGE_CLIPS property blob: Invalid argument
00:02:12.624 [INFO] [wlr] [backend/drm/atomic.c:208] FB_DAMAGE_CLIPS: len=0
00:02:12.624 [ERROR] [wlr] [backend/drm/atomic.c:211] Failed to create FB_DAMAGE_CLIPS property blob: Invalid argument
00:02:12.633 [INFO] [wlr] [backend/drm/atomic.c:208] FB_DAMAGE_CLIPS: len=0
00:02:12.633 [ERROR] [wlr] [backend/drm/atomic.c:211] Failed to create FB_DAMAGE_CLIPS property blob: Invalid argument
00:02:12.633 [INFO] [wlr] [backend/drm/atomic.c:208] FB_DAMAGE_CLIPS: len=0
00:02:12.633 [ERROR] [wlr] [backend/drm/atomic.c:211] Failed to create FB_DAMAGE_CLIPS property blob: Invalid argument
00:02:12.639 [INFO] [wlr] [backend/drm/atomic.c:208] FB_DAMAGE_CLIPS: len=1
00:02:12.639 [INFO] [wlr] [backend/drm/atomic.c:208] FB_DAMAGE_CLIPS: len=1
00:02:12.641 [INFO] [wlr] [backend/drm/atomic.c:208] FB_DAMAGE_CLIPS: len=0
00:02:12.641 [ERROR] [wlr] [backend/drm/atomic.c:211] Failed to create FB_DAMAGE_CLIPS property blob: Invalid argument
00:02:12.641 [INFO] [wlr] [backend/drm/atomic.c:208] FB_DAMAGE_CLIPS: len=0
00:02:12.641 [ERROR] [wlr] [backend/drm/atomic.c:211] Failed to create FB_DAMAGE_CLIPS property blob: Invalid argument
00:02:12.649 [INFO] [wlr] [backend/drm/atomic.c:208] FB_DAMAGE_CLIPS: len=0
00:02:12.649 [ERROR] [wlr] [backend/drm/atomic.c:211] Failed to create FB_DAMAGE_CLIPS property blob: Invalid argument
00:02:12.649 [INFO] [wlr] [backend/drm/atomic.c:208] FB_DAMAGE_CLIPS: len=0
00:02:12.649 [ERROR] [wlr] [backend/drm/atomic.c:211] Failed to create FB_DAMAGE_CLIPS property blob: Invalid argument
00:02:12.657 [INFO] [wlr] [backend/drm/atomic.c:208] FB_DAMAGE_CLIPS: len=1
00:02:12.657 [INFO] [wlr] [backend/drm/atomic.c:208] FB_DAMAGE_CLIPS: len=1

Although I noticed that if I tail the log file in my terminal and move the cursor around, the len is always > 0 but as soon as I move to another monitor than where my terminal is, the errors start popping up when I move the cursor.

from wlroots.

emersion avatar emersion commented on July 28, 2024

Does this help? #3314

from wlroots.

fbernier avatar fbernier commented on July 28, 2024

It does fix the issue. Thanks!

from wlroots.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.