Bug #575

avatar

connection to smuxi-serer got lost --> reconnected --> smuxi is never updating the network anymore

Added by Bianca Mix 5033 days ago. Updated 5033 days ago.

Status:Closed Start:03/12/2011
Priority:Normal Due date:
Assigned to:avatarMirco Bauer % Done:

100%

Category:Frontend GNOME
Target version:0.8.9
Complexity:

Low

Found in Version:

Votes: 0

Description

The screenshot shows #smuxi @ freenode (IRC) although this should be OFTC (IRC). The network in status bar/title is never updated anymore.

The issue occurs when the following situation occurs:
smuxi frontend lost connection to the server
connection is reestablished again

afterwards the network is not updated anymore and is showing for all tabs - even by changing the tab - the same network.

Probably the issue is this:
13:08:17 <meebey> 2011-03-12 12:29:04,861 [SwitchPage] DEBUG TRACE - [smuxi-frontend-gnome.exe] Frontend.ShowException(parent = (null), ex = System.Runtime.Remoting.RemotingException)

Screenshot-_smuxi___freenode__IRC__-_Smuxi.png (181.1 KB) Bianca Mix, 03/12/2011 12:14 PM

Associated revisions

Revision 1fc7f04c2443761aaadd515ec6b554cc981e787e
Added by Mirco Bauer 5033 days ago

