Opened 10 years ago

Closed 10 years ago

Last modified 10 years ago

#531 closed Bug (fixed)

Sequence contains no elements failure in WorkspaceManager View

Reported by: no-reply@… Owned by: matkovic
Priority: Must have Milestone: CrypTool 2.0 BETA 9
Component: WorkspaceManager Keywords:
Cc:

Description

Title: Crash report
Exception at 01.02.2012 13:43:26 (UTC time).
User message:

-
Exception:
System.InvalidOperationException: Sequence contains no elements
   at System.Linq.Enumerable.Last[TSource](IEnumerable`1 source)
   at WorkspaceManager.View.VisualComponents.CryptoLineView.InternalCryptoLineView.OnHasComputedChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
   at System.Windows.DependencyObject.OnPropertyChanged(DependencyPropertyChangedEventArgs e)
   at System.Windows.FrameworkElement.OnPropertyChanged(DependencyPropertyChangedEventArgs e)
   at WorkspaceManager.View.VisualComponents.CryptoLineView.InternalCryptoLineView.OnPropertyChanged(DependencyPropertyChangedEventArgs e)
   at System.Windows.DependencyObject.NotifyPropertyChange(DependencyPropertyChangedEventArgs args)
   at System.Windows.DependencyObject.UpdateEffectiveValue(EntryIndex entryIndex, DependencyProperty dp, PropertyMetadata metadata, EffectiveValueEntry oldEntry, EffectiveValueEntry& newEntry, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType)
   at System.Windows.DependencyObject.SetValueCommon(DependencyProperty dp, Object value, PropertyMetadata metadata, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType, Boolean isInternal)
   at System.Windows.DependencyObject.SetValue(DependencyProperty dp, Object value)
   at WorkspaceManager.View.VisualComponents.CryptoLineView.InternalCryptoLineView.set_Model(ConnectionModel value)
   at WorkspaceManager.View.VisualComponents.CryptoLineView.InternalCryptoLineView..ctor(ConnectionModel connectionModel, BinConnectorVisual source, BinConnectorVisual target, ObservableCollection`1 visuals)
   at WorkspaceManager.View.VisualComponents.CryptoLineView.CryptoLineView..ctor(ConnectionModel model, BinConnectorVisual source, BinConnectorVisual target, ObservableCollection`1 visuals)
   at WorkspaceManager.View.BinVisual.BinEditorVisual.<>c__DisplayClass2.<internalLoad>b__1(Object )
   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.Application.RunDispatcher(Object ignore)
   at System.Windows.Application.RunInternal(Window window)
   at System.Windows.Application.Run(Window window)
   at Cryptool.CrypWin.App.Main()

-
System infos:
Operating System: Microsoft Windows NT 6.1.7601 Service Pack 1
Processors: 2
Administrative Rights: False
Current culture: en-US
CrypTool version: 2.0.4481.1
Installation type: NSIS
Build type: Beta
Build time: 26.01.2012 23:24:02
Product name: CrypTool 2.0 (Beta 7b - Build 4481.1)
Common language runtime version: 4.0.30319.239
System time: 14:43


Change History (4)

comment:1 Changed 10 years ago by kopal

Component: GeneralWorkspaceManager
Owner: changed from coredevs to matkovic
Status: newassigned
Summary: Crash report 2012-02-01Sequence contains no elements failure in WorkspaceManager View

Hi Viktor, kannst du dir das mal mit den Punkten da anschauen. Ich glaube, da sollte ein check rein, ob die Sequenz überhaupt Punkte enthält. Da du da eh im Moment noch dran arbeitest, kannst du das in dem Zuge ja mit prüfen/fixen und das Ticket hier dann schließen. Grüße Nils

comment:2 Changed 10 years ago by kopal

Priority: UnclassifiedMust have

comment:3 Changed 10 years ago by matkovic

Resolution: fixed
Status: assignedclosed

(In [4529]) fixes #545 , #537, #531, #520, #539, #429 [workspace] added a Context menu for lines, improvements on partial Line selection (buggy)

comment:4 Changed 10 years ago by Sven Rech

Milestone: CrypTool 2.0 BETA 8CrypTool 2.0 BETA 9

Milestone CrypTool 2.0 BETA 8 deleted

Note: See TracTickets for help on using tickets.