Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 145294

Summary: Jump From StackTrace
Product: [Eclipse Project] JDT Reporter: gaofeng <xzgf2004>
Component: DebugAssignee: Michael Rennie <Michael_Rennie>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: cocoakevin, xzgf2004
Version: 3.2   
Target Milestone: 3.3 M1   
Hardware: PC   
OS: Windows Server 2003   
Whiteboard:

Description gaofeng CLA 2006-06-05 04:18:05 EDT
When i debug the program,if the program was wrong and print stack trace in console ,i clicked the error link and want to jump into the position where the error was,but this process is very slow.In Eclipse3.1.2 was not.
CPU:P4
Memory:1G
Comment 1 Darin Wright CLA 2006-06-05 09:47:32 EDT
Can you provide more details about the case that is slow? What does the trace look like? how big is your workspace? is it slow all the time, or just the first time?
Comment 2 gaofeng CLA 2006-06-05 20:30:55 EDT
(In reply to comment #1)
> Can you provide more details about the case that is slow? What does the trace
> look like? how big is your workspace? is it slow all the time, or just the
> first time?

java.lang.NullPointerException
	at nc.ui.huarun.hua004.BudgetAnalyseUI.onCompuerTwice(BudgetAnalyseUI.java:454)
	at nc.ui.huarun.hua004.BudgetAnalyseUI.onButtonClicked(BudgetAnalyseUI.java:139)
	at nc.ui.pub.ToftPanel.handleButtonEvent(ToftPanel.java:148)
	at nc.ui.pub.FramePanel.dispatchButtonEvent(FramePanel.java:345)
	at nc.ui.pub.FramePanel.access$1(FramePanel.java:343)
	at nc.ui.pub.FramePanel$ButtonHandler.buttonClicked(FramePanel.java:55)
	at nc.ui.pub.ButtonBar.firePostEvent(ButtonBar.java:156)
	at nc.ui.pub.ButtonBar$1.run(ButtonBar.java:77)
	at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:189)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:478)
	at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)

this is the stack trace,when i click the onCompuerTwice function,it is very slow and jump into BudgetAnalyseUI.java:454.my workspace is very small ,only two projects. and it is slow all the time.
Comment 3 Kevin Barnes CLA 2006-06-22 14:15:47 EDT
Source lookup using the launch was failing because it was attempting to lookup a type name instead of a file name. As a result the OpenTypeAction was called to find the type and it iterates though all projects in the workspace which is potentially much slower.
Fixed in JavaDebugUtils (made a utility method public), and JavaStackTraceHyperlink.
Comment 4 Kevin Barnes CLA 2006-06-22 14:16:06 EDT
Mike, pls verify
Comment 5 Michael Rennie CLA 2006-06-24 12:57:52 EDT
verified
Comment 6 gaofeng CLA 2006-06-25 22:53:59 EDT
ok