Bug 2097 - Missing stack trace in log makes it impossible to debug (1GE6MZR)
Summary: Missing stack trace in log makes it impossible to debug (1GE6MZR)
Status: RESOLVED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 2.0   Edit
Hardware: All Windows 2000
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Eduardo Pereira CLA
QA Contact:
URL:
Whiteboard:
Keywords: usability
Depends on:
Blocks:
 
Reported: 2001-10-10 22:26 EDT by Jerome Lanneluc CLA
Modified: 2002-03-25 11:22 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jerome Lanneluc CLA 2001-10-10 22:26:24 EDT
During an incremental build, I got a dialog that said "null" and nothing else.

	When I went to the .log, I had the following:
Log: Wed May 23 16:07:09 CEST 2001
1 org.eclipse.core.resources 4 Exception in 
org.eclipse.ui.internal.GlobalBuildAction.run: java.lang.OutOfMemoryError

	How do we expect an ISV provider to debug his/her code with so litle 
information? If because of the OutOfMemoryError
	we were not able to dump the stack trace, then we should not catch it 
(the VM knows how to show it). Otherwise,
	we should first report the OutOfMemoryError in the dialog, then we 
should show the stack trace.

NOTES:
Comment 1 DJ Houghton CLA 2001-10-29 17:51:12 EST
PRODUCT VERSION:
	SDK 0.110

Comment 2 Jerome Lanneluc CLA 2001-12-19 05:30:48 EST
Can we get a fix for this?
Comment 3 Eduardo Pereira CLA 2002-02-11 16:59:21 EST
We have changed the code that handle exceptions in the event loop. It is doing 
a better job but OutOfMemory is not always possible to handle. We may not even 
have memory to do the catch block. 
It should work better in "99%" of the cases.
Comment 4 Jerome Lanneluc CLA 2002-03-04 06:51:53 EST
What about an option to NOT catch this exception at all? If I check this 
option, I wouldn't mind letting the VM exit as long as I can see the stack 
trace.
Comment 5 Eduardo Pereira CLA 2002-03-25 11:15:49 EST
1) We are trying to avoid options. Too many option makes things dificulty to 
manage and to reproduce bug reports, etc.

2) I have reproduced two diff cases:
   i) The user code is allocating big chunks of memory. In this case the 
stacktrace is shown and it is usefull.
   ii) When the OutOfMem happens allocating a small object. In this case we do 
not have memory to run the catch block but the stack trace may not help the 
user anyway because the place it failed to allocate may not be the same as the 
one that is allocating to much memory.
Comment 6 Jerome Lanneluc CLA 2002-03-25 11:22:28 EST
Thanks for the explanation Eduardo. I now know that if I don't see the stack 
trace, it is a case of a VM that was started with too small a heap.