SimpleClassicTheme.Taskbar icon indicating copy to clipboard operation
SimpleClassicTheme.Taskbar copied to clipboard

"Unhandled Exception" dialog if more than 6 taskbar buttons

Open BlohoJo opened this issue 3 years ago • 6 comments

If I open multiple windows or programs, as soon as more than 6 task bar buttons appear on the task bar, I get this message:

unhandled

I can click OK to close it.

None of the open programs close, none of the task bar buttons disappear or stop working, and SCTT continues to function.

But, the message above will pop up again within 3 - 10 seconds, and continue to do so, until I close enough programs or windows to get it to stop.

When the message is up, I cannot use the task bar. For example, if I click a task bar button to bring an open window to the foreground, it instead brings the above message to the foreground. Until I click OK on the message, the task bar is locked.

So obviously this makes it very difficult to work when there are more than 6 task bar buttons.

No Windows event log is generated.

A SCTT log event is generated every time the message appears. Here's the contents of one:

ArgumentException
   at System.Drawing.Graphics.GetHdc()
   at System.Drawing.Internal.WindowsGraphics.FromGraphics(Graphics g, ApplyGraphicsProperties properties)
   at System.Drawing.Icon.Draw(Graphics graphics, Rectangle targetRect)
   at System.Drawing.Icon.BmpFrame()
   at SimpleClassicThemeTaskbar.SingleTaskbarProgram.set_Icon(Icon value)
   at SimpleClassicThemeTaskbar.Taskbar.timerUpdateUI_Tick(Object sender, EventArgs e)
   at System.Windows.Forms.Timer.TimerNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, WM msg, IntPtr wparam, IntPtr lparam)
Parameter is not valid.
System.Drawing.Common

Here's a zip of all of the logs generated so far: Taskbar_Exiting_Messages.zip

Here's my config info:

Windows 10 Pro x64 2004

sctt_01

sctt_02 XP Classic (Bigger) (SCTT)

sctt_03

sctt_04

BlohoJo avatar Mar 30 '21 19:03 BlohoJo

I can't seem to reproduce this issue. Is it still present in the latest version? (Beta, not Development)

AEAEAEAE4343 avatar Jun 02 '21 10:06 AEAEAEAE4343

Yes, as shown in the screenshot above... to double check, I just downloaded the latest SCTT Beta zip and double checked the crcs of the executables and they match what I'm using.

I'm running Windows 10 x64 Pro 2004 (20H1), along with UltraUXThemePatcher 4.0.0, and Malvinas Classic Theme for Windows 10 version 1909 (the highest Windows version available for the theme).

I'm wondering if there isn't a conflict with SCT/SCTT and the above Malvinas Classic Theme.

Could you try installing / enabling the theme linked above? You need to have UltraUXThemePatcher installed.

(Never install UltraUXThemePatcher without setting the below registry key:)

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Power]
"HiberbootEnabled"=dword:00000000

BlohoJo avatar Jun 02 '21 14:06 BlohoJo

I just tried changing themes back to Windows 10 default, and it still happens.

I also get "Unhandled Exception Occurred" when right clicking any running application button on the taskbar. I can't remember if that's supposed to happen with the latest SCTT beta or not.

BlohoJo avatar Jun 02 '21 14:06 BlohoJo

Another thing I should mention, is that this is a VPS running on a hypervisor. So there's no GPU or Nvidia/AMD drivers installed.

BlohoJo avatar Jun 03 '21 17:06 BlohoJo

In case it's useful, here's my .NET infos:

<32Bit>
1.1.4322.2032
  ->C:\Windows\Microsoft.NET\Framework\v1.1.4322
2.0.50727.9151
  ->C:\Windows\Microsoft.NET\Framework\v2.0.50727
4.8.4360.0
  ->C:\Windows\Microsoft.NET\Framework\v4.0.30319

<64Bit>
2.0.50727.9151
  ->C:\Windows\Microsoft.NET\Framework64\v2.0.50727
4.8.4360.0
  ->C:\Windows\Microsoft.NET\Framework64\v4.0.30319

==== Installed .NET Frameworks ====
.NET FW 1.1 SP 1 (CLR 1.1)
.NET FW 2.0 SP 2 (CLR 2.0)
.NET FW 3.0 SP 2 (CLR 2.0)
.NET FW 3.5 SP 1 (CLR 2.0)
.NET FW 4.6.2 Windows 10 May 2020 Update(CLR 4.0)
.NET FW 4.7 Windows 10 May 2020 Update(CLR 4.0)
.NET FW 4.7.1 Windows 10 May 2020 Update(CLR 4.0)
.NET FW 4.7.2 Windows 10 May 2020 Update(CLR 4.0)
.NET FW 4.8 Windows 10 May 2020 Update(CLR 4.0)

==== Installed .NET Core Runtime 64bit ====
Microsoft.NETCore.App 1.0.16
Microsoft.NETCore.App 1.1.13
Microsoft.NETCore.App 2.0.9
Microsoft.NETCore.App 2.1.28
Microsoft.NETCore.App 2.2.8
Microsoft.NETCore.App 3.0.3
Microsoft.NETCore.App 3.1.15
Microsoft.NETCore.App 5.0.6
Microsoft.WindowsDesktop.App 5.0.6

==== Installed .NET Core Runtime 32bit ====
Microsoft.NETCore.App 1.0.16
Microsoft.NETCore.App 1.1.13
Microsoft.NETCore.App 2.0.9
Microsoft.NETCore.App 2.1.28
Microsoft.NETCore.App 2.2.8
Microsoft.NETCore.App 3.0.3
Microsoft.NETCore.App 3.1.15
Microsoft.NETCore.App 5.0.6
Microsoft.WindowsDesktop.App 5.0.6

==== Installed .NET Core Sdk 64bit ====

==== Installed .NET Core Sdk 32bit ====

==== Languages ====
< Installed Languages 3.0>
English - United States
< Installed Languages 3.5.x>
English - United States
< Installed Languages 4.x>
English - United States

==== Updates ====
.NETFramework 
Microsoft .NET Framework 4 Client Profile 
 KB2468871
 KB2468871v2
 KB2478063
 KB2533523
 KB2544514
 KB2600211
 KB2600217
Microsoft .NET Framework 4 Extended 
 KB2468871
 KB2468871v2
 KB2478063
 KB2533523
 KB2544514
 KB2600211
 KB2600217
 KB2468871
 KB2468871v2
 KB2478063
 KB2533523
 KB2544514
 KB2600211
 KB2600217
==== END REPORT ====

BlohoJo avatar Jun 04 '21 23:06 BlohoJo

Maybe we should wait until we have a "SCTT 2.0" out, where we have rewritten/refactored the code.

Craftplacer avatar Jun 05 '21 00:06 Craftplacer