Skip to content

Conversation

@SmalRat
Copy link

@SmalRat SmalRat commented Feb 18, 2025

The issue is described here:

JuliaLang/julia#56150
#45
ReactiveBayes/GraphPPL.jl/pull/268

These changes fixed the issue for me. However, I need the cairo_render only, so, most likely, the other functions should be fixed in the same way to clear all bugs.

@bvdmitri
Copy link

@Keno can this be merged and tagged as a patch release?

push!(format_placeholder, UInt8(0))
format_cstring = pointer(format_placeholder)

ret = ccall((:gvRenderContext,libgvc),Cint,(Ptr{Cvoid},Ptr{Cvoid},Ptr{UInt8},Ptr{Cvoid}),context.handle,g.handle,format_cstring,C_NULL)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is all not gc-safe. Just declare this as Cstring rather than Ptr{UInt8} and let julia worry about the string conversion.

@LaurentPlagne
Copy link

Any chance that this beeing merged in the future ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants