Really bad compatibility with BetterDiscord
Describe the bug When BetterDiscord crashes the client, DTP doesn't respond very well and repeatedly crashes the client over and over until I turn off protection or restart my computer.
To Reproduce Steps to reproduce the behavior:
- Install BetterDiscord
- Load a bunch of plugins
- Wait for it to crash
- DTP will then repeatedly close and reopen discord with the error message saying that BetterDiscord crashed the client and doesn't stop until you turn off protection.
Expected behavior I was hoping like some sort of message on the token protector window saying that Discord crashed and then a button to restart Discord that would essentially end the Discord process and restart it completely.
Screenshots I can't reproduce it at will bc BetterDiscord crashes randomly
Setup (please complete the following information):
- OS Version and build: Windows 11 21H2 22000.613
- Discord Token Protector Version dev-9
- Windows Defender
Logs:
List of recent relevant logs:
14:37:46.187 [WARNING] Failed to find Discord in C:\Users\Colli\AppData\Local\DiscordCanary\ : directory_iterator::directory_iterator: The system cannot find the path specified.: "C:\Users\Colli\AppData\Local\DiscordCanary"
14:37:46.188 [ERROR] Failed to load config : invalid JSON. [json.exception.parse_error.101] parse error at line 1, column 1: syntax error while parsing value - unexpected end of input; expected '[', '{', or a literal
14:37:46.188 [WARNING] Using default config!
14:40:38.062 [ERROR] Failed to load secure : file is empty
14:40:38.067 [INFO] Loaded config
14:40:38.068 [INFO] Loaded config
14:40:38.068 [INFO] Loaded config
14:40:44.402 [INFO] auto __thiscall Discord::killDiscord::<lambda_507bee90b6de1e7e5034771acc9a54d6>::()::<lambda_19013b087c165c6a476b3a938d66bdc8>::operator ()(void) const : Terminated process. pid : 1780
14:40:44.744 [ERROR] auto __thiscall Discord::killDiscord::<lambda_507bee90b6de1e7e5034771acc9a54d6>::operator ()(const class std::vector<unsigned long,class std::allocator
Additional context I'm aware that it wasn't originally designed to be compatible with BetterDiscord but a good chunk of people using a token protector are also likely using it, so compatibility should be a pretty big priority to make sure the two programs can work in unison.
Hello,
When you're talking about a crash, are you talking about this kind of crash?

If so, reloading doesn't cause any issue on my side. By the way, you said that you weren't able to do a ctrl-r, could you explain what happens when you do so? I'm unable to reproduce these issues as it seems to work fine on my side.
No, I'm talking about this crash.
https://user-images.githubusercontent.com/103234275/164998472-d3fe19ac-26fb-42bb-8114-626a2c5596ea.mp4
That happens repeatedly without me even having to touch anything, and it doesn't stop happening until I turn off protection in DTP. Then I have to restart my entire computer to get the protection up and running again. It runs smoothly until discord randomly crashes like that.
I'm unable to reproduce that issue, could you send me the logs after crashing several times? Also, have you tried turning "Auto start Discord" off?
I've had it off since I got it. I have BetterDiscord bogged down with a lot of plugins so it randomly crashes every once in a while, I can't make that happen. Normally I have to be using discord for a few hours before it happens, but I'll comment with the log again the next time it happens.