Comment 5 for bug 1904337

Revision history for this message
Uladzislau Nikalayevich (thenormalnij) wrote : Re: Desktop crash

This issue affects Android studio also. I fixed the crash via this changes.
```
diff --git a/decorations/DecoratedWindow.cpp b/decorations/DecoratedWindow.cpp
index ed5548f5e..72096765b 100644
--- a/decorations/DecoratedWindow.cpp
+++ b/decorations/DecoratedWindow.cpp
@@ -750,6 +750,9 @@ void Window::Impl::ComputeShapedShadowQuad()
   unsigned int radius = active() ? manager_->active_shadow_radius() : manager_->inactive_shadow_radius();

   Shape shape(win_->id());
+ if (shape.GetRectangles().size() == 0)
+ return;
+
   auto const& border = win_->borderRect();
   auto const& shadow_offset = manager_->shadow_offset();

```
This code avoid invalid shape object.
I tested it in Ubuntu 20.04 virtual machine. Now compiz doesn't crash after `ffmvforce test`.
Thanks you for the easy reproduction way.