Sending text or commands via Torch GUI chat causes application crash.
See original GitHub issueTorch Version: 1.1.207.007 SE Version: 1.182.019
Expected Behavior
The chat text should have been submitted and displayed to players on the server and in the console.
Observed Behavior
Torch crashed with lots of angry red text in the console. (console text pasted in the last section here)
Steps to Reproduce
- Run Torch and start a server.
- In the “Chat/Players” tab, put the cursor in the text field to the left of the “Send” button.
- Type some text or enter a command.
- Press the [Enter] key on the keyboard or click the “Send” button.
Other Information
Stacktrace: 20:48:02.3177 [FATAL] Torch: System.InvalidCastException: Unable to cast object of type ‘Microsoft.Windows.Themes.ClassicBorderDecorator’ to type ‘System.Windows.Controls.Border’. at Torch.Server.ChatControl.ChatHistory_CollectionChanged(Object sender, NotifyCollectionChangedEventArgs e) at Torch.ObservableList`1.OnCollectionChanged(NotifyCollectionChangedEventArgs e) at Torch.Managers.MultiplayerManager.SendMessage(String message, String author, Int64 playerId, String font) at Torch.Server.ChatControl.OnMessageEntered() at Torch.Server.ChatControl.Message_OnKeyDown(Object sender, KeyEventArgs e) at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target) at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs) at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised) at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args) at System.Windows.UIElement.RaiseTrustedEvent(RoutedEventArgs args) at System.Windows.Input.InputManager.ProcessStagingArea() at System.Windows.Input.InputManager.ProcessInput(InputEventArgs input) at System.Windows.Input.InputProviderSite.ReportInput(InputReport inputReport) at System.Windows.Interop.HwndKeyboardInputProvider.ReportInput(IntPtr hwnd, InputMode mode, Int32 timestamp, RawKeyboardActions actions, Int32 scanCode, Boolean isExtendedKey, Boolean isSystemKey, Int32 virtualKey) at System.Windows.Interop.HwndKeyboardInputProvider.ProcessKeyAction(MSG& msg, Boolean& handled) at System.Windows.Interop.HwndSource.CriticalTranslateAccelerator(MSG& msg, ModifierKeys modifiers) at System.Windows.Interop.HwndSource.OnPreprocessMessage(Object param) at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs) at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler) at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs) at System.Windows.Threading.Dispatcher.Invoke(DispatcherPriority priority, Delegate method, Object arg) at System.Windows.Interop.HwndSource.OnPreprocessMessageThunk(MSG& msg, Boolean& handled) at System.Windows.Interop.ComponentDispatcherThread.RaiseThreadMessage(MSG& msg) at System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame) at System.Windows.Window.ShowHelper(Object booleanBox) at System.Windows.Window.ShowDialog() at Torch.Server.Program.RunServer(TorchConfig config) at Torch.Server.Program.Main(String[] args)
Issue Analytics
- State:
- Created 6 years ago
- Comments:10 (2 by maintainers)
Top GitHub Comments
Yup. Doesn’t matter. Run the compatibility tool.
On Jul 28, 2017 2:04 PM, “kurazarrh” notifications@github.com wrote:
See #68, it appears to be an issue for people using the Windows Classic theme. Working on a fix.