Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pango conflict/assertion issue #147

Closed
jgorham opened this issue Dec 24, 2013 · 6 comments
Closed

pango conflict/assertion issue #147

jgorham opened this issue Dec 24, 2013 · 6 comments

Comments

@jgorham
Copy link

jgorham commented Dec 24, 2013

I'm a new user to Julia and Gadfly, but I've just freshly installed the two on OSX 10.9. After installing Gadfly and Cairo in Julia via Pkg.add, I'm trying to create a simple PDF plot and get

            _
_       _ _(_)_     |  A fresh approach to technical computing

() | () () | Documentation: http://docs.julialang.org
_ _ | | __ _ | Type "help()" to list help topics
| | | | | | |/ ' | |
| | |
| | | | (
| | | Version 0.2.0 (2013-11-16 23:44 UTC)
/ |_'|||__'| |
|__/ | x86_64-apple-darwin13.0.0

julia>
julia> using DataFrames
using Gadfly

julia> foo = plot(x=1:10, y=rand(10))
Plot(...)

!julia> draw(PDF("./foo.pdf", 5inch, 5inch), foo)
Warning: Possible conflict in library symbol cairo_svg_surface_create_for_stream
Warning: Possible conflict in library symbol cairo_image_surface_create
Warning: Possible conflict in library symbol cairo_pdf_surface_create_for_stream
Warning: Possible conflict in library symbol cairo_ps_surface_create_for_stream
Warning: Possible conflict in library symbol cairo_ps_surface_set_eps
Warning: Possible conflict in library symbol cairo_create
Warning: Possible conflict in library symbol pango_cairo_create_layout
Warning: Possible conflict in library symbol cairo_surface_status
Warning: Possible conflict in library symbol cairo_restore
Warning: Possible conflict in library symbol g_object_unref
Warning: Possible conflict in library symbol cairo_destroy
Warning: Possible conflict in library symbol cairo_surface_destroy
Warning: Possible conflict in library symbol cairo_save
Warning: Possible conflict in library symbol cairo_move_to
Warning: Possible conflict in library symbol cairo_line_to
Warning: Possible conflict in library symbol cairo_close_path
Warning: Possible conflict in library symbol cairo_clip
Warning: Possible conflict in library symbol pango_font_description_from_string
Warning: Possible conflict in library symbol pango_layout_set_font_description
Warning: Possible conflict in library symbol pango_font_description_free
Warning: Possible conflict in library symbol pango_layout_get_font_description
Warning: Possible conflict in library symbol pango_font_description_get_family
Warning: Possible conflict in library symbol pango_layout_get_pixel_size
Warning: Possible conflict in library symbol cairo_translate
Warning: Possible conflict in library symbol cairo_rotate
Warning: Possible conflict in library symbol pango_cairo_show_layout
Warning: Possible conflict in library symbol pango_layout_set_markup
Warning: Possible conflict in library symbol pango_layout_set_text

(process:93875): Pango-CRITICAL **: void pango_layout_set_markup_with_accel(PangoLayout *, const char *, int, gunichar, gunichar *): assertion 'PANGO_IS_LAYOUT (layout)' failed

(process:93875): GLib-GObject-WARNING **: Two different plugins tried to register 'BasicEngineCoreText'.

(process:93875): GLib-GObject-CRITICAL **: gpointer g_object_new(GType, const gchar *, ...): assertion 'G_TYPE_IS_OBJECT (object_type)' failed

(process:93875): Pango-WARNING **: Failed to load Pango module '/Users/jackson/.julia/Homebrew/deps/usr/Cellar/pango/1.36.0/lib/pango/1.8.0/modules/pango-basic-coretext.so' for id 'BasicScriptEngineCor
eText'

(process:93875): GLib-GObject-WARNING **: Two different plugins tried to register 'BasicEngineCoreText'.

(process:93875): GLib-GObject-CRITICAL **: gpointer g_object_new(GType, const gchar *, ...): assertion 'G_TYPE_IS_OBJECT (object_type)' failed

(process:93875): GLib-GObject-WARNING **: Two different plugins tried to register 'BasicEngineCoreText'.

These lines repeat themselves over and over again. I've installed cairo, fontconfig and pango via homebrew outside of julia (I think doing Pkg.add("Cairo") means though that it uses its own download of cairo). Any suggestions here?

(Also a foo.pdf does get created and its missing any axis labels and text even though the points themselves are showing up)

@kennyjoseph
Copy link

Did you ever resolve this issue? Running into something similar on my machine ( OSX 10.9.2) after installing pango from source as well

using Gadfly
plot(x=rand(10), y=rand(10))

results in:

pangolayout not defined
 in text_extents at /Users/kjoseph/.julia/v0.2/Compose/src/pango.jl:103
 in text_extents at /Users/kjoseph/.julia/v0.2/Compose/src/pango.jl:120
 in render at /Users/kjoseph/.julia/v0.2/Gadfly/src/guide.jl:451
 in render_prepared at /Users/kjoseph/.julia/v0.2/Gadfly/src/Gadfly.jl:707
 in render at /Users/kjoseph/.julia/v0.2/Gadfly/src/Gadfly.jl:656
 in writemime at /Users/kjoseph/.julia/v0.2/Gadfly/src/Gadfly.jl:755
 in sprint at io.jl:434
 in display_dict at /Users/kjoseph/.julia/v0.2/IJulia/src/execute_request.jl:27

Package.status info:


Required packages:
 - Cairo                         0.2.13
 - Gadfly                        0.2.9
 - IJulia                        0.1.11
 - PyPlot                        1.2.7
Additional packages:
 - BinDeps                       0.2.12
 - Blocks                        0.0.4
 - Codecs                        0.1.0
 - Color                         0.2.10
 - Compose                       0.1.29
 - DataArrays                    0.0.3
 - DataFrames                    0.4.3
 - DataStructures                0.2.14
 - Datetime                      0.1.3
 - Distance                      0.2.6
 - Distributions                 0.3.0
 - GZip                          0.2.12
 - Hexagons                      0.0.1
 - Homebrew                      0.0.6
 - Iterators                     0.1.2
 - JSON                          0.3.5
 - Loess                         0.0.2
 - Nettle                        0.1.3
 - NumericExtensions             0.3.6
 - PyCall                        0.4.6
 - REPLCompletions               0.0.1
 - SortingAlgorithms             0.0.1
 - StatsBase                     0.3.8
 - URIParser                     0.0.2
 - ZMQ                           0.1.11

@jimmyfigueroa
Copy link

Running exactly the same as kennyjoseph

@al-Khwarizmi
Copy link

exactly the same error messages ("pangolayout not defined...") with we (OSX 10.9.3)

@al-Khwarizmi
Copy link

the problem is with pango.jl, see my suggestion at GiovineItalia/Compose.jl#56

@kennyjoseph
Copy link

Awesome, I can confirm this worked for me...thanks much!

@dcjones
Copy link
Collaborator

dcjones commented Jun 22, 2014

I think the original issue is an unrelated problem. But that too is fixed now, I think.

@dcjones dcjones closed this as completed Jun 22, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants