Retr0-01 / CS2-Discord-RP

Enables Discord Rich Presence for CS2 matches.
MIT License
13 stars 2 forks source link

[BUG] Error while trying to open #5

Closed Meff1u closed 10 months ago

Meff1u commented 11 months ago

Describe the bug After trying to run the .exe file, nothing happens, so I checked the event log and it shows this error:

To Reproduce Steps to reproduce the behavior:

  1. Run .exe file (while discord and cs2 are running)

Expected behavior Working RPC

Screenshots image

Desktop (please complete the following information):

Additional context Translation for screenshot: Name of the application causing the error: CS2-Discord-RP.exe, version: 1.0.0.0, time signature: 0x64e81091 Name of the module causing the error: KERNELBASE.dll, version: 10.0.22621.2419, time signature: 0xa85ef443 Exception code: 0xe0434352 Error offset: 0x001490e2 ID of the process causing the error: 0x0x5558 Start time of the application causing the error: 0x0x1D9FF7062809493 Path of the application causing the error: E:Program Files\CS2-Discord-RP\CS2-Discord-RP.exe. Path of the module causing the error: C:WINDOWSystem32KERNELBASE.dll. Report ID: 0b12c465-1860-4b95-b217-47bfa69f2b58 Full name of the package causing the error: Application ID relative to the package causing the error:

Meff1u commented 11 months ago

Also there is an error with .NET Runtime source:


CoreCLR Version: 6.0.2223.42425
.NET Version: 6.0.22
Description: The process was terminated due to an unhandled exception.
Exception Info: System.Net.HttpListenerException (183): Failed to listen on prefix 'http://localhost:3000/' because it conflicts with an existing registration on the machine.
   at System.Net.HttpListener.AddPrefixCore(String registeredPrefix)
   at System.Net.HttpListener.AddAllPrefixes()
   at System.Net.HttpListener.Start()
   at RichPresenceApp.HttpServer.Start()
   at RichPresenceApp.RichPresenceAppContext..ctor()
   at RichPresenceApp.Program.Main()```
Meff1u commented 11 months ago

if i change localhost port in .cfg file error is still the same cus app overwrites it to 3000

Meff1u commented 11 months ago

There are also HttpService logs with CreateUrlGroup, AddUrl, RemUrl and DeleteUrlGroup operation codes

Retr0-01 commented 11 months ago

Hello,

I apologize for the delay. I will have any issues related to this app fixed by the end of the next week. I am on a pretty tight schedule right now so I cannot look at it immediately.

Thanks.

Meff1u commented 11 months ago

No worries, thanks for respond :)

Retr0-01 commented 10 months ago

This should be fixed at the latest release of the app.

I went ahead and changed the port to a less-used one. Also, there will be an error shown to you in case the same or a similar exception occur. Feel free to re-open the issue if it still persists.