Bug 577853 - Not existing history of a new file is checked infinitely if linked to editor and selection
Summary: Not existing history of a new file is checked infinitely if linked to editor ...
Status: RESOLVED FIXED
Alias: None
Product: EGit
Classification: Technology
Component: Core (show other bugs)
Version: 6.0   Edit
Hardware: PC Linux
: P3 major (vote)
Target Milestone: 6.1   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-12-16 11:07 EST by Wolfgang Hauser CLA
Modified: 2021-12-21 02:30 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Wolfgang Hauser CLA 2021-12-16 11:07:24 EST
After update to eclipse 2021-12 I imagined that the editing went slow.
Checking eclipse I examined that egit checks the (not existing) history of a new file infinitely if the history view is linked with the editor and selection.
It seems that this is the cause of the slow editing.

Reproduce:
create a new file
show new file in history
link with editor in history view
select an other file
select the new file

Found in:
  Git integration for Eclipse	6.0.0.202111291000-r org.eclipse.egit.feature.group	Eclipse EGit
    Java implementation of Git	6.0.0.202111291000-r	org.eclipse.jgit.feature.group	Eclipse JGit
    Java implementation of Git - GPG support using BouncyCastle	6.0.0.202111291000-r	org.eclipse.jgit.gpg.bc.feature.group	Eclipse JGit
    Java implementation of Git - optional Http support using Apache httpclient	6.0.0.202111291000-r	org.eclipse.jgit.http.apache.feature.group	Eclipse JGit
    Java implementation of Git - ssh support using Apache MINA sshd	6.0.0.202111291000-r	org.eclipse.jgit.ssh.apache.feature.group	Eclipse JGit

