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

Freeze for few seconds sometimes, on MacOS #7441

Closed
Kurapikov opened this issue Feb 9, 2021 · 12 comments
Closed

Freeze for few seconds sometimes, on MacOS #7441

Kurapikov opened this issue Feb 9, 2021 · 12 comments

Comments

@Kurapikov
Copy link

JabRef version 5.1 and git 69cc797 on Mac OS X 10.15.7

I have tested the latest development version from git and build it myself, and the problem persists

Steps to reproduce the behavior:

  1. Open a bib, my bib is only 89 entries.
  2. Switch between entries with left click.
  3. Sometimes it will freeze for 5 seconds. When it backs normal, I can switch between entries fluently, but after about 5 senconds, it freeze again for about 5 seconds......

It's very same with @tilltnet in following thread:
https://discourse.jabref.org/t/jabref-5-0-very-slow-update-gui-entries/1930/8

I attached Intellij IDEA profiler snapshot and console output here.

First I run jabref with "--debug" option, and then I attach profiler to it. As soon as the profiler is attched, I switch item and cause a freeze. When jabref is out of freeze, I stop profiler and save the snapshot. The profiling lasts about 5 seconds.

console.txt

20387_org.jabref_org.jabref.gui.JabRefLauncher_2021-02-10-014735.collapsed.zip

@Kurapikov
Copy link
Author

Forgot to mention: JRE/JDK 15.0.2

@Kurapikov
Copy link
Author

Still no any respond?

This is not simply a performance problem. It makes JabRef almost unusable under MacOS.

If no one can reproduce this, I can do more digest if you developer can provide some hint.

Thanks.

@koppor
Copy link
Member

koppor commented Feb 15, 2021

@Kurapikov Is this #5071? Do you have time to investigate? We have a yourkit profiler license in case you would like to use it to support us! #opensource #freetime

@Siedlerchr
Copy link
Member

I noticed that only happens on start. But then no longer. I am also using Mac. Have you tried to disable Autocompletion?

@Kurapikov
Copy link
Author

@kopper @Siedlerchr

It's not #5071. JabRef 5.0 works fine on my Windows 10 box.

The issue I reported in OP is on MacOS. It happens with a small bib only have ~100 entries.

I saw the video attached in #5071 and found yourkit profiler is much cooler than the one in IntelliJ. I can handle the license so no worry. I don't have much time but I think I can spare some time to do this.

I'll try yourkit these days and see if I can find anything. Hope I can attach a video so you can see what to do next.

@koobs
Copy link

koobs commented Feb 21, 2021

Cannot reproduce, using mouse (trackpad) or updown arrows to switch between entries, with a > 400 entry library on:

JabRef 5.3--2021-02-16--5546141
Mac OS X 10.15.7 x86_64 
Java 15.0.2 
JavaFX 15.0.1+1

@Kurapikov are you able to reproduce this on the latest master?

@Kurapikov
Copy link
Author

Cannot reproduce, using mouse (trackpad) or updown arrows to switch between entries, with a > 400 entry library on:

JabRef 5.3--2021-02-16--5546141
Mac OS X 10.15.7 x86_64 
Java 15.0.2 
JavaFX 15.0.1+1

@Kurapikov are you able to reproduce this on the latest master?

Hi koobs,

I have tried on master 2 weeks ago. Recent days I don't have any time since I'm at deadline of my PhD thesis, and I think the code I tested with is new enough.

So may it be the problem with my bib? I attached my bib file here so would you like to test it?

I'll try my best to follow this issue.

ref.zip

@Ali96kz
Copy link
Contributor

Ali96kz commented Feb 27, 2021

@Kurapikov I found a problem, currently thinking about a solution. You can get these solution as a workaround

@Kurapikov
Copy link
Author

Kurapikov commented Feb 28, 2021

@Kurapikov I found a problem, currently thinking about a solution. You can get these solution as a workaround

Hi @Ali96kz

This workaround solved my problem magically!! Thank you very much!!!!

Hope this bug will be fixed soon.

@koobs
Copy link

koobs commented Feb 28, 2021

Possibly useful: Java: no timeout on DNS resolution for code that provides DNS resolution lookups with timeouts (set low)

Might be worth pulling in a well maintained network utilities library if Java (still) doesn't provide DNS timeouts in the standard libraries instead of couture code. There's got to be some goodies out there.

@chibi03
Copy link

chibi03 commented Mar 6, 2021

I have the same issue on Manjaro Linux 5.10.18 (XFCE) and the workaround fixed the problem as well.

@Ali96kz
Copy link
Contributor

Ali96kz commented Apr 12, 2021

@koppor Could be closed?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants