win-vind icon indicating copy to clipboard operation
win-vind copied to clipboard

[Bug] Windows Error Code: 5

Open happyTonakai opened this issue 1 year ago • 2 comments

About Bug

When win-vind starts up with Windows, the following error shows

issue

A part of log is as follows

========== System Infomation ==========
[Windows]
      Edition: Windows 10 Pro
      Version: 21H1
Build Numbers: 10.0.19043
 Architecture: x64

[win-vind]
      Version: 4.3.3
=======================================

[Error] open_startmenu failed. An runtime exception occurred from void __cdecl vind::bind::JumpToActiveWindow::sprocess(void). GetForegoundWindow return nullptr (void __cdecl vind::bind::BindedFunc::error_process(const class std::exception &) const)
[Error] Access is denied.
[Error] move_cursor_right failed. An runtime exception occurred from void __cdecl vind::util::move_cursor(int,int). cannot send the moving event of the mouse (void __cdecl vind::bind::BindedFunc::error_process(const class std::exception &) const)
[Error] Access is denied.
[Error] move_cursor_right failed. Cannot refresh all key state. An runtime exception occurred from void __cdecl vind::core::InputGate::release_keystate<const class vind::core::KeyCode*>(const class vind::core::KeyCode *,const class vind::core::KeyCode *). failed sending keyboard event (void __cdecl vind::bind::BindedFunc::error_process(const class std::exception &) const)
[Error] Access is denied.
[Error] move_cursor_right failed. An runtime exception occurred from void __cdecl vind::util::move_cursor(int,int). cannot send the moving event of the mouse (void __cdecl vind::bind::BindedFunc::error_process(const class std::exception &) const)
[Error] Access is denied.
[Error] move_cursor_right failed. Cannot refresh all key state. An runtime exception occurred from void __cdecl vind::core::InputGate::release_keystate<const class vind::core::KeyCode*>(const class vind::core::KeyCode *,const class vind::core::KeyCode *). failed sending keyboard event (void __cdecl vind::bind::BindedFunc::error_process(const class std::exception &) const)
[Error] Access is denied.
[Error] move_cursor_right failed. An runtime exception occurred from void __cdecl vind::util::move_cursor(int,int). cannot send the moving event of the mouse (void __cdecl vind::bind::BindedFunc::error_process(const class std::exception &) const)
[Error] Access is denied.
[Error] move_cursor_right failed. Cannot refresh all key state. An runtime exception occurred from void __cdecl vind::core::InputGate::release_keystate<const class vind::core::KeyCode*>(const class vind::core::KeyCode *,const class vind::core::KeyCode *). failed sending keyboard event (void __cdecl vind::bind::BindedFunc::error_process(const class std::exception &) const)
[Error] Access is denied.
[Error] move_cursor_right failed. An runtime exception occurred from void __cdecl vind::util::move_cursor(int,int). cannot send the moving event of the mouse (void __cdecl vind::bind::BindedFunc::error_process(const class std::exception &) const)
[Error] Access is denied.
[Error] move_cursor_right failed. Cannot refresh all key state. An runtime exception occurred from void __cdecl vind::core::InputGate::release_keystate<const class vind::core::KeyCode*>(const class vind::core::KeyCode *,const class vind::core::KeyCode *). failed sending keyboard event (void __cdecl vind::bind::BindedFunc::error_process(const class std::exception &) const)
[Error] Access is denied.
[Error] move_cursor_right failed. An runtime exception occurred from void __cdecl vind::util::move_cursor(int,int). cannot send the moving event of the mouse (void __cdecl vind::bind::BindedFunc::error_process(const class std::exception &) const)
[Error] Access is denied.
[Error] move_cursor_right failed. Cannot refresh all key state. An runtime exception occurred from void __cdecl vind::core::InputGate::release_keystate<const class vind::core::KeyCode*>(const class vind::core::KeyCode *,const class vind::core::KeyCode *). failed sending keyboard event (void __cdecl vind::bind::BindedFunc::error_process(const class std::exception &) const)
[Error] Access is denied.
[Error] move_cursor_right failed. An runtime exception occurred from void __cdecl vind::util::move_cursor(int,int). cannot send the moving event of the mouse (void __cdecl vind::bind::BindedFunc::error_process(const class std::exception &) const)
[Error] Access is denied.
[Error] move_cursor_right failed. Cannot refresh all key state. An runtime exception occurred from void __cdecl vind::core::InputGate::release_keystate<const class vind::core::KeyCode*>(const class vind::core::KeyCode *,const class vind::core::KeyCode *). failed sending keyboard event (void __cdecl vind::bind::BindedFunc::error_process(const class std::exception &) const)
[Error] Access is denied.
[Error] move_cursor_right failed. An runtime exception occurred from void __cdecl vind::util::move_cursor(int,int). cannot send the moving event of the mouse (void __cdecl vind::bind::BindedFunc::error_process(const class std::exception &) const)
[Error] Access is denied.
[Error] move_cursor_right failed. Cannot refresh all key state. An runtime exception occurred from void __cdecl vind::core::InputGate::release_keystate<const class vind::core::KeyCode*>(const class vind::core::KeyCode *,const class vind::core::KeyCode *). failed sending keyboard event (void __cdecl vind::bind::BindedFunc::error_process(const class std::exception &) const)
[Error] Access is denied.
[Error] move_cursor_right failed. An runtime exception occurred from void __cdecl vind::util::move_cursor(int,int). cannot send the moving event of the mouse (void __cdecl vind::bind::BindedFunc::error_process(const class std::exception &) const)
[Error] Access is denied.
[Error] move_cursor_right failed. Cannot refresh all key state. An runtime exception occurred from void __cdecl vind::core::InputGate::release_keystate<const class vind::core::KeyCode*>(const class vind::core::KeyCode *,const class vind::core::KeyCode *). failed sending keyboard event (void __cdecl vind::bind::BindedFunc::error_process(const class std::exception &) const)
[Error] Access is denied.
[Error] move_cursor_right failed. An runtime exception occurred from void __cdecl vind::util::move_cursor(int,int). cannot send the moving event of the mouse (void __cdecl vind::bind::BindedFunc::error_process(const class std::exception &) const)
[Error] Access is denied.
[Error] move_cursor_right failed. Cannot refresh all key state. An runtime exception occurred from void __cdecl vind::core::InputGate::release_keystate<const class vind::core::KeyCode*>(const class vind::core::KeyCode *,const class vind::core::KeyCode *). failed sending keyboard event (void __cdecl vind::bind::BindedFunc::error_process(const class std::exception &) const)
[Error] Access is denied.
[Error] move_cursor_right failed. An runtime exception occurred from void __cdecl vind::util::move_cursor(int,int). cannot send the moving event of the mouse (void __cdecl vind::bind::BindedFunc::error_process(const class std::exception &) const)
[Error] Access is denied.
[Error] move_cursor_right failed. Cannot refresh all key state. An runtime exception occurred from void __cdecl vind::core::InputGate::release_keystate<const class vind::core::KeyCode*>(const class vind::core::KeyCode *,const class vind::core::KeyCode *). failed sending keyboard event (void __cdecl vind::bind::BindedFunc::error_process(const class std::exception &) const)
[Error] Access is denied.
[Error] move_cursor_right failed. An runtime exception occurred from void __cdecl vind::util::move_cursor(int,int). cannot send the moving event of the mouse (void __cdecl vind::bind::BindedFunc::error_process(const class std::exception &) const)
[Error] Access is denied.
[Error] move_cursor_right failed. Cannot refresh all key state. An runtime exception occurred from void __cdecl vind::core::InputGate::release_keystate<const class vind::core::KeyCode*>(const class vind::core::KeyCode *,const class vind::core::KeyCode *). failed sending keyboard event (void __cdecl vind::bind::BindedFunc::error_process(const class std::exception &) const)
[Error] Access is denied.