eclipse config:
applicationXMI=org.eclipse.ui.workbench/LegacyIDE.e4xmi
ds.delayed.keepInstances=true
eclipse.application=org.eclipse.ui.ide.workbench
eclipse.buildId=4.22.0.I20211124-1800
eclipse.commands=-os
linux
-ws
gtk
-arch
x86_64
-showsplash
/home/xxxxxx/.p2/pool/plugins/org.eclipse.epp.package.common_4.22.0.20211202-1200/splash.bmp
-launcher
/opt/eclipse/eclipse_2020_12_java_ide/eclipse
-name
Eclipse
--launcher.library
/home/xxxx/.p2/pool/plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.2.400.v20211117-0650/eclipse_11600.so
-startup
/opt/eclipse/eclipse_2020_12_java_ide//plugins/org.eclipse.equinox.launcher_1.6.400.v20210924-0641.jar
--launcher.appendVmargs
-exitdata
20026
-product
org.eclipse.epp.package.java.product
-showlocation
RSU Workspace
-data
/home/xxxx/xxxx
-vm
/opt/java_oracle/jram/bin/java
eclipse.home.location=file:/opt/eclipse/eclipse_2020_12_java_ide/
eclipse.launcher=/opt/eclipse/eclipse_2020_12_java_ide/eclipse
eclipse.launcher.name=Eclipse
eclipse.p2.data.area=file:/opt/eclipse/eclipse_home/.p2/
eclipse.p2.max.threads=10
eclipse.p2.profile=_opt_eclipse_eclipse_2020_12_java_ide_eclipse
eclipse.product=org.eclipse.epp.package.java.product
eclipse.startTime=1639645073573
eclipse.stateSaveDelayInterval=30000
eclipse.vm=/opt/java_oracle/jram/bin/java
eclipse.vmargs=-Declipse.p2.max.threads=10
-Doomph.update.url=http://download.eclipse.org/oomph/updates/milestone/latest
-Doomph.redirection.index.redirection=index:/->http://git.eclipse.org/c/oomph/org.eclipse.oomph.git/plain/setups/
-Dorg.eclipse.swt.graphics.Resource.reportNonDisposed=false
-Dosgi.requiredJavaVersion=11
-Dosgi.instance.area.default=@user.home/eclipse-workspace
-Dsun.java.command=Eclipse
-XX:+UseG1GC
-XX:+UseStringDeduplication
--add-modules=ALL-SYSTEM
-Dosgi.requiredJavaVersion=11
-Dosgi.dataAreaRequiresExplicitInit=true
-Dorg.eclipse.swt.graphics.Resource.reportNonDisposed=true
-Xms2048m
-Xmx8192m
--add-modules=ALL-SYSTEM
-jar
/opt/eclipse/eclipse_2020_12_java_ide//plugins/org.eclipse.equinox.launcher_1.6.400.v20210924-0641.jar
equinox.init.uuid=true
equinox.use.ds=true
file.encoding=UTF-8
file.separator=/
gosh.args=--nointeractive
guice.disable.misplaced.annotation.check=true
java.class.path=/opt/eclipse/eclipse_2020_12_java_ide//plugins/org.eclipse.equinox.launcher_1.6.400.v20210924-0641.jar
java.class.version=61.0
java.home=/opt/java_oracle/jram
java.io.tmpdir=/tmp
java.library.path=/usr/java/packages/lib:/usr/lib64:/lib64:/lib:/usr/lib
java.runtime.name=Java(TM) SE Runtime Environment
java.runtime.version=17.0.1+12-LTS-39
java.specification.name=Java Platform API Specification
java.specification.vendor=Oracle Corporation
java.specification.version=17
java.vendor=Oracle Corporation
java.vendor.url=https://java.oracle.com/
java.vendor.url.bug=https://bugreport.java.com/bugreport/
java.version=17.0.1
java.version.date=2021-10-19
java.vm.compressedOopsMode=Zero based
java.vm.info=mixed mode, sharing
java.vm.name=Java HotSpot(TM) 64-Bit Server VM
java.vm.specification.name=Java Virtual Machine Specification
java.vm.specification.vendor=Oracle Corporation
java.vm.specification.version=17
java.vm.vendor=Oracle Corporation
java.vm.version=17.0.1+12-LTS-39
jdk.debug=release
line.separator=
maven.defaultProjectBuilder.disableGlobalModelCache=true
native.encoding=UTF-8
oomph.redirection.index.redirection=index:/->http://git.eclipse.org/c/oomph/org.eclipse.oomph.git/plain/setups/
oomph.update.url=http://download.eclipse.org/oomph/updates/milestone/latest
org.apache.commons.logging.Log=org.apache.commons.logging.impl.NoOpLog
org.eclipse.debug.ui.breakpoints.toggleFactoriesUsed=true
org.eclipse.debug.ui.debugViewToolbarVisible=false
org.eclipse.equinox.launcher.splash.location=/home/xxxx/.p2/pool/plugins/org.eclipse.epp.package.common_4.22.0.20211202-1200/splash.bmp
org.eclipse.equinox.simpleconfigurator.configUrl=file:org.eclipse.equinox.simpleconfigurator/bundles.info
org.eclipse.m2e.log.dir=/home/xxxx/rsu_workspace/.metadata/.plugins/org.eclipse.m2e.logback.configuration
org.eclipse.swt.graphics.Resource.reportNonDisposed=true
org.eclipse.swt.internal.deviceZoom=100
org.eclipse.swt.internal.gdk.backend=x11
org.eclipse.swt.internal.gtk.theme=Greybird
org.eclipse.swt.internal.gtk.version=3.22.30
org.osgi.framework.executionenvironment=OSGi/Minimum-1.0, OSGi/Minimum-1.1, OSGi/Minimum-1.2, JavaSE/compact1-1.8, JavaSE/compact2-1.8, JavaSE/compact3-1.8, JRE-1.1, J2SE-1.2, J2SE-1.3, J2SE-1.4, J2SE-1.5, JavaSE-1.6, JavaSE-1.7, JavaSE-1.8, JavaSE-9, JavaSE-10, JavaSE-11, JavaSE-12, JavaSE-13, JavaSE-14, JavaSE-15, JavaSE-16, JavaSE-17
org.osgi.framework.language=en
org.osgi.framework.os.name=Linux
org.osgi.framework.os.version=5.4.0
org.osgi.framework.processor=x86-64
org.osgi.framework.storage=/opt/eclipse/eclipse_2020_12_java_ide/configuration
org.osgi.framework.system.capabilities=osgi.ee; osgi.ee="OSGi/Minimum"; version:List<Version>="1.0, 1.1, 1.2", osgi.ee; osgi.ee="JRE"; version:List<Version>="1.0, 1.1", osgi.ee; osgi.ee="JavaSE"; version:List<Version>="1.0, 1.1, 1.2, 1.3, 1.4, 1.5, 1.6, 1.7, 1.8, 9.0, 10.0, 11.0, 12.0, 13.0, 14.0, 15.0, 16.0, 17.0",osgi.ee; osgi.ee="JavaSE/compact1"; version:List<Version>="1.8, 9.0, 10.0, 11.0, 12.0, 13.0, 14.0, 15.0, 16.0, 17.0",osgi.ee; osgi.ee="JavaSE/compact2"; version:List<Version>="1.8, 9.0, 10.0, 11.0, 12.0, 13.0, 14.0, 15.0, 16.0, 17.0",osgi.ee; osgi.ee="JavaSE/compact3"; version:List<Version>="1.8, 9.0, 10.0, 11.0, 12.0, 13.0, 14.0, 15.0, 16.0, 17.0"
org.osgi.framework.system.packages=com.sun.jarsigner, com.sun.java.accessibility.util, com.sun.jdi, com.sun.jdi.connect, com.sun.jdi.connect.spi, com.sun.jdi.event, com.sun.jdi.request, com.sun.management, com.sun.net.httpserver, com.sun.net.httpserver.spi, com.sun.nio.file, com.sun.nio.sctp, com.sun.security.auth, com.sun.security.auth.callback, com.sun.security.auth.login, com.sun.security.auth.module, com.sun.security.jgss, com.sun.source.doctree, com.sun.source.tree, com.sun.source.util, com.sun.tools.attach, com.sun.tools.attach.spi, com.sun.tools.javac, com.sun.tools.jconsole, java.applet, java.awt, java.awt.color, java.awt.datatransfer, java.awt.desktop, java.awt.dnd, java.awt.event, java.awt.font, java.awt.geom, java.awt.im, java.awt.im.spi, java.awt.image, java.awt.image.renderable, java.awt.print, java.beans, java.beans.beancontext, java.io, java.lang, java.lang.annotation, java.lang.constant, java.lang.instrument, java.lang.invoke, java.lang.management, java.lang.module, java.lang.ref, java.lang.reflect, java.lang.runtime, java.math, java.net, java.net.http, java.net.spi, java.nio, java.nio.channels, java.nio.channels.spi, java.nio.charset, java.nio.charset.spi, java.nio.file, java.nio.file.attribute, java.nio.file.spi, java.rmi, java.rmi.dgc, java.rmi.registry, java.rmi.server, java.security, java.security.cert, java.security.interfaces, java.security.spec, java.sql, java.text, java.text.spi, java.time, java.time.chrono, java.time.format, java.time.temporal, java.time.zone, java.util, java.util.concurrent, java.util.concurrent.atomic, java.util.concurrent.locks, java.util.function, java.util.jar, java.util.logging, java.util.prefs, java.util.random, java.util.regex, java.util.spi, java.util.stream, java.util.zip, javax.accessibility, javax.annotation.processing, javax.crypto, javax.crypto.interfaces, javax.crypto.spec, javax.imageio, javax.imageio.event, javax.imageio.metadata, javax.imageio.plugins.bmp, javax.imageio.plugins.jpeg, javax.imageio.plugins.tiff, javax.imageio.spi, javax.imageio.stream, javax.lang.model, javax.lang.model.element, javax.lang.model.type, javax.lang.model.util, javax.management, javax.management.loading, javax.management.modelmbean, javax.management.monitor, javax.management.openmbean, javax.management.relation, javax.management.remote, javax.management.remote.rmi, javax.management.timer, javax.naming, javax.naming.directory, javax.naming.event, javax.naming.ldap, javax.naming.ldap.spi, javax.naming.spi, javax.net, javax.net.ssl, javax.print, javax.print.attribute, javax.print.attribute.standard, javax.print.event, javax.rmi.ssl, javax.script, javax.security.auth, javax.security.auth.callback, javax.security.auth.kerberos, javax.security.auth.login, javax.security.auth.spi, javax.security.auth.x500, javax.security.cert, javax.security.sasl, javax.smartcardio, javax.sound.midi, javax.sound.midi.spi, javax.sound.sampled, javax.sound.sampled.spi, javax.sql, javax.sql.rowset, javax.sql.rowset.serial, javax.sql.rowset.spi, javax.swing, javax.swing.border, javax.swing.colorchooser, javax.swing.event, javax.swing.filechooser, javax.swing.plaf, javax.swing.plaf.basic, javax.swing.plaf.metal, javax.swing.plaf.multi, javax.swing.plaf.nimbus, javax.swing.plaf.synth, javax.swing.table, javax.swing.text, javax.swing.text.html, javax.swing.text.html.parser, javax.swing.text.rtf, javax.swing.tree, javax.swing.undo, javax.tools, javax.transaction.xa, javax.xml, javax.xml.catalog, javax.xml.crypto, javax.xml.crypto.dom, javax.xml.crypto.dsig, javax.xml.crypto.dsig.dom, javax.xml.crypto.dsig.keyinfo, javax.xml.crypto.dsig.spec, javax.xml.datatype, javax.xml.namespace, javax.xml.parsers, javax.xml.stream, javax.xml.stream.events, javax.xml.stream.util, javax.xml.transform, javax.xml.transform.dom, javax.xml.transform.sax, javax.xml.transform.stax, javax.xml.transform.stream, javax.xml.validation, javax.xml.xpath, jdk.dynalink, jdk.dynalink.beans, jdk.dynalink.linker, jdk.dynalink.linker.support, jdk.dynalink.support, jdk.incubator.foreign, jdk.incubator.vector, jdk.javadoc.doclet, jdk.jfr, jdk.jfr.consumer, jdk.jshell, jdk.jshell.execution, jdk.jshell.spi, jdk.jshell.tool, jdk.management.jfr, jdk.net, jdk.nio, jdk.nio.mapmode, jdk.security.jarsigner, jdk.swing.interop, netscape.javascript, org.ietf.jgss, org.w3c.dom, org.w3c.dom.bootstrap, org.w3c.dom.css, org.w3c.dom.events, org.w3c.dom.html, org.w3c.dom.ls, org.w3c.dom.ranges, org.w3c.dom.stylesheets, org.w3c.dom.traversal, org.w3c.dom.views, org.w3c.dom.xpath, org.xml.sax, org.xml.sax.ext, org.xml.sax.helpers, sun.misc, sun.reflect
org.osgi.framework.uuid=c2efaa90-0ff0-48ac-8494-81f587f5c193
org.osgi.framework.vendor=Eclipse
org.osgi.framework.version=1.10.0
org.osgi.supports.framework.extension=true
org.osgi.supports.framework.fragment=true
org.osgi.supports.framework.requirebundle=true
os.arch=amd64
os.name=Linux
os.version=5.4.0-91-generic
osgi.arch=x86_64
osgi.bundles=reference:file:org.eclipse.osgi.compatibility.state_1.2.500.v20210730-0750.jar,reference:file:org.eclipse.equinox.simpleconfigurator_1.4.0.v20210315-2228.jar@1:start
osgi.bundles.defaultStartLevel=4
osgi.compatibility.bootdelegation=true
osgi.compatibility.bootdelegation.default=true
osgi.configuration.area=file:/opt/eclipse/eclipse_2020_12_java_ide/configuration/
osgi.dataAreaRequiresExplicitInit=true
osgi.framework=file:/home/xxxx/.p2/pool/plugins/org.eclipse.osgi_3.17.100.v20211104-1730.jar
osgi.framework.extensions=reference:file:org.eclipse.osgi.compatibility.state_1.2.500.v20210730-0750.jar
osgi.framework.shape=jar
osgi.framework.useSystemProperties=true
osgi.frameworkClassPath=., file:/home/xxxx/.p2/pool/plugins/org.eclipse.osgi.compatibility.state_1.2.500.v20210730-0750.jar
osgi.install.area=file:/opt/eclipse/eclipse_2020_12_java_ide/
osgi.instance.area=file:/home/xxxx/xxxxx/
osgi.instance.area.default=file:/home/xxxxx/eclipse-workspace/
osgi.logfile=/home/xxxxx/rsu_workspace/.metadata/.log
osgi.nl=en_US
osgi.os=linux
osgi.requiredJavaVersion=11
osgi.splashLocation=/home/xxxxx/.p2/pool/plugins/org.eclipse.epp.package.common_4.22.0.20211202-1200/splash.bmp
osgi.splashPath=platform:/base/plugins/org.eclipse.platform
osgi.syspath=/home/xxxx/.p2/pool/plugins
osgi.tracefile=/home/xxxx/xxxxx/.metadata/trace.log
osgi.ws=gtk
path.separator=:
python.console.encoding=UTF-8
python.home=/home/xxxxx/.p2/pool/plugins/org.python.pydev.jython_9.2.0.202110311311
python.path=/home/xxxxxx/.p2/pool/plugins/org.python.pydev.jython_9.2.0.202110311311/jysrc
python.security.respectJavaAccessibility=true
securerandom.source=file:/dev/./urandom
sun.arch.data.model=64
sun.boot.library.path=/opt/java_oracle/jram/lib
sun.cpu.endian=little
sun.io.unicode.encoding=UnicodeLittle
sun.java.command=/opt/eclipse/eclipse_2020_12_java_ide//plugins/org.eclipse.equinox.launcher_1.6.400.v20210924-0641.jar -os linux -ws gtk -arch x86_64 -showsplash /home/xxxxxx/.p2/pool/plugins/org.eclipse.epp.package.common_4.22.0.20211202-1200/splash.bmp -launcher /opt/eclipse/eclipse_2020_12_java_ide/eclipse -name Eclipse --launcher.library /home/xxxxx/.p2/pool/plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.2.400.v20211117-0650/eclipse_11600.so -startup /opt/eclipse/eclipse_2020_12_java_ide//plugins/org.eclipse.equinox.launcher_1.6.400.v20210924-0641.jar --launcher.appendVmargs -exitdata 20026 -product org.eclipse.epp.package.java.product -showlocation RSU Workspace -data /home/xxxx/rsu_workspace -vm /opt/java_oracle/jram/bin/java -vmargs -Declipse.p2.max.threads=10 -Doomph.update.url=http://download.eclipse.org/oomph/updates/milestone/latest -Doomph.redirection.index.redirection=index:/->http://git.eclipse.org/c/oomph/org.eclipse.oomph.git/plain/setups/ -Dorg.eclipse.swt.graphics.Resource.reportNonDisposed=false -Dosgi.requiredJavaVersion=11 -Dosgi.instance.area.default=@user.home/eclipse-workspace -Dsun.java.command=Eclipse -XX:+UseG1GC -XX:+UseStringDeduplication --add-modules=ALL-SYSTEM -Dosgi.requiredJavaVersion=11 -Dosgi.dataAreaRequiresExplicitInit=true -Dorg.eclipse.swt.graphics.Resource.reportNonDisposed=true -Xms2048m -Xmx8192m --add-modules=ALL-SYSTEM -jar /opt/eclipse/eclipse_2020_12_java_ide//plugins/org.eclipse.equinox.launcher_1.6.400.v20210924-0641.jar
sun.java.launcher=SUN_STANDARD
sun.jnu.encoding=UTF-8
sun.management.compiler=HotSpot 64-Bit Tiered Compilers
user.country=US
user.dir=/home/xxxxxx
user.home=/home/xxxxx
user.language=en
user.name=xxxxx
user.timezone=Europe/Berlin
Comment 1 Thomas Wolf CLA 2021-12-20 12:54:44 EST
Yes, there is definitely something wrong. It also loads the history of tracked files several times.

Investigating...
Comment 2 Eclipse Genie CLA 2021-12-20 14:02:07 EST
New Gerrit change created: https://git.eclipse.org/r/c/egit/egit/+/189036
Comment 4 Thomas Wolf CLA 2021-12-21 02:30:52 EST
The issue reported in comment 0 is fixed in EGit nightly, available from the update site at https://download.eclipse.org/egit/updates-nightly .

Loading the history of a committed file multiple times (in the background only, without UI update) is tracked in bug 577913.