Observers persisted into Session file, but not displayed in GUI In FryskGui as built from CVS head on 20060616 - perform the following steps to recreate problem: 1) In FryskGui, create new session 2) Select a process to monitor (e.g., tcsh) 3) Select an observer to configure with process (e.g., Fork Observer) 4) Quit FryskGui 5) Verify that $HOME/.frysk/Sessions/yourNewSession file is correct: ---------------------------------- <Session type="frysk.gui.sessions.Session" name="csh" tooltip="NoTootip"> <procs> <elements> <element type="frysk.gui.sessions.DebugProcess" name="tcsh" tooltip="tcsh" executablePath="/bin/tcsh"> <observers> <element name="Fork Observer" /> </observers> <tagsets /> </element> </elements> </procs> </Session> ---------------------------------- 6) Start up FryskGui again 7) Select and edit the newly created Session object 8) On the observers tab, note that no observers are selected (see attachment) 9) Select an Observer to configure with the Session (e.g., Fork Observer) 10) This exception results: java.lang.NullPointerException at frysk.gui.druid.CreateFryskSessionDruid$7.cellRendererToggleEvent(FryskGui) at org.gnu.gtk.CellRendererToggle.fireCellRendererToggleEvent(libgtkjava-2.8.so) at org.gnu.gtk.CellRendererToggle.handleToggled(libgtkjava-2.8.so) at org.gnu.gtk.Gtk.gtk_main(libgtkjava-2.8.so) at org.gnu.gtk.Gtk.main(libgtkjava-2.8.so) at frysk.gui.Gui.gui(FryskGui) at frysk.gui.FryskGui.main(FryskGui) 11) But - the observer is configured - anytime after step 3 - the session does execute the observer.
Created attachment 1102 [details] Screen shot
Hang on - this is partially a user error and partially the Gui not protecting the user from himself. The problem displayed in the attached screen shot is that the user did not first select a process before selecting an observer. That explains the NullPointerException!
Thanks for the clarification. I think I just fixed the unselected tree situation with Changelog indication below. Please retest and close if so. Thanks. 2006-06-19 Phil Muldoon <pmuldoon@redhat.com> * ListView.java (add): (Plus add() overrides). Make sure that if add() is the first object in the tree, select it. Fixes bz 2802.
I've tested this today, and it seems to fulfill the bug requirements. The Changelog patch seems to have resolved the issue. Closing - please reopen if behaviour occurs again.
*** Bug 2811 has been marked as a duplicate of this bug. ***