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

Selected program run twice #440

Closed
2 tasks done
KaiHuaDou opened this issue Oct 14, 2023 · 3 comments
Closed
2 tasks done

Selected program run twice #440

KaiHuaDou opened this issue Oct 14, 2023 · 3 comments
Labels
bug Something isn't working

Comments

@KaiHuaDou
Copy link

KaiHuaDou commented Oct 14, 2023

Preflight Checklist

  • I have fully read the README and it did not solve the problem.
  • I have searched all open and closed issues for the same bug report without success.

EverythingToolbar Version

1.2.0

Everything Version

1.4.1.1024 (x64)

Windows Version

Windows 10 Enterprise 22H2 (19045.3516)

Steps to reproduce

  1. Search any program
  2. Press Enter quickly
  3. The program launch twice.
  4. Search any program
  5. Press down Enter wihout lifting
  6. The program launch once.

Expected Behavior

Selected program launch once.

Actual Behavior

Selected program launch twice.

Screenshots

No response

Log output

It seems that there are only network errors in the log (I did not plug in the Internet cable)

2023-10-14 10:53:57.6440|INFO|Launcher|EverythingToolbar Launcher 1.2.0.0 started. OS: Microsoft Windows NT 10.0.19045.0|
2023-10-14 10:54:19.3269|INFO|EverythingToolbar.EverythingSearch|Everything version: 1.4.1|
2023-10-14 10:54:23.5010|ERROR|EverythingToolbar.Behaviors.ThemeAwareness|Failed to get latest release version.|System.Net.Http.HttpRequestException: 发送请求时出错。 ---> System.Net.WebException: 无法连接到远程服务器 ---> System.Net.Sockets.SocketException: 由于目标计算机积极拒绝,无法连接。 127.0.0.1:443
   在 System.Net.Sockets.Socket.InternalEndConnect(IAsyncResult asyncResult)
   在 System.Net.Sockets.Socket.EndConnect(IAsyncResult asyncResult)
   在 System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Exception& exception)
   --- 内部异常堆栈跟踪的结尾 ---
   在 System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult)
   在 System.Net.Http.HttpClientHandler.GetResponseCallback(IAsyncResult ar)
   --- 内部异常堆栈跟踪的结尾 ---
   在 System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   在 System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   在 EverythingToolbar.Controls.UpdateBanner.<GetLatestStableReleaseVersion>d__5.MoveNext() 位置 C:\Users\Stephan\Entwicklung\EverythingToolbar\EverythingToolbar\Controls\UpdateBanner.xaml.cs:行号 40

Additional Information

I think EverythingToolbar launches the selected program both on ButtonDown and ButtonUp.

This bug often occurs on programs that are slower to start. Like *.py, *.csproj.

@srwi
Copy link
Owner

srwi commented Nov 7, 2023

Hi @KaiHuaDou, sorry for the late response. There were some changes to how keypresses are handled in the latest 1.3.1 release. Would it be possible for you to test it again on that version? I did not implement any specific fix, but I want to make sure that the issue still exists in the latest version.

@KaiHuaDou
Copy link
Author

KaiHuaDou commented Nov 8, 2023

Sorry, the problem persists.

I selected a ".py" file and pressed the enter key quickly, and it started two instances instead of just one instance.

I selected a ".py" file and long pressed the enter key without releasing it, and it started almost 60 instances instead of just one instance.

@srwi
Copy link
Owner

srwi commented Nov 8, 2023

I selected a ".py" file and long pressed the enter key without releasing it, and it started almost 60 instances instead of just one instance.

Holding the key down allowed me to reproduce it! Thank you for the hint. Maybe you have set Windows to use a very short keyboard repetition delay?

Anyways, I implemented a fix for it. It will be available in the next release.

@srwi srwi closed this as completed in 0e14a6c Nov 8, 2023
@srwi srwi added the bug Something isn't working label Nov 8, 2023
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

2 participants