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

Stability improvements for 5.23 #383

Closed
gileli121 opened this issue Oct 6, 2024 · 7 comments
Closed

Stability improvements for 5.23 #383

gileli121 opened this issue Oct 6, 2024 · 7 comments

Comments

@gileli121
Copy link
Member

gileli121 commented Oct 6, 2024

Over the past few months, I have intermittently received various reports of fatal errors from the global exception handler window.

I have identified six types of fatal errors. I will begin addressing them in order of frequency, starting with the most common and working down to the least common.

I will update this ticket with comments on the status of each error fix.

Error 3 (10 users reported) [Fixed 6-Oct-2024]

Message:
**Version: v5.22.9
Type: MS Store
Installed: Yes
IsAdminHelper: No
IsAdmin: No

**Logs from last hour:
5ZH8X: [Info] Loading the app manager
5ZH8X: [Info] Loading the UwpAppManager
1HYXF: [Info] Adding dll folder as C:\Users\Aline\AppData\Local\Packages\25571BiGilSoft.WindowTop_gejtaqnb6x66e\LocalState\dlls
5ZH8X: [Info] Loading cached data
5ZH8X: [Info] Loading the activation manager
5ZH8X: [Info] Loading the UwpActivationManager
5ZH8X: [Info] Load settings
5ZH8X: [Info] Setting the defined language
5ZH8X: [Info] SetLanguage called
5ZH8X: [Info] SetLanguage is configuring language pt-BR
5ZH8X: [Info] Loading activation state
1WTDI: [Info] Code D3QQK
1WTDI: [Info] Code D3QQK
1WTDI: [Info] Code Y8Q9L. Data: False
1WTDI: [Info] Code 3R5SL
Z4316: [Info] Requested to get trial register time
KMO41: [Info] Sending request to windowtop.info to get the trial register time
1WTDI: [Info] Code Y8Q9L. Data: False
1WTDI: [Info] Code 3R5SL
Z4316: [Info] Requested to get trial register time
KMO41: [Info] Sending request to windowtop.info to get the trial register time
KMO41: [Info] Code SAHGS. Data: {"success":true,"data":"2024-06-29T00:22:37Z"}
KMO41: [Info] Code 6A396. Data: True,2024-06-29T00:22:37Z
Z4316: [Info] Code QW7UB
Z4316: [Info] UpdateTrailMode result: DaysLeft=-34
1WTDI: [Info] Code 58LFF
1WTDI: [Info] Code VZ63E
1WTDI: [Info] Code P7743. Data: False,False,False,False
KMO41: [Info] Code SAHGS. Data: {"success":true,"data":"2024-06-29T00:22:37Z"}
KMO41: [Info] Code 6A396. Data: True,2024-06-29T00:22:37Z
Z4316: [Info] Code QW7UB
Z4316: [Info] UpdateTrailMode result: DaysLeft=-34
1WTDI: [Info] Code 58LFF
1WTDI: [Info] Code VZ63E
1WTDI: [Info] Code P7743. Data: False,False,False,False
5ZH8X: [Info] Load MonitorHwnd Manager subsystem
MYYJ4: [Info] Adding monitor 65537
FGA1F: [Info] Loading monitor 65537
FGA1F: [Info] Monitor loaded: [Handle: 65537 X: 0, Y: 0, W: 1920, H: 1080, rcMonitor: 0,0,1920,1080]
5ZH8X: [Info] Load Window Manager subsystem
3BXOQ: [Info] Init()
5W6KP: [Info] Creating WTToolBar UI
5W6KP: [Info] The theme is already in use
3BXOQ: [Info] Adding: [Overwolf (Overwolf.exe,132426)]
3BXOQ: [Info] Adding: [Overwolf Quick Launcher (Overwolf.exe,67112)]
3BXOQ: [Info] Adding: [GX Corner - Opera (opera.exe,132254)]
3BXOQ: [Info] OnGameModeCheckEnabled()
5ZH8X: [Info] Loading hotkeys
G4TFO: [Info] Init hotkeys manager
G4TFO: [Info] Loading hotkeys
G4TFO: [Info] Loading hotkeys
5ZH8X: [Info] Creating system tray
5ZH8X: [Info] Start background thread loop
5ZH8X: [Info] Processing update check flow
5ZH8X: [Info] IsNewVersionAvailable is null, checking if we have new version
5ZH8X: [Error] Got fatal exception and handled by App_OnDispatcherUnhandledException: System.NullReferenceException: Referência de objeto não definida para uma instância de um objeto.
em JhhI.QhhY.d__44.MoveNext()
--- Fim do rastreamento de pilha do local anterior onde a exceção foi gerada ---
em System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
em System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
em P5.iC.d__73.MoveNext()
--- Fim do rastreamento de pilha do local anterior onde a exceção foi gerada ---
em System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
em System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
em P5.iC.d__67.MoveNext()
--- Fim do rastreamento de pilha do local anterior onde a exceção foi gerada ---
em System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
em System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
em System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
5ZH8X: [Info] SetLanguage called
5ZH8X: [Info] SetLanguage is configuring language pt-BR

**Exception:
System.NullReferenceException: Referência de objeto não definida para uma instância de um objeto.
em JhhI.QhhY.d__44.MoveNext()
--- Fim do rastreamento de pilha do local anterior onde a exceção foi gerada ---
em System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
em System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
em P5.iC.d__73.MoveNext()
--- Fim do rastreamento de pilha do local anterior onde a exceção foi gerada ---
em System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
em System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
em P5.iC.d__67.MoveNext()
--- Fim do rastreamento de pilha do local anterior onde a exceção foi gerada ---
em System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
em System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
em System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)

Error 1 (5 users reported) [Fixed 13-Oct-2024]

Message:
**Version: v5.22.9
Type: Desktop
Installed: Yes
IsAdminHelper: Yes
IsAdmin: Yes

**Logs from last hour:
FGA1F: [Info] Monitor loaded: [Handle: 2818311 X: 0, Y: 0, W: 1600, H: 900, rcMonitor: 0,0,1600,900]
5ZH8X: [Info] Load Window Manager subsystem
3BXOQ: [Info] Init()
5W6KP: [Info] Creating WTToolBar UI
5W6KP: [Info] The theme is already in use
0H2Z6: [Info] StartAndInitConnection()
0H2Z6: [Info] Waiting for connection from the client admin helper process
0H2Z6: [Info] StartAndInitConnection() finished successfully
3BXOQ: [Info] OnGameModeCheckEnabled()
5ZH8X: [Info] Start background thread loop
U9LCW: [Info] InitAndConnectToServer()
U9LCW: [Info] Waiting for the server to be available
U9LCW: [Info] Successfully connected to the server
U9LCW: [Info] StartListenCommands()
U9LCW: [Info] ProcessCommandsThreadFunc()
U9LCW: [Info] Waiting for request command from server
5ZH8X: [Info] Processing command id 0
3BXOQ: [Info] Adding: [MAX - Google Chrome (chrome.exe,263180)]
U9LCW: [Info] Waiting for request command from server
5ZH8X: [Info] Processing command id 0
3BXOQ: [Info] Adding: [My Profile - Google Chrome (chrome.exe,66560)]
U9LCW: [Info] Waiting for request command from server
5ZH8X: [Info] Processing command id 2
U9LCW: [Info] Waiting for request command from server
MYYJ4: [Info] Detected monitor configuration change
MYYJ4: [Info] Adding monitor 145294137
FGA1F: [Info] Loading monitor 145294137
FGA1F: [Info] Monitor loaded: [Handle: 145294137 X: 0, Y: 0, W: 1600, H: 900, rcMonitor: 0,0,1600,900]
3BXOQ: [Info] HandleMonitorsChangedEvent()
MYYJ4: [Info] Detected monitor configuration change
MYYJ4: [Info] Adding monitor 145359673
FGA1F: [Info] Loading monitor 145359673
FGA1F: [Info] Monitor loaded: [Handle: 145359673 X: -1600, Y: 0, W: 1600, H: 900, rcMonitor: -1600,0,0,900]
MYYJ4: [Info] Adding monitor 177865041
FGA1F: [Info] Loading monitor 177865041
FGA1F: [Info] Monitor loaded: [Handle: 177865041 X: 0, Y: 0, W: 1600, H: 900, rcMonitor: 0,0,1600,900]
3BXOQ: [Info] HandleMonitorsChangedEvent()
FGA1F: [Info] Loading monitor 145294137
FGA1F: [Info] Monitor loaded: [Handle: 145294137 X: 0, Y: 0, W: 0, H: 0, rcMonitor: 0,0,0,0]
IFCHS: [Error] ActionRunThreadFunction: action E2FN7 failed.
5ZH8X: [Error] Got fatal exception and handled by App_OnDispatcherUnhandledException: System.ArgumentException: '-2147483647' is not a valid value for property 'Width'.
at System.Windows.DependencyObject.SetValueCommon(DependencyProperty dp, Object value, PropertyMetadata metadata, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType, Boolean isInternal)
at System.Windows.DependencyObject.SetValue(DependencyProperty dp, Object value)
at fIH.bI9.jxo()
at eF3.iGz.NFh(Action , String )
5ZH8X: [Info] SetLanguage called
5ZH8X: [Info] SetLanguage is falling back to default language
5ZH8X: [Info] SetLanguage is configuring language en

**Exception:
System.ArgumentException: '-2147483647' is not a valid value for property 'Width'.
at System.Windows.DependencyObject.SetValueCommon(DependencyProperty dp, Object value, PropertyMetadata metadata, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType, Boolean isInternal)
at System.Windows.DependencyObject.SetValue(DependencyProperty dp, Object value)
at fIH.bI9.jxo()
at eF3.iGz.NFh(Action , String )

Error 2 (2 users reported) [Can't reproduce. May be fixed, 13-Oct-2024]

Message:
**Version: v5.22.9
Type: Desktop
Installed: Yes
IsAdminHelper: No
IsAdmin: Yes

**Logs from last hour:
5ZH8X: [Info] Loading the app manager
5ZH8X: [Info] Loading the DesktopAppManager
5ZH8X: [Info] Loading cached data
5ZH8X: [Info] Loading the activation manager
5ZH8X: [Info] Loading the DesktopActivationManager
5ZH8X: [Info] Load settings
5ZH8X: [Info] Setting the defined language
5ZH8X: [Info] SetLanguage called
5ZH8X: [Info] SetLanguage is falling back to default language
5ZH8X: [Info] SetLanguage is configuring language en
5ZH8X: [Info] Loading activation state
FW8Y8: [Info] Code SCYBV
Z4316: [Info] Requested to get trial register time
Z4316: [Info] Using local cached register time
Z4316: [Info] UpdateTrailMode result: DaysLeft=-80
5ZH8X: [Info] Load MonitorHwnd Manager subsystem
MYYJ4: [Info] Adding monitor 65537
FGA1F: [Info] Loading monitor 65537
FGA1F: [Info] Monitor loaded: [Handle: 65537 X: 0, Y: 0, W: 3840, H: 2160, rcMonitor: 0,0,3840,2160]
5ZH8X: [Info] Load Window Manager subsystem
MYYJ4: [Info] Detected monitor configuration change
MYYJ4: [Info] Adding monitor 65537
FGA1F: [Info] Loading monitor 65537
FGA1F: [Info] Monitor loaded: [Handle: 65537 X: 0, Y: 0, W: 3840, H: 2160, rcMonitor: 0,0,3840,2160]
5ZH8X: [Error] Got fatal exception and handled by App_OnDispatcherUnhandledException: System.NullReferenceException: Object reference not set to an instance of an object.
at WE1.FEs.TU5()
at u6q.Q6F.c6m(IntPtr , Int32 , IntPtr , IntPtr , Boolean& )
at System.Windows.Interop.HwndSource.PublicHooksFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
5ZH8X: [Info] SetLanguage called
5ZH8X: [Info] SetLanguage is falling back to default language
5ZH8X: [Info] SetLanguage is configuring language en

**Exception:
System.NullReferenceException: Object reference not set to an instance of an object.
at WE1.FEs.TU5()
at u6q.Q6F.c6m(IntPtr , Int32 , IntPtr , IntPtr , Boolean& )
at System.Windows.Interop.HwndSource.PublicHooksFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)

Error #376 (one user reported) [Fixed, 13-Oct-2024]

Error #372 (one user reported) [Can't reproduce. 13-Oct-2024]

Error 4 (one user reported) [Fixed, 16-Oct-2024]