Steps to reproduce.

  1. Select Start up with Windows.
  2. Reboot system.
  3. Don't enter the password immediately, wait for one or two minutes. Win10 will start all startup items even if I don't enter the password to login yet.
  4. Wait for screen to sleep (this step may be optional, but I can 100% reproduce the bug if I wait for the screen to turn black).
  5. Wake up the system to login and the error message shows up.

Environments

Environments Delete the example and fill in your information.
Windows Edition 10 Pro
Windows Version 21H1
Windows Build 19043.1949
Architecture 64bit
win-vind Version 4.3.3
win-vind Install Type winget

happyTonakai avatar Sep 14 '22 04:09 happyTonakai

I try to reproduce it. By the way, does this issue occur in the default .vindrc? Thanks.

pit-ray avatar Sep 22 '22 08:09 pit-ray

I try to reproduce it. By the way, does this issue occur in the default .vindrc? Thanks.

Yes, this issue also occurs with a blank .vindrc.

happyTonakai avatar Sep 22 '22 08:09 happyTonakai

I tried on three environment.

  • Windows 10 Home I could not reproduce it.

  • Windows 11 Home I could not reproduce it.

  • Windows 10 Pro I could reproduce it.

Therefore, I guess it due to edition difference. I continue the investigation.

pit-ray avatar Oct 02 '22 12:10 pit-ray