Free cookie consent management tool by TermsFeed Policy Generator

Opened 12 years ago

Closed 10 years ago

#1409 closed defect (worksforme)

An exception is thrown when modifying the collected values of a VariableCreator

Reported by: abeham Owned by: mkommend
Priority: high Milestone:
Component: Operators.Views.OperatorGraphVisualization Version: 3.3.2
Keywords: Cc:

Description (last modified by abeham)

Steps to reproduce in the Optimizer:

  1. Create a new SimulatedAnnealing algorithm
  2. Convert it into a UserDefinedAlgorithm
  3. In the converted algorithm go to the "Operator Graph" tab
  4. Select the operator called "Initialize EvaluatedMoves"
  5. Try to remove the parameter "EvaluatedMoves" there
  6. Following exception is thrown
System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.
   at System.Collections.Generic.Dictionary`2.get_Item(TKey key)
   at HeuristicLab.Operators.Views.GraphVisualization.BidirectionalLookup`2.GetBySecond(TSecond secondValue)
   at HeuristicLab.Operators.Views.GraphVisualization.OperatorGraphVisualizationInfo.Parameters_ItemsRemoved(Object sender, CollectionItemsChangedEventArgs`1 e)
   at HeuristicLab.Collections.CollectionItemsChangedEventHandler`1.Invoke(Object sender, CollectionItemsChangedEventArgs`1 e)
   at HeuristicLab.Collections.ReadOnlyObservableKeyedCollection`2.OnItemsRemoved(IEnumerable`1 items)
   at HeuristicLab.Collections.ReadOnlyObservableKeyedCollection`2.collection_ItemsRemoved(Object sender, CollectionItemsChangedEventArgs`1 e)
   at HeuristicLab.Collections.ObservableKeyedCollection`2.OnItemsRemoved(IEnumerable`1 items)
   at HeuristicLab.Core.NamedItemCollection`1.OnItemsRemoved(IEnumerable`1 items)
   at HeuristicLab.Collections.ObservableKeyedCollection`2.RemoveRange(IEnumerable`1 collection)
   at HeuristicLab.Operators.ValuesCollector.collectedValues_ItemsRemoved(Object sender, CollectionItemsChangedEventArgs`1 e)
   at HeuristicLab.Collections.CollectionItemsChangedEventHandler`1.Invoke(Object sender, CollectionItemsChangedEventArgs`1 e)
   at HeuristicLab.Collections.ObservableKeyedCollection`2.OnItemsRemoved(IEnumerable`1 items)
   at HeuristicLab.Core.NamedItemCollection`1.OnItemsRemoved(IEnumerable`1 items)
   at HeuristicLab.Collections.ObservableKeyedCollection`2.Remove(TItem item)
   at HeuristicLab.Core.Views.ItemCollectionView`1.removeButton_Click(Object sender, EventArgs e)

It works when creating a new UserDefinedAlgorithm from scratch, adding a VariableCreator, adding a collected value and removing that again. Seems like something gets lost, or is not initialized when converting an existing algorithm to a user-defined algorithm.

Change History (2)

comment:1 Changed 12 years ago by abeham

  • Description modified (diff)

comment:2 Changed 10 years ago by abeham

  • Milestone HeuristicLab 3.3.x Backlog deleted
  • Resolution set to worksforme
  • Status changed from new to closed

Not reproducible anymore

Note: See TracTickets for help on using tickets.