Heroic-Games-Launcher / HeroicGamesLauncher

A games launcher for GOG, Amazon and Epic Games for Linux, Windows and macOS.
https://heroicgameslauncher.com
GNU General Public License v3.0
8.22k stars 428 forks source link

Uncaught Exception occurred #3775

Closed Anewidea closed 5 months ago

Anewidea commented 5 months ago

Describe the bug

Every time I open the Heroic Games Launcher I'm presented with the following:

A uncaught exception occured: Error: spawn where ENOENT Report the exception on our Github repository.

Add logs

(08:47:31) INFO:    [Backend]:          Heroic is already running, quitting this instance
(08:47:31) INFO:    [Gog]:              GOGDL location: C:\Users\puuyo\AppData\Local\Programs\heroic\resources\app.asar.unpacked\build\bin\win32\gogdl
(08:47:31) INFO:    [Connection]:       Connectivity: check-online
(08:47:31) INFO:    [Connection]:       Pinging external endpoints
(08:47:31) INFO:    [Gog]:              Checking for existing gog manifests
(08:47:31) INFO:    [Connection]:       Connectivity: online
(08:47:31) ERROR:   [Backend]:          Error: spawn where ENOENT
(08:47:32) INFO:    [Backend]:          DRM module staus {
  "neifaoindggfcjicffkgpmnlppeffabd": {
    "status": "updated",
    "title": "Google Widevine Windows CDM",
    "version": "1.0.2738.0"
  },
  "oimompecagnajdejgnnjijobebaeigek": {
    "status": "updated",
    "title": "Widevine Content Decryption Module",
    "version": "4.10.2710.0"
  }
}
(08:47:32) INFO:    [Backend]:          User Not Found, removing it from Store
(08:47:32) ERROR:   [Gog]:              Unable to syncQueued playtime, userData not present
(08:47:32) INFO:    [Backend]:          Registered protocol with OS.
(08:47:32) INFO:    [Backend]:          Frontend Ready
(08:47:32) ERROR:   [Backend]:          Failed to check for VCRuntime installations
Get-ItemProperty : Specified cast is not valid.
At line:1 char:1
+ Get-ItemProperty HKLM:\Software\WOW6432Node\Microsoft\Windows\Current ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Get-ItemProperty], InvalidCastException
    + FullyQualifiedErrorId : System.InvalidCastException,Microsoft.PowerShell.Commands.GetItemPropertyCommand

(08:47:32) INFO:    [Backend]:          Checking for new Heroic Updates
(08:47:32) INFO:    [Backend]:          Checking for current version changelog
(08:47:32) INFO:    [Frontend]:         Updated to a new version, cleaaning up the cache.
(08:47:32) ERROR:   [Backend]:          Error: spawn where ENOENT
(08:47:32) INFO:    [Frontend]:         Refreshing undefined Library
(08:47:32) WARNING: [Backend]:          refresh not implemented on Sideload Library Manager
(08:47:32) INFO:    [Legendary]:        Refreshing library...
(08:47:33) ERROR:   [Backend]:          Error: spawn where ENOENT
(08:47:33) ERROR:   [Backend]:          Error: spawn where ENOENT
(08:47:33) ERROR:   [Backend]:          Error: spawn where ENOENT
(08:47:34) INFO:    [WineDownloader]:   Updating wine versions info
(08:47:34) INFO:    [WineDownloader]:   Fetching upstream information...
(08:47:35) INFO:    [WineDownloader]:   wine versions updated
(08:47:35) ERROR:   [Backend]:          Could not find default wine version
(08:47:37) INFO:    [Backend]:          Starting the Download Queue

Steps to reproduce

  1. Open the Program
  2. Error will be shown
  3. Also, try to connect an Epic Games Store Account
  4. Error will be shown

Expected behavior

Not to have this popup bombard me

Screenshots

No response

Heroic Version

Latest Stable

System Information

Additional information

No response

arielj commented 5 months ago

is this a normal windows install or a de-bloated one?

arielj commented 5 months ago

there's a solution for that error message in discord https://discord.com/channels/812703221789097985/1237845771458576444/1237845771458576444

Anewidea commented 5 months ago

Hey arielj, yes actually I found another issue that had my same problem and followed the steps to try to fix it. Originally my path was broken, but it should be fixed now (and I restarted my pc). Before I didn't see any results from where PowerShell and echo %PATH%.

I'm still getting the issue and that did not resolve it, but perhaps I missed something. Please see below screenshot.

Microsoft Windows [Version 10.0.22631.3593]
(c) Microsoft Corporation. All rights reserved.

C:\Windows\System32>where powershell
C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe

C:\Windows\System32>echo %PATH%
C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;A:\DEV\lib\jdk-11.0.2\bin\bin;C:\Users\puuyo\AppData\Local\Microsoft\WindowsApps

C:\Windows\System32>

2024-05-21-1716300285 2024-05-21-1716300346 2024-05-21-1716300357

Also I am on a basic Windows 11 install. I upgraded from Windows 10 a couple of years ago.

arielj commented 5 months ago

Add %SystemRoot%\system32 to that list

Anewidea commented 5 months ago

I am still getting the issue.

A uncaught exception occured:
Error: spawn where ENOENT
Report the exception on our Github repository.

Please see below screenshots: image image

I just realized I missed a '\'. Let me try again

Anewidea commented 5 months ago

That solved it thank you, arielj. (It's always the small details lol)