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 727784 - libebook: Don’t emit a warning on a dropped D-Bus connection in dispose
libebook: Don’t emit a warning on a dropped D-Bus connection in dispose
Status: RESOLVED FIXED
Product: evolution-data-server
Classification: Platform
Component: Contacts
unspecified
Other All
: Normal normal
: ---
Assigned To: evolution-addressbook-maintainers
Evolution QA team
Depends on:
Blocks:
 
 
Reported: 2014-04-07 21:27 UTC by Philip Withnall
Modified: 2014-04-10 08:51 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
libebook: Don’t emit a warning on a dropped D-Bus connection in dispose (1.89 KB, patch)
2014-04-07 21:27 UTC, Philip Withnall
accepted-commit_now Details | Review
libebook: Don’t emit a warning on a dropped D-Bus connection in dispose (1.94 KB, patch)
2014-04-10 08:48 UTC, Philip Withnall
committed Details | Review
libecal: Don’t emit a warning on a dropped D-Bus connection in dispose (1.55 KB, patch)
2014-04-10 08:48 UTC, Philip Withnall
committed Details | Review

Description Philip Withnall 2014-04-07 21:27:03 UTC
Created attachment 273750 [details] [review]
libebook: Don’t emit a warning on a dropped D-Bus connection in dispose

This occasionally and unavoidably happens in the libfolks unit tests, where libfolks drops its final EBookClientView reference and proceeds to kill the dbus-daemon. EBookClientView, however, keeps itself alive internally in order to send a dispose() method call to the address book server. This method call can return after the server has been killed, and will return a G_IO_ERROR_CLOSED error in such cases. Ignore them.
Comment 1 Matthew Barnes 2014-04-07 23:11:28 UTC
Thanks for that.  Patch looks okay to me.

ECalClientView has the same logic - would you mind fixing up that as well?
Comment 2 Philip Withnall 2014-04-10 08:48:50 UTC
Created attachment 273960 [details] [review]
libebook: Don’t emit a warning on a dropped D-Bus connection in dispose

This occasionally and unavoidably happens in the libfolks unit tests,
where libfolks drops its final EBookClientView reference and proceeds to
kill the dbus-daemon. EBookClientView, however, keeps itself alive
internally in order to send a dispose() method call to the address book
server. This method call can return after the server has been killed,
and will return a G_IO_ERROR_CLOSED error in such cases. Ignore them.
Comment 3 Philip Withnall 2014-04-10 08:48:54 UTC
Created attachment 273961 [details] [review]
libecal: Don’t emit a warning on a dropped D-Bus connection in dispose

See commit e31aae9c123da33a5613fa77cba55668e356f9ce.
Comment 4 Philip Withnall 2014-04-10 08:50:17 UTC
Merged to master, with a second commit for ECalClientView.
Comment 5 Philip Withnall 2014-04-10 08:51:03 UTC
Comment on attachment 273960 [details] [review]
libebook: Don’t emit a warning on a dropped D-Bus connection in dispose

commit e31aae9c123da33a5613fa77cba55668e356f9ce
Author: Philip Withnall <philip@tecnocode.co.uk>
Date:   Mon Apr 7 22:22:12 2014 +0100

    libebook: Don’t emit a warning on a dropped D-Bus connection in dispose
    
    This occasionally and unavoidably happens in the libfolks unit tests,
    where libfolks drops its final EBookClientView reference and proceeds to
    kill the dbus-daemon. EBookClientView, however, keeps itself alive
    internally in order to send a dispose() method call to the address book
    server. This method call can return after the server has been killed,
    and will return a G_IO_ERROR_CLOSED error in such cases. Ignore them.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=727784

 addressbook/libebook/e-book-client-view.c | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)
Comment 6 Philip Withnall 2014-04-10 08:51:15 UTC
Comment on attachment 273961 [details] [review]
libecal: Don’t emit a warning on a dropped D-Bus connection in dispose

commit 964e77bc4356b7f0762f26b2972d5c9dc1ee613e
Author: Philip Withnall <philip@tecnocode.co.uk>
Date:   Thu Apr 10 09:46:59 2014 +0100

    libecal: Don’t emit a warning on a dropped D-Bus connection in dispose
    
    See commit e31aae9c123da33a5613fa77cba55668e356f9ce.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=727784

 calendar/libecal/e-cal-client-view.c | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)