GNOME Bugzilla – Bug 368602
Warning when running dogtail tests
Last modified: 2006-11-07 17:32:31 UTC
One of the Dogtail tests included with Evince triggers a warning: Breakpoint 1, IA__g_log (log_domain=0xb748671c "GLib-GObject", log_level=G_LOG_LEVEL_WARNING, format=0xb74877d8 "%s: couldn't find weak ref %p(%p)") at gmessages.c:516 516 va_start (args, format); (gdb) bt
+ Trace 81212
The program is running. Quit anyway (and detach it)? (y or n) t Please answer y or n. The program is running. Quit anyway (and detach it)? (y or n) y Detaching from program: /opt/gnome-2-16/bin/evince, process 16265
Relevant script output: elin:/opt/gnome-2-16/src/evince/test > ./test2.py Creating logfile at /tmp/dogtail/logs/test2_20061101-001004_debug ... Detecting distribution: JHBuild environment GTK Accessibility Module initialized GTK Accessibility Module initialized Bonobo accessibility support initialized Error: Incorrect password Typing text into {child with name="Password Entry" roleName='password text'}: 'wrong password' click on {child with name="OK" roleName='push button'} Error: Incorrect password click on {child with name="Cancel" roleName='push button'} click on {child with name="Unlock Document" roleName='push button'} Typing text into {child with name="Password Entry" roleName='password text'}: 'Foo' click on {child with name="OK" roleName='push button'} click on {child with name="File" roleName='menu'} click on {child with name="Close" roleName='menu item'} (evince:17026): GLib-GObject-WARNING **: IA__g_object_weak_unref: couldn't find weak ref 0xb74992b0(0xb67aa238)
Created attachment 75745 [details] [review] Proposed fix Kris and I did look into this issue and we found the following: It seems that in some cases the pointer to the focused widget is reset to NULL, and in some other cases it is not. The attached patch adds some consistency and fixes the warning mentioned before. Please review thoroughly, because neither Kris nor I are familiar with the gail codebase.
For completeness, script output after the above patch was applied: elin:/opt/gnome-2-16/src/evince/test > ./test2.py Creating logfile at /tmp/dogtail/logs/test2_20061101-001120_debug ... Detecting distribution: JHBuild environment GTK Accessibility Module initialized GTK Accessibility Module initialized Bonobo accessibility support initialized Error: Incorrect password Typing text into {child with name="Password Entry" roleName='password text'}: 'wrong password' click on {child with name="OK" roleName='push button'} Error: Incorrect password click on {child with name="Cancel" roleName='push button'} click on {child with name="Unlock Document" roleName='push button'} Typing text into {child with name="Password Entry" roleName='password text'}: 'Foo' click on {child with name="OK" roleName='push button'} click on {child with name="File" roleName='menu'} click on {child with name="Close" roleName='menu item'}
Thanks Wouter and Kris! Patch looks great, committed. (if you want to commit future patches yourself just let me know)