-
Notifications
You must be signed in to change notification settings - Fork 43
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
Clipboard is locked for 10s when copying clipboard data #650
Comments
Thanks for pointing out this flaw. I'll add the required timeout. |
I fixed the waiting for the clipboard as you suggested. Could you please check how it works. |
Sure will do |
This is something very strange, vtm itself does not create such windows. I can not reproduce such behavior yet. Something additionally starts during launching |
Last good version was v0.9.74. Later ones either crash or show that distored window. |
Could you check the properties (who owns it?) of this strange window using |
There may be some inconsistencies with vtm in Windows 11. I'll play with Windows 11 in this direction. I need time, since my working setup is still Windows 10. |
I also have Windows 10 where it looks the same. I have two security engines running but neither one seems to inject dlls into vtm. I do not want to rule out any security software blocking things now. |
vtm is a console server itself and |
One possible cause of the crashes could be unsynchronized multithreaded access to the configuration instance by the vtm GUI window and the vtm TUI manager. I tried to fix it in v0.9.99.23. |
Is it possible that something starts with cmd.exe using the autorun registry setting Something like
|
No there is no such registry key there. The strange window might be an update issue. |
I'll add pdb’s to release builds. |
I added pdb's for releases ( |
Perhaps you can specify I made the vtm default mode graphical ( |
|
ahh this was a change. I see you already did update I will update accordingly. |
This command line in Windows Terminal works now:
Thanks for the patience! I was not aware of the change of the command line switch. |
When a WPF application tries to update the clipboard all running vtm instances listen to WM_CLIPBOARDUPDATE
This can cause races when multiple vtm instances are running resulting in hundreds of thousands of context switches. The bad thing is that WPF has also retry mechanism to open the clipboard so you are locking each other out.
Instead of
std::this_thread::yield();
a Thread sleep for 15ms would be much better to give everyone a chance. Why 15ms? Because the default clock tick rate is 15ms to conserve energy. You are waiting anyway for 15ms even if you sleep just for 1ms.
The text was updated successfully, but these errors were encountered: