Tuesday, June 15, 2010

Resolving "murrine_style_draw_box: assertion `height >= -1'"

When using Emacs 23 and a few other applications on Ubuntu running GNOME, I often get a irritatingly cryptic error message ** (emacs:25074): CRITICAL **: murrine_style_draw_box: assertion `height >= -1' failed. Turns out it has got something to do with the theme I'm running.

Thanks to Alf, it is very easy to get rid of that by tweaking Gtk configuration. Modify the entry in /usr/share/themes/Ambiance/gtk-2.0/gtkrc from GtkRange::trough-under-steppers = 0 to GtkRange::trough-under-steppers = 1.


  1. Thanks for the help!! Worked like a charm... Just upgraded to Ubunto 10.0 64 bit and had those messages with emacs23.. Now their gone.. Thanks again!!! -Don

  2. Same problem with Gparted.

    Worked like a charm... Thanks !

  3. Just an additional info:
    this workaround works with any Theme your using. Just chance "Ambience" to your actual theme and that's it!
    A use the Radiance theme and this tweak saved my day!

  4. Your fix worked great for wireshark. Thanks!

  5. Anyone know what to edit if your theme is 'Custom'?

  6. Thanks for posting the solution!

  7. Thank you! This was driving me crazy.

  8. Thanks a lot for posting this workaround. The error was really bugging me.

  9. Thank you, this post saved my day.

  10. salve :)
    trovo lo stesso messaggio anche io quando apro emacs , ma dato che sono una principiante con Ubuntu qualcuno mi potrebbe gentilmente spiegare in modo elementare i passi per le modifiche che devo fare :$ !

    grazie millissimo ;)

  11. hi
    also find the same message when I open emacs, but since I am a beginner with Ubuntu :$ could someone explain in elementary steps for the changes that I do !

    thank you very much ;)

  12. Thanks! this was helpful to fix this error

  13. I am also having the same message from:
    GNU Emacs 23.2.1
    (x86_64-pc-linux-gnu, GTK+ Version 2.24.4)
    of 2011-04-04 on crested, modified by Debian
    running on Ubuntu 11.04 on amd64, despite having
    GtkRange::trough-under-steppers = 1

    in all themes where the setting appears:

    $ grep -r under-steppers /usr/share/themes
    /usr/share/themes/New Wave/gtk-2.0/gtkrc: GtkScrollbar ::trough-under-steppers= 1
    /usr/share/themes/Radiance/gtk-2.0/gtkrc: GtkRange::trough-under-steppers = 1
    /usr/share/themes/Dust Sand/gtk-2.0/gtkrc: GtkRange::trough-under-steppers = 1
    /usr/share/themes/Dust/gtk-2.0/gtkrc: GtkRange::trough-under-steppers = 1
    /usr/share/themes/Ambiance/gtk-2.0/gtkrc: GtkRange::trough-under-steppers = 1
    /usr/share/themes/New Wave Dark Menus/gtk-2.0/default-gtkrc: GtkScrollbar ::trough-under-steppers= 1

  14. OMG thank you so much!! this was annoying the hell out of me.

  15. If anybody can not find any solution by using the methods that have been suggested I recommend changing your gnome theme to some standard linux one. ;)

  16. how to modify GtkRange::trough-under-steppers = 0 , it is read only file in my system. thanks

  17. It is really helpful, thx!

    Could you please tell me about the theory?

  18. Thank you! this worked like a charm!

  19. i did it just by changing my theme and changing it back for rpikali