Public bug reported:

With a recent update of google-chrome wlr_render_pass_add_texture is
asserting because the following assertion triggers:

assert(box->x >= 0 && box->y >= 0 &&
 box->x + box->width <= options->texture->width &&
 box->y + box->height <= options->texture->height);

I reported the issue here:
https://gitlab.freedesktop.org/wlroots/wlroots/-/issues/4015

However, it is already solved with this MR:
https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/5080

I backported it to wlroots 0.18 and it fixed the issue for me (running
for more than three days without crash).

The backported patch is attached to this report. It would be nice to
include it in 0.18 as it can cause google chrome to crash unexpected.

** Affects: wlroots (Ubuntu)
     Importance: Undecided
         Status: New

** Patch added: "render-pass-ensure-the-precision-is-consistent.patch"
   
https://bugs.launchpad.net/bugs/2122790/+attachment/5909064/+files/render-pass-ensure-the-precision-is-consistent.patch

** Description changed:

  With a recent update of google-chrome wlr_render_pass_add_texture is
  asserting because the following assertion triggers:
  
  assert(box->x >= 0 && box->y >= 0 &&
-       box->x + box->width <= options->texture->width &&
-       box->y + box->height <= options->texture->height);
+  box->x + box->width <= options->texture->width &&
+  box->y + box->height <= options->texture->height);
  
  I reported the issue here:
  https://gitlab.freedesktop.org/wlroots/wlroots/-/issues/4015
  
  However, it is already solved with this MR:
  https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/5080
  
  I backported it to wlroots 0.18 and it fixed the issue for me (running
  for more than three days without crash).
  
- The backported patch is attached to this report. I would be nice to
+ The backported patch is attached to this report. It would be nice to
  include it in 0.18 as it can cause google chrome to crash unexpected.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2122790

Title:
  wlroots crashes with recent version of google chrome

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/wlroots/+bug/2122790/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to