Comment:
**Version: v5.22.9
Type: Desktop
Installed: Yes
IsAdminHelper: No
IsAdmin: No

**Logs from last hour:
********
5ZH8X: [Error] Got fatal exception and handled by App_OnDispatcherUnhandledException: System.NullReferenceException: 並未將物件參考設定為物件的執行個體。
於 kKD.bKT.oKS()
於 kKD.bKT.DKo(IntPtr , Int32 , IntPtr , IntPtr , Boolean& )
於 System.Windows.Interop.HwndSource.PublicHooksFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
於 MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
於 MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
於 System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
於 System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
5ZH8X: [Info] SetLanguage called
5ZH8X: [Info] SetLanguage is configuring language zh-cn

**Exception:
System.NullReferenceException: 並未將物件參考設定為物件的執行個體。
at kKD.bKT.oKS()
at kKD.bKT.DKo(IntPtr , Int32 , IntPtr , IntPtr , Boolean& )
at System.Windows.Interop.HwndSource.PublicHooksFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)

Error 5 (one user reported) [Update 20-Oct-2024 - probably caused by invalid setup - https://github.com//issues/383#issuecomment-2424866737 ]

Comment:
Not sure what happened.
I noticed WindowTop was not appearing on my windows, so tried to re-launch it.
My explorer crashed yesterday, so WindowTop may have still been running, but no longer active on my windows due to explorer.exe crashing yesterday.

**Version: v5.22.9
Type: Desktop
Installed: No
IsAdminHelper: No
IsAdmin: No

**Logs from last hour:
5ZH8X: [Info] Loading the app manager
5ZH8X: [Info] Loading the DesktopAppManager
5ZH8X: [Info] Loading cached data
5ZH8X: [Error] Got fatal exception and handled by App_OnDispatcherUnhandledException: System.UnauthorizedAccessException: Access to the path 'C:\program Files\WindowTop\cache.json' is denied.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
at System.IO.StreamWriter.CreateFile(String path, Boolean append, Boolean checkHost)
at System.IO.StreamWriter..ctor(String path, Boolean append, Encoding encoding, Int32 bufferSize, Boolean checkHost)
at System.IO.File.InternalWriteAllText(String path, String contents, Encoding encoding, Boolean checkHost)
at WindowTop.Cache.Load()
at vu.nK.d__67.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
1DDLR: [Fatal] Object reference not set to an instance of an object.

**Exception:
System.UnauthorizedAccessException: Access to the path 'C:\program Files\WindowTop\cache.json' is denied.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
at System.IO.StreamWriter.CreateFile(String path, Boolean append, Boolean checkHost)
at System.IO.StreamWriter..ctor(String path, Boolean append, Encoding encoding, Int32 bufferSize, Boolean checkHost)
at System.IO.File.InternalWriteAllText(String path, String contents, Encoding encoding, Boolean checkHost)
at WindowTop.Cache.Load()
at vu.nK.d__67.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)

Error 6 (one user reported)

Comment:
**Version: v5.22.9
Type: MS Store
Installed: Yes
IsAdminHelper: No
IsAdmin: No

