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

Bug 330382

Summary: [Win32] Infinite loop trying to display a tree
Product: [Eclipse Project] Platform Reporter: Gary Karasiuk <karasiuk>
Component: SWTAssignee: Platform-SWT-Inbox <platform-swt-inbox>
Status: RESOLVED WORKSFORME QA Contact:
Severity: normal    
Priority: P3 CC: eclipse.felipe, kathy
Version: 3.6.1   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard: stalebug
Attachments:
Description Flags
javacore and tprof files none

Description Gary Karasiuk CLA 2010-11-16 12:27:42 EST
I was using a adopting product and it went into a hard loop while trying to display a tree. I let it run for over 30 minutes, and it was stuck in this fragment of code:

3XMTHREADINFO      "main" J9VMThread:0x0017A200, j9thread_t:0x003A5504, java/lang/Thread:0x00A491F8, state:CW, prio=6
at org/eclipse/swt/internal/win32/OS.CallWindowProcW(Native Method)
at org/eclipse/swt/internal/win32/OS.CallWindowProc(Bytecode PC:12(Compiled Code))
at org/eclipse/swt/widgets/Tree.callWindowProc(Bytecode PC:12(Compiled Code))
at org/eclipse/swt/widgets/Control.windowProc(Bytecode PC:1798(Compiled Code))
at org/eclipse/swt/widgets/Tree.windowProc(Bytecode PC:1715(Compiled Code))
at org/eclipse/swt/widgets/Display.windowProc(Bytecode PC:265(Compiled Code))
at org/eclipse/swt/internal/win32/OS.SendMessageW(Native Method)
at org/eclipse/swt/internal/win32/OS.SendMessage(Bytecode PC:10(Compiled Code))
at org/eclipse/swt/widgets/Tree.createItem(Bytecode PC:10(Compiled Code))
at org/eclipse/swt/widgets/TreeItem.(Bytecode PC:28(Compiled Code))
at org/eclipse/swt/widgets/TreeItem.(Bytecode PC:28(Compiled Code))
at org/eclipse/jface/viewers/TreeViewer.createNewRowPart(Bytecode PC:28(Compiled Code))

I took several stack traces and it was always stuck in the same place. My machine has 4 processors, and the CPU was pegged at 25% the entire time. 

I'm not sure what you will need to debug this, I'll attach a couple javacore files. I'll also attach a tprof report, that shows where the time was being spent on the system. From the tprof re[port I can see that all the time was spent here:

   PID   3928 25.63    javaw.exe_0f8c
    MOD   3772 24.61     C:\WINDOWS\WinSxS\x86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0.2600.6028_x-ww_61e65202\comctl32.dll

I created a crash dump, which I can also send if that would be useful.
Comment 1 Gary Karasiuk CLA 2010-11-16 12:32:05 EST
Created attachment 183245 [details]
javacore and tprof files
Comment 2 Felipe Heidrich CLA 2010-11-17 10:24:41 EST
What version of Eclipse are you running ?
What version of Windows are you running ?
Do you know how to reproduce the problem ?
Comment 3 Gary Karasiuk CLA 2010-11-17 13:05:36 EST
(In reply to comment #2)
> What version of Eclipse are you running ?
> What version of Windows are you running ?
> Do you know how to reproduce the problem ?

Eclipse 3.6.1
Windows XP Profession SP3 (32-bit)
I suspect that it is not reproducible and is some sort of race condition.
Comment 4 Eclipse Genie CLA 2018-12-29 01:44:12 EST
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.
Comment 5 Lars Vogel CLA 2019-09-02 15:01:55 EDT
This bug was marked as stalebug a while ago. Marking as worksforme.

If this report is still relevant for the current release, please reopen and remove the stalebug whiteboard tag.
Comment 6 Lars Vogel CLA 2019-09-02 15:03:17 EDT
This bug has been marked as stalebug a while ago without any further interaction.

If this report is still relevant for the current release, please reopen and remove the stalebug whiteboard flag.