Bug #658
Connection looping with NullReferenceException on server
Status: | Feedback | Start: | 12/08/2011 | |
Priority: | Urgent | Due date: | ||
Assigned to: | Mirco Bauer | % Done: | 0% |
|
Category: | Engine IRC | |||
Target version: | - | |||
Complexity: | Found in Version: | git |
||
Votes: | 0 |
Description
Connecting to smuxi-server this morning seems to be triggering a null reference exception on the server. That in turn then causes the server to reconnect to the IRC server, after which it again crashed, over and over again until I killed it.
System.NullReferenceException: Object reference not set to an instance of an object at Smuxi.Engine.IrcProtocolManager._OnQueryNotice (System.Object sender, Meebey.SmartIrc4net.IrcEventArgs e) [0x00000] in <filename unknown>:0 at Meebey.SmartIrc4net.IrcClient._Event_NOTICE (Meebey.SmartIrc4net.IrcMessageData ircdata) [0x00000] in <filename unknown>:0 at Meebey.SmartIrc4net.IrcClient._HandleEvents (Meebey.SmartIrc4net.IrcMessageData ircdata) [0x00000] in <filename unknown>:0 at Meebey.SmartIrc4net.IrcClient._Worker (System.Object sender, Meebey.SmartIrc4net.ReadLineEventArgs e) [0x00000] in <filename unknown>:0 at (wrapper delegate-invoke) <Module>:invoke_void__this___object_ReadLineEventArgs (object,Meebey.SmartIrc4net.ReadLineEventArgs) at (wrapper delegate-invoke) <Module>:invoke_void__this___object_ReadLineEventArgs (object,Meebey.SmartIrc4net.ReadLineEventArgs) at Meebey.SmartIrc4net.IrcConnection.ReadLine (Boolean blocking) [0x00000] in <filename unknown>:0 at Meebey.SmartIrc4net.IrcConnection.Listen (Boolean blocking) [0x00000] in <filename unknown>:0 at Meebey.SmartIrc4net.IrcConnection.Listen () [0x00000] in <filename unknown>:0 at Smuxi.Engine.IrcProtocolManager._Listen () [0x00000] in <filename unknown>:0
Related issues
related to Smuxi - Feature #38 | send notices from users to channels and querys where useful | Closed |
Associated revisions
Revision e85b8d0ce1bb522a677495af7af773ab78beed01
[Engine-IRC] Fixed potential NullReferenceException in IrcProtocolManager._OnQueryNotice() (references: #658, #38)
History
Updated by Mirco Bauer 4763 days ago
- Category set to Engine IRC
- Assigned to set to Mirco Bauer
- Priority changed from Normal to Urgent
- Target version set to 0.8.9
Nice catch, you found a parser bug in the IRC lib. Though I will need the line that triggered it, with smuxi-server -d or smuxi-frontend-gnome -d it should log the that was received before the crash.
Could it be that you connect Smuxi to a bouncer or some other form of unusual IRC server? At least that is what likes to bend the IRC RFC or even violates it which the IRC lib is not so forgiveful about. Whatever the issue is, the IRC lib needs to cope with it in a non-exception way :-)
Updated by Mirco Bauer 4763 days ago
OK, I spotted a potential NullReferenceException in the code for group chats without users inside (like disabled chat after kick or connection loss). I will fix this one and this might solve the issue already for you.
Updated by Mirco Bauer 4763 days ago
Please try if e85b8d0ce1bb522a677495af7af773ab78beed01 fixes this for you
Updated by Mirco Bauer 4763 days ago
The LP bzr revision is 39 btw, see: http://bazaar.launchpad.net/~meebey/smuxi/head-mirror/revision/39
Updated by Mirco Bauer 4760 days ago
bzr revision 39 is now available as daily build, LP buildds were lagging behind for almost a day.
Updated by Mirco Bauer 4746 days ago
- Target version changed from 0.8.9 to 0.10
Updated by Mirco Bauer 4718 days ago
- Status changed from New to Feedback
Updated by Mirco Bauer 4044 days ago
- Target version deleted (
0.10)