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 706870 - serial number jump bigger than 1000 warnings
serial number jump bigger than 1000 warnings
Status: RESOLVED FIXED
Product: gtk+
Classification: Platform
Component: Backend: Wayland
3.9.x
Other Linux
: Normal normal
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2013-08-27 09:25 UTC by Emilio Pozuelo Monfort
Modified: 2013-08-28 17:40 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
don't sasume the serial starts at zero (1.05 KB, patch)
2013-08-27 09:32 UTC, Emilio Pozuelo Monfort
none Details | Review
don't sasume the serial starts at zero (1.05 KB, patch)
2013-08-27 09:38 UTC, Emilio Pozuelo Monfort
none Details | Review
wayland: don't assume the serial will start at zero (1.07 KB, patch)
2013-08-28 14:34 UTC, Emilio Pozuelo Monfort
committed Details | Review

Description Emilio Pozuelo Monfort 2013-08-27 09:25:27 UTC
gtk+, wayland and weston from git master.

Running gtk+ apps in weston spits lots of warnings like

serial number jump bigger than 1000 (0 -> 5004)
serial number jump bigger than 1000 (0 -> 5005)
[...]

It looks like the first serial the app receives is quite high (it seems to start at wherever the previous application left it) and gtk+ seems to assume it will start at 0, so wayland_display->serial is never updated and lots of warnings are thrown instead.

This may be causing other bugs I am seeing, such as the inability to move windows.
Comment 1 Emilio Pozuelo Monfort 2013-08-27 09:32:11 UTC
Created attachment 253228 [details] [review]
don't sasume the serial starts at zero

> This may be causing other bugs I am seeing, such as the inability to move
> windows.

Indeed, with this patch moving windows works fine again.
Comment 2 Emilio Pozuelo Monfort 2013-08-27 09:38:42 UTC
Created attachment 253230 [details] [review]
don't sasume the serial starts at zero

> This may be causing other bugs I am seeing, such as the inability to move
> windows.

Indeed, with this patch moving windows works fine again.
Comment 3 Rob Bradford 2013-08-27 11:21:10 UTC
I think the whole check is just a bit weird - the compositor doesn't sent per client serials so it would be possible for a long running client in the background to legitimately receive a new serial with a delta to the old of greater than 1000.

I think we should just trust the compositor to give us a good serial number and so always assign.

A warning on the delta > UINT_MAX / 2 might be useful.
Comment 4 Emilio Pozuelo Monfort 2013-08-28 14:34:08 UTC
Created attachment 253395 [details] [review]
wayland: don't assume the serial will start at zero

https://bugzilla.gnome.org/show_bug.cgi?id=706870

Signed-off-by: Emilio Pozuelo Monfort <emilio.pozuelo@collabora.co.uk>