Bug 465855 - Eclipse main thread freezes on some saves
Summary: Eclipse main thread freezes on some saves
Status: REOPENED
Alias: None
Product: DLTK
Classification: Technology
Component: Common (show other bugs)
Version: unspecified   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: dltk.common-inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-04-29 15:55 EDT by Jorrit Schippers CLA
Modified: 2020-04-18 15:38 EDT (History)
1 user (show)

See Also:


Attachments
eclipse installation information (514.32 KB, text/plain)
2015-04-29 15:55 EDT, Jorrit Schippers CLA
no flags Details
eclipse log file, containing an exception that might be of interest (862.46 KB, text/plain)
2015-04-29 15:55 EDT, Jorrit Schippers CLA
no flags Details
visualvm thread dump, the main thread seems to be waiting on something (38.00 KB, text/plain)
2015-04-29 15:56 EDT, Jorrit Schippers CLA
no flags Details
new thread dump (39.95 KB, text/plain)
2015-05-11 04:01 EDT, Jorrit Schippers CLA
no flags Details
new eclipse installation information (689.38 KB, text/plain)
2015-05-11 04:02 EDT, Jorrit Schippers CLA
no flags Details
screenshot of builders problem (51.21 KB, image/png)
2015-06-10 04:46 EDT, Jorrit Schippers CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jorrit Schippers CLA 2015-04-29 15:55:05 EDT
Created attachment 252912 [details]
eclipse installation information

I use the nightly dltk and PDT versions on Ubuntu 14.10 64-bit using the 32-bit Sun JVM version 1.6. I update the PDT plugin regularly.

Since a couple weeks or months (I don't remember) the IDE hangs sometimes when I save a PHP file. The program is unresponsive and Ubuntu applies a semitransparent overlay to indicate that the program doesn't respond. After about 10 seconds the delay is over.

I'll attach files that hopefully lead to a cause for this problem, but perhaps my JVM is too old?
Comment 1 Jorrit Schippers CLA 2015-04-29 15:55:38 EDT
Created attachment 252913 [details]
eclipse log file, containing an exception that might be of interest
Comment 2 Jorrit Schippers CLA 2015-04-29 15:56:21 EDT
Created attachment 252914 [details]
visualvm thread dump, the main thread seems to be waiting on something
Comment 3 Dawid Pakula CLA 2015-04-29 16:03:30 EDT
Based on logs I see you haven't nightly DLTK, but ancient 5.0 dltk h2 index (current nightly is 5.2, 5.1.1 is latest stable with many h2 improvements).

Can you upgrade?
DLTK update sites:
DLTK 5.1.1 (stable): http://download.eclipse.org/technology/dltk/updates-dev/5.1.1/
DLTK 5.2 (nightly) http://download.eclipse.org/technology/dltk/updates-dev/5.2

PDT update sites:
Latest stable (3.4) http://download.eclipse.org/tools/pdt/updates/latest/
Latest nightly (3.5) http://download.eclipse.org/tools/pdt/updates/latest-nightly
Comment 4 Jorrit Schippers CLA 2015-04-29 16:22:40 EDT
Thank you very much for your quick comment and insight. I stumbled upon a link to a feed of nightly DLTK versions, but it seemed to be an outdated link.

Thanks for the DLTK links. Where could I have found those on eclipse.org? The DLTK subsite seems to be very outdated.

I'll mark this bug as INVALID.
Comment 5 Dawid Pakula CLA 2015-04-29 16:29:56 EDT
List of recent and upcoming releases are available in pmi : https://projects.eclipse.org/projects/technology.dltk
update site will be at: http://download.eclipse.org/technology/dltk/updates-dev/${version-number}

you can also use unofficial community repository: http://p2-dev.pdt-extensions.org/
it contain PDT/DLTK nightlies and many other plugins
Comment 6 Jorrit Schippers CLA 2015-04-29 16:40:44 EDT
Thanks, I did not know about https://projects.eclipse.org/.
Comment 7 Jorrit Schippers CLA 2015-05-11 04:00:37 EDT
After upgrading DLTK, I still have this issue. I will attach a new thread dump and eclipse installation info.
Comment 8 Jorrit Schippers CLA 2015-05-11 04:01:36 EDT
Created attachment 253371 [details]
new thread dump
Comment 9 Jorrit Schippers CLA 2015-05-11 04:02:12 EDT
Created attachment 253372 [details]
new eclipse installation information
Comment 10 Jorrit Schippers CLA 2015-06-02 11:50:16 EDT
Is there anything I can do to help investigage this problem?
Comment 11 Dawid Pakula CLA 2015-06-02 13:39:52 EDT
Might be related to bug 443468, SVN decorator works in similar way like GIT decorator. 

If you are using workspace from previous version, you should close all projects and reopen.

Did you activated any mylyn task? If yes can you try without any context?

And last, can you attach example file? 

Thank you
Comment 12 Jorrit Schippers CLA 2015-06-02 15:40:46 EDT
Thanks for your response.
I will close all projects and reopen them. I am using activated Mylyn tasks all the time, I will try to see if not having them activated makes any difference.
If that doesn't give results, I'll attach a file.
Comment 13 Jorrit Schippers CLA 2015-06-10 04:46:05 EDT
Reopening and closing didn't help. Not using Mylyn tasks didn't help. I imported the project in a new workspace and I noticed different behavior: when I save a file about 500 PHO files are rebuilt. Perhaps this causes the freeze in my other workspace. I tried disabling the builders in the project settings and noticed weird behavior: the builders automatically get readded, causing builders to appear multiple times. I'll attach a screenshot.

I think attaching a single file doesn't help, I tried copying a file to a workspace with a simple project and the bug did not appear there. The freeze occurs in a very large project with thousands of PHP files.
Comment 14 Jorrit Schippers CLA 2015-06-10 04:46:58 EDT
Created attachment 254278 [details]
screenshot of builders problem
Comment 15 Dawid Pakula CLA 2015-06-12 10:52:50 EDT
Script project build cannot be disabled due bug 255365. On save only changed file should rebuild. 

Can do more thread dumps? And maybe have you additional error logs?
Comment 16 Jorrit Schippers CLA 2015-06-12 10:57:11 EDT
Today I realized that I still run Kepler, while Juno is released and Mars is coming later this month. I think I try again later this month with a fresh installation.

I have received the freeze more often, the thread dumps were similar, at least for the main thread.
Comment 17 Dawid Pakula CLA 2015-06-12 11:03:22 EDT
Based on current dump I see that it's related to mylyn. 

After deactivate task, please restart eclipse (DLTKEdititngMonitor is still active after first activation).
Comment 18 Dawid Pakula CLA 2020-04-18 15:38:31 EDT
Moving to DLTK. DLTKEditingEditor force reconcile in UI. This might be quiet expensive and should be moved into separate job.