eclox icon indicating copy to clipboard operation
eclox copied to clipboard

eclox make eclipse UI freeze on right click over a project on Project explorer

Open alef75 opened this issue 5 years ago • 7 comments

I've got a big C/C++ makefile project in eclipse workspace: every time I right click on the project on the project explorer, eclipse freeze for about 7 seconds.

This is the response of the eclipse team: This is a problem with these eclox doxyfile bundles. They do a resource tree traversal on the UI thread (called via a proper tester, which is called to determine some property to decide whether to show some menu item)

see https://bugs.eclipse.org/bugs/show_bug.cgi?id=551463 for bug detail

Your Environment

  • Eclox Plugin version: 0.12.1.v20180118-1753 org.gna.eclox.feature
  • Eclox Doxygen Plugin version: 1.8.13.v20180118-1753
  • Eclipse Version: 4.13
  • Java Version: 1.8
  • Operating System Version: ubuntu 16.04

alef75 avatar Sep 25 '19 15:09 alef75

Thanks for the report!

We have also big projects and do not see performance impact in Eclipse 2018-12 or 2019-03.

I will investigate the issue and try to move the code out of UI context or just enable the "Build documentation" entry and execute the doxyfile file search on demand if this entry was selected...

anb0s avatar Sep 27 '19 12:09 anb0s

Hi Andre, thank you for your time. In my office we are 9 people that use eclipse as C/C++ IDE, We all have this 7/8 seconds of freeze on right click events on the project on project explorer. I've noticed this behavior, starting from eclipse 2019-09. Just to make a try I've uninstalled eclox plugin, and the problem has disappear. I think is a good idea to move the code out of UI context and also select the ennoblement of the build documentation. What about excluding from search the derived resources? or give the possibility to include or exclude some folder from search path?

alef75 avatar Sep 27 '19 14:09 alef75

What about excluding from search the derived resources? or give the possibility to include or exclude some folder from search path?

First i will prepare simple approach that does not search the resources for the menu entry, it will be just always there. Only after click at the entry it will search. After this was verified by users (like you) i can add some more logic for include and exclude patterns.

anb0s avatar Sep 27 '19 14:09 anb0s

I think your approach is the best one. One step at time in small batches thank you for you commitments in this one and for this great plugin

alef75 avatar Sep 27 '19 15:09 alef75

investigating again, please try testing build #236

anb0s avatar Oct 27 '19 20:10 anb0s

I've made some test with build Eclox 0.13.0.v20191027-1934

The problem has been mitigated but is still here. The delay has been halved: from 7 seconds to 3.9 seconds.

after tests I've unistalled Eclox, than delay has disapeared

alef75 avatar Nov 04 '19 16:11 alef75

Thanks for the test! I will improve this with next build...

anb0s avatar Nov 04 '19 21:11 anb0s