Strencher / BetterDiscordStuff

A collection of my BetterDiscord plugins
https://strencher.github.io/BetterDiscordStuff/
366 stars 226 forks source link

[Platform Indicators] Crash on particular user #277

Closed EMREOYUN closed 2 years ago

EMREOYUN commented 2 years ago

I have a user on my server but loading their platform crashes BetterDiscord altogether. Only experienced with one particular user and no one else.

Error log: This part only happens on DM's [Patcher] Could not fire before callback of default for PlatformIndicators TypeError: Cannot read property 'decorators' of undefined at Object.eval [as callback] (APlatformIndicators.plugin.js:383) at eval (0PluginLibrary.plugin.js:1645) at W (0ba88fbeb2432d46a7cf.js:6022) at K (0ba88fbeb2432d46a7cf.js:6022) at ps (0ba88fbeb2432d46a7cf.js:6105) at Du (0ba88fbeb2432d46a7cf.js:6119) at Uu (0ba88fbeb2432d46a7cf.js:6120) at Au (0ba88fbeb2432d46a7cf.js:6117) at 0ba88fbeb2432d46a7cf.js:6062 at t.unstable_runWithPriority (0ba88fbeb2432d46a7cf.js:6251) at Ki (0ba88fbeb2432d46a7cf.js:6062) at qi (0ba88fbeb2432d46a7cf.js:6062) at Xi (0ba88fbeb2432d46a7cf.js:6062) at ke (0ba88fbeb2432d46a7cf.js:6139) at 0ba88fbeb2432d46a7cf.js:6053 at Vr (0ba88fbeb2432d46a7cf.js:6053) at rn (0ba88fbeb2432d46a7cf.js:6040) at nn (0ba88fbeb2432d46a7cf.js:6040) at t.unstable_runWithPriority (0ba88fbeb2432d46a7cf.js:6251) at tn (0ba88fbeb2432d46a7cf.js:6039) at HTMLDivElement.r (fdab2c8b184f65a69b56.js:126)

This part happens everywhere I can see that particular user Error: Minified React error #130; visit https://reactjs.org/docs/error-decoder.html?invariant=130&args[]=undefined&args[]= for the full message or use the non-minified dev environment for full errors and additional helpful warnings. at nl (0ba88fbeb2432d46a7cf.js:6134) at e (0ba88fbeb2432d46a7cf.js:6073) at Bo (0ba88fbeb2432d46a7cf.js:6085) at $s (0ba88fbeb2432d46a7cf.js:6130) at Gu (0ba88fbeb2432d46a7cf.js:6120) at wu (0ba88fbeb2432d46a7cf.js:6120) at Uu (0ba88fbeb2432d46a7cf.js:6120) at Au (0ba88fbeb2432d46a7cf.js:6117) at 0ba88fbeb2432d46a7cf.js:6062 at t.unstable_runWithPriority (0ba88fbeb2432d46a7cf.js:6251) at Ki (0ba88fbeb2432d46a7cf.js:6062) at qi (0ba88fbeb2432d46a7cf.js:6062) at Xi (0ba88fbeb2432d46a7cf.js:6062) at ke (0ba88fbeb2432d46a7cf.js:6139) at 0ba88fbeb2432d46a7cf.js:6053 at Vr (0ba88fbeb2432d46a7cf.js:6053) at rn (0ba88fbeb2432d46a7cf.js:6040) at nn (0ba88fbeb2432d46a7cf.js:6040) at t.unstable_runWithPriority (0ba88fbeb2432d46a7cf.js:6251) at tn (0ba88fbeb2432d46a7cf.js:6039) at HTMLDivElement.r (fdab2c8b184f65a69b56.js:126)

Opening the link gives this error: Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: undefined.

domi-btnr commented 2 years ago

@Strencher Looks like they changed something with the Avatar Decorations again. I cant confirm it, but i guess it happens to people who have such a decoration

EMREOYUN commented 2 years ago

@Strencher Looks like they changed something with the Avatar Decorations again. I cant confirm it, but i guess it happens to people who have such a decoration

Weird, I couldn't see any particular decorarion on their profile.

secludedhusky commented 2 years ago

I also have the same issue, again, nobody on my friends list or within servers has avatar decorators. a1aea796b90de1cca0d7.js:130 [Patcher] Could not fire before callback of default for PlatformIndicators TypeError: Cannot read property 'decorators' of undefined at Object.eval [as callback] (APlatformIndicators.plugin.js:383) at eval (0PluginLibrary.plugin.js:1645) at W (43caa3e087a0414a7b3f.js:6076) at K (43caa3e087a0414a7b3f.js:6076) at Es (43caa3e087a0414a7b3f.js:6159) at Lu (43caa3e087a0414a7b3f.js:6173) at Uu (43caa3e087a0414a7b3f.js:6174) at Au (43caa3e087a0414a7b3f.js:6171) at 43caa3e087a0414a7b3f.js:6116 at t.unstable_runWithPriority (43caa3e087a0414a7b3f.js:6305) at Ki (43caa3e087a0414a7b3f.js:6116) at qi (43caa3e087a0414a7b3f.js:6116) at Xi (43caa3e087a0414a7b3f.js:6116) at Tu (43caa3e087a0414a7b3f.js:6168) at Object.enqueueForceUpdate (43caa3e087a0414a7b3f.js:6120) at t.h.forceUpdate (43caa3e087a0414a7b3f.js:6275) at Object.BDFDB.ReactUtils.forceUpdate (0BDFDB.plugin.js:3122) at eval (0BDFDB.plugin.js:4431) at eval (0BDFDB.plugin.js:233) at eval (0BDFDB.plugin.js:215) at r (a1aea796b90de1cca0d7.js:126)

domi-btnr commented 2 years ago

Fixed in 6a452fb