Git Product home page Git Product logo

ircrarria's People

Contributors

lemon-sh avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

ircrarria's Issues

Crash when someone sends message in IRC channel

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

Exception when trying to use TLS

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.

NullReferenceException in OnLeave handler

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.

Doesn't support 5.1.3.

Could be user error, but could not get this to work with the latest version of tshock

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.