[Frontend-GNOME] Handle exceptions in SwitchPage thread. (closes: #575)

History

Updated by Mirco Bauer 5033 days ago

avatar
  • Complexity set to Low
Exception log:
2011-03-12 12:29:04,851 [FrontendManagerCheckerQueue] ERROR Smuxi.Frontend.Gnome.Frontend - Exception in TaskQueue: 
System.Runtime.Remoting.RemotingException: Tcp transport error.

Server stack trace: 
  at System.Runtime.Remoting.Channels.Tcp.TcpMessageIO.ReceiveMessageStatus (System.IO.Stream networkStream, System.Byte[] buffer) [0x00000] in <filename unknown>:0 
  at System.Runtime.Remoting.Channels.Tcp.TcpClientTransportSink.ProcessMessage (IMessage msg, ITransportHeaders requestHeaders, System.IO.Stream requestStream, ITransportHeaders& responseHeaders, System.IO.Stream& responseStream) [0x00000] in <filename unknown>:0 
  at System.Runtime.Remoting.Channels.BinaryClientFormatterSink.SyncProcessMessage (IMessage msg) [0x00000] in <filename unknown>:0 

Exception rethrown at [0]: 
 ---> System.IO.IOException: Read failure ---> System.Net.Sockets.SocketException: Connection reset by peer
  at System.Net.Sockets.Socket.Receive (System.Byte[] buffer, Int32 offset, Int32 size, SocketFlags flags) [0x00000] in <filename unknown>:0 
  at System.Net.Sockets.NetworkStream.Read (System.Byte[] buffer, Int32 offset, Int32 size) [0x00000] in <filename unknown>:0 
  --- End of inner exception stack trace ---
  at System.Net.Sockets.NetworkStream.Read (System.Byte[] buffer, Int32 offset, Int32 size) [0x00000] in <filename unknown>:0 
  at System.IO.BufferedStream.Read (System.Byte[] array, Int32 offset, Int32 count) [0x00000] in <filename unknown>:0 
  at System.Runtime.Remoting.Channels.Tcp.TcpMessageIO.StreamRead (System.IO.Stream networkStream, System.Byte[] buffer, Int32 count) [0x00000] in <filename unknown>:0 
  at System.Runtime.Remoting.Channels.Tcp.TcpMessageIO.ReceiveMessageStatus (System.IO.Stream networkStream, System.Byte[] buffer) [0x00000] in <filename unknown>:0 
  --- End of inner exception stack trace ---
  at System.Runtime.Remoting.Channels.Tcp.TcpMessageIO.ReceiveMessageStatus (System.IO.Stream networkStream, System.Byte[] buffer) [0x00000] in <filename unknown>:0 
  at System.Runtime.Remoting.Channels.Tcp.TcpClientTransportSink.ProcessMessage (IMessage msg, ITransportHeaders requestHeaders, System.IO.Stream requestStream, ITransportHeaders& responseHeaders, System.IO.Stream& responseStream) [0x00000] in <filename unknown>:0 
  at System.Runtime.Remoting.Channels.BinaryClientFormatterSink.SyncProcessMessage (IMessage msg) [0x00000] in <filename unknown>:0 
2011-03-12 12:29:04,858 [SwitchPage] DEBUG TRACE - [smuxi-frontend-gnome.exe] Notebook.OnSwitchPageQueueExceptionEvent(sender = Smuxi.Common.TaskQueue, e = Smuxi.Common.TaskQueueExceptionEventArgs)
2011-03-12 12:29:04,859 [SwitchPage] ERROR Smuxi.Frontend.Gnome.Notebook - Exception in TaskQueue: 
System.Runtime.Remoting.RemotingException: Tcp transport error.

Server stack trace: 
  at System.Runtime.Remoting.Channels.Tcp.TcpMessageIO.ReceiveMessageStatus (System.IO.Stream networkStream, System.Byte[] buffer) [0x00000] in <filename unknown>:0 
  at System.Runtime.Remoting.Channels.Tcp.TcpClientTransportSink.ProcessMessage (IMessage msg, ITransportHeaders requestHeaders, System.IO.Stream requestStream, ITransportHeaders& responseHeaders, System.IO.Stream& responseStream) [0x00000] in <filename unknown>:0 
  at System.Runtime.Remoting.Channels.BinaryClientFormatterSink.SyncProcessMessage (IMessage msg) [0x00000] in <filename unknown>:0 

Exception rethrown at [0]: 
 ---> System.IO.IOException: Read failure ---> System.Net.Sockets.SocketException: Connection reset by peer
  at System.Net.Sockets.Socket.Receive (System.Byte[] buffer, Int32 offset, Int32 size, SocketFlags flags) [0x00000] in <filename unknown>:0 
  at System.Net.Sockets.NetworkStream.Read (System.Byte[] buffer, Int32 offset, Int32 size) [0x00000] in <filename unknown>:0 
  --- End of inner exception stack trace ---
  at System.Net.Sockets.NetworkStream.Read (System.Byte[] buffer, Int32 offset, Int32 size) [0x00000] in <filename unknown>:0 
  at System.IO.BufferedStream.Read (System.Byte[] array, Int32 offset, Int32 count) [0x00000] in <filename unknown>:0 
  at System.Runtime.Remoting.Channels.Tcp.TcpMessageIO.StreamRead (System.IO.Stream networkStream, System.Byte[] buffer, Int32 count) [0x00000] in <filename unknown>:0 
  at System.Runtime.Remoting.Channels.Tcp.TcpMessageIO.ReceiveMessageStatus (System.IO.Stream networkStream, System.Byte[] buffer) [0x00000] in <filename unknown>:0 
  --- End of inner exception stack trace ---
  at System.Runtime.Remoting.Channels.Tcp.TcpMessageIO.ReceiveMessageStatus (System.IO.Stream networkStream, System.Byte[] buffer) [0x00000] in <filename unknown>:0 
  at System.Runtime.Remoting.Channels.Tcp.TcpClientTransportSink.ProcessMessage (IMessage msg, ITransportHeaders requestHeaders, System.IO.Stream requestStream, ITransportHeaders& responseHeaders, System.IO.Stream& responseStream) [0x00000] in <filename unknown>:0 
  at System.Runtime.Remoting.Channels.BinaryClientFormatterSink.SyncProcessMessage (IMessage msg) [0x00000] in <filename unknown>:0 
2011-03-12 12:29:04,859 [SwitchPage] ERROR Smuxi.Frontend.Gnome.Notebook - Inner-Exception: 
System.IO.IOException: Read failure ---> System.Net.Sockets.SocketException: Connection reset by peer
  at System.Net.Sockets.Socket.Receive (System.Byte[] buffer, Int32 offset, Int32 size, SocketFlags flags) [0x00000] in <filename unknown>:0 
  at System.Net.Sockets.NetworkStream.Read (System.Byte[] buffer, Int32 offset, Int32 size) [0x00000] in <filename unknown>:0 
  --- End of inner exception stack trace ---
  at System.Net.Sockets.NetworkStream.Read (System.Byte[] buffer, Int32 offset, Int32 size) [0x00000] in <filename unknown>:0 
  at System.IO.BufferedStream.Read (System.Byte[] array, Int32 offset, Int32 count) [0x00000] in <filename unknown>:0 
  at System.Runtime.Remoting.Channels.Tcp.TcpMessageIO.StreamRead (System.IO.Stream networkStream, System.Byte[] buffer, Int32 count) [0x00000] in <filename unknown>:0 
  at System.Runtime.Remoting.Channels.Tcp.TcpMessageIO.ReceiveMessageStatus (System.IO.Stream networkStream, System.Byte[] buffer) [0x00000] in <filename unknown>:0 
2011-03-12 12:29:04,860 [SwitchPage] DEBUG TRACE - [smuxi-frontend-gnome.exe] Frontend.ShowException(ex = System.Runtime.Remoting.RemotingException)
2011-03-12 12:29:04,860 [FrontendManagerCheckerQueue] ERROR Smuxi.Frontend.Gnome.Frontend - Inner-Exception: 
System.IO.IOException: Read failure ---> System.Net.Sockets.SocketException: Connection reset by peer
  at System.Net.Sockets.Socket.Receive (System.Byte[] buffer, Int32 offset, Int32 size, SocketFlags flags) [0x00000] in <filename unknown>:0 
  at System.Net.Sockets.NetworkStream.Read (System.Byte[] buffer, Int32 offset, Int32 size) [0x00000] in <filename unknown>:0 
  --- End of inner exception stack trace ---
  at System.Net.Sockets.NetworkStream.Read (System.Byte[] buffer, Int32 offset, Int32 size) [0x00000] in <filename unknown>:0 
  at System.IO.BufferedStream.Read (System.Byte[] array, Int32 offset, Int32 count) [0x00000] in <filename unknown>:0 
  at System.Runtime.Remoting.Channels.Tcp.TcpMessageIO.StreamRead (System.IO.Stream networkStream, System.Byte[] buffer, Int32 count) [0x00000] in <filename unknown>:0 
  at System.Runtime.Remoting.Channels.Tcp.TcpMessageIO.ReceiveMessageStatus (System.IO.Stream networkStream, System.Byte[] buffer) [0x00000] in <filename unknown>:0 
2011-03-12 12:29:04,860 [FrontendManagerCheckerQueue] DEBUG TRACE - [smuxi-frontend-gnome.exe] Frontend.ShowException(ex = System.Runtime.Remoting.RemotingException)
2011-03-12 12:29:04,861 [SwitchPage] DEBUG TRACE - [smuxi-frontend-gnome.exe] Frontend.ShowException(parent = (null), ex = System.Runtime.Remoting.RemotingException)
2011-03-12 12:29:04,861 [FrontendManagerCheckerQueue] DEBUG TRACE - [smuxi-frontend-gnome.exe] Frontend.ShowException(parent = (null), ex = System.Runtime.Remoting.RemotingException)
2011-03-12 12:29:04,862 [Main] DEBUG TRACE - [smuxi-frontend-gnome.exe] Frontend.ShowException(parent = Smuxi.Frontend.Gnome.MainWindow, ex = System.Runtime.Remoting.RemotingException)
2011-03-12 12:29:04,862 [Main] ERROR Smuxi.Frontend.Gnome.Frontend - ShowException(): Exception:
System.Runtime.Remoting.RemotingException: Tcp transport error.

Server stack trace: 
  at System.Runtime.Remoting.Channels.Tcp.TcpMessageIO.ReceiveMessageStatus (System.IO.Stream networkStream, System.Byte[] buffer) [0x00000] in <filename unknown>:0 
  at System.Runtime.Remoting.Channels.Tcp.TcpClientTransportSink.ProcessMessage (IMessage msg, ITransportHeaders requestHeaders, System.IO.Stream requestStream, ITransportHeaders& responseHeaders, System.IO.Stream& responseStream) [0x00000] in <filename unknown>:0 
  at System.Runtime.Remoting.Channels.BinaryClientFormatterSink.SyncProcessMessage (IMessage msg) [0x00000] in <filename unknown>:0 

Exception rethrown at [0]: 
 ---> System.IO.IOException: Read failure ---> System.Net.Sockets.SocketException: Connection reset by peer
  at System.Net.Sockets.Socket.Receive (System.Byte[] buffer, Int32 offset, Int32 size, SocketFlags flags) [0x00000] in <filename unknown>:0 
  at System.Net.Sockets.NetworkStream.Read (System.Byte[] buffer, Int32 offset, Int32 size) [0x00000] in <filename unknown>:0 
  --- End of inner exception stack trace ---
  at System.Net.Sockets.NetworkStream.Read (System.Byte[] buffer, Int32 offset, Int32 size) [0x00000] in <filename unknown>:0 
  at System.IO.BufferedStream.Read (System.Byte[] array, Int32 offset, Int32 count) [0x00000] in <filename unknown>:0 
  at System.Runtime.Remoting.Channels.Tcp.TcpMessageIO.StreamRead (System.IO.Stream networkStream, System.Byte[] buffer, Int32 count) [0x00000] in <filename unknown>:0 
  at System.Runtime.Remoting.Channels.Tcp.TcpMessageIO.ReceiveMessageStatus (System.IO.Stream networkStream, System.Byte[] buffer) [0x00000] in <filename unknown>:0 
  --- End of inner exception stack trace ---
  at System.Runtime.Remoting.Channels.Tcp.TcpMessageIO.ReceiveMessageStatus (System.IO.Stream networkStream, System.Byte[] buffer) [0x00000] in <filename unknown>:0 
  at System.Runtime.Remoting.Channels.Tcp.TcpClientTransportSink.ProcessMessage (IMessage msg, ITransportHeaders requestHeaders, System.IO.Stream requestStream, ITransportHeaders& responseHeaders, System.IO.Stream& responseStream) [0x00000] in <filename unknown>:0 
  at System.Runtime.Remoting.Channels.BinaryClientFormatterSink.SyncProcessMessage (IMessage msg) [0x00000] in <filename unknown>:0 
2011-03-12 12:29:04,862 [FrontendManagerCheckerQueue] DEBUG Smuxi.Frontend.Gnome.Frontend - _FrontendManagerCheckerQueue.AbortedEvent(): task queue aborted!
2011-03-12 12:29:04,863 [SwitchPage] DEBUG TRACE - [smuxi-frontend-gnome.exe] Notebook.OnSwitchPageQueueAbortedEvent(sender = Smuxi.Common.TaskQueue, e = System.EventArgs)
2011-03-12 12:29:04,863 [SwitchPage] DEBUG Smuxi.Frontend.Gnome.Notebook - OnSwitchPageQueueAbortedEvent(): task queue aborted!
2011-03-12 12:29:04,885 [Main] DEBUG TRACE - [smuxi-frontend-gnome.exe] Frontend.ShowException(parent = Smuxi.Frontend.Gnome.MainWindow, ex = System.Runtime.Remoting.RemotingException)
2011-03-12 12:29:04,885 [Main] ERROR Smuxi.Frontend.Gnome.Frontend - ShowException(): Exception:
System.Runtime.Remoting.RemotingException: Tcp transport error.

Server stack trace: 
  at System.Runtime.Remoting.Channels.Tcp.TcpMessageIO.ReceiveMessageStatus (System.IO.Stream networkStream, System.Byte[] buffer) [0x00000] in <filename unknown>:0 
  at System.Runtime.Remoting.Channels.Tcp.TcpClientTransportSink.ProcessMessage (IMessage msg, ITransportHeaders requestHeaders, System.IO.Stream requestStream, ITransportHeaders& responseHeaders, System.IO.Stream& responseStream) [0x00000] in <filename unknown>:0 
  at System.Runtime.Remoting.Channels.BinaryClientFormatterSink.SyncProcessMessage (IMessage msg) [0x00000] in <filename unknown>:0 

Exception rethrown at [0]: 
 ---> System.IO.IOException: Read failure ---> System.Net.Sockets.SocketException: Connection reset by peer
  at System.Net.Sockets.Socket.Receive (System.Byte[] buffer, Int32 offset, Int32 size, SocketFlags flags) [0x00000] in <filename unknown>:0 
  at System.Net.Sockets.NetworkStream.Read (System.Byte[] buffer, Int32 offset, Int32 size) [0x00000] in <filename unknown>:0 
  --- End of inner exception stack trace ---
  at System.Net.Sockets.NetworkStream.Read (System.Byte[] buffer, Int32 offset, Int32 size) [0x00000] in <filename unknown>:0 
  at System.IO.BufferedStream.Read (System.Byte[] array, Int32 offset, Int32 count) [0x00000] in <filename unknown>:0 
  at System.Runtime.Remoting.Channels.Tcp.TcpMessageIO.StreamRead (System.IO.Stream networkStream, System.Byte[] buffer, Int32 count) [0x00000] in <filename unknown>:0 
  at System.Runtime.Remoting.Channels.Tcp.TcpMessageIO.ReceiveMessageStatus (System.IO.Stream networkStream, System.Byte[] buffer) [0x00000] in <filename unknown>:0 
  --- End of inner exception stack trace ---
  at System.Runtime.Remoting.Channels.Tcp.TcpMessageIO.ReceiveMessageStatus (System.IO.Stream networkStream, System.Byte[] buffer) [0x00000] in <filename unknown>:0 
  at System.Runtime.Remoting.Channels.Tcp.TcpClientTransportSink.ProcessMessage (IMessage msg, ITransportHeaders requestHeaders, System.IO.Stream requestStream, ITransportHeaders& responseHeaders, System.IO.Stream& responseStream) [0x00000] in <filename unknown>:0 
  at System.Runtime.Remoting.Channels.BinaryClientFormatterSink.SyncProcessMessage (IMessage msg) [0x00000] in <filename unknown>:0 

2011-03-12 12:50:48,942 [Main] ERROR Smuxi.Frontend.Gnome.NotifyManager - DisposeNotification(): notification.Close() thew exception
System.Exception: org.freedesktop.DBus.GLib.UnmappedError.NotificationDaemonErrorQuark.Code100: 0 is not a valid notification ID
  at Notifications.INotificationsProxy.CloseNotification (UInt32 ) [0x00000] in <filename unknown>:0 
  at Notifications.Notification.Close () [0x00000] in <filename unknown>:0 
  at Smuxi.Frontend.Gnome.NotifyManager.DisposeNotification (Smuxi.Frontend.Gnome.ChatView chatView) [0x0002e] in /home/mix/Code/smuxi/src/Frontend-GNOME/NotifyManager.cs:334 
2011-03-12 12:53:03,697 [Main] ERROR Smuxi.Frontend.Gnome.NotifyManager - DisposeNotification(): notification.Close() thew exception
System.Exception: org.freedesktop.DBus.GLib.UnmappedError.NotificationDaemonErrorQuark.Code100: 0 is not a valid notification ID
  at Notifications.INotificationsProxy.CloseNotification (UInt32 ) [0x00000] in <filename unknown>:0 
  at Notifications.Notification.Close () [0x00000] in <filename unknown>:0 
  at Smuxi.Frontend.Gnome.NotifyManager.DisposeNotification (Smuxi.Frontend.Gnome.ChatView chatView) [0x0002e] in /home/mix/Code/smuxi/src/Frontend-GNOME/NotifyManager.cs:334 
2011-03-12 12:55:20,740 [Main] ERROR Smuxi.Frontend.Gnome.NotifyManager - DisposeNotification(): notification.Close() thew exception
System.Exception: org.freedesktop.DBus.GLib.UnmappedError.NotificationDaemonErrorQuark.Code100: 0 is not a valid notification ID
  at Notifications.INotificationsProxy.CloseNotification (UInt32 ) [0x00000] in <filename unknown>:0 
  at Notifications.Notification.Close () [0x00000] in <filename unknown>:0 
  at Smuxi.Frontend.Gnome.NotifyManager.DisposeNotification (Smuxi.Frontend.Gnome.ChatView chatView) [0x0002e] in /home/mix/Code/smuxi/src/Frontend-GNOME/NotifyManager.cs:334 
2011-03-12 12:55:57,789 [Main] ERROR Smuxi.Frontend.Gnome.NotifyManager - DisposeNotification(): notification.Close() thew exception
System.Exception: org.freedesktop.DBus.GLib.UnmappedError.NotificationDaemonErrorQuark.Code100: 0 is not a valid notification ID
  at Notifications.INotificationsProxy.CloseNotification (UInt32 ) [0x00000] in <filename unknown>:0 
  at Notifications.Notification.Close () [0x00000] in <filename unknown>:0 
  at Smuxi.Frontend.Gnome.NotifyManager.DisposeNotification (Smuxi.Frontend.Gnome.ChatView chatView) [0x0002e] in /home/mix/Code/smuxi/src/Frontend-GNOME/NotifyManager.cs:334

Looks like the SwitchPage thread is dying because of an unhandled remoting exception

Updated by Mirco Bauer 5033 days ago

avatar
  • Status changed from New to Closed
  • % Done changed from 0 to 100

Also available in: Atom PDF