BluNET - Home of Ultimate Twitch Bot

Ultimate Twitch Bot => Bug Reports & Suggestions => Topic started by: Raktus on August 22, 2015, 11:32:44 AM

Title: [Bug] Some Oddness
Post by: Raktus on August 22, 2015, 11:32:44 AM
So I got a script error today, was too busy to get the log unfortunately... but the result was that the Bot was trying to time someone out in the UTB Public chat.

<sagedoesminecrfat> Hey Come look At My Steram http://www.twitch.tv/kaitrickshot
<raktbot> /timeout sagedoesminecrfat 1
<sagedoesminecrfat> http://www.twitch.tv/kaitrickshot
<raktbot> /timeout sagedoesminecrfat 1
<raktbot> Wierd... is my bot trying to mod the UTB channel?
Title: Re: [Bug] Some Oddness
Post by: SeeingBlue on August 23, 2015, 09:48:32 PM
If you take a look under Tools > Options > Chat Filter you'll see where the moderation options are.

From your log I'm not convinced this was related to any crash. If you can manage to recreate the error please let me know how.
Title: Re: [Bug] Some Oddness
Post by: Raktus on August 25, 2015, 12:32:27 PM
The script error didn't crash me, so thats not a thing. The chat filter is set to default.

It happens every so often... when someone advertises their stream with a link in UTB Public chat my bot tries to time them out as if they were in my own stream.
Title: Re: [Bug] Some Oddness
Post by: LawlyPopzz on August 25, 2015, 02:22:05 PM
maybe if you upload your utb.db and seeingblue could take a look and see if it does the same for him??
Title: Re: [Bug] Some Oddness
Post by: K1ll3rBunny on August 25, 2015, 02:28:11 PM
I was able to re-create the bug/error. The error log is in the attachments.

