Page 1 of 1

[0.17.37] Closing Discord crashes Factorio

Posted: Thu May 09, 2019 2:28 pm
by Festmester
As the title says,when I quit Discord by rightclicking the tray icon and clicking "Quit Discord", Factorio spits out an error message, while still actually working until I click Yes/No on the error box (related to this perhaps? viewtopic.php?f=11&t=69785&p=424684&hil ... sh#p424684 ).

The crash can happen in every part of Factorio; the loading screen before the main menu, in the main menu, and even in game. No mods.

The error itself is the "Unexpected Error Occured", asking me to include the factorio-current file, where it to me looks like DiscordHook64.dll is to blame.

Re: [0.17.37] Closing Discord crashes Factorio

Posted: Thu May 09, 2019 2:48 pm
by posila
Thanks for the report.
I was wondering how is DiscordHook64.dll crashing the game.

It is not our bug and there is no nice workaround for us to do on our side; we would have to either somehow prevent Discord from injecting their DLL to the game, or to silently ignore crashes in threads created by that DLL (but I don't know what would be consequences of this).

But now that we know how to reproduce the crash, we can forward it to Discord people for them to fix.

Re: [0.17.37] Closing Discord crashes Factorio

Posted: Fri May 10, 2019 12:44 pm
by posila
When I turned on my computer this morning, DiscordHook64.dll was updated and I can't reproduce the crash anymore.
I didn't even get to reporting it yesterday.