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 683921 - Never finalize object 'Monitor' in this example.
Never finalize object 'Monitor' in this example.
Status: RESOLVED DUPLICATE of bug 684182
Product: vala
Classification: Core
Component: Async
unspecified
Other Linux
: Normal normal
: ---
Assigned To: Vala maintainers
Vala maintainers
Depends on:
Blocks:
 
 
Reported: 2012-09-13 07:16 UTC by Heiher
Modified: 2012-09-17 08:18 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
example code. (4.01 KB, text/x-vala)
2012-09-13 07:16 UTC, Heiher
Details
It works ok. (4.01 KB, text/x-vala)
2012-09-14 02:21 UTC, Heiher
Details
hev-gabble-monitor.c (67.80 KB, text/x-csrc)
2012-09-16 05:42 UTC, Heiher
Details
a small test case. (544 bytes, text/x-vala)
2012-09-17 07:02 UTC, Heiher
Details

Description Heiher 2012-09-13 07:16:24 UTC
Created attachment 224195 [details]
example code.

In this example, not call ~Test() function after manager.quit ().

Is a bug?
Comment 1 Heiher 2012-09-14 02:21:33 UTC
Created attachment 224296 [details]
It works ok.
Comment 2 Heiher 2012-09-14 02:24:44 UTC
no.1, output:
[heiher@heiher-aio telepathy]$ ./hev-gabble-monitor 
** (process:2689): DEBUG: hev-gabble-monitor.vala:100: Manager
** (process:2689): DEBUG: hev-gabble-monitor.vala:36: Monitor
^C** (process:2689): DEBUG: hev-gabble-monitor.vala:122: ~Manager

no.2, output:
[heiher@heiher-aio telepathy]$ ./hev-gabble-monitor 
** (process:2629): DEBUG: hev-gabble-monitor.vala:97: Manager
** (process:2629): DEBUG: hev-gabble-monitor.vala:36: Monitor
^C** (process:2629): DEBUG: hev-gabble-monitor.vala:119: ~Manager
** (process:2629): DEBUG: hev-gabble-monitor.vala:86: ~Monitor
Comment 3 Heiher 2012-09-16 05:41:31 UTC
Build hev-gabble-monitor.vala to hev-gabble-monitor.c:

data1 unref:
if (g_atomic_int_dec_and_test (&_data1_->_ref_count_)) {  // never enter
line 928         (_data1_->ensure_sidecar_handler_target_destroy_notify == NULL) ? NULL : (_data1_->ensure_sidecar_handler_tar     get_destroy_notify (_data1_->ensure_sidecar_handler_target), NULL); // unref self required self unrefing... just a joke.
}

construct:
line 1193     _data1_->ensure_sidecar_handler_target = block1_data_ref (_data1_);
line 1194     _data1_->ensure_sidecar_handler_target_destroy_notify = block1_data_unref;
Comment 4 Heiher 2012-09-16 05:42:45 UTC
Created attachment 224437 [details]
hev-gabble-monitor.c
Comment 5 Heiher 2012-09-17 07:02:15 UTC
Created attachment 224474 [details]
a small test case.
Comment 6 Heiher 2012-09-17 08:18:35 UTC

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