**Logs from last hour:
5ZH8X: [Info] Loading the app manager
5ZH8X: [Info] Loading the UwpAppManager
1HYXF: [Info] Adding dll folder as C:\Users\laudi\AppData\Local\Packages\25571BiGilSoft.WindowTop_gejtaqnb6x66e\LocalState\dlls
5ZH8X: [Info] Loading cached data
5ZH8X: [Info] Loading the activation manager
5ZH8X: [Info] Loading the UwpActivationManager
5ZH8X: [Info] Load settings
5ZH8X: [Info] Setting the defined language
5ZH8X: [Info] SetLanguage called
5ZH8X: [Info] SetLanguage is falling back to default language
5ZH8X: [Info] SetLanguage is configuring language en
5ZH8X: [Info] Loading activation state
1WTDI: [Info] Code D3QQK
1WTDI: [Info] Code Y8Q9L. Data: False
1WTDI: [Info] Code 3R5SL
Z4316: [Info] Requested to get trial register time
Z4316: [Info] Using local cached register time
Z4316: [Info] UpdateTrailMode result: DaysLeft=29
1WTDI: [Info] Code 58LFF
1WTDI: [Info] Code VZ63E
1WTDI: [Info] Code P7743. Data: True,False,True,False
5ZH8X: [Info] Load MonitorHwnd Manager subsystem
MYYJ4: [Info] Adding monitor 65537
FGA1F: [Info] Loading monitor 65537
FGA1F: [Info] Monitor loaded: [Handle: 65537 X: 0, Y: 0, W: 1920, H: 1080, rcMonitor: 0,0,1920,1080]
5ZH8X: [Info] Load Window Manager subsystem
3BXOQ: [Info] Init()
5W6KP: [Info] Creating WTToolBar UI
5W6KP: [Info] The theme is already in use
3BXOQ: [Info] Adding: [Grammarly Anchor Window (Grammarly.Desktop.exe,132526)]
3BXOQ: [Info] Adding: [Grammarly Anchor Window (Grammarly.Desktop.exe,132496)]
3BXOQ: [Info] Adding: [Grammarly Anchor Window (Grammarly.Desktop.exe,132504)]
3BXOQ: [Info] Adding: [Grammarly Anchor Window (Grammarly.Desktop.exe,132510)]
3BXOQ: [Info] Adding: [Grammarly Anchor Window (Grammarly.Desktop.exe,459678)]
3BXOQ: [Info] Adding: [Grammarly Anchor Window (Grammarly.Desktop.exe,394720)]
3BXOQ: [Info] Adding: [Grammarly Anchor Window (Grammarly.Desktop.exe,460230)]
3BXOQ: [Info] Adding: [Grammarly Anchor Window (Grammarly.Desktop.exe,132548)]
3BXOQ: [Info] Adding: [Grammarly Anchor Window (Grammarly.Desktop.exe,132540)]
3BXOQ: [Info] Adding: [Grammarly Anchor Window (Grammarly.Desktop.exe,722190)]
3BXOQ: [Info] Adding: [Grammarly Anchor Window (Grammarly.Desktop.exe,197914)]
3BXOQ: [Info] Adding: [Microsoft OneDrive (OneDrive.exe,66734)]
3BXOQ: [Info] OnGameModeCheckEnabled()
5ZH8X: [Info] Loading hotkeys
G4TFO: [Info] Init hotkeys manager
G4TFO: [Info] Loading hotkeys
G4TFO: [Info] Loading hotkeys
5ZH8X: [Info] Creating system tray
5ZH8X: [Info] Start background thread loop
5ZH8X: [Info] Processing update check flow
5ZH8X: [Info] Scheduling ask-for-rate dialog
D06PF: [Warn] Failed to start capture. Will try again in about 10 seconds
D06PF: [Warn] Failed to start capture. Will try again in about 10 seconds
D06PF: [Warn] Failed to start capture. Will try again in about 10 seconds
D06PF: [Warn] Failed to start capture. Will try again in about 10 seconds
D06PF: [Warn] Failed to start capture. Will try again in about 10 seconds
Z7NDY: [Info] Loading monitor mapper for monitor 65537
D06PF: [Warn] Failed to start capture. Will try again in about 10 seconds
D06PF: [Warn] Failed to start capture. Will try again in about 10 seconds
D06PF: [Warn] Failed to start capture. Will try again in about 10 seconds
D06PF: [Warn] Failed to start capture. Will try again in about 10 seconds
D06PF: [Warn] Failed to start capture. Will try again in about 10 seconds
D06PF: [Warn] Failed to start capture. Will try again in about 10 seconds
D06PF: [Warn] Failed to start capture. Will try again in about 10 seconds
D06PF: [Warn] Failed to start capture. Will try again in about 10 seconds
D06PF: [Warn] Failed to start capture. Will try again in about 10 seconds
D06PF: [Warn] Failed to start capture. Will try again in about 10 seconds
D06PF: [Warn] Failed to start capture. Will try again in about 10 seconds
D06PF: [Warn] Failed to start capture. Will try again in about 10 seconds
D06PF: [Warn] Failed to start capture. Will try again in about 10 seconds
D06PF: [Warn] Failed to start capture. Will try again in about 10 seconds
D06PF: [Warn] Failed to start capture. Will try again in about 10 seconds
D06PF: [Warn] Failed to start capture. Will try again in about 10 seconds
D06PF: [Warn] Failed to start capture. Will try again in about 10 seconds
D06PF: [Warn] Failed to start capture. Will try again in about 10 seconds
D06PF: [Warn] Failed to start capture. Will try again in about 10 seconds
D06PF: [Warn] Failed to start capture. Will try again in about 10 seconds
D06PF: [Warn] Failed to start capture. Will try again in about 10 seconds
D06PF: [Warn] Failed to start capture. Will try again in about 10 seconds
D06PF: [Warn] Failed to start capture. Will try again in about 10 seconds
D06PF: [Warn] Failed to start capture. Will try again in about 10 seconds
D06PF: [Warn] Failed to start capture. Will try again in about 10 seconds
D06PF: [Warn] Failed to start capture. Will try again in about 10 seconds
D06PF: [Warn] Failed to start capture. Will try again in about 10 seconds
D06PF: [Warn] Failed to start capture. Will try again in about 10 seconds
D06PF: [Warn] Failed to start capture. Will try again in about 10 seconds
D06PF: [Warn] Failed to start capture. Will try again in about 10 seconds
D06PF: [Warn] Failed to start capture. Will try again in about 10 seconds
D06PF: [Warn] Failed to start capture. Will try again in about 10 seconds
D06PF: [Warn] Failed to start capture. Will try again in about 10 seconds
D06PF: [Warn] Failed to start capture. Will try again in about 10 seconds
D06PF: [Warn] Failed to start capture. Will try again in about 10 seconds
D06PF: [Warn] Failed to start capture. Will try again in about 10 seconds
D06PF: [Warn] Failed to start capture. Will try again in about 10 seconds
D06PF: [Warn] Failed to start capture. Will try again in about 10 seconds
D06PF: [Warn] Failed to start capture. Will try again in about 10 seconds
D06PF: [Warn] Failed to start capture. Will try again in about 10 seconds
D06PF: [Warn] Failed to start capture. Will try again in about 10 seconds
D06PF: [Warn] Failed to start capture. Will try again in about 10 seconds
D06PF: [Warn] Failed to start capture. Will try again in about 10 seconds
D06PF: [Warn] Failed to start capture. Will try again in about 10 seconds
D06PF: [Warn] Failed to start capture. Will try again in about 10 seconds
D06PF: [Error] Failed to start capture. too many attempts
D06PF: [Error] The parameter is incorrect.

