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

[Bug]: Crash when launching game. #580

Open
Pliexe opened this issue Sep 16, 2024 · 7 comments
Open

[Bug]: Crash when launching game. #580

Pliexe opened this issue Sep 16, 2024 · 7 comments
Assignees
Labels
Area: Runtime Issue labeled for runtime, Hi3Helper.Core and other libraries used by Collapse Bug Something isn't working Fixed Issue has been fixed

Comments

@Pliexe
Copy link

Pliexe commented Sep 16, 2024

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.b__128_0(Object state)
at Microsoft.UI.Dispatching.DispatcherQueueSynchronizationContext.<>c__DisplayClass2_0.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 Pliexe added the Needs Triaging This issue needs the developer's attention to sort & prioritize. label Sep 16, 2024
@bagusnl
Copy link
Member

bagusnl commented Sep 16, 2024

What version of windows are you on?

@bagusnl
Copy link
Member

bagusnl commented Sep 16, 2024

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

@Pliexe
Copy link
Author

Pliexe commented Sep 17, 2024

What version of windows are you on?

Windows 11 23H2 22631.4037

@bagusnl
Copy link
Member

bagusnl commented Sep 17, 2024

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

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

@Pliexe
Copy link
Author

Pliexe commented Sep 17, 2024

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
Copy link
Author

Pliexe commented Sep 17, 2024

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.

@bagusnl
Copy link
Member

bagusnl commented Sep 17, 2024

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 bagusnl added Bug Something isn't working Area: Runtime Issue labeled for runtime, Hi3Helper.Core and other libraries used by Collapse and removed Needs Triaging This issue needs the developer's attention to sort & prioritize. labels Sep 17, 2024
@bagusnl bagusnl self-assigned this Sep 17, 2024
@bagusnl bagusnl added the Fixed Issue has been fixed label Sep 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: Runtime Issue labeled for runtime, Hi3Helper.Core and other libraries used by Collapse Bug Something isn't working Fixed Issue has been fixed
Projects
None yet
Development

No branches or pull requests

2 participants