From: Nathaniel Talbott Date: 2002-03-20T10:32:57+09:00 Subject: RE: Test::Unit GTk GUI Bil Kleb [mailto:W.L.Kleb@LaRC.NASA.Gov] wrote: > However, after installing and sucessfully running the tests > that ship with the new version of ruby-gtk, I am still > getting a similar font assertion failures as before (and > found some new instance warnings by invoking my test case > from an emacs shell), e.g., OK, before I go on, true confessions time... I haven't used a GUI test runner for Ruby in ages, because there is not a safe way to load in changes to a test runner after it is already launched. This means the GUI has to be closed down and re-opened each time something is changed, which introduces too much friction in to the process for me; thus I've opted to use the console for now. Perhaps someday re-initialization will be possible, and then I'll be the first to go hunting for the green bar again. This means that the GUI runners are not as well cared for as the Console::TestRunner. Can they be used? Certainly. If they fill your need, use them. If more people seem to be using them (like right now), I'll commit more time to maintaining them. Anyhow, on to the question you were really asking :-) I've fixed these; the change will be committed shortly. > Gdk-CRITICAL **: file gdkfont.c: line 236 (gdk_font_ref): > assertion `font != NULL' failed. > (eval):1: warning: instance variable @status_panel not initialized > (eval):1: warning: instance variable @status_entry not initialized > > Gdk-CRITICAL **: file gdkfont.c: line 334 > (gdk_string_width): assertion `font != NULL' failed. Uh... it works for me? Unfortunately (in more ways than one) I'm on Windows and don't have a GUI-enabled Linux box near at hand, so it's hard for me to work on the GTK stuff. I'm running some ancient version of the Windows GTK port, and ruby-gtk 0.25. I can't duplicate your problem, so it's hard for me to know how to fix it. The only thing I can think of off the top of my head is that the font I'm trying to load for the runner doesn't exist on your box, but that's a serious shot in the dark. > Still reading the manuals/docs and pining for the green bar, Sorry I can't be of more help :-( Let me know if you figure it out, and I'll make sure any necessary changes make it in to the distro. Nathaniel <:((>< + - - | RoleModel Software, Inc. | EQUIP VI