mirror of
https://github.com/NickeManarin/ScreenToGif.git
synced 2026-04-25 23:25:52 +03:00
[GH-ISSUE #525] Exception when loading the system tray icon #441
Labels
No labels
copy cats
duplicated
future feature
pull-request
⬜ Accepted
⬜ Completed
⬜ Help Wanted 💪
⬜ In Progress
⬜ Missing Details
⬜ Pending
⬜ Waiting For Answer ⏳
🆕 feature preview
🔷 Bug 🐛
🔷 Out Of Scope
🔷 Out Of Scope
🔷 Question
🔷Enhancement
🔷Enhancement
🔷Invalid / External
🔷Knowledge Base
🔷Won't Fix
🕑 High
🕑 High
🕑 High
🕕 Medium
🕙 Low
🕛 Critical
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/ScreenToGif#441
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @KIRIZAMERAN on GitHub (Oct 3, 2019).
Original GitHub issue: https://github.com/NickeManarin/ScreenToGif/issues/525
Net.Framework: 4.8.0
System: Windows 10 1903
Language: Simplified Chinese
Stack trace:
@mrfearless commented on GitHub (Oct 3, 2019):
same as #388
@NickeManarin commented on GitHub (Oct 3, 2019):
Strange, the only place where I change the icon is right at the beginning of the app:
Like this:
IconSource="/Resources/Logo.ico"Are you running your Windows at a different color space than 32bits?
I'm going to add some checks to avoid the crash, at least.
@NickeManarin commented on GitHub (Oct 3, 2019):
Can you test if it opens? This version is just for testing if it opens or not, there's some other broken features, so ignore it.
If it's opening, check if the icon is appearing on your notification area.
cc @mrfearless and @KIRIZAMERAN
ScreenToGif_Test.zip
@mrfearless commented on GitHub (Oct 3, 2019):
It opens without any errors or messages displayed. Goes straight to the startup screen. The notification icon is blank - as in, it appears along side other icons (i noticed the shuffle as it added itself) in the tray notification area, but no icon is showing - just a fully transparent icon or space for where an icon would be.
Running Win7 x64 with full 32bit desktop colors
@NickeManarin commented on GitHub (Oct 3, 2019):
Thank you. At least it opens now.
Now I need to understand why my icon is not loading.
It's strange because the file is attached to the executable and is the same that appears in the taskbar and in the executable file in the Windows Explorer. I'm assuming that you can see the ScreenToGif icon on your taskbar and in the executable file.
ScreenToGif_Test_2.zip
Here's another with a slightly changed initialization behavior.
If it still does not work, I'll have to export the icon again, exporting as 256 colors too.
@KIRIZAMERAN commented on GitHub (Oct 3, 2019):
test 1 open without error but icon problem same as mrfearless
test 2 open with error message:
the app crashed
System.Drawing.Initialize
at System.Drawing.Icon.Initialize(Int32 width, Int32 height)
at ScreenToGif.App.Application_Startup(Object sender, StartupEventArgs e)
at System.Windows.Application.OnStartup(StartupEventArgs e)
at System.Windows.Application.<.ctor>b__1_0(Object unused)
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)
Running Win10 x64 with full 32bit desktop colors
@NickeManarin commented on GitHub (Oct 3, 2019):
Thank you. Same crash, looks like it's the same reason.
It's hard to know exactly what's wrong, specially without having a computer having the same crash.
I added the icon with 256 colors too.
ScreenToGif_Test_3.zip
@mrfearless commented on GitHub (Oct 4, 2019):
Test 2 crashed, Test 3 works, but icon is blank in tray - same as Test 1
@NickeManarin commented on GitHub (Nov 18, 2019):
Stack trace from @mrfearless
@NickeManarin commented on GitHub (Nov 18, 2019):
From what I know about this error, it's Windows telling the user that it can't load anything else.
Too many GDI objects were already loaded.
If this issue happens again with you people, can you open Task Manager and go to Details, and right click on the header of the data grid, enable GDI objects and see if there's a process eating too much GDI objects.