Bug 553581 - UI Freezes in HTML editor with open .xhtml JSF page
Summary: UI Freezes in HTML editor with open .xhtml JSF page
Status: CLOSED DUPLICATE of bug 552373
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 4.13   Edit
Hardware: PC Linux
: P3 major (vote)
Target Milestone: ---   Edit
Assignee: Platform-UI-Inbox CLA
QA Contact:
URL:
Whiteboard: performance
Keywords:
Depends on:
Blocks:
 
Reported: 2019-11-28 08:35 EST by Adrian Gfeller CLA
Modified: 2020-02-05 06:12 EST (History)
2 users (show)

See Also:


Attachments
The Log from when the Freeze happened, reported by the Eclipse UI Responsiveness Monitoring plugin (120.62 KB, text/x-log)
2019-11-28 08:35 EST, Adrian Gfeller CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Adrian Gfeller CLA 2019-11-28 08:35:03 EST
Created attachment 280810 [details]
The Log from when the Freeze happened, reported by the Eclipse UI Responsiveness Monitoring plugin

Product: Eclipse IDE for Enterprise Java Developers
Version: 4.13.0
Settings: Mostly defaults, Manual proxy settings, Theming turned off
Extra Plugins: JRebel, m2e-apt, Checkstyle
Platform: Linux (Kubuntu 19.10), Windows 10
General project description: JSF 2.3, Spring 5.1, Hibernate 5.4

We are experiencing severe UI freezes of around 15 seconds. This happens on different occasions but seems to always be related to the HTML Editor. 

Observed causes:
> When switching from/to Java Editor:
  Prerequisites:
    - A *.java File opened in the Java Editor
    - A *.xhtml File with JSF contents opened in the HTML Editor
  Steps to reproduce:
    - Switching between the open Editors
    - Regularly typing something into each of the editors
    - Eventually it will freeze

> When selecting text in the HTML Editor
  Prerequisites:
    - A *.xhtml File with JSF contents opened in the HTML Editor
  Steps to reproduce:
    - Try to select text inside of the HTML Editor

I had the best luck of reproducing the freeze when doing both of those actions at the same time. It is not 100% reproducible with the steps described above but requires some "explorative" clicking and typing around.

For analyzing purposes I have activated the UI Responsiveness Monitoring and found some Entries in the Log when trying to provoke the described behaviour. (See attachment)

Now I'm on Linux but I also experience this behaviour on Windows 10 and also with the previous Eclipse version. On Windows 10 I was able to somehow shorten the freezes to a maximum of 3 seconds by turning everything I could possibly think of, off. That's not really what I want because then I don't have recommendations etc.
Comment 1 Lars Vogel CLA 2019-12-02 07:42:15 EST
Looks like this is in the hover implementation. Does it help if you turn of hover in Java -> Editor -> Hovers?
Comment 2 Adrian Gfeller CLA 2020-01-28 06:36:39 EST
Sorry for the late response, I didn't check my mail for updates.

I tried the following:

General > Editors > Structured Text Editors > Hovers > unchecked "Combined Hover"

A colleague and me have tried this right now and so far it seems like this stops the freezes from occurring. But now we don't have the popup on attributes anymore.
Comment 3 Lars Vogel CLA 2020-02-05 05:47:57 EST
Mickael, do we have plans to make hover calculation asynch?
Comment 4 Mickael Istria CLA 2020-02-05 06:01:21 EST
(In reply to Lars Vogel from comment #3)
> Mickael, do we have plans to make hover calculation asynch?

Plans, I don't know; but wish for sure: bug 552373
Comment 5 Lars Vogel CLA 2020-02-05 06:12:53 EST
Adrian, the only way we can reliable solve this, would be to make hover asynchronously. So I mark this as dup of Bug 552373.

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