zD12 / galaxium

Automatically exported from code.google.com/p/galaxium
0 stars 0 forks source link

Crash in IRC when sending a long message #395

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Sorry, no time to fix it myself.. :)

2009/06/08 17:28:53 [ERROR] [GLibLogging.OnUnhandledException] Unhandled
exception in GLib event handler.
ArgumentOutOfRangeException: startIndex + length > this.length
Parameter name: length
  at System.String.Substring (Int32 startIndex, Int32 length) [0x00085] in
/home/jury/Plocha/mono/mono-2.4/mcs/class/corlib/System/String.cs:370 
  at Galaxium.Protocol.Irc.IrcProtocolHelper.SplitMessage (System.String
message, Int32 size) [0x00020] in
/home/jury/Projects/galaxium/src/Protocols/Galaxium.Protocol.Irc/IrcProtocolHelp
er.cs:43

  at Galaxium.Protocol.Irc.IrcSession.SendMessage (System.String command,
System.String target, System.String message, Boolean checkLength) [0x00029]
in
/home/jury/Projects/galaxium/src/Protocols/Galaxium.Protocol.Irc/IrcSession.cs:4
14

  at Galaxium.Protocol.Irc.IrcSession.SendMessage (System.String command,
System.String target, System.String message) [0x00000] in
/home/jury/Projects/galaxium/src/Protocols/Galaxium.Protocol.Irc/IrcSession.cs:4
06

  at Galaxium.Protocol.Irc.IrcSession.SendMessage (System.String channel,
System.String message) [0x00000] in
/home/jury/Projects/galaxium/src/Protocols/Galaxium.Protocol.Irc/IrcSession.cs:3
65

  at Galaxium.Protocol.Irc.IrcConversation.SendMessage (System.String
message) [0x00072] in
/home/jury/Projects/galaxium/src/Protocols/Galaxium.Protocol.Irc/IrcConversation
.cs:287

  at Galaxium.Protocol.Irc.GtkGui.IrcChatWidget.MessageEntryTextSubmitted
(System.Object sender, Galaxium.Gui.GtkGui.SubmitTextEventArgs args)
[0x000a5] in
/home/jury/Projects/galaxium/src/Protocols/Galaxium.Protocol.Irc.Gtk/IrcChatWidg
et.cs:408

  at Galaxium.Gui.GtkGui.MessageEntryWidget.OnTextSubmitted
(Galaxium.Gui.GtkGui.SubmitTextEventArgs args) [0x0000b] in
/home/jury/Projects/galaxium/src/Galaxium.Gui.Gtk/Widgets/MessageEntryWidget.cs:
570

  at Galaxium.Gui.GtkGui.MessageEntryWidget.OnKeyPressEvent (Gdk.EventKey
evnt) [0x00181] in
/home/jury/Projects/galaxium/src/Galaxium.Gui.Gtk/Widgets/MessageEntryWidget.cs:
398

  at Gtk.Widget.keypressevent_cb (IntPtr widget, IntPtr evnt) [0x00000] 
2009/06/08 17:28:53 [FATAL] [MainWindow.<ExecuteEntryPoint>m__10] Uncaught
GLib exception.
ArgumentOutOfRangeException: startIndex + length > this.length
Parameter name: length
  at System.String.Substring (Int32 startIndex, Int32 length) [0x00085] in
/home/jury/Plocha/mono/mono-2.4/mcs/class/corlib/System/String.cs:370 
  at Galaxium.Protocol.Irc.IrcProtocolHelper.SplitMessage (System.String
message, Int32 size) [0x00020] in
/home/jury/Projects/galaxium/src/Protocols/Galaxium.Protocol.Irc/IrcProtocolHelp
er.cs:43

  at Galaxium.Protocol.Irc.IrcSession.SendMessage (System.String command,
System.String target, System.String message, Boolean checkLength) [0x00029]
in
/home/jury/Projects/galaxium/src/Protocols/Galaxium.Protocol.Irc/IrcSession.cs:4
14

  at Galaxium.Protocol.Irc.IrcSession.SendMessage (System.String command,
System.String target, System.String message) [0x00000] in
/home/jury/Projects/galaxium/src/Protocols/Galaxium.Protocol.Irc/IrcSession.cs:4
06

  at Galaxium.Protocol.Irc.IrcSession.SendMessage (System.String channel,
System.String message) [0x00000] in
/home/jury/Projects/galaxium/src/Protocols/Galaxium.Protocol.Irc/IrcSession.cs:3
65

  at Galaxium.Protocol.Irc.IrcConversation.SendMessage (System.String
message) [0x00072] in
/home/jury/Projects/galaxium/src/Protocols/Galaxium.Protocol.Irc/IrcConversation
.cs:287

  at Galaxium.Protocol.Irc.GtkGui.IrcChatWidget.MessageEntryTextSubmitted
(System.Object sender, Galaxium.Gui.GtkGui.SubmitTextEventArgs args)
[0x000a5] in
/home/jury/Projects/galaxium/src/Protocols/Galaxium.Protocol.Irc.Gtk/IrcChatWidg
et.cs:408

  at Galaxium.Gui.GtkGui.MessageEntryWidget.OnTextSubmitted
(Galaxium.Gui.GtkGui.SubmitTextEventArgs args) [0x0000b] in
/home/jury/Projects/galaxium/src/Galaxium.Gui.Gtk/Widgets/MessageEntryWidget.cs:
570

  at Galaxium.Gui.GtkGui.MessageEntryWidget.OnKeyPressEvent (Gdk.EventKey
evnt) [0x00181] in
/home/jury/Projects/galaxium/src/Galaxium.Gui.Gtk/Widgets/MessageEntryWidget.cs:
398

  at Gtk.Widget.keypressevent_cb (IntPtr widget, IntPtr evnt) [0x00000] 

Original issue reported on code.google.com by Zarevucky.Jiri on 8 Jun 2009 at 3:31

GoogleCodeExporter commented 9 years ago
Wonderful, I thought I cleared that up. I will fix it later tonight if I can 
get time.

You were using the IRC protocol! WICKED! :D

Original comment by dra...@gmail.com on 10 Jun 2009 at 5:37