Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Timing problem when saving #6000

Closed
bernhard-kleine opened this issue Feb 23, 2020 · 3 comments · Fixed by #9067
Closed

Timing problem when saving #6000

bernhard-kleine opened this issue Feb 23, 2020 · 3 comments · Fixed by #9067
Labels
component: export-or-save [outdated] type: bug Confirmed bugs or reports that are very likely to be bugs

Comments

@bernhard-kleine
Copy link

JabRef 5.0-beta.458--2020-02-23--b2ab177
Windows 10 10.0 amd64
Java 13.0.2

Steps to reproduce the behavior:

  1. I have delete a duplicate entry.
  2. Trying to save raised the following issue:
    grafik

This is most probably a timing issue. My library is 8 mb large and has 3000+ entries.

The line
Caused by: java.nio.file.AccessDeniedException: K:\BuchprojektSpringer\VierteAuflage\Literatur\EndokrinologieKunde20190320VS5.0.bib.tmp -> K:\BuchprojektSpringer\VierteAuflage\Literatur\EndokrinologieKunde20190320VS5.0.bib
is most suggestive and an old acquaintance.

Log File
org.jabref.logic.exporter.SaveException: Problems saving:
  at org.jabref/org.jabref.gui.exporter.SaveDatabaseAction.saveDatabase(Unknown Source)
  at org.jabref/org.jabref.gui.exporter.SaveDatabaseAction.doSave(Unknown Source)
  at org.jabref/org.jabref.gui.exporter.SaveDatabaseAction.save(Unknown Source)
  at org.jabref/org.jabref.gui.exporter.SaveDatabaseAction.save(Unknown Source)
  at org.jabref/org.jabref.gui.BasePanel.runCommand(Unknown Source)
  at org.jabref/org.jabref.gui.actions.OldDatabaseCommandWrapper.execute(Unknown Source)
  at org.jabref/org.jabref.gui.actions.JabRefAction.lambda$new$2(Unknown Source)
  at org.jabref.merged.module/org.controlsfx.control.action.Action.handle(Unknown Source)
  at org.jabref.merged.module/org.controlsfx.control.action.Action.handle(Unknown Source)
  at org.jabref.merged.module/com.sun.javafx.event.CompositeEventHandler.dispatchBubblingEvent(Unknown Source)
  at org.jabref.merged.module/com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(Unknown Source)
  at org.jabref.merged.module/com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(Unknown Source)
  at org.jabref.merged.module/com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(Unknown Source)
  at org.jabref.merged.module/com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(Unknown Source)
  at org.jabref.merged.module/com.sun.javafx.event.EventUtil.fireEventImpl(Unknown Source)
  at org.jabref.merged.module/com.sun.javafx.event.EventUtil.fireEvent(Unknown Source)
  at org.jabref.merged.module/javafx.event.Event.fireEvent(Unknown Source)
  at org.jabref.merged.module/javafx.scene.control.MenuItem.fire(Unknown Source)
  at org.jabref.merged.module/com.sun.javafx.scene.control.ControlAcceleratorSupport.lambda$doAcceleratorInstall$1(Unknown Source)
  at org.jabref.merged.module/com.sun.javafx.scene.KeyboardShortcutsHandler.processAccelerators(Unknown Source)
  at org.jabref.merged.module/com.sun.javafx.scene.KeyboardShortcutsHandler.dispatchBubblingEvent(Unknown Source)
  at org.jabref.merged.module/com.sun.javafx.event.CompositeEventDispatcher.dispatchBubblingEvent(Unknown Source)
  at org.jabref.merged.module/com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(Unknown Source)
  at org.jabref.merged.module/com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(Unknown Source)
  at org.jabref.merged.module/com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(Unknown Source)
  at org.jabref.merged.module/com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(Unknown Source)
  at org.jabref.merged.module/com.sun.javafx.event.EventUtil.fireEventImpl(Unknown Source)
  at org.jabref.merged.module/com.sun.javafx.event.EventUtil.fireEvent(Unknown Source)
  at org.jabref.merged.module/javafx.event.Event.fireEvent(Unknown Source)
  at org.jabref.merged.module/javafx.scene.Scene$KeyHandler.process(Unknown Source)
  at org.jabref.merged.module/javafx.scene.Scene.processKeyEvent(Unknown Source)
  at org.jabref.merged.module/javafx.scene.Scene$ScenePeerListener.keyEvent(Unknown Source)
  at org.jabref.merged.module/com.sun.javafx.tk.quantum.GlassViewEventHandler$KeyEventNotification.run(Unknown Source)
  at org.jabref.merged.module/com.sun.javafx.tk.quantum.GlassViewEventHandler$KeyEventNotification.run(Unknown Source)
  at java.base/java.security.AccessController.doPrivileged(Unknown Source)
  at org.jabref.merged.module/com.sun.javafx.tk.quantum.GlassViewEventHandler.lambda$handleKeyEvent$1(Unknown Source)
  at org.jabref.merged.module/com.sun.javafx.tk.quantum.QuantumToolkit.runWithoutRenderLock(Unknown Source)
  at org.jabref.merged.module/com.sun.javafx.tk.quantum.GlassViewEventHandler.handleKeyEvent(Unknown Source)
  at org.jabref.merged.module/com.sun.glass.ui.View.handleKeyEvent(Unknown Source)
  at org.jabref.merged.module/com.sun.glass.ui.View.notifyKey(Unknown Source)
  at org.jabref.merged.module/com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
  at org.jabref.merged.module/com.sun.glass.ui.win.WinApplication.lambda$runLoop$3(Unknown Source)
  at java.base/java.lang.Thread.run(Unknown Source)
Caused by: java.nio.file.AccessDeniedException: K:\BuchprojektSpringer\VierteAuflage\Literatur\EndokrinologieKunde20190320VS5.0.bib.tmp -> K:\BuchprojektSpringer\VierteAuflage\Literatur\EndokrinologieKunde20190320VS5.0.bib
  at java.base/sun.nio.fs.WindowsException.translateToIOException(Unknown Source)
  at java.base/sun.nio.fs.WindowsException.rethrowAsIOException(Unknown Source)
  at java.base/sun.nio.fs.WindowsFileCopy.move(Unknown Source)
  at java.base/sun.nio.fs.WindowsFileSystemProvider.move(Unknown Source)
  at java.base/java.nio.file.Files.move(Unknown Source)
  at org.jabref/org.jabref.logic.exporter.AtomicFileOutputStream.close(Unknown Source)
  at java.base/sun.nio.cs.StreamEncoder.implClose(Unknown Source)
  at java.base/sun.nio.cs.StreamEncoder.close(Unknown Source)
  at java.base/java.io.OutputStreamWriter.close(Unknown Source)
  at org.jabref/org.jabref.logic.exporter.BibDatabaseWriter.savePartOfDatabase(Unknown Source)
  at org.jabref/org.jabref.logic.exporter.BibDatabaseWriter.saveDatabase(Unknown Source)
  ... 43 more
@Siedlerchr Siedlerchr added [outdated] type: bug Confirmed bugs or reports that are very likely to be bugs component: export-or-save labels Feb 28, 2020
@Siedlerchr
Copy link
Member

Could reproduce this partially yesterday when saving and having auto completion enabled.
I will check it again.

@stefan-kolb
Copy link
Member

Maybe related to #6102?

@github-actions github-actions bot added the status: stale Issues marked by a bot as "stale". All issues need to be investigated manually. label Dec 8, 2020
@Siedlerchr Siedlerchr removed the status: stale Issues marked by a bot as "stale". All issues need to be investigated manually. label Dec 8, 2020
@Siedlerchr
Copy link
Member

It's related to the autosave and normal save happening

@github-actions github-actions bot added the status: stale Issues marked by a bot as "stale". All issues need to be investigated manually. label Jun 7, 2021
@Siedlerchr Siedlerchr reopened this Jun 22, 2021
@github-actions github-actions bot closed this as completed Jul 7, 2021
@koppor koppor reopened this Aug 29, 2021
@koppor koppor removed the status: stale Issues marked by a bot as "stale". All issues need to be investigated manually. label Aug 29, 2021
@JabRef JabRef deleted a comment from github-actions bot Feb 19, 2022
@JabRef JabRef deleted a comment from github-actions bot Feb 19, 2022
@koppor koppor moved this to Done in Prioritization Nov 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: export-or-save [outdated] type: bug Confirmed bugs or reports that are very likely to be bugs
Projects
Archived in project
4 participants