GithubHelp home page GithubHelp logo

Comments (11)

dequis avatar dequis commented on July 19, 2024

Are you using the latest revision? 7fdfd18 fixes something possibly relevant. If you're not sure, build the latest.

from bitlbee-discord.

Kays avatar Kays commented on July 19, 2024

I updated it but the bug still remains. The second I enter in the MFA token, it just lags out. I even timed it so the token just generated via Google Auth so it shouldn't be timed out.

http://i.imgur.com/LTEkcej.png

Edit: the worst part is that as long as the token is in the config and the account is on, I cannot use bitlbee at all because the second it tries to do something with mfa, it lags and will not respond to commands in &bitlbee. I have to take out that line in the config so I can use my other accounts and just ignore discord for now.

from bitlbee-discord.

dequis avatar dequis commented on July 19, 2024

You could try attaching gdb to it. Find the pid of the child process with "ps aux | grep bitlbee" (there should at least two, pick the most recent one), attach to it with "gdb -p 1234" replacing 1234 with that pid, type "bt" to get a backtrace and "c" to continue. Post results.

If you're not sure you got the right pid, try attaching it before this bug happens - that should freeze it in a similar way, and won't respond the commands. Then use "c" to continue and unfreeze it, and when the bug is happening press ctrl-c in gdb and type "bt".

from bitlbee-discord.

erockce avatar erockce commented on July 19, 2024

I haven't used the plugin in a while. The last time I logged in with the plugin (and MFA enabled), It lagged for me. Although it seemed be the result of joining all the channels associated with just 3 servers. Perhaps a future feature enhancement would be to not attempt joining a channel if it is muted.

from bitlbee-discord.

sm00th avatar sm00th commented on July 19, 2024

It is most likely not channels, but users. I've tried joining reddit's unofficial discord api server and it has a lot of users and that timed out as well. Back then I found out that imcb_add_buddy takes too much time on big lists, so this should be fixed in bitlbee first.

from bitlbee-discord.

dequis avatar dequis commented on July 19, 2024

Oh, huh, I've never actually seen that hit in real servers, only in buggy conditions when plugins added tens of thousands of repeated contacts in a loop. Too many linked lists, not enough hash tables. I'll have a look.

from bitlbee-discord.

dequis avatar dequis commented on July 19, 2024

I'll have a look.

Hmm...

Sorry for the delay.

discord

from bitlbee-discord.

sm00th avatar sm00th commented on July 19, 2024

That pretty much confirms the previous "not enough hashtables" statement, doesn't it?

from bitlbee-discord.

dequis avatar dequis commented on July 19, 2024

Ok here's some stuff:

  • bitlbee/bitlbee#113 (hash tables for bee_user_by_handle)

  • bitlbee/bitlbee#114 (hash tables for irc users)

  • #165 (not actually hash tables! a way to make the linked lists within this plugin efficient enough that they stop being relevant in callgraphs) (turned out to be faster because it's wrong)

  • #164 (small low-hanging fruit optimization found after dealing with all that)

from bitlbee-discord.

dequis avatar dequis commented on July 19, 2024

Everything is now merged to the master branch of the bitlbee repo.

from bitlbee-discord.

erockce avatar erockce commented on July 19, 2024

Just rebuilt latest from master, tested with MFA, and successfully echoed messages back and forth between Discord Linux client and bitlbee-discord. Nice job!

from bitlbee-discord.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.