lemon-sh / ircrarria Goto Github PK
View Code? Open in Web Editor NEWA very simple IRC<->Terraria chat bridge for TShock.
License: GNU General Public License v3.0
A very simple IRC<->Terraria chat bridge for TShock.
License: GNU General Public License v3.0
nhandled exception
System.UnhandledExceptionEventArgs
[Server API] Error ===================================================================================
[Server API] Error An unhandled exception has occured in TSAPI, and a crash report will be generated
[Server API] Error Generating a crash report, please wait...
[Server API] Error Could not generate a crash report.
[Server API] Error Please upload the crash file and report it at http://tshock.co/
[Server API] Error The process will terminate.
[Server API] Error ===================================================================================
================
1/25/2023 1:31:24 PM: Unhandled Exception
Thread: 12 []
Culture: en-US
Exception: System.ArgumentOutOfRangeException: Length cannot be less than zero. (Parameter 'length')
at System.String.Substring(Int32 startIndex, Int32 length)
at IRCrarria.IrcClient.ParsedCommand.Parse(String input)
at IRCrarria.IrcClient.Start()
at IRCrarria.IRCrarria.<OnPostInitialize>b__22_0(Object _)
at System.Threading.Thread.StartHelper.Callback(Object state)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
--- End of stack trace from previous location ---
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.Thread.StartCallback()
HResult: -2146233086
================
Saving world...
Saving world data:
alidating world save:
Backing up world file
World saved.
Unhandled exception. System.ArgumentOutOfRangeException: Length cannot be less than zero. (Parameter 'length')
at System.String.Substring(Int32 startIndex, Int32 length)
at IRCrarria.IrcClient.ParsedCommand.Parse(String input)
at IRCrarria.IrcClient.Start()
at IRCrarria.IRCrarria.<OnPostInitialize>b__22_0(Object _)
at System.Threading.Thread.StartHelper.Callback(Object state)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
--- End of stack trace from previous location ---
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.Thread.StartCallback()
[1] 7495 abort ./TShock.Server
System.InvalidOperationException: Operation is not valid due to the current state of the object.
at Mono.Net.Security.AsyncProtocolRequest.InnerRead (System.Threading.CancellationToken cancellationToken) [0x000cd] in <3d97dda773a54430b892e1d794e5d921>:0
at Mono.Net.Security.AsyncProtocolRequest.ProcessOperation (System.Threading.CancellationToken cancellationToken) [0x00093] in <3d97dda773a54430b892e1d794e5d921>:0
at Mono.Net.Security.AsyncProtocolRequest.StartOperation (System.Threading.CancellationToken cancellationToken) [0x0008b] in <3d97dda773a54430b892e1d794e5d921>:0
at Mono.Net.Security.MobileAuthenticatedStream.AuthenticateAsClient (System.String targetHost, System.Security.Cryptography.X509Certificates.X509CertificateCollection clientCertificates, System.Security.Authentication.SslProtocols enabledSslProtocols, System.Boolean checkCertificateRevocation) [0x0004b] in <3d97dda773a54430b892e1d794e5d921>:0
at (wrapper remoting-invoke-with-check) Mono.Net.Security.MobileAuthenticatedStream.AuthenticateAsClient(string,System.Security.Cryptography.X509Certificates.X509CertificateCollection,System.Security.Authentication.SslProtocols,bool)
at System.Net.Security.SslStream.AuthenticateAsClient (System.String targetHost, System.Security.Cryptography.X509Certificates.X509CertificateCollection clientCertificates, System.Security.Authentication.SslProtocols enabledSslProtocols, System.Boolean checkCertificateRevocation) [0x00006] in <3d97dda773a54430b892e1d794e5d921>:0
at System.Net.Security.SslStream.AuthenticateAsClient (System.String targetHost) [0x00007] in <3d97dda773a54430b892e1d794e5d921>:0
at IrcDotNet.StandardIrcClient.GetDataStream (System.Boolean useSsl, System.String targetHost) [0x00020] in <ed7eaffe2fcc4c6ea20ec5fa81278eb7>:0
at IrcDotNet.StandardIrcClient.ConnectCompleted (System.Object sender, System.Net.Sockets.SocketAsyncEventArgs e) [0x0005b] in <ed7eaffe2fcc4c6ea20ec5fa81278eb7>:0
at System.Net.Sockets.SocketAsyncEventArgs.OnCompleted (System.Net.Sockets.SocketAsyncEventArgs e) [0x0000e] in <3d97dda773a54430b892e1d794e5d921>:0
at System.Net.Sockets.SocketAsyncEventArgs.Complete_internal () [0x00009] in <3d97dda773a54430b892e1d794e5d921>:0
at System.Net.Sockets.Socket+<>c.<.cctor>b__366_6 (System.IAsyncResult ares) [0x00057] in <3d97dda773a54430b892e1d794e5d921>:0
at System.Net.Sockets.SocketAsyncResult+<>c.<Complete>b__27_0 (System.Object state) [0x0000b] in <3d97dda773a54430b892e1d794e5d921>:0
at System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem () [0x00008] in <03536ee47e5c4ceba0005cfa8de28fe9>:0
at System.Threading.ThreadPoolWorkQueue.Dispatch () [0x00074] in <03536ee47e5c4ceba0005cfa8de28fe9>:0
at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback () [0x00000] in <03536ee47e5c4ceba0005cfa8de28fe9>:0
Tried this on two different networks (Libera and Rizon).
I'm using NixOS unstable, mono 6.12.0.90, TShock 4.5.5.
I get this exception from time to time:
[Server API] Warning Plugin "IRCrarria" has had an unhandled exception thrown by one of its ServerLeave handlers:
System.NullReferenceException: Object reference not set to an instance of an object
at IRCrarria.IRCrarria.OnLeave (TerrariaApi.Server.LeaveEventArgs args) [0x00021] in <a693c28872ab49038b852c39b298eea0>:0
at TerrariaApi.Server.HandlerCollection`1[ArgsType].Invoke (ArgsType args) [0x0004d] in <4ef9d64f26f14dbd93f29814fd475187>:0
Nothing else in the log seems to indicate a cause.
I think this would be solved by adding some checks in OnJoin
and OnLeave
, like it's done here.
Could be user error, but could not get this to work with the latest version of tshock
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.