Bug 482792 - Eclipse has messed up GUI and sometimes freezes when I create project
Summary: Eclipse has messed up GUI and sometimes freezes when I create project
Status: CLOSED WORKSFORME
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 4.6   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform-SWT-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: triaged
Depends on:
Blocks:
 
Reported: 2015-11-22 15:26 EST by Alpha Beta CLA
Modified: 2018-08-16 15:12 EDT (History)
3 users (show)

See Also:


Attachments
Eclipse deadlock (53.68 KB, text/plain)
2015-11-24 12:45 EST, Alpha Beta CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alpha Beta CLA 2015-11-22 15:26:32 EST
Hello, I have the following problem:
I updated my entire system (Arch Linux) today, then I wanted to run Eclipse, but it somehow had a strange behavior, I couldn't run things, the GUI was partly messed up, look at this for example: http://i.imgur.com/EN0pl4r.png
A big problem is that when I try to create a new project Eclipse freezes and I have to pkill it. I have no idea what is causing this problem. I already uninstalled it entirely, I removed my workspace and .eclipse directories, but nothing helps.
I don't know what to do anymore, maybe I upgraded a package which broke Eclipse. I get no console output either when these bugs occur.
Comment 1 Brian de Alwis CLA 2015-11-24 10:14:07 EST
Could you please try some of the approaches described in the following wiki page and report back?

https://wiki.eclipse.org/How_to_report_a_deadlock
Comment 2 Alpha Beta CLA 2015-11-24 12:45:17 EST
Created attachment 258252 [details]
Eclipse deadlock

I made two stack traces, one when its running just normal and another when Eclipse freezes, I also added a diff between the stack traces.
Comment 3 Alpha Beta CLA 2015-11-24 12:55:07 EST
But also this.
http://pastebin.com/DrFKyTzs
Comment 4 Brian de Alwis CLA 2015-11-24 14:08:00 EST
A few things:

  * What Eclipse distribution are you running?  Where did you get it from?

  * Please run Help > About and copy the version/build information

  * How long are you waiting to try creating a new project?  If right away, could you wait a couple of minutes and then try again?

  * Could you try running with SWT_GTK3=0 in your environment? (Just to ensure we're not hitting some SWT GTK3 issues)
Comment 5 Alpha Beta CLA 2015-11-24 14:25:42 EST
I use the official Arch Linux packages and run "Mars.1 Release (4.5.1)
Build id: 20150924-1200", but I tried your suggestion to run export SWT_GTK3=0, and Eclipse seems to run fine again. Thanks a lot for your help.
Comment 6 Brian de Alwis CLA 2015-11-24 14:35:44 EST
A few oddities in the deadlock trace in the attachment:

  * Oomph and AERI are still in the early-startup state

  * The ModalContext job has finished and the thread is hung waiting for its syncExec() of a null job to complete.

I'm wondering if this is bug 479435 (fixed on 2015-11-05).

"ModalContext" #52 prio=6 os_prio=0 tid=0x00007fb60a06b000 nid=0x30cb in Object.wait() [0x00007fb5a6b66000]
   java.lang.Thread.State: WAITING (on object monitor)
	at java.lang.Object.wait(Native Method)
	at java.lang.Object.wait(Object.java:502)
	at org.eclipse.swt.widgets.Synchronizer.syncExec(Synchronizer.java:199)
	- locked <0x00000000ee5e8a08> (a org.eclipse.swt.widgets.RunnableLock)
	at org.eclipse.ui.internal.UISynchronizer.syncExec(UISynchronizer.java:145)
	at org.eclipse.swt.widgets.Display.syncExec(Display.java:4633)
	at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:146)6

"Worker-4" #34 prio=5 os_prio=0 tid=0x00007fb5e801c800 nid=0x301b in Object.wait() [0x00007fb5aa934000]
   java.lang.Thread.State: TIMED_WAITING (on object monitor)
	at java.lang.Object.wait(Native Method)
	at org.eclipse.ui.internal.Semaphore.acquire(Semaphore.java:43)
	- locked <0x00000000c4e589f0> (a org.eclipse.ui.internal.Semaphore)
	at org.eclipse.ui.internal.UISynchronizer.syncExec(UISynchronizer.java:164)
	at org.eclipse.swt.widgets.Display.syncExec(Display.java:4633)
	at org.eclipse.epp.internal.logging.aeri.ui.ReportingController.initalizeLists(ReportingController.java:109)
	at org.eclipse.epp.internal.logging.aeri.ui.ReportingController.<init>(ReportingController.java:105)
	at org.eclipse.epp.internal.logging.aeri.ide.Startup.initalizeController(Startup.java:228)
	at org.eclipse.epp.internal.logging.aeri.ide.Startup.access$6(Startup.java:227)
	at org.eclipse.epp.internal.logging.aeri.ide.Startup$1.run(Startup.java:106)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)

