If RsvgHandle is a GObject object then, yes, it's almost certainly trying
to write to STDERR that it detected a double-free error (GObject handles
are finalized automatically by GLib.jl, so calling gc_unref manually will
result in the object getting freed twice).

On Thu, Sep 17, 2015 at 4:09 AM Andreas Lobinger <[email protected]>
wrote:

> Thanks for the clarification.
> My finalizer is this:
>
> function destroy(handle::RsvgHandle)
>     if handle.ptr == C_NULL
>         return
>     end
>     Gtk.GLib.gc_unref(handle)
>     handle.ptr = C_NULL
>     nothing
> end
>
> so we assume Gtk.GLib.gc_unref tries to write to STDOUT?
>
>
> On Thursday, September 17, 2015 at 9:46:58 AM UTC+2, [email protected]
> wrote:
>>
>> The error is caused by writing to STDOUT in a finalizer after STDOUT
>> itself has been closed.  The comment refers to removing a deprecation
>> warning in the finalizer (the warning of course writes to STDOUT).  So
>> either you still have that problem or one of your own finalizers writes to
>> STDOUT.
>>
>> On Thursday, September 17, 2015 at 5:40:24 PM UTC+10, Andreas Lobinger
>> wrote:
>>>
>>> In the issue it is mentioned, that this should go away with something in
>>> the deprecation warning. I just got the same as above with a recent
>>> v0.4.0-rc1 but only sometimes. Should i just post to the closed issue, or
>>> open my own?
>>>
>>

Reply via email to