question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Bot completely freezes on chat message

See original GitHub issue

Versions

  • mineflayer: 2.9.6

  • server: paperSpigot 1.8.8

  • node: 12.14.0

    I came across this chat message (Im not sure what about it) but it completely hangs the entire nodejs app, and I have to restart it. This could be with minecraft protocol or chat messages with that, but im not sure.

    Since im not sure what about it hangs the bot, its on the server manacube.net, on /server factions and the command “/f who royal”

    It seems to work with any other faction on there. I do nothing with the output, it just runs the command and then the process stops. It could be too big of a message possibly? I do need a fix for this in that case or at least to return an error.

Message:

____________________.[ Royal ].______________________
Description: Apply here! ---> https://discord.gg/xxxxxxx
Joining: invitation is required    
Land / Power / Maxpower:  1774/2500/2500
Founded: 12/1/19 1:34PM
Land value: no value no refund
Balance: no balance
Bans: 22
Allies(1/1):  §fkinkers
Online: (15/48): **§6[§4§lSrMod§6]§7[§d§lMadre§7]§c freshdougie, *§7[§c§lMOD§7][§d§lJOE-MAMA§7]§c§l XFactum, *§d§lSrDAD Harryyysan, +§7[§2§lM§7]§7[§b§lGLIZZYS§c§lDAD§7]§a Godly_op, +§7[§2§lM§7]§7[§c§lMASTER§e§lCARD§7]§a glizzygreg, +§7[§6§lBOT§7]§6§l RoyalFactions, +igotbannedincsgo Aucxi, +nocheatpls, +§7[§2§lM§7]§d§o[§6§oUr§e§oFav§d§o]§a iansanity, +§cA§eGreat§bGuy§a skillable, +§7[§2§lM§7][§dPlastered§7]§a DrVexyDankHarry, +legend Totemfire3, +OVERLORDSUPREMELEADER LIL_DUDI_21, +§f§oThe§e§oPack§b§oMaster§a Xinide, +§7[§2§lM§7]§a BranchingALT
Offline: (33/48): ***§7[§5§lMASTER§7]§d IamVexy, **HeadassOnBreak JustSoDank, *§7[§c§lMOD§7]§7[§8§lOnBreak§7]§c§l Jushua, *§7[§l§4MOD§7]§c _We_The_South_, *§6[§4§lMOD§6]§a[§b§lHayleysDaddy§a] Harry_s_Truman1, *[§aM§a] BestDiamondSword, *§3§lprincessboomer rangedhealer77, *§7[§c§lMod§7][§3Spa§bce§eCad§fet§7]§c dotEXP, +NojoGabe, +LoveHate, +§7[§2§lM§7][§cS§6t§ea§fr§7]§a QuasarsInSpace, +§7[§2§lM§7]§7[§fI§4Own§fFour§1Cars§7]§a lattas01, +§7[§2§lM§7]§a RECREATOR, +§7[§2§lM§7]§7[§bBOT§7]§a gpisstevie, +§7[§2§lM§7][§d§oSoft§e§oLemon§7]§a melseuss, +§7[§2§lM§7]§a _StreetFighter, +Aidan3521, +§5ARNEOZ Derpylatios, +JustSoAdam, +§7[§2§lM§7]§a MadPeppermint, +OdinsUlfhedinn, +§7[§2§lA§7]§a RH77, +§7[§2§lM§7]§7[§c§le§5§lThot§b§lbbg§7]§a xoabbie, +§7[§2§lM§7][§bCole§fWorld§7]§a coli0, +§7[§2§lM§7]§7[§e§lV§b§lisa§7]§7[§6SugarDaddy§7]§a tustificatethe3, +§7[§2§lM§7]§a _C4OnYourDoor_, +cooltitle WalkingBillboard, +§7[§2§lM§7]§7[§e§lHOPE§7]§a KorkadBanan, +§7[§2§lM§7][§c§l;3§7]§5§o[§6§o6§e§oCPS§5§o]§a Mushey, +§7[§2§lM§7]§6[§bMogz§6]§a Morgansoley, +§d§l§oM§b§o§lunchinq§a BestDiamondAxe, +§7[§2§lM§7]§7[§5§lCu§d§ltie§7]§a Mizuki_Okami_, +BiggestClownInRoyal prettyyodd

Issue Analytics

  • State:open
  • Created 4 years ago
  • Comments:7 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
extremeheatcommented, Jan 18, 2021

This appears to be due to https://github.com/PrismarineJS/mineflayer/blob/030930dbb494188e4407d4f074aa945ecceb1009/lib/plugins/chat.js#L8

the username detection regex looks unnecessarily complex.

0reactions
banimaniacommented, Feb 28, 2022

Is there any way to fix this?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Server freezes on chat updates : r/Minecraft - Reddit
Any update in chat (eg: message, death message, join/leave message) after a while makes the entire server stutter, for all players.
Read more >
multiple messages and freezing the chat - SnatchBot Support
I have two questions: 1. If a user answers with more than one line of text (multiple messages), the bot repeats the question...
Read more >
Troubleshoot bot configuration issues - Bot Service
Bot doesn't work in Web Chat · Open the Overview pane. · Copy the Messaging endpoint and paste it into your browser.
Read more >
discord - Bot crashing immediately after sending an embed
EDIT: and as a side note the error originated where you called a new embed but didn't give any values for it. const...
Read more >
Issues with Flows and How to Resolve Them - ManyChat Help
To receive Previews of a certain flow you need to Opt-In to your bot first. · 3. · First of all, please note...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found