"Worker-2" #32 prio=5 os_prio=0 tid=0x00007fb5ac007000 nid=0x3019 in Object.wait() [0x00007fb5aab36000]
   java.lang.Thread.State: TIMED_WAITING (on object monitor)
	at java.lang.Object.wait(Native Method)
	at org.eclipse.ui.internal.Semaphore.acquire(Semaphore.java:43)
	- locked <0x00000000c4e589a0> (a org.eclipse.ui.internal.Semaphore)
	at org.eclipse.ui.internal.UISynchronizer.syncExec(UISynchronizer.java:164)
	at org.eclipse.swt.widgets.Display.syncExec(Display.java:4633)
	at org.eclipse.oomph.ui.UIUtil.syncExec(UIUtil.java:586)
	at org.eclipse.oomph.ui.UIUtil.syncExec(UIUtil.java:573)
	at org.eclipse.oomph.internal.ui.UIPropertyTester.requestEvaluation(UIPropertyTester.java:97)
	at org.eclipse.oomph.setup.ui.SetupPropertyTester.setStarting(SetupPropertyTester.java:148)
	at org.eclipse.oomph.setup.ui.SetupUIPlugin$1$1.run(SetupUIPlugin.java:228)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)

"main" #1 prio=6 os_prio=0 tid=0x00007fb608008800 nid=0x2fea runnable [0x00007fb610286000]
   java.lang.Thread.State: RUNNABLE
	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:2425)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3428)
	at org.eclipse.jface.operation.ModalContext$ModalContextThread.block(ModalContext.java:172)
	at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:387)
	at org.eclipse.jface.dialogs.ProgressMonitorDialog.run(ProgressMonitorDialog.java:500)
	at org.eclipse.ui.internal.progress.ProgressMonitorJobsDialog.run(ProgressMonitorJobsDialog.java:284)
	at org.eclipse.ui.internal.progress.ProgressManager$3.run(ProgressManager.java:997)
	at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
	at org.eclipse.ui.internal.progress.ProgressManager.busyCursorWhile(ProgressManager.java:1032)
	at org.eclipse.ui.internal.progress.ProgressManager.busyCursorWhile(ProgressManager.java:1007)
	at org.eclipse.ltk.ui.refactoring.RefactoringWizardOpenOperation.checkInitialConditions(RefactoringWizardOpenOperation.java:215)
	at org.eclipse.ltk.ui.refactoring.RefactoringWizardOpenOperation.access$1(RefactoringWizardOpenOperation.java:210)
	at org.eclipse.ltk.ui.refactoring.RefactoringWizardOpenOperation$1.run(RefactoringWizardOpenOperation.java:170)
	at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
	at org.eclipse.ltk.ui.refactoring.RefactoringWizardOpenOperation.run(RefactoringWizardOpenOperation.java:202)
	at org.eclipse.ltk.ui.refactoring.RefactoringWizardOpenOperation.run(RefactoringWizardOpenOperation.java:122)
	at org.eclipse.jdt.internal.ui.refactoring.actions.RefactoringStarter.activate(RefactoringStarter.java:38)
	at org.eclipse.jdt.internal.ui.refactoring.UserInterfaceStarter.activate(UserInterfaceStarter.java:62)
	at org.eclipse.jdt.internal.corext.refactoring.RefactoringExecutionStarter.startDeleteRefactoring(RefactoringExecutionStarter.java:284)
	at org.eclipse.jdt.internal.ui.refactoring.reorg.DeleteAction.run(DeleteAction.java:205)
	at org.eclipse.jdt.ui.actions.SelectionDispatchAction.dispatchRun(SelectionDispatchAction.java:275)
	at org.eclipse.jdt.ui.actions.SelectionDispatchAction.run(SelectionDispatchAction.java:251)
	at org.eclipse.jface.action.Action.runWithEvent(Action.java:473)
	at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:595)
	at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:511)
	at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:420)
	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
	at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4481)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1329)
	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3819)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3430)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$4.run(PartRenderingEngine.java:1127)
[…]
Comment 7 Brian de Alwis CLA 2015-11-24 14:39:11 EST
Moving to SWT since it appears to be due to GTK3.
Comment 8 Alexander Kurtakov CLA 2017-12-15 15:33:22 EST
Is this still reproducible with Oxygen?
Comment 9 Eric Williams CLA 2018-08-16 15:12:16 EDT
(In reply to Alexander Kurtakov from comment #8)
> Is this still reproducible with Oxygen?

Closing as there hasn't been a response in awhile. Please reopen this ticket if the issue continues on 4.8 and GTK3.22.