Could not capture the given window.
D06PF: [Error] Failed to start capture. too many attempts
D06PF: [Error] The parameter is incorrect.

Could not capture the given window.
D06PF: [Error] Failed to start capture. too many attempts
D06PF: [Error] The parameter is incorrect.

Could not capture the given window.
D06PF: [Error] Failed to start capture. too many attempts
D06PF: [Error] The parameter is incorrect.

Could not capture the given window.
D06PF: [Error] Failed to start capture. too many attempts
D06PF: [Error] The parameter is incorrect.

Could not capture the given window.
3BXOQ: [Info] Removing: [Microsoft OneDrive (OneDrive.exe,66734)]
IFCHS: [Warn] RunInUiThread: UI thread is already in waiting state. Can't wait to a UI thread that also waiting, action: VGK
IFCHS: [Warn] RunInUiThread: UI thread is already in waiting state. Can't wait to a UI thread that also waiting, action: VGK
D06PF: [Warn] Failed to start capture. Will try again in about 10 seconds
D06PF: [Warn] Failed to start capture. Will try again in about 10 seconds
3BXOQ: [Info] Adding: [Google Chrome (chrome.exe,591064)]
D06PF: [Warn] Failed to start capture. Will try again in about 10 seconds
D06PF: [Warn] Failed to start capture. Will try again in about 10 seconds
D06PF: [Warn] Failed to start capture. Will try again in about 10 seconds
D06PF: [Warn] Failed to start capture. Will try again in about 10 seconds
D06PF: [Warn] Failed to start capture. Will try again in about 10 seconds
D06PF: [Warn] Failed to start capture. Will try again in about 10 seconds
D06PF: [Warn] Failed to start capture. Will try again in about 10 seconds
D06PF: [Warn] Failed to start capture. Will try again in about 10 seconds
D06PF: [Warn] Failed to start capture. Will try again in about 10 seconds
D06PF: [Warn] Failed to start capture. Will try again in about 10 seconds
D06PF: [Warn] Failed to start capture. Will try again in about 10 seconds
D06PF: [Warn] Failed to start capture. Will try again in about 10 seconds
D06PF: [Warn] Failed to start capture. Will try again in about 10 seconds
D06PF: [Warn] Failed to start capture. Will try again in about 10 seconds
D06PF: [Warn] Failed to start capture. Will try again in about 10 seconds
D06PF: [Warn] Failed to start capture. Will try again in about 10 seconds
D06PF: [Warn] Failed to start capture. Will try again in about 10 seconds
D06PF: [Warn] Failed to start capture. Will try again in about 10 seconds
D06PF: [Warn] Failed to start capture. Will try again in about 10 seconds
D06PF: [Warn] Failed to start capture. Will try again in about 10 seconds
D06PF: [Warn] Failed to start capture. Will try again in about 10 seconds
D06PF: [Warn] Failed to start capture. Will try again in about 10 seconds
D06PF: [Warn] Failed to start capture. Will try again in about 10 seconds
D06PF: [Warn] Failed to start capture. Will try again in about 10 seconds
D06PF: [Warn] Failed to start capture. Will try again in about 10 seconds
D06PF: [Warn] Failed to start capture. Will try again in about 10 seconds
D06PF: [Warn] Failed to start capture. Will try again in about 10 seconds
D06PF: [Warn] Failed to start capture. Will try again in about 10 seconds
D06PF: [Warn] Failed to start capture. Will try again in about 10 seconds
D06PF: [Warn] Failed to start capture. Will try again in about 10 seconds
D06PF: [Warn] Failed to start capture. Will try again in about 10 seconds
D06PF: [Warn] Failed to start capture. Will try again in about 10 seconds
D06PF: [Warn] Failed to start capture. Will try again in about 10 seconds
D06PF: [Warn] Failed to start capture. Will try again in about 10 seconds
D06PF: [Warn] Failed to start capture. Will try again in about 10 seconds
D06PF: [Warn] Failed to start capture. Will try again in about 10 seconds
D06PF: [Warn] Failed to start capture. Will try again in about 10 seconds
D06PF: [Warn] Failed to start capture. Will try again in about 10 seconds
D06PF: [Error] Failed to start capture. too many attempts
D06PF: [Error] The parameter is incorrect.

