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.

29 comments:

  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

    ReplyDelete
  2. Same problem with Gparted.

    Worked like a charm... Thanks !

    ReplyDelete
  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!

    ReplyDelete
  4. Your fix worked great for wireshark. Thanks!

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

    ReplyDelete
  6. Thanks for posting the solution!

    ReplyDelete
  7. Thank you! This was driving me crazy.

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

    ReplyDelete
  9. Thank you, this post saved my day.

    ReplyDelete
  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 ;)

    ReplyDelete
  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 ;)

    ReplyDelete
  12. Thanks! this was helpful to fix this error

    ReplyDelete
  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

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

    ReplyDelete
  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. ;)

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

    ReplyDelete
  17. THANK YOU THANK YOU THANK YOU !!

    ReplyDelete
  18. It is really helpful, thx!

    Could you please tell me about the theory?

    ReplyDelete
  19. Thank you! this worked like a charm!

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

    ReplyDelete
  21. Do you need to increase your credit score?
    Do you intend to upgrade your school grade?
    Do you want to hack your cheating spouse Email, whatsapp, Facebook, instagram or any social network?
    Do you need any information concerning any database.
    Do you need to retrieve deleted files?
    Do you need to clear your criminal records or DMV?
    Do you want to remove any site or link from any blog?
    you should contact this hacker, he is reliable and good at the hack jobs..
    contact : cybergoldenhacker at gmail dot com

    ReplyDelete