DiscordBotClient icon indicating copy to clipboard operation
DiscordBotClient copied to clipboard

App Freezes when you switch shards

Open AsyncJakub opened this issue 1 year ago • 8 comments

It's not the biggest issue but it can be annoying. I have to force reload the app all the time.

AsyncJakub avatar Aug 29 '24 13:08 AsyncJakub

How many servers does your bot have? I am currently unable to reproduce this issue.

aiko-chan-ai avatar Aug 31 '24 09:08 aiko-chan-ai

111 Servers

AsyncJakub avatar Aug 31 '24 13:08 AsyncJakub

With 111 servers, shard switching is not necessary, but there might be a bug that causes that command to work. (Bc 200 guilds per shard)

aiko-chan-ai avatar Aug 31 '24 18:08 aiko-chan-ai

If I don't then I can't view all servers. I have 1 shard. 0-1 and when I switch between them then it just freezes. Sometimes it works but sometimes it doesn't

AsyncJakub avatar Aug 31 '24 18:08 AsyncJakub

Perhaps I need a bot token to test that error.

aiko-chan-ai avatar Aug 31 '24 18:08 aiko-chan-ai

I could try looking in dev console to see if there are any errors.

AsyncJakub avatar Aug 31 '24 18:08 AsyncJakub

I just tried opening the app only to receive this error

image

AsyncJakub avatar Aug 31 '24 18:08 AsyncJakub

I’m back after a while. I have a bot with over 600 servers, and I can't reproduce this error. However, it seems that the official web client also freezes when inactive, so I currently don’t have a workaround.

aiko-chan-ai avatar Sep 28 '24 07:09 aiko-chan-ai

I am able reproduce this. The 3 bots are in 3-5 server's each. When switching accounts. The App freezes on discord's "did you know"

VanillaChan6571 avatar Oct 18 '24 08:10 VanillaChan6571

image

Or even just Control + F5 crashes the Bot Client..

VanillaChan6571 avatar Oct 18 '24 08:10 VanillaChan6571

It's really strange... I completely can't reproduce this error (I tried with a list of 5 bots, with the number of servers being approximately 300, 70, 5, 3, and 2, respectively).

aiko-chan-ai avatar Oct 18 '24 08:10 aiko-chan-ai

It's really strange... I completely can't reproduce this error (I tried with a list of 5 bots, with the number of servers being approximately 300, 70, 5, 3, and 2, respectively).

Maybe its because I updated from 3.4.1 -> 3.5.0 and maybe there is a bad file?

VanillaChan6571 avatar Oct 18 '24 10:10 VanillaChan6571

Idk

aiko-chan-ai avatar Oct 18 '24 12:10 aiko-chan-ai

I am able reproduce this. The 3 bots are in 3-5 server's each. When switching accounts. The App freezes on discord's "did you know"

Yes it's literally exact that. It just randomly happens and I have to force restart it. (Not even that works sometimes)

AsyncJakub avatar Oct 18 '24 20:10 AsyncJakub

having the same issue

Apraxed avatar Oct 29 '24 04:10 Apraxed

I can personally reproduce the same issue with a 2 servers bot. Strange thing, lol.

Natolix avatar Oct 29 '24 14:10 Natolix

I honestly don't know how you recreated it. I feel like it happens 99% of the time.

AsyncJakub avatar Oct 29 '24 15:10 AsyncJakub

I really can't reproduce it, but if you still feel there's an issue, do it like this.

image

aiko-chan-ai avatar Oct 29 '24 15:10 aiko-chan-ai

How to get to that menu?

Kugyan avatar Nov 02 '24 22:11 Kugyan

How to get to that menu?

image

Find the icon and then right click

AsyncJakub avatar Nov 02 '24 23:11 AsyncJakub

Hey there same issue here!

but I have tried several methods. We do not need to clear web storage / clear local database.

When the application logs in and the guild starts to load gradually on the current shard, use 1 guild that has send message access as a reference to perform /switchguild or /switchshard quickly. The point is, our hands must be "fast hands," because if all the guilds in "1 shard" fully load, it will cause a hang, freeze, or get stuck. For example, if you have 400 servers and several shards are available, when the application starts, prevent the application from fully loading the server list in one shard.

ferrenza avatar Nov 28 '24 20:11 ferrenza

I’m back after a while. I have a bot with over 600 servers, and I can't reproduce this error. However, it seems that the official web client also freezes when inactive, so I currently don’t have a workaround.

Yes, this is correct. If we are not interacting with the app, or if it is idle for too long, it will cause the display to freeze.

However, if we are interacting with the app, such as scrolling, selecting a profile, etc., it does not cause a freeze.

ferrenza avatar Nov 28 '24 20:11 ferrenza

Perhaps I’ll try limiting it to 100 guilds per shard?
Although it's currently set to 200 guilds per shard (equivalent to Discord Nitro users), it’s strange to encounter such issues.

aiko-chan-ai avatar Nov 29 '24 00:11 aiko-chan-ai

Perhaps I’ll try limiting it to 100 guilds per shard? Although it's currently set to 200 guilds per shard (equivalent to Discord Nitro users), it’s strange to encounter such issues.

Yeah, you might want to try comparing with a limit of 100 or 50. If it still freezes, I have no idea what else could serve as a reference for this freeze issue 😂

The main point is, as the guilds load gradually, don’t let them all load at once. If we’re late, we need to force a reload and use the method I mentioned earlier.

ferrenza avatar Nov 29 '24 07:11 ferrenza

fixed

aiko-chan-ai avatar Dec 25 '24 15:12 aiko-chan-ai

fixed

Nice work

btw there are a few things that are not fixed yet, including: when we switch to another application and stay idle for a while, then return to the application window, it experiences a slight freeze (it could be quick or slow). What do you think?

ferrenza avatar Dec 26 '24 14:12 ferrenza

I think this is an issue with Discord. I've experienced it (and so have many others).
https://www.reddit.com/r/discordapp/comments/1e3hfwq/discord_freezing_in_the_background/

This might be a potential fix:
https://www.reddit.com/r/discordapp/comments/1dljeun/i_have_figured_out_a_temporary_fix_to_the_discord/

aiko-chan-ai avatar Dec 26 '24 15:12 aiko-chan-ai

I think this is an issue with Discord. I've experienced it (and so have many others). https://www.reddit.com/r/discordapp/comments/1e3hfwq/discord_freezing_in_the_background/

This might be a potential fix: https://www.reddit.com/r/discordapp/comments/1dljeun/i_have_figured_out_a_temporary_fix_to_the_discord/

alr

ferrenza avatar Dec 27 '24 11:12 ferrenza

btw the apps keep pop up Update Manager say you are in newest version opening & relaunch app

last question: how to show current bio? its always say "Based on the cutest Discord client mod :3"

ferrenza avatar Dec 27 '24 11:12 ferrenza

btw the apps keep pop up Update Manager say you are in newest version opening & relaunch app

I might make it stop appearing in the next version (v3.6.1)

last question: how to show current bio? its always say "Based on the cutest Discord client mod :3"

When Discord allows you to do that

aiko-chan-ai avatar Dec 27 '24 13:12 aiko-chan-ai