Could not capture the given window.
D06PF: [Error] Failed to start capture. too many attempts
D06PF: [Error] The parameter is incorrect.

Could not capture the given window.
D06PF: [Error] Failed to start capture. too many attempts
D06PF: [Error] The parameter is incorrect.

Could not capture the given window.
D06PF: [Error] Failed to start capture. too many attempts
D06PF: [Error] The parameter is incorrect.

Could not capture the given window.
3BXOQ: [Info] Removing: [Google Chrome (chrome.exe,591064)]
3BXOQ: [Info] Adding: [New Tab - Google Chrome (chrome.exe,2752754)]
3BXOQ: [Info] Adding: [AutoHotKey - Google Search - Google Chrome (chrome.exe,788578)]
IFCHS: [Error] ActionRunThreadFunction: action 0ELY4 failed.
D06PF: [Warn] Failed to start capture. Will try again in about 10 seconds
5ZH8X: [Error] Got fatal exception and handled by App_OnDispatcherUnhandledException: System.InvalidOperationException: Collection was modified; enumeration operation may not execute.
at System.ThrowHelper.ThrowInvalidOperationException(ExceptionResource resource)
at System.Collections.Generic.List`1.Enumerator.MoveNextRare()
at System.Linq.Enumerable.FirstOrDefault[TSource](IEnumerable`1 source, Func`2 predicate)
at OhrM.shri.zhiw(OhB9 )
at OAL.eAa.s4f(Action )
at Gqf.Eyz.QqV(Action , String )
5ZH8X: [Info] SetLanguage called
5ZH8X: [Info] SetLanguage is falling back to default language
5ZH8X: [Info] SetLanguage is configuring language en

**Exception:
System.InvalidOperationException: Collection was modified; enumeration operation may not execute.
at System.ThrowHelper.ThrowInvalidOperationException(ExceptionResource resource)
at System.Collections.Generic.List`1.Enumerator.MoveNextRare()
at System.Linq.Enumerable.FirstOrDefault[TSource](IEnumerable`1 source, Func`2 predicate)
at OhrM.shri.zhiw(OhB9 )
at OAL.eAa.s4f(Action )
at Gqf.Eyz.QqV(Action , String )
@gileli121
Copy link
Member Author

