#377
New
Crash: Multiplayer removing cards from table.
Reported by Pandapaw on OCTGN · 03/05/2011 05:43:44
- Assigned to:
- jods
- Priority:
- Normal
- Status:
- New
- Category:
- None
- Version:
- 0.9.*
- Issue type:
- Bug
def destroy(card, x = 0, y = 0):
mute()
if card.deck == "Door":
card.moveTo(card.owner.piles['Door Discard pile'])
notify("{} destroys {}.".format(me, card))
if card.deck == "Treasure":
card.moveTo(card.owner.piles['Treasure Discard pile'])
notify("{} destroys {}.".format(me, card))
The game will randomly crash the host’s client when another player tries to use this function to remove a card from the table.
I’ve been able to duplicate another bug which I think is the same. If a player deals a stack of cards on the table and holds the shortcut key to for the function, after about removing 5-10 cards quickly the player’s client will crash. The host has been immune to this crash.
I have not been able to duplicate either case in single player or under lan running multiple instances.
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. —> System.NullReferenceException: Object reference not set to an instance of an object.- End of inner exception stack trace
at Octgn.Play.Gui.CardControl.TableKeyDown(Object source, TableKeyEventArgs te) in C:\OCTGN FX\Octgn\Play\Gui\CardControl.xaml.cs:line 780
--
at System.RuntimeMethodHandle._InvokeMethodFast(IRunt
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)
at System.Delegate.DynamicInvokeImpl(Object[] args)
at System.Windows.RoutedEventArgs.InvokeEventHandler(
at System.Windows.RoutedEventArgs.InvokeHandler(Deleg
at System.Windows.EventRoute.InvokeHandlersImpl(Objec
at System.Windows.UIElement.RaiseEventImpl(Dependency
at Octgn.Play.PlayWindow.OnKeyDown(KeyEventArgs e) in C:\OCTGN FX\Octgn\Play\PlayWindow.xaml.cs:line 219
at System.Windows.RoutedEventArgs.InvokeHandler(Deleg
at System.Windows.EventRoute.InvokeHandlersImpl(Objec
at System.Windows.UIElement.RaiseEventImpl(Dependency
at System.Windows.UIElement.RaiseTrustedEvent(RoutedE
at System.Windows.Input.InputManager.ProcessStagingAr
at System.Windows.Input.InputManager.ProcessInput(Inp
at System.Windows.Interop.HwndKeyboardInputProvider.R
at System.Windows.Interop.HwndKeyboardInputProvider.P
at System.Windows.Interop.HwndSource.CriticalTranslat
at System.Windows.Interop.HwndSource.OnPreprocessMess
at System.Windows.Threading.ExceptionWrapper.Internal
at MS.Internal.Threading.ExceptionFilterHelper.TryCat
at System.Windows.Threading.Dispatcher.WrappedInvoke(
at System.Windows.Threading.Dispatcher.InvokeImpl(Dis
at System.Windows.Threading.Dispatcher.Invoke(Dispatc
at System.Windows.Interop.HwndSource.OnPreprocessMess
at System.Windows.Interop.ComponentDispatcherThread.R
at System.Windows.Threading.Dispatcher.TranslateAndDi
at System.Windows.Threading.Dispatcher.PushFrameImpl(
at System.Windows.Application.RunInternal(Window window)
at System.Windows.Application.Run()
at Octgn.OctgnApp.Main() in C:\OCTGN FX\Octgn\obj\Debug\App.g.cs:line 0
The case where the client crashes shows a slightly different error report. I’ll try to get that later.
Attachments
No attachment has been uploaded, yet.
Loading comments...