discord / gamesdk-and-dispatch

Public issue tracker for the Discord Game SDK and Dispatch
22 stars 7 forks source link

Calling OpenVoiceSettings causes crash #115

Open vkuhlmann opened 3 years ago

vkuhlmann commented 3 years ago

Describe the bug Calling OpenVoiceSettings on the Overlay Manager of the Discord Game SDK crashes the Discord client.

Steps to reproduce Steps to reproduce the behavior:

  1. Create a C# console application.
  2. Copy the code from https://pastebin.com/eVJty1Ey.
  3. Download discord_game_sdk.zip (also listed on the starter guide).
  4. Copy the files under discord_game_sdk.zip/csharp to your project.
  5. Set your application to Platform x64.
  6. Build your project.
  7. Copy discord_game_sdk.zip/lib/x86_64/discord_game_sdk.dll to the output directory.
  8. Open Discord.
  9. Run the application.
  10. Press 'O' in the application.

Expected behavior An overlay opens in Discord

Screenshots See https://youtu.be/yQ8G4XwoyL8

Implementation specifics

Additional context The crash happens both in Canary and Stable. The Discord Game SDK does not output an error message. A while ago (begin February), it still worked, but at some point both versions stopped working. Hence it doesn't look that version specific.

Jump-Suit commented 3 years ago

I can repro this with my Unity game. OpenVoiceSettings causes the Discord Client to crash.

DeDiamondPro commented 3 years ago

Can replicate the stacktrace that's in the console is: e39a96e2040d778c82c5.js:2 ReferenceError: React is not defined at 58a07c81fdea8a8fac87.js:2 at r.render (c99303d54843532af963.js:2) at $a (c99303d54843532af963.js:2) at Ja (c99303d54843532af963.js:2) at Cs (c99303d54843532af963.js:2) at Au (c99303d54843532af963.js:2) at Iu (c99303d54843532af963.js:2) at cu (c99303d54843532af963.js:2) at c99303d54843532af963.js:2 at t.unstable_runWithPriority (c99303d54843532af963.js:2) at zi (c99303d54843532af963.js:2) at Ji (c99303d54843532af963.js:2) at Qi (c99303d54843532af963.js:2) at iu (c99303d54843532af963.js:2) at La (c99303d54843532af963.js:2) at e (c99303d54843532af963.js:2) at c99303d54843532af963.js:2 at Set.forEach () at Function.r [as setState] (c99303d54843532af963.js:2) at t.openModal (c99303d54843532af963.js:2) at 58a07c81fdea8a8fac87.js:2 at new Promise () at Object.handler (58a07c81fdea8a8fac87.js:2) at c99303d54843532af963.js:2

Vercidium commented 3 years ago

I'm facing the same crash when calling overlayManager.OpenVoiceSettings. The crash occurs on both Discord and Discord Canary.

Stack trace:

e05c848954f12890a5bc.js:2 ReferenceError: React is not defined
    at a2478e68aa5c7b3b1077.js:2
    at r.render (5f753b64b57f5ae4a84b.js:2)
    at $a (5f753b64b57f5ae4a84b.js:2)
    at Ja (5f753b64b57f5ae4a84b.js:2)
    at Cs (5f753b64b57f5ae4a84b.js:2)
    at Au (5f753b64b57f5ae4a84b.js:2)
    at Iu (5f753b64b57f5ae4a84b.js:2)
    at cu (5f753b64b57f5ae4a84b.js:2)
    at 5f753b64b57f5ae4a84b.js:2
    at t.unstable_runWithPriority (5f753b64b57f5ae4a84b.js:2)
    at zi (5f753b64b57f5ae4a84b.js:2)
    at Ji (5f753b64b57f5ae4a84b.js:2)
    at Qi (5f753b64b57f5ae4a84b.js:2)
    at iu (5f753b64b57f5ae4a84b.js:2)
    at La (5f753b64b57f5ae4a84b.js:2)
    at e (5f753b64b57f5ae4a84b.js:2)
    at 5f753b64b57f5ae4a84b.js:2
    at Set.forEach (<anonymous>)
    at Function.r [as setState] (5f753b64b57f5ae4a84b.js:2)
    at t.openModal (5f753b64b57f5ae4a84b.js:2)
    at a2478e68aa5c7b3b1077.js:2
    at new Promise (<anonymous>)
    at Object.handler (a2478e68aa5c7b3b1077.js:2)
    at 5f753b64b57f5ae4a84b.js:2
(anonymous) @ e05c848954f12890a5bc.js:2