The only difference I made in my Chat Filter,
(https://i.gyazo.com/4b95e7deeab3e2fd90800a7ba5f34e11.png)

Side Note
I put words in the "Full Wordlist" and it didn't try to moderate the UTB Public channel with those words (I used hi, hello, etc).

*EDIT*
So, I was able to continue using the bot normally as long as I didn't close the error log.. Once I closed the error log, the program then closed.
Title: Re: [Bug] Some Oddness
Post by: vertex101 on August 26, 2015, 05:45:30 PM
is this for v2 or v3 of utb ?
Title: Re: [Bug] Some Oddness
Post by: K1ll3rBunny on August 26, 2015, 07:38:04 PM
is this for v2 or v3 of utb ?

Mine happened while I was in UTB ver. 3.2.6, although I do not know about when it happened with Raktus.
Title: Re: [Bug] Some Oddness
Post by: Raktus on August 26, 2015, 08:31:29 PM
same
Title: Re: [Bug] Some Oddness
Post by: vertex101 on August 26, 2015, 09:04:51 PM
if you are trying to timeout people for links just put like .net .org .com .tv in the partial list and it should timeout that way
Title: Re: [Bug] Some Oddness
Post by: K1ll3rBunny on August 26, 2015, 09:10:57 PM
That wasn't the problem though.. The problem is the bot is trying to moderate the UTB public chat room.
Title: Re: [Bug] Some Oddness
Post by: SeeingBlue on August 27, 2015, 12:08:11 AM
I hear ya. I'll look into it.
Title: Re: [Bug] Some Oddness
Post by: vertex101 on August 27, 2015, 12:03:43 PM
That wasn't the problem though.. The problem is the bot is trying to moderate the UTB public chat room.

ohhhh i missed that part -facepalm-
Title: Re: [Bug] Some Oddness
Post by: Raktus on August 28, 2015, 01:12:13 PM
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.
   at System.Collections.Generic.Dictionary`2.get_Item(TKey key)
   at UltimateTwitchBot3.Subs.ChatFilter(String channel, String user, String message)
   at UltimateTwitchBot3.Main.irc_ChannelMessage(String Channel, String User, String Message)
   at TechLifeForum.IrcClient.Fire_ChannelMessage(oChannelMessage o)
   at TechLifeForum.IrcClient.<ParseData>b__a(Object x)


************** Loaded Assemblies **************
mscorlib
    Assembly Version: 4.0.0.0
    Win32 Version: 4.6.96.0 built by: NETFXREL2STAGE
    CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll
----------------------------------------
Ultimate Twitch Bot 3
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///C:/Users/Raktus/Desktop/Ultimate%20Twitch%20Bot%203/Ultimate%20Twitch%20Bot%203.exe
----------------------------------------
Microsoft.VisualBasic
    Assembly Version: 10.0.0.0
    Win32 Version: 14.6.79.0 built by: NETFXREL2
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/Microsoft.VisualBasic/v4.0_10.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dll
----------------------------------------
System
    Assembly Version: 4.0.0.0
    Win32 Version: 4.6.79.0 built by: NETFXREL2
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Core
    Assembly Version: 4.0.0.0
    Win32 Version: 4.6.79.0 built by: NETFXREL2
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
----------------------------------------
System.Windows.Forms
    Assembly Version: 4.0.0.0
    Win32 Version: 4.6.79.0 built by: NETFXREL2
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System.Drawing
    Assembly Version: 4.0.0.0
    Win32 Version: 4.6.79.0 built by: NETFXREL2
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System.Runtime.Remoting
    Assembly Version: 4.0.0.0
    Win32 Version: 4.6.79.0 built by: NETFXREL2
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Runtime.Remoting/v4.0_4.0.0.0__b77a5c561934e089/System.Runtime.Remoting.dll
----------------------------------------
System.Configuration
    Assembly Version: 4.0.0.0
    Win32 Version: 4.6.79.0 built by: NETFXREL2
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Xml
    Assembly Version: 4.0.0.0
    Win32 Version: 4.6.79.0 built by: NETFXREL2
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
System.Data.SQLite
    Assembly Version: 1.0.97.0
    Win32 Version: 1.0.97.0
    CodeBase: file:///C:/Users/Raktus/Desktop/Ultimate%20Twitch%20Bot%203/System.Data.SQLite.DLL
----------------------------------------
System.Data
    Assembly Version: 4.0.0.0
    Win32 Version: 4.6.79.0 built by: NETFXREL2
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_32/System.Data/v4.0_4.0.0.0__b77a5c561934e089/System.Data.dll
----------------------------------------
System.Transactions
    Assembly Version: 4.0.0.0
    Win32 Version: 4.6.79.0 built by: NETFXREL2
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_32/System.Transactions/v4.0_4.0.0.0__b77a5c561934e089/System.Transactions.dll
----------------------------------------
System.EnterpriseServices
    Assembly Version: 4.0.0.0
    Win32 Version: 4.6.79.0 built by: NETFXREL2
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_32/System.EnterpriseServices/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.EnterpriseServices.dll
----------------------------------------
System.Numerics
    Assembly Version: 4.0.0.0
    Win32 Version: 4.6.79.0 built by: NETFXREL2
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Numerics/v4.0_4.0.0.0__b77a5c561934e089/System.Numerics.dll
----------------------------------------
IrcClient
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///C:/Users/Raktus/Desktop/Ultimate%20Twitch%20Bot%203/IrcClient.DLL
----------------------------------------
Newtonsoft.Json
    Assembly Version: 6.0.0.0
    Win32 Version: 6.0.8.18111
    CodeBase: file:///C:/Users/Raktus/Desktop/Ultimate%20Twitch%20Bot%203/Newtonsoft.Json.DLL
----------------------------------------

************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.

For example:

<configuration>
    <system.windows.forms jitDebugging="true" />
</configuration>

When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.

Title: Re: [Bug] Some Oddness
Post by: SeeingBlue on August 28, 2015, 03:02:45 PM
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.
   at System.Collections.Generic.Dictionary`2.get_Item(TKey key)
   at UltimateTwitchBot3.Subs.ChatFilter(String channel, String user, String message)
   at UltimateTwitchBot3.Main.irc_ChannelMessage(String Channel, String User, String Message)
   at TechLifeForum.IrcClient.Fire_ChannelMessage(oChannelMessage o)
   at TechLifeForum.IrcClient.<ParseData>b__a(Object x)


************** Loaded Assemblies **************
mscorlib
    Assembly Version: 4.0.0.0
    Win32 Version: 4.6.96.0 built by: NETFXREL2STAGE
    CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll
----------------------------------------
Ultimate Twitch Bot 3
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///C:/Users/Raktus/Desktop/Ultimate%20Twitch%20Bot%203/Ultimate%20Twitch%20Bot%203.exe
----------------------------------------
Microsoft.VisualBasic
    Assembly Version: 10.0.0.0
    Win32 Version: 14.6.79.0 built by: NETFXREL2
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/Microsoft.VisualBasic/v4.0_10.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dll
----------------------------------------
System
    Assembly Version: 4.0.0.0
    Win32 Version: 4.6.79.0 built by: NETFXREL2
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Core
    Assembly Version: 4.0.0.0
    Win32 Version: 4.6.79.0 built by: NETFXREL2
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
----------------------------------------
System.Windows.Forms
    Assembly Version: 4.0.0.0
    Win32 Version: 4.6.79.0 built by: NETFXREL2
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System.Drawing
    Assembly Version: 4.0.0.0
    Win32 Version: 4.6.79.0 built by: NETFXREL2
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System.Runtime.Remoting
    Assembly Version: 4.0.0.0
    Win32 Version: 4.6.79.0 built by: NETFXREL2
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Runtime.Remoting/v4.0_4.0.0.0__b77a5c561934e089/System.Runtime.Remoting.dll
----------------------------------------
System.Configuration
    Assembly Version: 4.0.0.0
    Win32 Version: 4.6.79.0 built by: NETFXREL2
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Xml
    Assembly Version: 4.0.0.0
    Win32 Version: 4.6.79.0 built by: NETFXREL2
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
System.Data.SQLite
    Assembly Version: 1.0.97.0
    Win32 Version: 1.0.97.0
    CodeBase: file:///C:/Users/Raktus/Desktop/Ultimate%20Twitch%20Bot%203/System.Data.SQLite.DLL
----------------------------------------
System.Data
    Assembly Version: 4.0.0.0
    Win32 Version: 4.6.79.0 built by: NETFXREL2
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_32/System.Data/v4.0_4.0.0.0__b77a5c561934e089/System.Data.dll
----------------------------------------
System.Transactions
    Assembly Version: 4.0.0.0
    Win32 Version: 4.6.79.0 built by: NETFXREL2
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_32/System.Transactions/v4.0_4.0.0.0__b77a5c561934e089/System.Transactions.dll
----------------------------------------
System.EnterpriseServices
    Assembly Version: 4.0.0.0
    Win32 Version: 4.6.79.0 built by: NETFXREL2
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_32/System.EnterpriseServices/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.EnterpriseServices.dll
----------------------------------------
System.Numerics
    Assembly Version: 4.0.0.0
    Win32 Version: 4.6.79.0 built by: NETFXREL2
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Numerics/v4.0_4.0.0.0__b77a5c561934e089/System.Numerics.dll
----------------------------------------
IrcClient
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///C:/Users/Raktus/Desktop/Ultimate%20Twitch%20Bot%203/IrcClient.DLL
----------------------------------------
Newtonsoft.Json
    Assembly Version: 6.0.0.0
    Win32 Version: 6.0.8.18111
    CodeBase: file:///C:/Users/Raktus/Desktop/Ultimate%20Twitch%20Bot%203/Newtonsoft.Json.DLL
----------------------------------------

************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.

For example:

<configuration>
    <system.windows.forms jitDebugging="true" />
</configuration>

When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.

Gettin' a little confused here. I understand that your bot is trying to moderate the Public UTB Channel, but where does this error come from? How do I reproduce this?
Title: Re: [Bug] Some Oddness
Post by: vertex101 on August 28, 2015, 07:53:26 PM
i have done some searching on this error and this is what i found i dont know if it will help any or not

http://www.dotnetperls.com/keynotfoundexception

but from my understanding when you get this error it is because it is not finding the keyword that was being searched
Title: Re: [Bug] Some Oddness
Post by: SeeingBlue on August 28, 2015, 08:50:26 PM
i have done some searching on this error and this is what i found i dont know if it will help any or not

http://www.dotnetperls.com/keynotfoundexception

but from my understanding when you get this error it is because it is not finding the keyword that was being searched

Thanks. I actually understand this error all to well, but need to know how he's producing it.
Title: Re: [Bug] Some Oddness
Post by: Raktus on August 28, 2015, 09:50:37 PM
I just posted the log...
Title: Re: [Bug] Some Oddness
Post by: SeeingBlue on August 28, 2015, 10:57:16 PM
I just posted the log...

I know you posted the log but the log does not tell me how you produced this error. I need to know how you got this error. What did you do to cause it. I need to recreate the error in a debug environment so that I can fix it.
Title: Re: [Bug] Some Oddness
Post by: Raktus on August 29, 2015, 12:12:08 AM
Here's the thing... I don't do ANYTHING. That's what's so enfuriating about you suggestion that I don't give you any info. I keep the program up 24/7. I get these log's that tell me when something goes wrong, which happens ON ITS OWN. I post the log and you tell me that they are meaningless. Well, in that case feedback at all is meaningless. -_-
Title: Re: [Bug] Some Oddness
Post by: SeeingBlue on August 29, 2015, 11:27:04 AM
Here's the thing... I don't do ANYTHING. That's what's so enfuriating about you suggestion that I don't give you any info. I keep the program up 24/7. I get these log's that tell me when something goes wrong, which happens ON ITS OWN. I post the log and you tell me that they are meaningless. Well, in that case feedback at all is meaningless. -_-

You're putting words in my mouth. The logs are not meaningless, stop assuming. All you needed to say was that it's random. Now attach me a copy of your utb.db to this thread.
Title: Re: [Bug] Some Oddness
Post by: Raktus on August 30, 2015, 08:53:42 AM
.....
Title: Re: [Bug] Some Oddness
Post by: SeeingBlue on August 30, 2015, 12:49:57 PM
Ok, I believe I have this one fixed in the next update.