premid-powercord icon indicating copy to clipboard operation
premid-powercord copied to clipboard

URL Image key & other obscure data causing intermittent crashes (and crash-loops)

Open xirpy opened this issue 3 years ago • 12 comments

Mangadex & others crash the client and send it into a crash loop until you reset the extension.

xirpy avatar Dec 19 '21 14:12 xirpy

In my experience it enters a crash loop if: a. premid is active on a site before you start discord b. discord crashes from other means while premid is active

Both of these are relatively avoidable, to fix it when it happens you must kill all discord processes, disable the premid extension, close sites that are causing activity, enable the premid extension, start discord, then continue as normal. I have no idea how to fix this as with Powercord's current setup it is impossible to debug hard crashes like these, even the shell console does not provide enough information. I would recommend removing unstable plugins and if you use inspect element and it crashes to reinstall discord (remove all residual installation files too).

MulverineX avatar Dec 19 '21 18:12 MulverineX

i tried this but still doesn't worked :/ it crash even if i'm not using any website's presence

kill all discord processes, disable the premid extension, close sites that are causing activity, enable the premid extension, start discord, then continue as normal

xirpy avatar Dec 21 '21 21:12 xirpy

You disabled the extension?

MulverineX avatar Dec 22 '21 00:12 MulverineX

yeah, it worked now, it doesn't crash, but as soon i open an website that has a presence, it crash

  1. Not having any website that uses the presences open
  2. disable and enable the extension
  3. Start Discord and go to the website Crash

xirpy avatar Dec 22 '21 05:12 xirpy

That's super weird, I've never experienced that behavior. Are you using the latest PreMiD?

MulverineX avatar Dec 22 '21 07:12 MulverineX

~~Lol, reinstalled the extension and it's working now (uninstalled and installed from the Chrome Extensions store again), weird, i thought Chrome automatically update the extension~~

edit1, i know why it's crashing, it's because of Mangadex presence, and others i don't remember well, but looks like it's because of that, youtube works fine (showing the presence normally)

xirpy avatar Dec 22 '21 07:12 xirpy

well if those work with the premid app then its a bug. a pain in the ass, but a bug. Thanks for the report, I'll look into it. You can either not use those presences or use the app for now.

MulverineX avatar Dec 23 '21 01:12 MulverineX

Also, wanted to know, will presence thumbnail support be added? (since it also crash if i try to enable lol, Youtube presence)

xirpy avatar Dec 25 '21 00:12 xirpy

Crashes for me too. Extension is latest and site is SoundCloud.

BlackOfWorld avatar Dec 29 '21 00:12 BlackOfWorld

This should be in a separate issue, #7

MulverineX avatar Dec 29 '21 00:12 MulverineX

uhhh actually no. I should've tested this first: image

@Shironep @BlackOfWorld No idea why your clients are crashing... it works fine for me.

MulverineX avatar Jan 01 '22 02:01 MulverineX

Hmmm, thumbnails aren't on by default for the youtube presence, and when I changed my setting in premid to enable them the client crashed 🤔. It started working again when I restarted the client though. Now I can't even reproduce this exact behavior, but I'm having issues when switching between URL and no URL... I hate how hard it is to debug this crap.

MulverineX avatar Jan 01 '22 02:01 MulverineX