Summary: | Frysk crashes when trying to open the source window to view a stack trace | ||
---|---|---|---|
Product: | frysk | Reporter: | Sami Wagiaalla <swagiaal> |
Component: | general | Assignee: | Mike Cvet <mcvet> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | mcvet, rmoseley, scox |
Priority: | P2 | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Host: | Target: | ||
Build: | Last reconfirmed: | ||
Bug Depends on: | |||
Bug Blocks: | 1633, 2935 |
Description
Sami Wagiaalla
2007-03-20 19:11:00 UTC
sami> there is more <sami> java.lang.NullPointerException <sami> at frysk.gui.srcwin.SourceWindow.attachEvents(FryskGui) <sami> at frysk.gui.srcwin.SourceWindow.finishSourceWin(FryskGui) <sami> at frysk.gui.srcwin.SourceWindow.<init>(FryskGui) <sami> at frysk.gui.srcwin.SourceWindowFactory.createSourceWindow(FryskGui) <sami> at frysk.gui.monitor.eventviewer.TimeLine$TimeLineDrawingArea.mouseEvent(FryskGui) <sami> at org.gnu.gtk.Widget.fireMouseEvent(libgtkjava-2.8.so) <sami> at org.gnu.gtk.Widget.handleButtonPressed(libgtkjava-2.8.so) This is a special case because the use StackFrame stack trace is a saved stack trace from a previous event, and then process is currently running during the attempted raising of the SourceWindow. 2007-03-22 Mike Cvet <mcvet@redhat.com> * SourceWindow.java (generateProcStackTrace): Only set frames for SymTab if the RunState is stopped. Addresses #4222. I can't reproduce the lib.dw error, but do still get the SourceWindow nullpointer. I believe this should fix it. Sami? 2007-03-22 Mike Cvet <mcvet@redhat.com> * SourceWindow.java (generateProcStackTrace): Only set frames for SymTab if the RunState is not running. Addresses #4222. * SourceWindow.java (SourceWindow): Don't call populateStackBrowser() explicitly; instead set global StackFrame array. (finishSourceWin): If the RunState is not stopped, use the global StackFrame array as a parameter to populateStackTrace(). (populateStackBrowser): Set temporary StackFrame to first element of array parameter if the StackView returns no selected frame. Fixes #4222. According to sami, the above patch fixes the problem. |