Gtk pixbuf errors on a mac

question

#1

I’m running into tons of errors and warnings when using Gtk.jl functions on a mac. Things like pixbuf and “the installation is broken”. Any ideas what’s wrong?
I’m sorry about the vagueness, but this is happening in a users’ machine, so I don’t have enough access right now. Will be back with more details!

julia> using Gtk.ShortNames

(process:77126): Gtk-WARNING **: Locale not supported by C library.
	Using the fallback 'C' locale.

julia> open_dialog("a")

(<unknown>:77126): Gtk-WARNING **: Could not load a pixbuf from icon theme.
This may indicate that pixbuf loaders or the mime database could not be found.
**
Gtk:ERROR:gtkiconhelper.c:493:ensure_surface_for_gicon: assertion failed: (destination)

signal (6): Abort trap: 6
while loading no file, in expression starting on line 0
__pthread_kill at /usr/lib/system/libsystem_kernel.dylib (unknown line)
Allocations: 2761386 (Pool: 2759981; Big: 1405); GC: 3

[Process completed]

#2

I see the same without the locale warning

julia> using Gtk.ShortNames

julia> open_dialog("a")

(<unknown>:1538): Gtk-WARNING **: Could not load a pixbuf from icon theme.
This may indicate that pixbuf loaders or the mime database could not be found.
**
Gtk:ERROR:gtkiconhelper.c:493:ensure_surface_for_gicon: assertion failed: (destination)

signal (6): Abort trap: 6
while loading no file, in expression starting on line 0
__pthread_kill at /usr/lib/system/libsystem_kernel.dylib (unknown line)
Allocations: 3038175 (Pool: 3036876; Big: 1299); GC: 3
Abort trap: 6

#3

Maybe this will help? https://github.com/JuliaGraphics/Gtk.jl/issues/180#issuecomment-324194031


#4

I’ll test this soon!


#5

That solved the problem! Thanks!


#6

I think that when you first install/build Gtk.jl there’s a warning (from Gtk) that tells you that the cache (loaders.cache) is not build correctly, and it gives you a command to run to fix it. I’m not sure where the issue originates from.


#7

Possibly. Or, I’m sure you’re right. The issue arises from users that over look warnings and just drudge along (me for example).
Maybe the suggested fix can be part of the Gtk install.