Collapse icon indicating copy to clipboard operation
Collapse copied to clipboard

[Bug]: Crash when launching game.

Open Pliexe opened this issue 1 year ago • 7 comments

Affected Version

1.81.6 Preview

Bug Behavior

When any of the games are launched the launcher crashes and prints an error in the console.

Expected Behavior

The launcher shouldn't have crashed when starting the game, but have either minimized or stay open depending on how it's configured.

Steps to reproduce

  1. Start launcher
  2. On any game click "Start Game" button

Related Issues

No response

Screenshot(s)

image

Additional Information

FATAL ERROR ON APP MAIN() LEVEL AND THE MAIN THREAD HAS BEEN TERMINATED!!! System.Runtime.InteropServices.COMException (0x80070001): No such interface supported

at System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(Int32) at H.NotifyIcon.Interop.InteropUtilities.EnsureNonZero(BOOL) at H.NotifyIcon.EfficiencyMode.EfficiencyModeUtilities.SetProcessQualityOfServiceLevel(QualityOfServiceLevel) at H.NotifyIcon.EfficiencyMode.EfficiencyModeUtilities.SetEfficiencyMode(Boolean) at H.NotifyIcon.WindowExtensions.Hide(Window, Boolean ) at CollapseLauncher.TrayIcon.ToggleMainVisibility(Boolean forceShow) at CollapseLauncher.Helper.WindowUtility.ToggleToTray_MainWindow() at CollapseLauncher.Pages.HomePage.StartGame(Object sender, RoutedEventArgs e) at System.Threading.Tasks.Task.<>c.<ThrowAsync>b__128_0(Object state) at Microsoft.UI.Dispatching.DispatcherQueueSynchronizationContext.<>c__DisplayClass2_0.<Post>b__0()

If you are sure that this is not intended, please report it to: https://github.com/CollapseLauncher/Collapse/issues Press any key to exit or Press 'R' to restart the main thread app...

Pliexe avatar Sep 16 '24 23:09 Pliexe

What version of windows are you on?

bagusnl avatar Sep 16 '24 23:09 bagusnl

Also for workaround, try setting the after game launch behavior to "minimize" or "nothing" for now

bagusnl avatar Sep 16 '24 23:09 bagusnl

What version of windows are you on?

Windows 11 23H2 22631.4037

Pliexe avatar Sep 17 '24 12:09 Pliexe

is the Windows installation modified in any way? like custom ISO or tweak script?

I can't replicate it on my end in 24H2

bagusnl avatar Sep 17 '24 12:09 bagusnl

is the Windows installation modified in any way? like custom ISO or tweak script?

I can't replicate it on my end in 24H2

If you mean by manually removing parts such as apps, or disabling some stuff in the registry, yes it is.

Pliexe avatar Sep 17 '24 12:09 Pliexe

I didn't actually have this issue before, but the problem is that I can't remember when the issue appeared. So I don't know if it happened after a newer version update or a Windows update. Since it worked fine before for long time it also might as well could be related to a Windows update, I'm not sure.

Pliexe avatar Sep 17 '24 12:09 Pliexe

I will try to make the method not crashing the entire app, but essentially the failing code is the one that calls for Collapse to be put on "Efficiency Mode" so that it won't take much if any CPU in the background

bagusnl avatar Sep 17 '24 12:09 bagusnl