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

Fix DiscordGameSDK runtime exceptions #41

Open
ezioleq opened this issue Dec 7, 2024 · 0 comments
Open

Fix DiscordGameSDK runtime exceptions #41

ezioleq opened this issue Dec 7, 2024 · 0 comments
Assignees
Labels
bug Something isn't working good first issue Good for newcomers
Milestone

Comments

@ezioleq
Copy link
Owner

ezioleq commented Dec 7, 2024

Describe the bug
The DiscordGameSDK is failing to initialize or something, when the Discord isn't open in the operating system. This is not causing any in-game trouble or crashing but is generating an error in logs every time the game is ran.

To Reproduce

  1. Start the game (in the editor)
  2. See the error in the console

Expected behavior
There's no Discord related errors.

Environment

  • OS: Arch Linux (6.12.1-arch1-1)

Additional context

ResultException: InternalError
Discord.Discord..ctor (System.Int64 clientId, System.UInt64 flags) (at Assets/Plugins/DiscordGameSDK/Core.cs:1073)
Portaless.DiscordController.Awake () (at Assets/Scripts/DiscordController.cs:30)

Occasionally you can also get a NullRef exception from the DiscordController.

NullReferenceException: Object reference not set to an instance of an object
Portaless.DiscordController.OnApplicationQuit () (at Assets/Scripts/DiscordController.cs:84)
@ezioleq ezioleq added bug Something isn't working good first issue Good for newcomers labels Dec 7, 2024
@ezioleq ezioleq added this to the Beta 0.2.0 milestone Dec 7, 2024
@ezioleq ezioleq self-assigned this Dec 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant