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

Sometimes slow and then old list #36

Closed
frank-f opened this issue Aug 28, 2019 · 25 comments
Closed

Sometimes slow and then old list #36

frank-f opened this issue Aug 28, 2019 · 25 comments
Labels
bug Something isn't working

Comments

@frank-f
Copy link

frank-f commented Aug 28, 2019

Hi,
I can't quite reproduce it, but sometimes if I haven't used Maccy in a while (a few minutes to hours) and then press the hotkey, it takes a few seconds to load the list. When this happens I'm always being presented an old list. So I close the context menu right away, immediately press the hotkey again - the list pops up quickly and shows the most recently copied entries.

Originally I had my historySize set to 1000. I've tried reducing it to 100, but still had the same problem. I am running 0.4.0 and I have also tried rebooting the Mac entirely. Any ideas what I could do?

Kind regards

@p0deje
Copy link
Owner

p0deje commented Aug 28, 2019

This looks really strange, I'll try to reproduce it. Do you happen to copy a lot during this period?

@p0deje p0deje added the bug Something isn't working label Aug 28, 2019
@frank-f
Copy link
Author

frank-f commented Aug 28, 2019

Yes, I copy a lot. I'd guess about 50 times between using the hotkey again to open Maccy.

@max-wittig
Copy link

Same happens to me

@p0deje
Copy link
Owner

p0deje commented Sep 13, 2019

I've tried reproducing this but cannot. What I did is:

  1. Open Maccy with a couple of copied history items.
  2. Close its menu.
  3. Every 3 seconds copy something new to clipboard. Repeat 50 times.
  4. Open Maccy again.

it shows just fine with 52 copied items in a proper order. Can you help me reproduce it?

@max-wittig
Copy link

Thanks for your response and for creating this awesome tool! 👍

Not sure how. I happens randomly, but a few days a day.

My behaviour is maybe also at fault. I use it rarly (1-2 times a day), but I copy a lot of small and sometimes also big text snippets.

Other problem which may be related that it sometimes infini-scrolls, instead of stopping at the bottom. I've also decreased the size of the history to try to fix the problem. I think it occurs less now, but not sure.

@jkrenge
Copy link

jkrenge commented Sep 22, 2019

Yes, I experienced the same with the default 999 items in the list, and then copy-ing larger items like complete HTML email templates. If you have a couple of those, I assume it just takes time to load all items from swap.

@max-wittig
Copy link

I also assumed that, but it doesn't have to be. The clipboard tool on my linux doesn't stutter. No matter how large the items. There must be a bug somewhere.

@marcomayer
Copy link

I have the same issue. Sometimes it takes 10 seconds or so for the list to show after pressing the hotkey and then it might be an old version of the list. Also sometimes it's fast but shows an old version. Still thanks a lot for the tool, hopefully, this can be fixed sometime!

@saeedseyfi
Copy link
Contributor

saeedseyfi commented Oct 2, 2019

Same happens to me a lot. Showing the old menu is really bothering.
And it's quite hard to reproduce. It seems it only happens when you don't use maccy for at least some hours. Then next time you open it, will be quite slow and showing the old menu with wrong items in the list.
I guess this issue started since you put the search field on the top of the menu.

However, I just figured out I'm still using version 0.4.1. I'll update it and try to reproduce the issue again.

@montanaflynn
Copy link

Happens to me as well, when I trigger the hotkey there's a delay and I usually will redo the hotkey several times. Then maccy will open with the old list and when I close that it will open as many times as I triggered it.

@saeedseyfi
Copy link
Contributor

saeedseyfi commented Oct 7, 2019

@p0deje I could reproduce the issue and recorded my screen to show how it behaves:
screen record.mp4.zip

To reproduce:

  1. Make sure Maccy is running in background
  2. Use your normal copy/paste several times but don't use Maccy for some hours.
  3. Use your hotkeys to open Maccy menu.
    • It possibly has some delay to show the menu.
    • When the menu is shown, it doesn't have a search field, shows an old list from clipboard contents.
  4. Press escape to hide the menu
  5. Use your Maccy hotkeys again to open menu.
    • It opens pretty quickly showing the right content and working fine.

My custom settings:

hotKey = "command+shift+v";
pasteByDefault = true;
showInStatusBar = false;

@philihub
Copy link

Same here. I am on macOS 10.15 and Maccy is sluggish. Not sure if too many items or something else.

hotKey = "command+shift+x";
pasteByDefault = true;

@mgthantzin
Copy link

mgthantzin commented Oct 16, 2019

Encountered the same issue. After having delay for once, it will become responsive for some time. I thought it was due to Unicode characters (Asian texts) that I copy a lot. Maybe that is not the case.

Anyway, I really love this tool! Thanks for making it.

@p0deje p0deje closed this as completed in 6f6eb3c Oct 17, 2019
@p0deje p0deje reopened this Oct 17, 2019
@p0deje
Copy link
Owner

p0deje commented Oct 17, 2019

I made some refactoring that might potentially solve the problem and will be testing it for some time. The refactoring touched the core of Maccy so it might introduce some new bugs. It's done in 6f6eb3c. If anyone wants to participate in testing, I'm attaching the built app here.

@p0deje
Copy link
Owner

p0deje commented Oct 17, 2019

Maccy.app.zip

@frank-f
Copy link
Author

frank-f commented Oct 17, 2019

Thanks, I will test that version and let you know in a few days if I've seen the error again.

@FernandoMiguel
Copy link

Maccy.app.zip

downloading and testing

@frank-f
Copy link
Author

frank-f commented Oct 17, 2019

The old-list problem seems to be fixed, but opening the list still seems to be very slow sometimes. Also I noticed that "pasteByDefault = true;" has no effect anymore.

@p0deje
Copy link
Owner

p0deje commented Oct 18, 2019

The old-list problem seems to be fixed

Good to know that.

opening the list still seems to be very slow sometimes

Can you record a screencast just to check how it looks like?

Also I noticed that "pasteByDefault = true;" has no effect anymore.

Can you try removing "Maccy" from "Security & Privacy" -> "Accessibility", then restart Maccy and try again? It might be a permissions problem.

@FernandoMiguel
Copy link

Also I noticed that "pasteByDefault = true;" has no effect anymore.

Can you try removing "Maccy" from "Security & Privacy" -> "Accessibility", then restart Maccy and try again? It might be a permissions problem.

that seems to have worked!
thanks

@frank-f
Copy link
Author

frank-f commented Oct 18, 2019

opening the list still seems to be very slow sometimes

Can you record a screencast just to check how it looks like?

So far it has not happened again. If it does, I'll try to make a video the next time.

Can you try removing "Maccy" from "Security & Privacy" -> "Accessibility", then restart Maccy and try again? It might be a permissions problem.

That fixed it for me too, thanks! Is it maybe related to Catalina?

@p0deje
Copy link
Owner

p0deje commented Oct 18, 2019

Is it maybe related to Catalina?

It definitely might.

@frank-f
Copy link
Author

frank-f commented Oct 22, 2019

Can you record a screencast just to check how it looks like?

So far it has not happened again. So it might have been my system being slow when I saw it.

Also I've not seen the old list (without search field) since installing the beta version, so I'd say this is fixed. Thank you!

@frank-f frank-f closed this as completed Oct 22, 2019
@max-wittig
Copy link

@p0deje Can we have a new release, because of this fix? Then I could just run brew cask update 😄

@p0deje
Copy link
Owner

p0deje commented Oct 25, 2019

I've just released 0.6.0 - https://github.com/p0deje/Maccy/releases/tag/0.6.0. If someone can upgrade it in caskroom that would be cool.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

10 participants