TheEveEye / SCR-Realism-Project

Our goal is to create a perfectly timed timetable for all stations and drivers in the Roblox Game "Stepford County Railway"
https://bit.ly/SCR-RP-Discord
GNU General Public License v3.0
4 stars 0 forks source link

Crash upon loading the Rich Presence Handler #54

Open kirbix12 opened 1 year ago

kirbix12 commented 1 year ago

~Line 105 of RichPresenceHandler.cs returned with an Exception Unhandled Error with the following:~

System.IndexOutOfRangeException: 'Index was outside the bounds of the array.'

~when attempting to initialize the Discord Rich Presence for the Network Planner on the latest master branch commit. Not affected by my last commit due to the code being absent.~

Update 04/12/22: Fixed on latest commit, however, the following bugs are still presented mentioned below.

TheEveEye commented 1 year ago

bruh now I have this too, but only when opening it on release and without debugging

TheEveEye commented 1 year ago

What branch is this on tho?

TheEveEye commented 1 year ago

I have the same issue on line 101 in RichPresenceHandler.cs on the master branch

kirbix12 commented 1 year ago

In another related note, the program will crash when attempting to launch Discord that doesn't exist on the computer, as said in Line 102 of the same .cs file in the same branch with the following:

System.TypeInitializationException: 'The type initializer for 'RealismProjectSCR.RichPresenceHandler' threw an exception.'

Inner Exception
ResultException: InternalError

with the exception thrown originally in the following:

This exception was originally thrown at this call stack:
    Discord.Discord.Discord(long, ulong) in Core.cs
    RealismProjectSCR.RichPresenceHandler.RichPresenceHandler() in RichPresenceHandler.cs
kirbix12 commented 1 year ago

And another one: When launching the program with Discord installed on the computer and COMPLETELY CLOSED, the program will attempt to launch Discord, but exited with the following on the terminal:

Discord 1.0.9007
Starting app.
Starting updater.
Optional module ./ElectronTestRpc was not included.
WEIGHT \\?\C:\Users\[*user file name here*]\AppData\Local\Discord\app-1.0.9007\modules\discord_krisp-1\discord_krisp\NC_small_8k.thw
WEIGHT \\?\C:\Users\[*user file name here*]\AppData\Local\Discord\app-1.0.9007\modules\discord_krisp-1\discord_krisp\NC_small_16k.thw
WEIGHT \\?\C:\Users\[*user file name here*]\AppData\Local\Discord\app-1.0.9007\modules\discord_krisp-1\discord_krisp\c6.s.f.27f1a3.thw
WEIGHT \\?\C:\Users\[*user file name here*]\AppData\Local\Discord\app-1.0.9007\modules\discord_krisp-1\discord_krisp\VAD_weight.thw
error: Os { code: -2147467259, kind: Uncategorized, message: "Unspecified error" }

Might spit out at least once in a while, but if not spat out, will crash with no given error on terminal or Visual Studio.