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 730183 - RFC: silence harmless critical
RFC: silence harmless critical
Status: RESOLVED OBSOLETE
Product: gtk+
Classification: Platform
Component: Backend: Win32
unspecified
Other All
: Normal normal
: ---
Assigned To: gtk-win32 maintainers
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2014-05-15 11:07 UTC by Marc-Andre Lureau
Modified: 2018-05-02 16:07 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
RFC: silence harmless critical (1.22 KB, patch)
2014-05-15 11:07 UTC, Marc-Andre Lureau
none Details | Review
tests: add clipboard set_with_data test (2.13 KB, patch)
2014-05-16 20:35 UTC, Marc-Andre Lureau
committed Details | Review
tests: add clipboard multiple requests test (3.10 KB, patch)
2014-05-16 20:36 UTC, Marc-Andre Lureau
needs-work Details | Review
Add clipboard test (5.67 KB, patch)
2014-05-19 09:56 UTC, Marc-Andre Lureau
none Details | Review

Description Marc-Andre Lureau 2014-05-15 11:07:21 UTC
When doing more than one simultaneous clipboard request, you get:

Gdk-CRITICAL **: gdk_property_delete: assertion `window != NULL' failed

In this scenario, an unvisible window is created in
make_clipboard_widget() to handle the request. It will be destroyed in
selection_received(), before _gtk_selection_notify() returns.

Note: I haven't checked the behaviour on !win32 platforms.
Comment 1 Marc-Andre Lureau 2014-05-15 11:07:24 UTC
Created attachment 276591 [details] [review]
RFC: silence harmless critical
Comment 2 Matthias Clasen 2014-05-16 14:36:10 UTC
Can you provide a testcase that shows this problem ?
Comment 3 Marc-Andre Lureau 2014-05-16 20:35:53 UTC
Created attachment 276686 [details] [review]
tests: add clipboard set_with_data test
Comment 4 Marc-Andre Lureau 2014-05-16 20:36:14 UTC
Created attachment 276687 [details] [review]
tests: add clipboard multiple requests test
Comment 5 Marc-Andre Lureau 2014-05-16 20:37:14 UTC
in gtk2, it seems a destroy widget will have widget->window == NULL, and now widget->window is in some DESTROY state.

I haven't checked yet the same test with gtk2, but I am quite sure it will hit the assert() for the same reason.

Now in gtk3/x11 gdk_property_delete() is a no-op when the window is destroyed.

I am not sure what _gdk_win32_window_delete_property() is doing today since it seems to be lacking a similar check.
Comment 6 Marc-Andre Lureau 2014-05-19 09:56:25 UTC
Created attachment 276750 [details] [review]
Add clipboard test
Comment 7 Marc-Andre Lureau 2014-05-19 09:57:33 UTC
Comment on attachment 276750 [details] [review]
Add clipboard test

This is the same test from adapted to run on windows with gtk2, it triggers the warning.
Comment 8 Matthias Clasen 2014-05-21 19:17:55 UTC
Review of attachment 276686 [details] [review]:

looks fine
Comment 9 Matthias Clasen 2014-05-21 19:18:54 UTC
Review of attachment 276687 [details] [review]:

Here, we will have to check for xsel in the path, and skip the test if it is not found.
Comment 10 Marc-Andre Lureau 2014-05-22 11:07:32 UTC
(In reply to comment #9)
> Review of attachment 276687 [details] [review]:
> 
> Here, we will have to check for xsel in the path, and skip the test if it is
> not found.

yeah, perhaps I should write a small gtk helper instead.
Comment 11 Matthias Clasen 2014-05-22 13:53:37 UTC
for the suggested fix, I would prefer if we could make the win32 backend behave the same way as x11.
Comment 12 Marc-Andre Lureau 2014-05-22 14:08:35 UTC
(In reply to comment #11)
> for the suggested fix, I would prefer if we could make the win32 backend behave
> the same way as x11.

well, the suggested fix is for gtk2 branch only. How do you want to change it since NULL is passed as first argument to gdk_property_delete()?
Comment 13 Matthias Clasen 2014-05-22 14:18:35 UTC
Oh, I hadn't picked up on that detail. In that case, just push it.
Comment 14 Matthias Clasen 2018-02-10 05:18:41 UTC
We're moving to gitlab! As part of this move, we are moving bugs to NEEDINFO if they haven't seen activity in more than a year. If this issue is still important to you and still relevant with GTK+ 3.22 or master, please reopen it and we will migrate it to gitlab.
Comment 15 Marc-Andre Lureau 2018-02-10 09:26:47 UTC
Not much memory of this, but it looks like the test could be reused somehow. Feel free to close otherwise.
Comment 16 LRN 2018-02-10 09:48:19 UTC
This changed to some degree in GTK3 HEAD (there might still be warnings like this though), and GTK4 will completely drop properties.
Comment 17 GNOME Infrastructure Team 2018-05-02 16:07:19 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to GNOME's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/gtk/issues/490.