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

Bug 347765

Summary: Once in a while when opening a new Task Editor Eclipse crashes
Product: [Eclipse Project] Platform Reporter: Tomasz Zarna <tomasz.zarna>
Component: SWTAssignee: Platform-SWT-Inbox <platform-swt-inbox>
Status: CLOSED DUPLICATE QA Contact:
Severity: major    
Priority: P3 CC: eclipse.felipe, steffen.pingel
Version: 3.7   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
The latest java dump
none
Threads none

Description Tomasz Zarna CLA 2011-05-31 07:31:30 EDT
Created attachment 196978 [details]
The latest java dump

Eclipse I20110528-0800
Mylyn 3.6.0.I20110523-2039

No specific steps, but it usually happens when I'm opening a new Task Editor, but once or twice it crashed after I was able to modify some fields in the editor.

No exception in the Error Log after restarting but I'm able to provide:
* core dump -- core.20110531.131706.5308.0001.dmp (400+MB)
* java dump -- javacore.20110531.131706.5308.0003.txt (<2MB)
* snap trace -- Snap.20110531.131706.5308.0002.trc (300+kB)

Actually, I have 15 of these :|
Comment 1 Tomasz Zarna CLA 2011-05-31 07:32:43 EDT
(In reply to comment #0)
> Created attachment 196978 [details]
> The latest java dump

I think this is the interesting part:

1XMCURTHDINFO  Current thread
NULL           ----------------------
3XMTHREADINFO      "main" J9VMThread:0x46811300, j9thread_t:0x0001517C, java/lang/Thread:0x009F1690, state:R, prio=6
3XMTHREADINFO1            (native thread ID:0x1468, native priority:0x6, native policy:UNKNOWN)
3XMTHREADINFO3           Java callstack:
4XESTACKTRACE                at org/eclipse/swt/internal/gdip/Gdip.Graphics_FillPolygon(Native Method)
4XESTACKTRACE                at org/eclipse/swt/graphics/GC.fillPolygon(GC.java:2980(Compiled Code))
4XESTACKTRACE                at org/eclipse/ui/forms/widgets/Section.onPaint(Section.java:405)
4XESTACKTRACE                at org/eclipse/ui/forms/widgets/ExpandableComposite$1.paintControl(ExpandableComposite.java:560)
4XESTACKTRACE                at org/eclipse/swt/widgets/TypedListener.handleEvent(TypedListener.java:229(Compiled Code))
4XESTACKTRACE                at org/eclipse/swt/widgets/EventTable.sendEvent(EventTable.java:84(Compiled Code))
4XESTACKTRACE                at org/eclipse/swt/widgets/Widget.sendEvent(Widget.java:1053(Compiled Code))
4XESTACKTRACE                at org/eclipse/swt/widgets/Widget.sendEvent(Widget.java:1077(Compiled Code))
4XESTACKTRACE                at org/eclipse/swt/widgets/Widget.sendEvent(Widget.java:1062(Compiled Code))
4XESTACKTRACE                at org/eclipse/swt/widgets/Composite.WM_PAINT(Composite.java:1405(Compiled Code))
4XESTACKTRACE                at org/eclipse/swt/widgets/Control.windowProc(Control.java:4585(Compiled Code))
4XESTACKTRACE                at org/eclipse/swt/widgets/Canvas.windowProc(Canvas.java:341(Compiled Code))
4XESTACKTRACE                at org/eclipse/swt/widgets/Display.windowProc(Display.java:4985(Compiled Code))
4XESTACKTRACE                at org/eclipse/swt/internal/win32/OS.RedrawWindow(Native Method)
4XESTACKTRACE                at org/eclipse/swt/widgets/Control.update(Control.java:4380(Compiled Code))
4XESTACKTRACE                at org/eclipse/swt/widgets/Display.update(Display.java:4846)
4XESTACKTRACE                at org/eclipse/jface/window/Window.runEventLoop(Window.java:832(Compiled Code))
4XESTACKTRACE                at org/eclipse/jface/window/Window.open(Window.java:801)
4XESTACKTRACE                at org/eclipse/mylyn/tasks/ui/TasksUiUtil.openNewTaskEditor(TasksUiUtil.java:232)
4XESTACKTRACE                at org/eclipse/mylyn/tasks/ui/TasksUiUtil.openNewTaskEditor(TasksUiUtil.java:254)
4XESTACKTRACE                at org/eclipse/mylyn/internal/tasks/ui/actions/NewTaskAction.run(NewTaskAction.java:95)
4XESTACKTRACE                at org/eclipse/ui/actions/BaseSelectionListenerAction.runWithEvent(BaseSelectionListenerAction.java:168)
4XESTACKTRACE                at org/eclipse/jface/action/ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:584)
4XESTACKTRACE                at org/eclipse/jface/action/ActionContributionItem.access$2(ActionContributionItem.java:501)
4XESTACKTRACE                at org/eclipse/jface/action/ActionContributionItem$5.handleEvent(ActionContributionItem.java:411)
4XESTACKTRACE                at org/eclipse/swt/widgets/EventTable.sendEvent(EventTable.java:84(Compiled Code))
4XESTACKTRACE                at org/eclipse/swt/widgets/Widget.sendEvent(Widget.java:1053(Compiled Code))
4XESTACKTRACE                at org/eclipse/swt/widgets/Display.runDeferredEvents(Display.java:4165(Compiled Code))
4XESTACKTRACE                at org/eclipse/swt/widgets/Display.readAndDispatch(Display.java:3754(Compiled Code))
4XESTACKTRACE                at org/eclipse/ui/internal/Workbench.runEventLoop(Workbench.java:2696)
4XESTACKTRACE                at org/eclipse/ui/internal/Workbench.runUI(Workbench.java:2660)
4XESTACKTRACE                at org/eclipse/ui/internal/Workbench.access$4(Workbench.java:2494)
4XESTACKTRACE                at org/eclipse/ui/internal/Workbench$7.run(Workbench.java:674)
4XESTACKTRACE                at org/eclipse/core/databinding/observable/Realm.runWithDefault(Realm.java:332)
4XESTACKTRACE                at org/eclipse/ui/internal/Workbench.createAndRunWorkbench(Workbench.java:667)
4XESTACKTRACE                at org/eclipse/ui/PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
4XESTACKTRACE                at org/eclipse/ui/internal/ide/application/IDEApplication.start(IDEApplication.java:123)
4XESTACKTRACE                at org/eclipse/equinox/internal/app/EclipseAppHandle.run(EclipseAppHandle.java:196)
4XESTACKTRACE                at org/eclipse/core/runtime/internal/adaptor/EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
4XESTACKTRACE                at org/eclipse/core/runtime/internal/adaptor/EclipseAppLauncher.start(EclipseAppLauncher.java:79)
4XESTACKTRACE                at org/eclipse/core/runtime/adaptor/EclipseStarter.run(EclipseStarter.java:344)
4XESTACKTRACE                at org/eclipse/core/runtime/adaptor/EclipseStarter.run(EclipseStarter.java:179)
4XESTACKTRACE                at sun/reflect/NativeMethodAccessorImpl.invoke0(Native Method)
4XESTACKTRACE                at sun/reflect/NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:48)
4XESTACKTRACE                at sun/reflect/DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
4XESTACKTRACE                at java/lang/reflect/Method.invoke(Method.java:600)
4XESTACKTRACE                at org/eclipse/equinox/launcher/Main.invokeFramework(Main.java:622)
4XESTACKTRACE                at org/eclipse/equinox/launcher/Main.basicRun(Main.java:577)
4XESTACKTRACE                at org/eclipse/equinox/launcher/Main.run(Main.java:1410)
4XESTACKTRACE                at org/eclipse/equinox/launcher/Main.main(Main.java:1386)
Comment 2 Steffen Pingel CLA 2011-06-16 06:55:26 EDT
Thanks for the report. Would you be able to try running a Sun/Oracle JVM to verify if these crashes are specific to the IBM JVM?
Comment 3 Tomasz Zarna CLA 2011-06-16 08:56:29 EDT
Sure, I've just switched to Sun's JVM 1.6.0_17-b04, will let you know if/when I see it again.
Comment 4 Tomasz Zarna CLA 2011-06-16 11:42:54 EDT
Created attachment 198125 [details]
Threads

