This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 233265 - Stack traces in Debugging window scroll out of view
Summary: Stack traces in Debugging window scroll out of view
Status: RESOLVED FIXED
Alias: None
Product: debugger
Classification: Unclassified
Component: Java (show other bugs)
Version: 7.4
Hardware: PC Linux
: P3 normal (vote)
Assignee: Martin Entlicher
URL:
Keywords: USABILITY
Depends on:
Blocks:
 
Reported: 2013-07-23 20:24 UTC by Jesse Glick
Modified: 2014-07-31 08:59 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Proposed Patch (8.95 KB, patch)
2014-02-13 08:45 UTC, Jaroslav Havlin
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jesse Glick 2013-07-23 20:24:03 UTC
Reporting from a dev build, but has occurred for a long time, years probably. JDK 7, Ubuntu, Nimbus. When I am stopped at a breakpoint, and have the Debugging window open (in right sliding mode), I can expand the active thread to see the stack trace leading up to the BP.

I frequently need to click Hidden Source Calls to see some critical portion of the stack. (As an aside, this is broken: right now I am at a breakpoint in Jenkins, and all the visible stack lines are from libraries; the interesting stack lines, from sources in one of the open projects, are Hidden!)

Unfortunately just before I go to click on some node in this view, something refreshes—maybe a background thread from some executor service getting recycled?—and the window scrolls all the way to the bottom, moving the interesting part (at the top) out of reach. If I move fast enough, I can eventually click what I need to click and see the information I need to see, but it is like playing a video game to get there.
Comment 1 Martin Entlicher 2013-07-24 16:13:27 UTC
I've seen this. It's annoying. We need to identify what makes the window to scroll.
Comment 2 Jaroslav Havlin 2014-02-13 08:45:35 UTC
Created attachment 145122 [details]
Proposed Patch

The scrolling seems to behave quite reasonable with the patch.

Side effect:
When a method is stepped into (or exited), debugging window scrolls to the current thread's stack trace.
Comment 3 Jaroslav Havlin 2014-02-18 16:44:41 UTC
http://hg.netbeans.org/core-main/rev/2ec3bf3d72ae
Fixed. Thanks for reporting.
Comment 4 Quality Engineering 2014-02-19 02:45:36 UTC
Integrated into 'main-silver', will be available in build *201402190001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/2ec3bf3d72ae
User: Jaroslav Havlin <jhavlin@netbeans.org>
Log: #233265: Stack traces in Debugging window scroll out of view
Comment 5 Jesse Glick 2014-02-19 20:23:09 UTC
OK so far in 20140219-56d93f8aa028, though I have not tried to exercise it much.
Comment 6 Jesse Glick 2014-02-23 17:39:43 UTC
Still not working well for me in 20140219-56d93f8aa028. Have a suspended thread with ~20 frames in its stack (none “hidden”); the Debugging window keeps on scrolling to the bottom, moving most of this thread out of view. This happens even without me doing anything at all in the IDE. Possibly one or two unrelated threads have started or stopped, but at any rate this ought not cause the scroll position to change abruptly.
Comment 7 Martin Entlicher 2014-07-30 11:55:24 UTC
The fix to issue #137179 has caused this. I've change it to delegate scrollRectToVisible() to the proper view in changeset:   276908:379f7c4a2745
http://hg.netbeans.org/core-main/rev/379f7c4a2745
Comment 8 Quality Engineering 2014-07-31 08:59:12 UTC
Integrated into 'main-silver', will be available in build *201407310738* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/379f7c4a2745
User: mentlicher@netbeans.org
Log: #233265: Do not scroll the view as a reponse to selection changes. Respond to scrollRectToVisible() instead.