After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 787900 - Don't allocate actors a negative size
Don't allocate actors a negative size
Status: RESOLVED DUPLICATE of bug 730551
Product: gnome-shell
Classification: Core
Component: general
unspecified
Other Linux
: Normal normal
: ---
Assigned To: gnome-shell-maint
gnome-shell-maint
Depends on:
Blocks:
 
 
Reported: 2017-09-19 15:16 UTC by Mario Sánchez Prada
Modified: 2017-09-25 16:47 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Don't allocate actors a negative size (1.61 KB, patch)
2017-09-19 15:20 UTC, Mario Sánchez Prada
none Details | Review
Don't allocate actors a negative size (1.66 KB, patch)
2017-09-19 15:29 UTC, Mario Sánchez Prada
needs-work Details | Review

Description Mario Sánchez Prada 2017-09-19 15:16:38 UTC
Clutter will loudly complain when this happens. By booting up without a display, stage dimensions are typically too small, and it exacerbates some underlying minor bugs in the allocation code.

From a patch we currently carry around on Endless downstream:
https://github.com/endlessm/gnome-shell/commit/d07ff590703eb148897f13e3276d137794c397c4
Comment 1 Mario Sánchez Prada 2017-09-19 15:20:52 UTC
Created attachment 360050 [details] [review]
Don't allocate actors a negative size

Attaching patch (by Cosimo Cecchi)
Comment 2 Mario Sánchez Prada 2017-09-19 15:29:16 UTC
Created attachment 360052 [details] [review]
Don't allocate actors a negative size
Comment 3 Florian Müllner 2017-09-21 17:51:34 UTC
(In reply to Mario Sánchez Prada from comment #0)
> By booting up without a display, stage dimensions are typically too 
> small, and it exacerbates some underlying minor bugs in the 
> allocation code.

Does this still apply with the patches from bug  , in particular https://git.gnome.org/browse/mutter/commit/?id=0aa7405a2a895719fb7365d?
Comment 4 Florian Müllner 2017-09-21 18:18:01 UTC
Review of attachment 360052 [details] [review]:

I'm not sure that not handling an allocation that is smaller than the requested minimum size is a bug. But if this is something we do want to take into account, then I doubt those two places are the only ones affected - for a starter, your patch only touches the LTR code paths ...
Comment 5 Mario Sánchez Prada 2017-09-22 12:34:39 UTC
(In reply to Florian Müllner from comment #3)
> (In reply to Mario Sánchez Prada from comment #0)
> > By booting up without a display, stage dimensions are typically too 
> > small, and it exacerbates some underlying minor bugs in the 
> > allocation code.
> 
> Does this still apply with the patches from bug  , in particular
> https://git.gnome.org/browse/mutter/commit/?id=0aa7405a2a895719fb7365d?

That's interesting, it could be very well not a problem anymore right. I'm not at home right now, but I will test it later today without this patch and report here.

(In reply to Florian Müllner from comment #4)
> Review of attachment 360052 [details] [review] [review]:
> 
> I'm not sure that not handling an allocation that is smaller than the
> requested minimum size is a bug. But if this is something we do want to take
> into account, then I doubt those two places are the only ones affected - for
> a starter, your patch only touches the LTR code paths ...

I'm not sure either, let me check this in the actual hw first and I'll let you know. This patch is pretty old now, and it might not be needed anymore after all.
Comment 6 Mario Sánchez Prada 2017-09-25 09:28:24 UTC
Tested in a actual machine but I can't tell whether the patch makes a difference or not because it's already crashing on mutter when booting without any display attached. Need to investigate that first, it seems..
Comment 7 Mario Sánchez Prada 2017-09-25 16:47:33 UTC
It looks like what I needed was a bunch of patches from bug 730551 (we don't use Wayland for now in Endless, so I could skip those) + patch the shell accordingly not to assume a monitor, as it does right now.

However, such a patch for the shell is basically the one from Jonas available in 730551 which, for some reason, hasn't landed yet (overlooked maybe?), so I'm closing this bug as a duplicate of that one.

*** This bug has been marked as a duplicate of bug 730551 ***