Now, I'm getting a lot of these ( updated the JVM in the meantime).
Comment 5 Steffen Pingel CLA 2011-06-16 12:46:25 EDT
I am moving this to SWT for additional input. 

Stack trace from the hs_err_pid.log:

Stack: [0x00030000,0x00130000],  sp=0x0012e44c,  free space=3f90012df80k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
C  [gdiplus.dll+0xf47d]
C  [gdiplus.dll+0xf008]
C  [gdiplus.dll+0xd9b8a]
C  [gdiplus.dll+0xd9d3f]
C  [gdiplus.dll+0x78f64]
C  [gdiplus.dll+0x12365]
C  [gdiplus.dll+0xf475]
C  [gdiplus.dll+0x43188]
C  [gdiplus.dll+0xe6409]
C  [gdiplus.dll+0x417ba]
C  [gdiplus.dll+0x41778]
C  [gdiplus.dll+0xb3737]
C  [gdiplus.dll+0xa099d]
C  [gdiplus.dll+0xa0aab]
C  [swt-gdip-win32-3735.dll+0x537e]
j  org.eclipse.swt.internal.gdip.Gdip.Graphics_FillPolygon(II[III)I+0
j  org.eclipse.swt.graphics.GC.fillPolygon([I)V+74
j  org.eclipse.ui.forms.widgets.Section.onPaint(Lorg/eclipse/swt/events/PaintEvent;)V+584
j  org.eclipse.ui.forms.widgets.ExpandableComposite$1.paintControl(Lorg/eclipse/swt/events/PaintEvent;)V+5
J  org.eclipse.swt.widgets.TypedListener.handleEvent(Lorg/eclipse/swt/widgets/Event;)V
J  org.eclipse.swt.widgets.EventTable.sendEvent(Lorg/eclipse/swt/widgets/Event;)V
J  org.eclipse.swt.widgets.Widget.sendEvent(ILorg/eclipse/swt/widgets/Event;Z)V
J  org.eclipse.swt.widgets.Widget.sendEvent(ILorg/eclipse/swt/widgets/Event;)V
j  org.eclipse.swt.widgets.Composite.WM_PAINT(II)Lorg/eclipse/swt/internal/win32/LRESULT;+1429
J  org.eclipse.swt.widgets.Control.windowProc(IIII)I
J  org.eclipse.swt.widgets.Canvas.windowProc(IIII)I
J  org.eclipse.swt.widgets.Display.windowProc(IIII)I
Comment 6 Felipe Heidrich CLA 2011-06-17 10:59:45 EDT

*** This bug has been marked as a duplicate of bug 301508 ***