gileli121 commented Oct 6, 2024

Error 3 status update

Unable to reproduce error 3. "Fixed" by ignoring the error.
According to my investigation, this error can occur in the MS Store version during an update check. I have identified the failing code but have been unable to reproduce the error. The logs indicate that the error does not always occur to the end user. I have wrapped the problematic section with a try-catch block and added additional logging. Since the error is not critical and does not always happen, and the app will retry the update check later.

@gileli121 gileli121 pinned this issue Oct 6, 2024
@gileli121
Copy link
Member Author

Error 1 status update

This error, while still rare, can occur when using multiple monitors. It is more likely to happen when switching or disconnecting monitors while numerous windows are open, particularly if they have SET-TOP enabled.

I have updated the code, and this issue should now be resolved.

@gileli121
Copy link
Member Author

Error 2 status update

This error is somewhat similar to Error 1, as it also relates to monitors. However, I was unable to reproduce it. It may be resolved now, and I hope it won't be reported again.

@gileli121
Copy link
Member Author

Error #372

I tried to reproduce the issue on a Swedish VM without success. It worked as expected: on the first run, the app detected the OS language and displayed in Swedish.

Additionally, when switching the language from English to Swedish, the change takes effect immediately without the need to restart WindowTop

@gileli121
Copy link
Member Author

gileli121 commented Oct 13, 2024

Fixed Issue #376

I’ve released a new version, 5.23.4, which includes the latest fixes. It is currently marked as a pre-release; once it proves stable, it will be designated as a regular release.

Download:

Full Release Notes:

  • Enhanced stability by addressing two common crash errors (errors 1 and 3 from #383).
  • Resolved the "Failed to disable transparency for the window" issue that occurred when closing the window with Glass mode enabled (#376).

Please let me know how it works for you!

@gileli121
Copy link
Member Author

gileli121 commented Oct 15, 2024

Error 4 Status Update

This error occurs in very rare situations, likely due to a race condition (multi-threading issue). It can happen when a user drags the toolbar arrow (image) while the window is closing or has been dereferenced—potentially due to moving to another virtual desktop or a similar action. In these cases, one thread attempts to access a reference (the window variable) that another thread has set to null, leading to a null reference exception.

Since this scenario is extremely rare, it is handled with a catch (NullReferenceException ex) block, which also logs all null variables involved in the relevant code. While it’s likely only the window variable will be null, I log other variables as a precaution.

This is not a new issue; I have encountered it before in another part of the toolbar arrow UI, where the same workaround was implemented and proved effective. Although catching exceptions can be CPU-intensive, in this case, it occurs in code that does not execute frequently. Most of the time, it only runs while the user is dragging the arrow, so the performance impact is minimal.

@gileli121
Copy link
Member Author

Error 5 Status Update

I attempted to reproduce the issue but was unable to do so.

After reviewing the logs, I found that the error is related to a failure in accessing the cache.json file for writing. Upon closer inspection, I discovered something unusual:

The app is trying to access the file at the following path:
C:\program Files\WindowTop

This is unexpected because the app is supposed to be installed in the standard path:
C:\Program Files\WindowTop

The folder where most applications (except Microsoft Store apps) are installed is named "Program Files", not "program Files" with lowercase letters.

Possible Causes

After considering the situation, I identified three likely explanations for this issue:

1. Anti-virus/Malware Interference

The app might be running in a sandboxed environment due to interference from anti-virus or anti-malware software.
Some security tools can alter or redirect application paths during execution, causing this behavior.

2. Manual Folder Renaming

It’s possible that the "Program Files" folder was accidentally renamed to "program Files".
This could also explain any system instability, such as Explorer crashes, as "Program Files" is a critical OS directory.

3. Unconventional Installation Method

The installer we provide does not allow users to select a different installation path. However, if the app was installed using an unofficial or third-party installer, it might have resulted in an incorrect installation location, such as "C:\program Files" instead of "C:\Program Files".

Next Steps

I asked the user to verify that none of these scenarios apply to their setup.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant