BetterDiscordStuff icon indicating copy to clipboard operation
BetterDiscordStuff copied to clipboard

[Channel Tabs] Issue: Crashes discord

Open LucHeart opened this issue 2 years ago • 7 comments

Describe the bug Discord just crashes for me, upon enabling the plugin, it worked before, even with the new update, but stopped working after the latest.

To Reproduce Steps to reproduce the behavior:

  1. Go to 'Settings -> Plugins'
  2. Click on 'Enable Channel Tabs plugin'
  3. Discord crashes

Expected behavior Not crashing

Screenshots Not needed, error below.

Information (please complete the following information):

  • OS: Windows
  • Plugin Version: 2.5.3
  • Discord version: Stable,
  • Compact Mode enabled? yes

Additional context

27c10ebf0d5b61a94aa1.js:137 [PluginManager] ChannelTabs v2.5.3 could not be started. TypeError: Cannot read property 'cancel' of undefined
    at ChannelTabs.onStop (betterdiscord://plugins/ChannelTabs.plugin.js:2353)
    at ChannelTabs.stop (betterdiscord://plugins/0PluginLibrary.plugin.js:6471)
    at Object.stopPlugin (<anonymous>:4:232346)
    at Object.stopAddon (<anonymous>:4:231671)
    at Object.disableAddon (<anonymous>:4:193909)
    at Object.toggleAddon (<anonymous>:4:193974)
    at Object.togglePlugin (<anonymous>:4:229675)
    at ot.onChange (<anonymous>:4:205509)
    at qe.onChange (<anonymous>:4:199721)
    at Object.Fe (2d4f7b2b96b7e61d2117.js:4126)
    at qe (2d4f7b2b96b7e61d2117.js:4126)
    at 2d4f7b2b96b7e61d2117.js:4146
    at yr (2d4f7b2b96b7e61d2117.js:4146)
    at Ar (2d4f7b2b96b7e61d2117.js:4146)
    at 2d4f7b2b96b7e61d2117.js:4152
    at Ue (2d4f7b2b96b7e61d2117.js:4230)
    at 2d4f7b2b96b7e61d2117.js:4148
    at Dr (2d4f7b2b96b7e61d2117.js:4148)
    at Zt (2d4f7b2b96b7e61d2117.js:4135)
    at Qt (2d4f7b2b96b7e61d2117.js:4135)
    at t.unstable_runWithPriority (2d4f7b2b96b7e61d2117.js:4236)
    at Hi (2d4f7b2b96b7e61d2117.js:4156)
    at Pe (2d4f7b2b96b7e61d2117.js:4229)
    at Xt (2d4f7b2b96b7e61d2117.js:4134)
    at HTMLDivElement.r (27c10ebf0d5b61a94aa1.js:133)
(anonymous) @ 27c10ebf0d5b61a94aa1.js:137
27c10ebf0d5b61a94aa1.js:137 [ChannelTabs] version 2.5.3 has started.
27c10ebf0d5b61a94aa1.js:137 TypeError: Cannot read property 'guild_id' of undefined
    at getCurrentUserStatus (betterdiscord://plugins/ChannelTabs.plugin.js:1092)
    at betterdiscord://plugins/ChannelTabs.plugin.js:1780
    at u.i [as memoizedGetStateFromStores] (2d4f7b2b96b7e61d2117.js:3848)
    at u.l.render (2d4f7b2b96b7e61d2117.js:3847)
    at Ha (2d4f7b2b96b7e61d2117.js:4184)
    at xa (2d4f7b2b96b7e61d2117.js:4184)
    at Hs (2d4f7b2b96b7e61d2117.js:4221)
    at yu (2d4f7b2b96b7e61d2117.js:4212)
    at Iu (2d4f7b2b96b7e61d2117.js:4211)
    at gu (2d4f7b2b96b7e61d2117.js:4211)
    at fu (2d4f7b2b96b7e61d2117.js:4208)
    at 2d4f7b2b96b7e61d2117.js:4157
    at t.unstable_runWithPriority (2d4f7b2b96b7e61d2117.js:4236)
    at Hi (2d4f7b2b96b7e61d2117.js:4156)
    at ji (2d4f7b2b96b7e61d2117.js:4157)
    at Bi (2d4f7b2b96b7e61d2117.js:4157)
    at su (2d4f7b2b96b7e61d2117.js:4206)
    at Object.enqueueForceUpdate (2d4f7b2b96b7e61d2117.js:4161)
    at t.h.forceUpdate (2d4f7b2b96b7e61d2117.js:3849)
    at ReflectionInstance.forceUpdate (betterdiscord://plugins/0PluginLibrary.plugin.js:3270)
    at ReactComponent.forceUpdateAll (betterdiscord://plugins/0PluginLibrary.plugin.js:2724)
    at ChannelTabs.patchAppView (betterdiscord://plugins/ChannelTabs.plugin.js:3006)```

LucHeart avatar Jul 30 '21 14:07 LucHeart

Hello.

I've this crash too. I don't know if it's useful but here are my logs too when I enable the plugin (I think it's almost the same):

2d4f7b2b96b7e61d2117.js:4197 TypeError: Cannot read property 'guild_id' of undefined
    at getCurrentUserStatus (ChannelTabs.plugin.js:1092)
    at ChannelTabs.plugin.js:1780
    at u.i [as memoizedGetStateFromStores] (2d4f7b2b96b7e61d2117.js:3848)
    at u.l.render (2d4f7b2b96b7e61d2117.js:3847)
    at Ha (2d4f7b2b96b7e61d2117.js:4184)
    at xa (2d4f7b2b96b7e61d2117.js:4184)
    at Hs (2d4f7b2b96b7e61d2117.js:4221)
    at yu (2d4f7b2b96b7e61d2117.js:4212)
    at Iu (2d4f7b2b96b7e61d2117.js:4211)
    at gu (2d4f7b2b96b7e61d2117.js:4211)
    at fu (2d4f7b2b96b7e61d2117.js:4208)
    at 2d4f7b2b96b7e61d2117.js:4157
    at t.unstable_runWithPriority (2d4f7b2b96b7e61d2117.js:4236)
    at Hi (2d4f7b2b96b7e61d2117.js:4156)
    at ji (2d4f7b2b96b7e61d2117.js:4157)
    at Bi (2d4f7b2b96b7e61d2117.js:4157)
    at su (2d4f7b2b96b7e61d2117.js:4206)
    at Object.enqueueForceUpdate (2d4f7b2b96b7e61d2117.js:4161)
    at t.h.forceUpdate (2d4f7b2b96b7e61d2117.js:3849)
    at ReflectionInstance.forceUpdate (0PluginLibrary.plugin.js:3270)
    at ReactComponent.forceUpdateAll (0PluginLibrary.plugin.js:2724)
    at ChannelTabs.patchAppView (ChannelTabs.plugin.js:3006)

Information:

OS: Windows 10 (21H1) Plugin Version: 2.5.3 Discord version: Stable Compact Mode enabled? Yes

Lusiiky avatar Jul 30 '21 18:07 Lusiiky

I get the same error as @Lupsoris

slip1244 avatar Jul 30 '21 19:07 slip1244

So I got this one first: aeivc825stc31

And when I reloaded, it told me that ChannelTabs crashed with the same series of text that the others received. I deleted the plugin, tried dragging it into the plug in folder like I have before and got a message saying not to run it directly. When I hit enter, it took me to another window saying that I don't have a betterdiscord plugin folder and if I would like to be redirected to it, I clicked yes. It was the exact same path as the folder I was already in.

I did it a second time; deleted the plugin, restarted my discord to make sure it was gone and I got this message this time. Though it might've been because I accidently dropped the file on top of another file.

2

Followed by this after I hit "Ok". 3

Screen shotted to show that the plugin isn't even in the folder, and it's not showing up in the plugin's list in the discord itself. So this time I completely closed discord, dragged in the plugin (got no error), but when I opened up discord again, I got this Capture

Hopefully this helps and a solution can be found!

Jekyde412 avatar Jul 30 '21 20:07 Jekyde412

https://cdn.discordapp.com/attachments/523549866790617118/870440250206486558/ChannelTabs.plugin.js

Can you please try this version and see if it works?

aarondoet avatar Jul 31 '21 00:07 aarondoet

Can you please try this version and see if it works?

So yes, the tabs work. But I still get an error at startup (which doesn't seem to be a problem):

image

[PluginManager] Unable to fire onSwitch for ChannelTabs v2.5.3 TypeError: Cannot read property 'guild_id' of undefined
    at getCurrentIconUrl (betterdiscord://plugins/ChannelTabs.plugin.js:1185)
    at betterdiscord://plugins/ChannelTabs.plugin.js:3080
    at Array.map (<anonymous>)
    at ChannelTabs.onSwitch (betterdiscord://plugins/ChannelTabs.plugin.js:3072)
    at Object.onSwitch (<anonymous>:4:233089)
    at Object.dispatch (<anonymous>:4:150442)
    at EventEmitter.<anonymous> (<anonymous>:4:160015)

Lusiiky avatar Jul 31 '21 01:07 Lusiiky

https://cdn.discordapp.com/attachments/523549866790617118/870440250206486558/ChannelTabs.plugin.js

Can you please try this version and see if it works?

Works perfect! No error or anything.

Jekyde412 avatar Jul 31 '21 09:07 Jekyde412

https://cdn.discordapp.com/attachments/523549866790617118/870440250206486558/ChannelTabs.plugin.js

Can you please try this version and see if it works?

Works fine for me after a restart. Still getting the error @Lupsoris already described tho.

LucHeart avatar Jul 31 '21 11:07 LucHeart