Closed MrDKOz closed 6 years ago
I will look into this issue tonight and get a fix out ASAP since it's kind of a big deal.
@swiftyspiffy Thank you, if there's anymore data you need let me know as it's not hard to replicate.
@swiftyspiffy Has a fix been found for this issue as of yet?
Sorry about the delay, looking into this now.
@MrDTuring If you happen to have the IRC string for your OnBeingHosted notification, that'd be useful. I know there's at least 2 different ones that need to be handled.
@swiftyspiffy I don't have it to hand. I can download the source and see if I can get it though.
@MrDTuring Subscribe to the OnLog event, and see if you can collect the IRC string when you get hosted from that event. The OnLog event fires before any twitch irc parsing is performed, so you should be able to get access to it (print it to the console?) before the app crashes.
@swiftyspiffy Okay so here's what I got:
Received: :jtv!jtv@jtv.tmi.twitch.tv PRIVMSG mrdturingtest :mrdturingdebug is now hosting you for up to 3 viewers.
It looks like line 22 in BeingHostedNotifcation, splits the message on the spaces, and then tries to extract the number of users, but is using the wrong index.
I've attached a screenshot of the error, this should be enough information :)
Yup, I knew it was that line, but I wasn't sure what the message was that was being parsed. Awesome, this will help a lot.
@swiftyspiffy Awesome. I assume'd you know, but I didn't want to just skip over that line just in case :)
@MrDTuring Give it a go now :)
@swiftyspiffy looks good! Any idea when the Nuget Packages will adopt this change?
@MrDTuring Will have to talk to the other members, but hopefully soon (a few days?).
@swiftyspiffy sounds good, thanks for your help 👍
Still crashes on hosts over 1 viewer, hoping this would fix it but it doesn't
Shit. Can you paste the IRC code that is received when you get a host? You can get it by listening to the OnLog event, and printing out e.Data I think.
I've been trying to trace this for a while but my brain doesn't work enough sometimes, I don't personally use my program, and when I stream I don't get multiple viewer hosts, luckily my friend who I made it for is extremely patient.
I've tried using logging to files, which ended up getting file access issues... I'm going to just make it open a console and ask him to screenshot it when it happens.
I'll get back to you as soon as I get something.
Excellent, and sorry about the issues! Will get right on it as soon as you respond with them!
I published the new version to my friend with logging as you asked with the OnLog + e.Data Literally 2 minutes later he got raided with 6 viewers... perfect timing. 10 seconds after I pointed out that my debugging attempts yesterday were trash...
His screenshot:
Last lines of the log file before crashing:
[2018-05-29T11:02:06] Received: @badges=moderator/1,subscriber/0,sub-gifter/1;color=#1E90FF;display-name=LeafyDev;emotes=425618:33-35;id=9ca742d3-a4b1-410e-b1ea-f1d75fcc9ec3;mod=1;room-id=124788407;subscriber=1;tmi-sent-ts=1527591723404;turbo=0;user-id=42251884;user-type=mod :leafydev!leafydev@leafydev.tmi.twitch.tv PRIVMSG #cloudy95 :time flies when your bot crashes LUL
[2018-05-29T11:02:06] Unaccounted for: @badges=moderator/1,subscriber/0,sub-gifter/1;color=#1E90FF;display-name=LeafyDev;emotes=425618:33-35;id=9ca742d3-a4b1-410e-b1ea-f1d75fcc9ec3;mod=1;room-id=124788407;subscriber=1;tmi-sent-ts=1527591723404;turbo=0;user-id=42251884;user-type=mod :leafydev!leafydev@leafydev.tmi.twitch.tv PRIVMSG #cloudy95 :time flies when your bot crashes LUL
[2018-05-29T11:02:16] Received: @badges=;color=#8A2BE2;display-name=xxkenshiraxx;emotes=;id=71e53c48-d53c-486a-a468-b5a4487db57f;login=xxkenshiraxx;mod=0;msg-id=raid;msg-param-displayName=xxkenshiraxx;msg-param-login=xxkenshiraxx;msg-param-viewerCount=8;room-id=124788407;subscriber=0;system-msg=8\sraiders\sfrom\sxxkenshiraxx\shave\sjoined\n!;tmi-sent-ts=1527591733012;turbo=0;user-id=19641086;user-type= :tmi.twitch.tv USERNOTICE #cloudy95
[2018-05-29T11:02:16] Received: :jtv!jtv@jtv.tmi.twitch.tv PRIVMSG cloudy95 :xxkenshiraxx is now hosting you for up to 6 viewers.
Excellent, that's exactly what I needed. Working on it now.
@LeafyDev Can I know what version/code you're using? Is it the latest Github code, or the latest nuget package?
Latest NuGet, 2.1.3
I'm just using the client, using only the message received / disconnected and channeljoined. Which is why the hosting crash was intriguing.
I can provide code if needed.
@LeafyDev if you want to give the latest github code a try. Added some additional checks there.
Dang, wish I got the email sooner, will do for tomorrow morning (GMT+2)
On Wed, 30 May 2018, 00:01 Cole, notifications@github.com wrote:
@LeafyDev https://github.com/LeafyDev if you want to give the latest github code a try. Added some additional checks there.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/TwitchLib/TwitchLib.Client/issues/39#issuecomment-392960544, or mute the thread https://github.com/notifications/unsubscribe-auth/ABnVrbew5YdPjr3dJpKZTxCfCcXEDiCcks5t3cVPgaJpZM4UDgGS .
Sounds good, let me know :)
Just spent an hour with dependency issues, got rid of Fody/Costura and it's working.........
It's currently running live on GitHub code, now we just wait for a host I guess...
Just hosted with 4 times myself, working now, no crash.
Excellent! That's awesome to hear! I'll go ahead and close this. Feel free to reopen.
Hi,
Whenever another user hosts my channel, I get the following error:
Here's the stack trace: