Bug 520726 - Sometime Eclipse freeze while building a makefile C project
Summary: Sometime Eclipse freeze while building a makefile C project
Status: NEW
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 4.7   Edit
Hardware: PC Linux
: P3 major (vote)
Target Milestone: ---   Edit
Assignee: Platform-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: needinfo
Depends on:
Blocks:
 
Reported: 2017-08-09 02:42 EDT by Alessandro Fardin CLA
Modified: 2020-04-07 02:59 EDT (History)
4 users (show)

See Also:


Attachments
jstack trace while in freeze state (33.47 KB, text/plain)
2017-08-09 02:43 EDT, Alessandro Fardin CLA
no flags Details
stack trace for freezes for comment 4 (213.59 KB, text/plain)
2017-09-06 03:15 EDT, Alessandro Fardin CLA
no flags Details
freeze stack trace for 2017-09-07 (269.22 KB, text/plain)
2017-09-07 08:44 EDT, Alessandro Fardin CLA
no flags Details
another stack trace for eclipse freeze (245.03 KB, text/plain)
2017-09-18 05:01 EDT, Alessandro Fardin CLA
no flags Details
jstack for eclipse freeze at 21 september 2017 (294.34 KB, text/plain)
2017-09-22 03:07 EDT, Alessandro Fardin CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alessandro Fardin CLA 2017-08-09 02:42:13 EDT
Eclipse freeze completely, the UI become darker (on ubuntu 16.04) .
This issue happened some times, it's not all the way replicable.
While in freeze state I've take some stack trace with jstack to send you
Last time it happened tah was the step sequence:

1) Starts a CDT build project (big makefile project, the project take 20 minute to build completly)
2) At some point while building I've switched ffrom the C perspective to the planning perspective
2.1) the planning perspective has  : task list,task repository,console,build views and the timekeeper plugin view.

ACTUAL RESULT
The perspective has changed, but eclipse freezes completely.
From the system monitor I can see that the build process was going on.
I've waited the end of the build (the attended file was created)
but eclipse remains freezed.
To resolve the problem I've killed the java process and restarted eclipse.


Ecliose is running on ubuntu 16.04 and has intalled:
CDT, PDT, JSDT, subversive...


-- Configuration Details --
Product: Eclipse 4.7.0.20170620-1800 (org.eclipse.epp.package.cpp.product)Installed Features:
 org.eclipse.platform 4.7.0.v20170612-1255
Comment 1 Alessandro Fardin CLA 2017-08-09 02:43:55 EDT
Created attachment 269753 [details]
jstack trace while in freeze state
Comment 2 Andrey Loskutov CLA 2017-08-09 03:04:39 EDT
The C console seem to be involved, but it can be also some StyledText/SWT issue. 

"main" #1 prio=6 os_prio=0 tid=0x00007fe0ac00b000 nid=0x24e3 runnable [0x00007fe0b2b24000]
   java.lang.Thread.State: RUNNABLE
	at org.eclipse.swt.internal.gtk.OS._pango_layout_iter_next_line(Native Method)
	at org.eclipse.swt.internal.gtk.OS.pango_layout_iter_next_line(OS.java:16034)
	at org.eclipse.swt.graphics.TextLayout.getLineBoundsInPixels(TextLayout.java:1040)
	at org.eclipse.swt.graphics.TextLayout.getLineBounds(TextLayout.java:1031)
	at org.eclipse.swt.graphics.TextLayout.getBounds(TextLayout.java:803)
	at org.eclipse.swt.custom.StyledTextRenderer.calculate(StyledTextRenderer.java:217)
	at org.eclipse.swt.custom.StyledTextRenderer.getLineHeight(StyledTextRenderer.java:568)
	at org.eclipse.swt.custom.StyledText.getLinePixel(StyledText.java:4270)
	at org.eclipse.swt.custom.StyledText.handleTextChanging(StyledText.java:6346)
	at org.eclipse.swt.custom.StyledText$5.textChanging(StyledText.java:5708)
	at org.eclipse.jface.text.DefaultDocumentAdapter.fireTextChanging(DefaultDocumentAdapter.java:367)
	at org.eclipse.jface.text.DefaultDocumentAdapter.documentAboutToBeChanged(DefaultDocumentAdapter.java:284)
	at org.eclipse.jface.text.AbstractDocument.fireDocumentAboutToBeChanged(AbstractDocument.java:633)
	at org.eclipse.jface.text.AbstractDocument.replace(AbstractDocument.java:1093)
	at org.eclipse.jface.text.AbstractDocument.replace(AbstractDocument.java:1118)
	at org.eclipse.cdt.internal.ui.buildconsole.BuildConsolePartitioner.updateUI(BuildConsolePartitioner.java:268)
	at org.eclipse.cdt.internal.ui.buildconsole.BuildConsolePartitioner$$Lambda$532/2134871294.run(Unknown Source)
	at org.eclipse.swt.widgets.Display.timerProc(Display.java:5171)
	at org.eclipse.swt.internal.gtk.OS._g_main_context_iteration(Native Method)
	at org.eclipse.swt.internal.gtk.OS.g_main_context_iteration(OS.java:2110)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:4105)

