Bug #1006
OverflowException in agsXMPP.Xml.Xpnet.Encoding.setCharType()
Status: | New | Start: | 12/23/2014 | |
Priority: | Normal | Due date: | ||
Assigned to: | Mirco Bauer | % Done: | 0% |
|
Category: | Engine XMPP (Jabber) | |||
Target version: | 0.11.1 | |||
Complexity: | Medium |
Found in Version: | ||
Votes: | 0 |
Description
2014-12-23 17:35:49,957 [Main] ERROR Smuxi.Frontend.Gnome.Frontend - ShowException(): Exception: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.TypeInitializationException: An exception was thrown by the type initializer for agsXMPP.Xml.Xpnet.UTF8Encoding ---> System.TypeInitializationException: An exception was thrown by the type initializer for agsXMPP.Xml.Xpnet.Encoding ---> System.OverflowException: Number overflow. at agsXMPP.Xml.Xpnet.Encoding.setCharType (Char min, Char max, Int32 type) [0x00081] in /home/meebey/Projects/smuxi-stable/lib/agsxmpp/agsxmpp/Xml/Xpnet/Encoding.cs:3084 at agsXMPP.Xml.Xpnet.Encoding..cctor () [0x00132] in /home/meebey/Projects/smuxi-stable/lib/agsxmpp/agsxmpp/Xml/Xpnet/Encoding.cs:3101 --- End of inner exception stack trace --- at agsXMPP.Xml.Xpnet.UTF8Encoding..cctor () [0x0002a] in /home/meebey/Projects/smuxi-stable/lib/agsxmpp/agsxmpp/Xml/Xpnet/UTF8Encoding.cs:71 --- End of inner exception stack trace --- at agsXMPP.Xml.StreamParser..ctor () [0x00001] in /home/meebey/Projects/smuxi-stable/lib/agsxmpp/agsxmpp/Xml/StreamParser.cs:67 at agsXMPP.XmppConnection..ctor () [0x00076] in /home/meebey/Projects/smuxi-stable/lib/agsxmpp/agsxmpp/XmppConnection.cs:82 at agsXMPP.XmppClientConnection..ctor () [0x000dd] in /home/meebey/Projects/smuxi-stable/lib/agsxmpp/agsxmpp/XmppClientConnection.cs:594 at Smuxi.Engine.XmppProtocolManager..ctor (Smuxi.Engine.Session session) [0x0003c] in /home/meebey/Projects/smuxi-stable/src/Engine-XMPP/Protocols/Xmpp/XmppProtocolManager.cs:115 at (wrapper managed-to-native) System.Reflection.MonoCMethod:InternalInvoke (System.Reflection.MonoCMethod,object,object[],System.Exception&) at System.Reflection.MonoCMethod.InternalInvoke (System.Object obj, System.Object[] parameters) [0x00002] in /tmp/buildd/mono-3.2.8+dfsg/mcs/class/corlib/System.Reflection/MonoMethod.cs:537 --- End of inner exception stack trace --- at System.Reflection.MonoCMethod.InternalInvoke (System.Object obj, System.Object[] parameters) [0x00013] in /tmp/buildd/mono-3.2.8+dfsg/mcs/class/corlib/System.Reflection/MonoMethod.cs:543 at System.Reflection.MonoCMethod.DoInvoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x000a5] in /tmp/buildd/mono-3.2.8+dfsg/mcs/class/corlib/System.Reflection/MonoMethod.cs:528 at System.Reflection.MonoCMethod.Invoke (BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in /tmp/buildd/mono-3.2.8+dfsg/mcs/class/corlib/System.Reflection/MonoMethod.cs:556 at System.Activator.CreateInstance (System.Type type, BindingFlags bindingAttr, System.Reflection.Binder binder, System.Object[] args, System.Globalization.CultureInfo culture, System.Object[] activationAttributes) [0x00180] in /tmp/buildd/mono-3.2.8+dfsg/mcs/class/corlib/System/Activator.cs:301 at System.Activator.CreateInstance (System.Type type, System.Object[] args, System.Object[] activationAttributes) [0x00000] in /tmp/buildd/mono-3.2.8+dfsg/mcs/class/corlib/System/Activator.cs:232 at System.Activator.CreateInstance (System.Type type, System.Object[] args) [0x00000] in /tmp/buildd/mono-3.2.8+dfsg/mcs/class/corlib/System/Activator.cs:227 at Smuxi.Engine.ProtocolManagerFactory.CreateProtocolManager (Smuxi.Engine.ProtocolManagerInfoModel info, Smuxi.Engine.Session session) [0x0003d] in /home/meebey/Projects/smuxi-stable/src/Engine/Protocols/ProtocolManagerFactory.cs:160 at Smuxi.Engine.Session.CreateProtocolManager (System.String protocol) [0x00062] in /home/meebey/Projects/smuxi-stable/src/Engine/Session.cs:1528 at Smuxi.Engine.Session.Connect (Smuxi.Engine.ServerModel server, Smuxi.Engine.FrontendManager frontendManager) [0x00095] in /home/meebey/Projects/smuxi-stable/src/Engine/Session.cs:1460 at (wrapper remoting-invoke-with-check) Smuxi.Engine.Session:Connect (Smuxi.Engine.ServerModel,Smuxi.Engine.FrontendManager) at Smuxi.Frontend.Gnome.MenuWidget+<OnConnectActionActivated>c__AnonStorey0.<>m__0 (System.Object ) [0x00050] in /home/meebey/Projects/smuxi-stable/src/Frontend-GNOME/Views/MenuWidget.cs:231
History
Updated by Mirco Bauer 3651 days ago
private static void setCharType(char min, char max, int type) { int[] shared = null; do { if ((min & 0xFF) == 0) { for (; min + (char)0xFF <= max; min += (char)0x100) { if (shared == null) { shared = new int[256]; for (int i = 0; i < 256; i++) shared[i] = type; } charTypeTable[min >> 8] = shared; if (min + 0xFF == max) return; } } setCharType(min, type); } while (min++ != max); }