Opened 11 years ago

Closed 10 years ago

Last modified 10 years ago

#211 closed Bug (fixed)

Transposition plugin crashes

Reported by: Sven Rech Owned by: weyers
Priority: Important Milestone: CrypTool 2.0 BETA 5
Component: Transposition Keywords:
Cc:

Description (last modified by Sven Rech)

This error seems to be not determinstic, but occurs sometimes, when you start and stop the transpositon plugin several times with altering input.

System.IndexOutOfRangeException was unhandled
  Message=Index was outside the bounds of the array.
  Source=Transposition
  StackTrace:
       at Transposition.TranspositionPresentation.readIn() in C:\Users\sven\Desktop\CrypTool2\CrypPlugins\Transposition\TranspositionPresentation.xaml.cs:line 581
       at Transposition.TranspositionPresentation.my_Help4(Object sender, EventArgs e) in C:\Users\sven\Desktop\CrypTool2\CrypPlugins\Transposition\TranspositionPresentation.xaml.cs:line 548
       at System.Windows.Media.Animation.Clock.FireEvent(EventPrivateKey key)
       at System.Windows.Media.Animation.Clock.RaiseAccumulatedEvents()
       at System.Windows.Media.Animation.TimeManager.RaiseEnqueuedEvents()
       at System.Windows.Media.Animation.TimeManager.Tick()
       at System.Windows.Media.MediaContext.RenderMessageHandlerCore(Object resizedCompositionTarget)
       at System.Windows.Media.MediaContext.AnimatedRenderMessageHandler(Object resizedCompositionTarget)
       at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
       at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)
       at System.Windows.Threading.DispatcherOperation.InvokeImpl()
       at System.Windows.Threading.DispatcherOperation.InvokeInSecurityContext(Object state)
       at System.Threading.ExecutionContext.runTryCode(Object userData)
       at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)
       at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx)
       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
       at System.Windows.Threading.DispatcherOperation.Invoke()
       at System.Windows.Threading.Dispatcher.ProcessQueue()
       at System.Windows.Threading.Dispatcher.WndProcHook(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
       at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
       at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
       at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
       at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)
       at System.Windows.Threading.Dispatcher.InvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
       at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
       at MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg)
       at System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)
       at System.Windows.Threading.Dispatcher.PushFrame(DispatcherFrame frame)
       at System.Windows.Threading.Dispatcher.Run()
       at System.Windows.Application.RunDispatcher(Object ignore)
       at System.Windows.Application.RunInternal(Window window)
       at System.Windows.Application.Run(Window window)
       at System.Windows.Application.Run()
       at Cryptool.CrypWin.App.Main() in C:\Users\sven\Desktop\CrypTool2\CoreDeveloper\CrypWin\obj\x86\Debug\App.g.cs:line 0
       at System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args)
       at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
       at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
       at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx)
       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
       at System.Threading.ThreadHelper.ThreadStart()
  InnerException: 

The index which is out of bound is "outcount1" (see attached image)

Attachments (1)

TranspositionFehler.png (44.3 KB) - added by Sven Rech 11 years ago.

Download all attachments as: .zip

Change History (8)

Changed 11 years ago by Sven Rech

Attachment: TranspositionFehler.png added

comment:1 Changed 11 years ago by Sven Rech

Description: modified (diff)

comment:2 Changed 11 years ago by weyers

Owner: changed from coredevs to weyers
Status: newaccepted

comment:3 Changed 11 years ago by Matthäus Wander

We will release Beta 4 despite the error and fix it afterwards.

comment:4 Changed 11 years ago by Matthäus Wander

Milestone: CrypTool 2.0 BETA 4CrypTool 2.0 BETA 5

Bug won't be fixed directly, instead Julian will completely redesign the code of TranspositionPresentation which should implicitly fix any problems. Postponed to Beta 5.

comment:5 Changed 11 years ago by Matthäus Wander

Component: GeneralTransposition

comment:6 Changed 10 years ago by weyers

Resolution: fixed
Status: acceptedclosed

The redesignment is completed, it seems like the bug doesn't accure any longer. PlugIn now stable.

comment:7 Changed 10 years ago by Matthäus Wander

Thanks!

Note: See TracTickets for help on using tickets.