# Gtk pixbuf errors on a mac

**URL:** <https://discourse.julialang.org/t/gtk-pixbuf-errors-on-a-mac/5754>\
**Category:** General Usage\
**Tags:** question\
**Created:** [September 7, 2017, 8:15am UTC](https://discourse.julialang.org/t/gtk-pixbuf-errors-on-a-mac/5754 "2017-09-07T08:15:53Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![yakir12](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/yakir12/32/297_2.png) [@yakir12](https://discourse.julialang.org/u/yakir12)\
**Post date:** [September 7, 2017, 8:15am UTC](https://discourse.julialang.org/t/gtk-pixbuf-errors-on-a-mac/5754/1 "2017-09-07T08:15:53Z")

</div>

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
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]

```

---

<div class="post-metadata">

**Author:** ![tobias.knopp](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tobias.knopp/32/7551_2.png) [@tobias.knopp](https://discourse.julialang.org/u/tobias.knopp)\
**Post date:** [September 7, 2017, 11:19am UTC](https://discourse.julialang.org/t/gtk-pixbuf-errors-on-a-mac/5754/2 "2017-09-07T11:19:13Z")

</div>

I see the same without the locale warning

```julia
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

```

---

<div class="post-metadata">

**Author:** ![avik](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/avik/32/17_2.png) [@avik](https://discourse.julialang.org/u/avik)\
**Post date:** [September 7, 2017, 11:23am UTC](https://discourse.julialang.org/t/gtk-pixbuf-errors-on-a-mac/5754/3 "2017-09-07T11:23:00Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![yakir12](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/yakir12/32/297_2.png) [@yakir12](https://discourse.julialang.org/u/yakir12)\
**Post date:** [September 7, 2017, 11:30am UTC](https://discourse.julialang.org/t/gtk-pixbuf-errors-on-a-mac/5754/4 "2017-09-07T11:30:16Z")

</div>

I’ll test this soon!

---

<div class="post-metadata">

**Author:** ![yakir12](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/yakir12/32/297_2.png) [@yakir12](https://discourse.julialang.org/u/yakir12)\
**Post date:** [September 7, 2017, 2:34pm UTC](https://discourse.julialang.org/t/gtk-pixbuf-errors-on-a-mac/5754/5 "2017-09-07T14:34:39Z")

</div>

That solved the problem! Thanks!

---

<div class="post-metadata">

**Author:** ![jonathanBieler](https://avatars.discourse-cdn.com/v4/letter/j/82dd89/32.png) [@jonathanBieler](https://discourse.julialang.org/u/jonathanBieler)\
**Post date:** [September 7, 2017, 2:39pm UTC](https://discourse.julialang.org/t/gtk-pixbuf-errors-on-a-mac/5754/6 "2017-09-07T14:39:52Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![yakir12](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/yakir12/32/297_2.png) [@yakir12](https://discourse.julialang.org/u/yakir12)\
**Post date:** [September 7, 2017, 2:43pm UTC](https://discourse.julialang.org/t/gtk-pixbuf-errors-on-a-mac/5754/7 "2017-09-07T14:43:48Z")

</div>

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.
