plover icon indicating copy to clipboard operation
plover copied to clipboard

Lengthy Pause During Use

Open gdwaynewarner opened this issue 7 years ago • 42 comments

Classification: Bug

Reproducibility: Sometimes

Summary

What has been going on of late with build 4.0.0.dev1+20.g60a373f is I will be writing along, and then everything stops for about a minute, then the translations fills in what I had written before and continues on as if nothing has happened.

So far I have not noticed any particular pattern to this behavior; it seems to be totally random.

Steps to Reproduce

  1. I write stuff, and sometimes Plover just stops sending what I've written to the document I'm working on.

Expected Results

  1. Plover should send what I wrote to the document I'm writing in.

Actual Results

3. Instead, this happens :(

As I was writing the contents of number three up there, Plover stopped after "should" for about two minutes, and then started back up again. Unfortunately, I don't see anything that explains what was going on during those two minutes.

I guess I could have taken a screenshot of the window I was writing in and the clock, but I didn't think about that at the time!

Version

Plover version 4.0.0.dev1+20.g60a373f

If the problem is known to be present in more than one version, please list all of those.

NA

Installed via: Downloaded from openstenoproject.org

Notes

Describe any debugging steps you've taken yourself.

I checked a few of the files in the Plover folder (plover.cfg and plover.log -- after making copies of them, of course) but neither of those had any data ... but I just now took a look in the Mac's Console program, and found these:

6/10/17 8:46:51.576 PM WindowServer[207]: disable_update_timeout: UI updates were forcibly disabled by application "Plover" for over 1.00 seconds. Server has re-enabled them.

6/10/17 8:46:58.760 PM WindowServer[207]: common_reenable_update: UI updates were finally reenabled by application "Plover" after 8.18 seconds (server forcibly re-enabled them after 1.00 seconds)

If you've found a workaround, provide it here.

Ha ha ha! That's why I'm here!

Configuration

OS:

Mac OS X 10.10.5

gdwaynewarner avatar Jun 11 '17 04:06 gdwaynewarner

Is Plover hidden to the tray? Or do you have any of its windows open? (And which ones).

benoit-pierre avatar Jun 11 '17 12:06 benoit-pierre

Similar problem for me. I'm using a Macbook Pro, and Stentura 400 SRT, and the most recent release of Plover. In addition to the long pause, Plover will sometimes lose its connection to the machine.

tkpwaeub avatar Jun 11 '17 12:06 tkpwaeub

This is happening for me from time to time, using XUbuntu, release 16.04 on an HP Pavillion g6-1d80nr laptop. The length of the pause varies, usually it's only a few seconds, but I get the minute or two long ones too. This may or may not be a coincidence, but I can't think of one time it happenned when I only had one small dictionary checked [a python dictionary, if that makes a difference, that always returns a small translation, even if it's just "{null}"]. When it happens I have a lot of large dictionaries loaded and am usually writing at a faster pace. When Plover resumes translating, it also translates all the strokes that I've done since it paused. I always have the main Plover window, the Suggestions window, and sometimes the Paper Tape window open somewhere on my desktop.

KoiOates avatar Jun 11 '17 12:06 KoiOates

Also, do any of you have the strokes/translation logging enabled?

benoit-pierre avatar Jun 11 '17 12:06 benoit-pierre

Logging for strokes on mine.

KoiOates avatar Jun 11 '17 12:06 KoiOates

I don't have logging or the suggestions window open and have never had this issue.

On Jun 11, 2017 8:21 AM, "KoiOates" [email protected] wrote:

Logging for strokes on mine.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/openstenoproject/plover/issues/778#issuecomment-307625767, or mute the thread https://github.com/notifications/unsubscribe-auth/AFkgSpcXWyZt0FRAWYOWCvGX5t-4-fbZks5sC9vTgaJpZM4N2SoG .

morinted avatar Jun 11 '17 13:06 morinted

Benoit-Pierre, I'm on a Mac, so no system tray. At the time, I only had the main window and the Suggestions windows open. I believe I have strokes logging enabled.

In view of what Ted has reported, I will kill off the Suggestions window and the logging and see how that goes.

gdwaynewarner avatar Jun 11 '17 16:06 gdwaynewarner

Just to add that I'm having the same issue. Running on OSX 10.11.6. No logging is on. I generally have the suggestions window open.

Wilfried84 avatar Jun 16 '17 02:06 Wilfried84

Any news? Does killing logging/suggestions fix the issue? The paper tape / suggestions updates should have no impact on the engine output (different thread), except if the suggestions block when asking the engine for suggestions, which I don't see happening. (Tested by adding some time.sleep calls in both). Writing to the log is done from the engine thread, so a slow disk could impact output.

Googling for WindowServer[207]: disable_update_timeout does point to macOS issues:

  • https://www.macissues.com/2015/01/08/how-to-manage-intermittent-lag-in-os-x-yosemite/
  • https://www.jamf.com/jamf-nation/discussions/22595/avoid-security-update-2016-003-for-os-x-el-capitan-10-11-6

That leaves @KoiOates, are you using the AppImage or running from source?

benoit-pierre avatar Jul 28 '17 16:07 benoit-pierre

Hmm. I don't know why I didn't receive an e-mail letting me know there was an update. Sorry about that.

Anyway, I still get the occasional pause, but I see you have found a link to the poor performance of the OS I'm running, which I can't fix right now (this old iMac needs more RAM, but this model only accepts six gigs, max).

gdwaynewarner avatar Aug 07 '17 10:08 gdwaynewarner

@gdwaynewarner: just to be clear, does any of my suggestions have any impact?

benoit-pierre avatar Aug 07 '17 21:08 benoit-pierre

I thought I had killed off the logging, but it appears I did not do so correctly. I just shut both logging and the "Log Translations" off, and will test to see how things go. They appear to have come back after a system crash (bad web browser behavior).

gdwaynewarner avatar Aug 08 '17 09:08 gdwaynewarner

A few hours ago, Plover froze on me again.

Unfortunately, the Suggestions window was open again, so I closed it, and made sure it would not open again without my specifically opening it by unchecking the appropriate checkbox ... so I will be doing more testing and get back to you within a couple days.

gdwaynewarner avatar Aug 15 '17 07:08 gdwaynewarner

@benoit-pierre Running from source. I've tried a few days straight with suggestions and logging turned off, I still get the pauses though.

KoiOates avatar Aug 28 '17 16:08 KoiOates

It's been a while since I've spent a significant amount of time using Plover, but I had to work on a transcript the other day, and did so with the Suggestions window closed as suggested -- er, recommended, and I am pleased to report that I didn't experience any freezing during that session.

The next day, after actually quitting Plover before going to bed, I started it up and activated the Suggestions window, and shortly after, I started getting those pauses again.

... so the problem might lie somewhere in the code for the Suggestions window, I'm guessing.

gdwaynewarner avatar Aug 29 '17 02:08 gdwaynewarner

Could you try the latest master build? The PyQt5 version was updated to the latest LTS, so who knows... If that does not work, I'll make a build which limit the numbers of last suggestions. Alternatively, you could check if the pauses happen only when there are many entries, and if regularly clearing the history fix the issue.

benoit-pierre avatar Aug 29 '17 13:08 benoit-pierre

Just downloaded and installed the new build. It's running, so that's good ... but I'll have to do some serious testing later (bedtime!).

Thanks!

gdwaynewarner avatar Aug 29 '17 16:08 gdwaynewarner

Okay, using the new build, I had the Suggestions window open, and actually had no issues. Then a few days later, after having quit and restarted Plover a few times over a few days, I did get a freeze. Unfortunately, I didn't time it, but I think it was for about 30 seconds.

gdwaynewarner avatar Sep 05 '17 07:09 gdwaynewarner

While working on (yet another) transcript, I decided to test the new build (Plover 4.0.0.dev6+5.ga564116 on Mac OS X 10.10.5) to see if the problem was still present.

Because I had been adding new outlines to my dictionary like crazy, I thought it might be a good idea to have the Suggestions window open ... so I opened it, pinned it so I could see it all the time, and started writing.

After a few minutes, I had got to a point where I had just written about 10 words ... and none of them appeared on the screen.

I then opened the Console program and searched for Plover ... and nothing at all appeared.

Unfortunately, I didn't think to search for the Plover.cfg file; I just closed the Suggestions window and decided to file a bit of an update to this bug report.

Well. That transcript won't write itself, so ...

gdwaynewarner avatar Jan 09 '18 21:01 gdwaynewarner

This might have been fixed by #1188.

benoit-pierre avatar Apr 02 '21 15:04 benoit-pierre

Another suggestions widget related speed up: #1481. Would love some feedback.

benoit-pierre avatar Feb 27 '22 15:02 benoit-pierre

Is this still happening?

benoit-pierre avatar Jun 28 '22 22:06 benoit-pierre

Yes, actually. It happened just a few minutes ago, with the current build.

gdwaynewarner avatar Jun 28 '22 23:06 gdwaynewarner

Yes, actually. It happened just a few minutes ago, with the current build.

What does current build means? v4.0.0.dev11 or the latest continuous release? Always provide the exact version.

Anyway, let's ignore @KoiOates case for now (which looks like a different issue), what's the constant in your case? It's always when the suggestions are shown, right? Is it still the same system?

benoit-pierre avatar Jun 29 '22 20:06 benoit-pierre

I am using this build:

[image: Screen Shot 2022-06-29 at 1.43.44 PM.png] I don't use the Suggestions window anymore, so it's definitely not that. It's just Plover and whatever I'm writing into at the time, which means Firefox or Nisus Writer Pro http://www.nisuswriter.com.

Same system (2009 17 inch MacBook Pro, running Mac OS 10.13.6 High Sierra).

Sorry that this will probably make the bug harder to track down, but on the plus side, it doesn't happen very often, so that's something.

gdwaynewarner avatar Jun 29 '22 20:06 gdwaynewarner

Screenshot is not showing... It's better to copy-paste the version.

It's just Plover and whatever I'm writing into at the time, which means Firefox or Nisus Writer Pro

So no active Plover window?

You could try running without the QT GUI (-g none).

You still get those WindowServer messages in the Mac's Console?

Sorry that this will probably make the bug harder to track down, but on the plus side, it doesn't happen very often, so that's something.

Has the frequency changed?

benoit-pierre avatar Jun 29 '22 21:06 benoit-pierre

Here's the version number:

Plover 4.0.0.dev10

I'm not sure about running without the GUI. Sometimes I need to add something to the dictionary -- though I haven't done that in a while now. Usually I just run Plover and whatever I'm writing into hides Plover from view.

As for the Console, that's not anything I have open without needing to do so, so I guess I can't really say what's going on in there.

Sorry!

gdwaynewarner avatar Jun 29 '22 22:06 gdwaynewarner

Here's the version number: Plover 4.0.0.dev10

So clearly not the definition of "current build"...

I'm not sure about running without the GUI. Sometimes I need to add something to the dictionary -- though I haven't done that in a while now.

And you still can when using -g none. Assuming {PLOVER:ADD_TRANSLATION} is mapped to TKUPT, the procedure for adding a new TEFT/-G → "testing" mapping is:

  • stroke TKUPT
  • stroke TEFT
  • stroke TKUPT again
  • enter (fingerspell/write) "testing"
  • stroke TKUPT one last time to finalize: this will add the new mapping to your "favorite" dictionary

Usually I just run Plover and whatever I'm writing into hides Plover from view.

OK, but visible or not, is the suggestions window open? What about the paper tape? Does the issue happen if all Plover windows are closed?

benoit-pierre avatar Jun 29 '22 22:06 benoit-pierre

As I wrote before, the only window open is Plover's main window. No Suggestions, no paper tape, just Plover itself, and that's behind whatever I'm writing into.

As for adding outlines to the dictionary, I did have a problem with that a few builds back but that seems to have been fixed somewhere along the way, thankfully (I update when I see there's a new (public) build available).

As for which version of Plover I'm running, its version number is actually 4.0.0.dev11+21.g486a032, which is the current version to me and most non-devs or testers. The number I provided before came from Plover's About window. Not sure why the two don't match, though.

gdwaynewarner avatar Jun 29 '22 23:06 gdwaynewarner

As for which version of Plover I'm running, its version number is actually 4.0.0.dev11+21.g486a032, which is the current version to me and most non-devs or testers. The number I provided before came from Plover's About window. Not sure why the two don't match, though.

That's not normal, are you sure you don't ended up with another version of Plover installed in your plugins directory?

benoit-pierre avatar Jun 29 '22 23:06 benoit-pierre