Are all stacks showing the state above?
Can you try to close the C console (I know that is popping up automatically, but may be there is a setting to disable it) and then try to reproduce?
Comment 3 Alessandro Fardin CLA 2017-08-09 05:39:51 EDT
Hi Andrey, my answares in line 

> Are all stacks showing the state above?
I've only that stack trace for the issue, And today I can't replicate the problem with or without C console opend
As I can replicate, I'll take some other trace and I'll sent to you

> Can you try to close the C console (I know that is popping up automatically, but
> may be there is a setting to disable it) and then try to reproduce?
I've already configure the C console to not automatically popping
Comment 4 Alessandro Fardin CLA 2017-09-06 03:05:07 EDT
Today after starting eclipse I've found that each time I start a build project process, eclipse freezes for about 10 seconds while building.
I've taken some stacktrace with jstak while freezed.
Then I've restarted eclipse, an all start working well without the freeze.
will follows an attachement with the stak traces
Comment 5 Alessandro Fardin CLA 2017-09-06 03:15:43 EDT
Created attachment 270091 [details]
stack trace for freezes for comment 4
Comment 6 Alessandro Fardin CLA 2017-09-07 08:43:29 EDT
Today build process make eclipse to freeze fo 10 seconds every time.
other stack traces will follow
Comment 7 Alessandro Fardin CLA 2017-09-07 08:44:24 EDT
Created attachment 270111 [details]
freeze stack trace for 2017-09-07
Comment 8 Alessandro Fardin CLA 2017-09-11 08:58:39 EDT
The freezes occours sometime, and the steps to reproduce is not clear and differents from time to time.
When eclipse starts to freeze, it freeze at each build, then restartin eclipse resolve the problem in most of the cases,
some time to resolve the problem I need to restart eclipse more times.
 
FOr these reason I Changed the bug description in a more general description
Comment 9 Alessandro Fardin CLA 2017-09-18 05:01:12 EDT
Created attachment 270241 [details]
another stack trace for eclipse freeze

eclipse freeze for several minutes while building a c make c project
2017-09-17
Comment 10 Alessandro Fardin CLA 2017-09-22 03:07:07 EDT
Created attachment 270303 [details]
jstack for eclipse freeze at 21 september 2017

freeze occour while building
Comment 11 Alessandro Fardin CLA 2020-04-06 18:58:29 EDT
Clould this related to Bug 168557 - [StyledText] StyledText is very slow with long string + word wrap or other variable line height ?
Comment 12 Lars Vogel CLA 2020-04-07 02:59:56 EDT
(In reply to Alessandro Fardin from comment #11)
> Clould this related to Bug 168557 - [StyledText] StyledText is very slow
> with long string + word wrap or other variable line height ?

Can you try with latest I-Build which contains the fix?