Opened 10 years ago

Closed 10 years ago

Last modified 10 years ago

#181 closed Bug (fixed)

WorkspaceManager Crashes

Reported by: Arno Wacker Owned by: kopal
Priority: Must have Milestone: CrypTool 2.0 BETA 4
Component: WorkspaceManager Keywords:
Cc:

Description (last modified by kopal)

How to reproduce:

  • Create a simple workspace containing TextInput, Caesar and TextOutput.
  • Open TextInput and TextOutput, but leave them empty
  • Connect the string output of the input to the Caesar input and the string output of the caesar to the object input of the TextOutput
  • Press play
  • Try to type something into the Input.

Expected: See the encrypted message in the output directly as you type. Actual: CrypTool crashes completely.

Related: If you write something into textinput BEFORE pressing play, it does not crash, but it uses 100% CPU afterwards (seems like there are continously numerous debug messages running)


Solution:

Caesar did not fire PropertyChanged event on InputText, so the workspace manager did not "consume" the input and therefore fired caesar again and again. At the same time, there was a bug in the WorkspaceManager. It tried to set the PercentageFinished of the caesars plugins view to double.NaN. Fixed both, now it works. (fixed in revision 2385)

Change History (3)

comment:1 Changed 10 years ago by kopal

Status: newaccepted

comment:2 Changed 10 years ago by kopal

Description: modified (diff)
Resolution: fixed
Status: acceptedclosed

comment:3 Changed 10 years ago by kopal

Description: modified (diff)
Note: See TracTickets for help on using tickets.