Open tryallthethings opened 1 year ago
Having this problem too. Main display is UHD, secondary is QHD. Not displaying until I do the same temporary fix mentioned in the issue.
Same problem for me
I did some digging on this issue today, and I think I found the issue. It seems to be related to DPI settings and scaling. My main monitor (4K resolution) is set to 125% scaling, while my other (FHD resolution) is set to 100%. When I set both to 100% Sidebar Diagnostics seems to display just fine. I created a pull request with a potential fix that works for me. If somebody else wants to give it a go, I'll attach the .exe with the changes. Just rename your existing SidebarDiagnostics.exe in C:\Users\Username\AppData\Local\SidebarDiagnostics\app-3.6.3, copy mine there instead and give it a go. SidebarDiagnostics_Issue420.zip
For the tray icon context menu: The function TrayIcon_TrayContextMenuOpen in App.xaml.cs https://github.com/ArcadeRenegade/SidebarDiagnostics/blob/8893ef75ca25511c2d5431eb1741c246413017e9/SidebarDiagnostics/App.xaml.cs#LL219C15-L219C15 adjusts the position and takes the scaling factor into account. But isn't the default windows behavior to display the context menu at the mouse cursors position, regardless of DPI settings / scaling? So why would this be necessary? Removing the function shows the context menu in the correct position. (at least on my setup). Attached is an updated .exe with this and the previously mentioned change if anyone wants to test this as well. SidebarDiagnostics_Issue420_2.zip
Hey,
Thank you. I just tested but I have an error at launch :
Application : SidebarDiagnostics.exe Version du Framework : v4.0.30319 Description : le processus a été arrêté en raison d'une exception non gérée. Informations sur l'exception : System.IO.FileNotFoundException à SidebarDiagnostics.App+
d0.MoveNext() à System.Runtime.CompilerServices.AsyncVoidMethodBuilder.Start[[SidebarDiagnostics.App+ d 0, SidebarDiagnostics, Version=3.6.3.0, Culture=neutral, PublicKeyToken=null]](d0 ByRef) à SidebarDiagnostics.App.OnStartup(System.Windows.StartupEventArgs) à System.Windows.Application.<.ctor>b1_0(System.Object) à System.Windows.Threading.ExceptionWrapper.InternalRealCall(System.Delegate, System.Object, Int32) à System.Windows.Threading.ExceptionWrapper.TryCatchWhen(System.Object, System.Delegate, System.Object, Int32, System.Delegate) à System.Windows.Threading.DispatcherOperation.InvokeImpl() à MS.Internal.CulturePreservingExecutionContext.CallbackWrapper(System.Object) à System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean) à System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean) à System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object) à MS.Internal.CulturePreservingExecutionContext.Run(MS.Internal.CulturePreservingExecutionContext, System.Threading.ContextCallback, System.Object) à System.Windows.Threading.DispatcherOperation.Invoke() à System.Windows.Threading.Dispatcher.ProcessQueue() à System.Windows.Threading.Dispatcher.WndProcHook(IntPtr, Int32, IntPtr, IntPtr, Boolean ByRef) à MS.Win32.HwndWrapper.WndProc(IntPtr, Int32, IntPtr, IntPtr, Boolean ByRef) à MS.Win32.HwndSubclass.DispatcherCallbackOperation(System.Object) à System.Windows.Threading.ExceptionWrapper.InternalRealCall(System.Delegate, System.Object, Int32) à System.Windows.Threading.ExceptionWrapper.TryCatchWhen(System.Object, System.Delegate, System.Object, Int32, System.Delegate) à System.Windows.Threading.Dispatcher.LegacyInvokeImpl(System.Windows.Threading.DispatcherPriority, System.TimeSpan, System.Delegate, System.Object, Int32) à MS.Win32.HwndSubclass.SubclassWndProc(IntPtr, Int32, IntPtr, IntPtr) à MS.Win32.UnsafeNativeMethods.DispatchMessage(System.Windows.Interop.MSG ByRef) à System.Windows.Threading.Dispatcher.PushFrameImpl(System.Windows.Threading.DispatcherFrame) à System.Windows.Application.RunDispatcher(System.Object) à System.Windows.Application.RunInternal(System.Windows.Window) à SidebarDiagnostics.App.Main()
And this :
Nom de l’application défaillante SidebarDiagnostics.exe, version : 3.6.3.0, horodatage : 0x64786222 Nom du module défaillant : KERNELBASE.dll, version : 10.0.22621.1928, horodatage : 0xe9af6ed4 Code d’exception : 0xe0434352 Décalage d’erreur : 0x0000000000064b2c ID du processus défaillant : 0x0x7D8 Heure de début de l’application défaillante : 0x0x1D9BEB198027259 Chemin d’accès de l’application défaillante : C:\Users\user\AppData\Local\SidebarDiagnostics\SidebarDiagnostics.exe Chemin d’accès du module défaillant: C:\WINDOWS\System32\KERNELBASE.dll ID de rapport : fbaded92-59b2-4402-b8d4-287673e63b17 Nom complet du package défaillant : ID de l’application relative au package défaillant :
I did some digging on this issue today, and I think I found the issue. It seems to be related to DPI settings and scaling. My main monitor (4K resolution) is set to 125% scaling, while my other (FHD resolution) is set to 100%. When I set both to 100% Sidebar Diagnostics seems to display just fine. I created a pull request with a potential fix that works for me. If somebody else wants to give it a go, I'll attach the .exe with the changes. Just rename your existing SidebarDiagnostics.exe in C:\Users\Username\AppData\Local\SidebarDiagnostics\app-3.6.3, copy mine there instead and give it a go. SidebarDiagnostics_Issue420.zip
Brilliant thank you - this at least lets me dock it on the left on my second screen (1080p FHD with 100% scaling). However, when I try dock it on the right of that screen, it actually goes to the middle of the 2 screens with a half on each.
1. Is this a feature request? No
2. Your Operating System Windows 10 21H2
3. App Version Latest - 3.6.3
4. Any Relevant Settings None, that I'm aware of. However:
![image](https://user-images.githubusercontent.com/11146296/213652853-73fcc19e-600a-4669-ba7e-5484e8058a0e.png)
5. Steps to Reproduce
Additionally, when I right-click the taskbar icon to get into the settings, the context menu is not shown at the mouse cursor position but at the FHD position.![image](https://user-images.githubusercontent.com/11146296/213654797-47dce532-bd6b-412d-8c00-f0356ab949ee.png)
Temporary fix The only temporary fix I found so far was this:
This has to be done after every reboot to make Sidebar Diagnostics work and show information.