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

Exception error for any keystroke & "library has been modified" #5296

Open
wujastyk opened this issue Sep 9, 2019 · 19 comments
Open

Exception error for any keystroke & "library has been modified" #5296

wujastyk opened this issue Sep 9, 2019 · 19 comments
Labels
os: snap When JabRef is run as a snap on linux status: waiting-for-feedback The submitter or other users need to provide more information about the issue

Comments

@wujastyk
Copy link

wujastyk commented Sep 9, 2019

JabRef 5.0-dev
Linux 5.0.0-27-generic amd64
Java 1.8.0_222

This is the snap beta channel

name: jabref
summary: Bibliography manager
publisher: Oliver Kopp (koppor)
contact: https://github.com/koppor
license: unset
description: |
JabRef is an open source bibliography reference manager. The native file
format used by JabRef is BibTeX, the standard LaTeX bibliography format.
commands:

  • jabref
    snap-id: T5x6neyM0Uc9OWDHGorm61NKxh3Bd47k
    tracking: beta
    refresh-date: 10 days ago, at 11:10 MDT
    channels:
    stable: –
    candidate: –
    beta: 5.0-dev 2019-08-26 (530) 212MB -
    edge: 5.0-dev 2019-08-24 (530) 212MB -
    installed: 5.0-dev (530) 212MB -

Steps to reproduce the behavior:

  1. type a character into the entry editor
  2. an error window pops up. Actually two, I believe.

Coincidentally, the screenshot below also shows the "the library hs been modified by another program" error message.

Screenshot from 2019-09-09 13-37-10

Log File
netscape.javascript.JSException: TypeError: undefined is not a function
  at com.sun.webkit.dom.JSObject.fwkMakeException(JSObject.java:128)
  at com.sun.webkit.WebPage.twkExecuteScript(Native Method)
  at com.sun.webkit.WebPage.executeScript(WebPage.java:1439)
  at javafx.scene.web.WebEngine.executeScript(WebEngine.java:982)
  at org.jabref.gui.preview.PreviewViewer.highlightSearchPattern(PreviewViewer.java:103)
  at org.jabref.gui.preview.PreviewViewer.lambda$new$260(PreviewViewer.java:94)
  at com.sun.javafx.binding.ExpressionHelper$SingleChange.fireValueChangedEvent(ExpressionHelper.java:182)
  at com.sun.javafx.binding.ExpressionHelper.fireValueChangedEvent(ExpressionHelper.java:81)
  at javafx.beans.property.ReadOnlyObjectWrapper$ReadOnlyPropertyImpl.fireValueChangedEvent(ReadOnlyObjectWrapper.java:176)
  at javafx.beans.property.ReadOnlyObjectWrapper.fireValueChangedEvent(ReadOnlyObjectWrapper.java:142)
  at javafx.beans.property.ObjectPropertyBase.markInvalid(ObjectPropertyBase.java:112)
  at javafx.beans.property.ObjectPropertyBase.set(ObjectPropertyBase.java:146)
  at javafx.scene.web.WebEngine$LoadWorker.updateState(WebEngine.java:1260)
  at javafx.scene.web.WebEngine$LoadWorker.dispatchLoadEvent(WebEngine.java:1371)
  at javafx.scene.web.WebEngine$LoadWorker.access$1200(WebEngine.java:1253)
  at javafx.scene.web.WebEngine$PageLoadListener.dispatchLoadEvent(WebEngine.java:1240)
  at com.sun.webkit.WebPage.fireLoadEvent(WebPage.java:2400)
  at com.sun.webkit.WebPage.fwkFireLoadEvent(WebPage.java:2244)
  at com.sun.webkit.Timer.twkFireTimerEvent(Native Method)
  at com.sun.webkit.Timer.fireTimerEvent(Timer.java:83)
  at com.sun.webkit.Timer.notifyTick(Timer.java:64)
  at javafx.scene.web.WebEngine$PulseTimer.lambda$static$10(WebEngine.java:1201)
  at com.sun.javafx.tk.Toolkit.lambda$runPulse$30(Toolkit.java:348)
  at java.security.AccessController.doPrivileged(Native Method)
  at com.sun.javafx.tk.Toolkit.runPulse(Toolkit.java:347)
  at com.sun.javafx.tk.Toolkit.firePulse(Toolkit.java:374)
  at com.sun.javafx.tk.quantum.QuantumToolkit.pulse(QuantumToolkit.java:510)
  at com.sun.javafx.tk.quantum.QuantumToolkit.pulse(QuantumToolkit.java:490)
  at com.sun.javafx.tk.quantum.QuantumToolkit.lambda$runToolkit$346(QuantumToolkit.java:319)
  at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:95)
  at com.sun.glass.ui.gtk.GtkApplication.enterNestedEventLoopImpl(Native Method)
  at com.sun.glass.ui.gtk.GtkApplication._enterNestedEventLoop(GtkApplication.java:211)
  at com.sun.glass.ui.Application.enterNestedEventLoop(Application.java:511)
  at com.sun.glass.ui.EventLoop.enter(EventLoop.java:107)
  at com.sun.javafx.tk.quantum.QuantumToolkit.enterNestedEventLoop(QuantumToolkit.java:583)
  at javafx.stage.Stage.showAndWait(Stage.java:474)
  at javafx.scene.control.HeavyweightDialog.showAndWait(HeavyweightDialog.java:162)
  at javafx.scene.control.Dialog.showAndWait(Dialog.java:341)
  at org.jabref.gui.JabRefDialogService.showErrorDialogAndWait(JabRefDialogService.java:170)
  at org.jabref.FallbackExceptionHandler.lambda$uncaughtException$1342(FallbackExceptionHandler.java:26)
  at com.sun.javafx.application.PlatformImpl.lambda$null$117(PlatformImpl.java:295)
  at java.security.AccessController.doPrivileged(Native Method)
  at com.sun.javafx.application.PlatformImpl.lambda$runLater$118(PlatformImpl.java:294)
  at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:95)
  at com.sun.glass.ui.gtk.GtkApplication._runLoop(Native Method)
  at com.sun.glass.ui.gtk.GtkApplication.lambda$null$450(GtkApplication.java:139)
  at java.lang.Thread.run(Thread.java:748)

@Siedlerchr
Copy link
Member

This is a duplicate of the search error issue with the highlight function

@Siedlerchr
Copy link
Member

I see that the snap no longer builds, Will try to configure the snap for java 11

@Siedlerchr
Copy link
Member

Siedlerchr commented Sep 12, 2019

@wujastyk Could you please test if this error is still occurring in the newest snap?

@Siedlerchr Siedlerchr added os: snap When JabRef is run as a snap on linux status: waiting-for-feedback The submitter or other users need to provide more information about the issue labels Sep 12, 2019
@wujastyk
Copy link
Author

wujastyk commented Sep 12, 2019 via email

@LyzardKing
Copy link
Collaborator

It seems like it's not actually modified by another program.
I only get this warning if I save again while it's still saving...
I also cannot reproduce any popups in this scenario.

@AEgit
Copy link

AEgit commented Sep 21, 2019

JabRef 5.0-dev
Linux 5.0.0-29-generic amd64
Java 11.0.4

Cannot confirm the popup error message.

@wujastyk
Copy link
Author

wujastyk commented Sep 21, 2019 via email

@AEgit
Copy link

AEgit commented Sep 21, 2019

@wujastyk
Are you talking about the "Uncaught exception error" reported in the original post (#5296 (comment)) or just the "The library has been modified by another program" message (I only see the latter in the screenshot you posted)?

@wujastyk
Copy link
Author

wujastyk commented Sep 21, 2019

"library has been modified". I see, you're talking about the error popup.

Apologies; I should have kept one issue to one report.

@AEgit
Copy link

AEgit commented Sep 21, 2019

Ok, in that case I would probably suggest to close this issue, because the main problem appears to be fixed. The "library has been modified" message, on the other hand, has already been reported in various other bug tickets, e.g.:

#5257
#5085
#4877
#4810
(also present in older versions: #4143)

I reckon these issues have a common cause.

@tobiasdiez
Copy link
Member

This should be fixed in the latest development version. Could you please check the build from http://builds.jabref.org/master/. Thanks! Please remember to make a backup of your library before trying-out this version.

@wujastyk
Copy link
Author

wujastyk commented Jan 18, 2020 via email

@wujastyk
Copy link
Author

wujastyk commented Aug 5, 2024

JabRef 5.16--2024-08-04--db9f83c
Linux 6.8.0-39-generic amd64
Java 21.0.2
JavaFX 22.0.2+4

I would like to return to this issue. With every single edit that I make to an entry, I get this popup screen multiple times. I've kind of learned to live with it, hitting "dismiss" all the time, but it needs to be sorted out definitively.

image

@Siedlerchr
Copy link
Member

pIng @koppor

@koppor
Copy link
Member

koppor commented Aug 5, 2024

@wujastyk do we have a copy of the library? It has surely something to do with library properties such as save actions.

@koppor
Copy link
Member

koppor commented Aug 5, 2024

I also would like to see what differences are shown.

@koppor koppor reopened this Aug 5, 2024
@wujastyk
Copy link
Author

wujastyk commented Aug 5, 2024

The library is rather big, 4.3 MB. Here's a link.

The differences are often nothing at all. But I'll start collecting.

@wujastyk
Copy link
Author

wujastyk commented Aug 6, 2024

I turned off "autosave local libraries" and I haven't seen the problem since. Still watching.

@wujastyk
Copy link
Author

wujastyk commented Aug 7, 2024

JabRef 5.16--2024-08-04--db9f83c
Linux 6.8.0-39-generic amd64
Java 21.0.2
JavaFX 22.0.2+4

  1. I constructed a library using tools/new sub based on latex aux. It was called "untitled".
  2. I saved it and named it.
  3. Got the screen below.

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
os: snap When JabRef is run as a snap on linux status: waiting-for-feedback The submitter or other users need to provide more information about the issue
Projects
None yet
Development

No branches or pull requests

6 participants