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

Q: no Cairo rendering? Segfault for PNG? #255

Closed
cmundi opened this issue Mar 30, 2014 · 4 comments
Closed

Q: no Cairo rendering? Segfault for PNG? #255

cmundi opened this issue Mar 30, 2014 · 4 comments

Comments

@cmundi
Copy link

cmundi commented Mar 30, 2014

I'm looking for hints on debugging this.
Platform is Debian jessie.
Julia is built from fresh sources:

$git describe
v0.2.0-2230-g8ea3351

and I did a Pkg.update() to make sure I have the best stuff:

julia> Pkg.status()
7 required packages:
 - Cairo                         0.2.12
 - Gadfly                        0.2.6
...

I can generate SVG just fine, but PNG segfaults:

draw(SVG("test.svg", 3inch, 3inch), plot(x=randn(10), y=randn(10)))  # ok
draw(PNG("test.png", 3inch, 3inch), plot(x=randn(10), y=randn(10))) # segfault

Of course it does not matter if I am orthodox instead of heretical. Same results. Any ideas? My libs are shown below.

According to dpkg -l I have the following installed:

libcairo2                      1.12.16-2
libpango-1.0-0            1.36.0-1
libpng12-0                   1.2.49-5
libfontconfig1              2.11.0-2

P.S. Gadfly is awesome and I really like the semantic approach to visualization (even though I talk like a heretic when I'm in a hurry).

@dcjones
Copy link
Collaborator

dcjones commented Mar 30, 2014

I tried this an arch and ubuntu install both with similar libraries and couldn't get it to crash, so I'm not sure what the deal is.

Do you have experience with gdb? What would help a lot if you ran:

gdb --ex run --args julia test.jl

Where test.jl is julia program that segfaults. When it segfaults, type bt into the prompt and it will print a backtrace. If you copy/paste that output here it will help a lot with debugging this.

@cmundi
Copy link
Author

cmundi commented Mar 30, 2014

Thanks for your reply. No problem: There's a testfile and a backtrace in this gist. Whatever is happening appears to be in Julia's io and not related to the Cairo and PNG libs. I'm happy to gather more data.

@cmundi
Copy link
Author

cmundi commented Mar 30, 2014

I apologize! My "fresh" Julia build was accidentally picking up LLVM 3.4. I just rebuilt using LLVM 3.3 and Gadfly is again working as expected. I'm sorry for the distraction.

@cmundi cmundi closed this as completed Mar 30, 2014
@cmundi
Copy link
Author

cmundi commented Apr 2, 2014

FYI: reproduced a little more cleanly and posted JuliaLang/julia#6369

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

No branches or pull requests

2 participants