Uploaded image for project: 'UGENE'
  1. UGENE
  2. UGENE-8083

[Crash, wd, debug] Copy paste element with breakpoint

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Tested
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.13, 1.13.1, 1.13.2, 1.13.3, 1.14, 1.14.1, 1.14.2, 1.15, 1.15.1, 1.16, 1.16.1, 1.16.2, 1.17, 1.18, 1.19, 1.20, 1.21, 1.22, 1.23, 1.24, 1.25, 1.26, 1.26.1, 1.26.2, 1.26.3, 1.27, 1.28, 1.28.1, 1.29, 1.30, 1.31, 1.31.1, 1.32, 33, 34, 35, 36, 37, 38, 39, 38.1, 40, 41, 40.1, 42, 43, 44, 45, 46, 47, 48, 49, 50
    • Fix Version/s: 51
    • Component/s: Workflow
    • Tests Type:
      GUI automatic
    • Sprint:
      DEV-51-4
    • Affect Type:
      Userdefined

      Description

      Scenario 1.

      1. Close the project if it is open (File->Close project).
      2. Enable the debug mode:
        1. "Preferences..."- >"Workflow Designer"->"Runtime settings".
        2. Check "Enable debugger".
        3. Click "OK" to confirm.
      3. Open the WD ("Run or Create Workflow" on the "Start Page").
        The "Choose Output Directory" dialog may appear. Set any directory and click "OK".
        Finally the WD window appeared.
      4. Add any element from the "Elements"->"Data Readers" category to the Scene. For example, "Read Alignment" (drag it from the Palette to the Scene).
      5. Set any valid input. For our example:
        1. Select the "Read Alignment" element by clicking on it.
          In the "Property Editor"->"Parameters" the "Dataset 1" tab appears with the "Add file(s)" button.
        2. Click "Add file(s)".
          The "Select file" dialog appears.
        3. Choose "data/samples/CLUSTALW/COI.aln".
          The input is set.
      6. Press Ctrl+B (⌘+B) (Break at element).
        The "Read alignment" element has a red frame.
      7. Press Ctrl+C then Ctrl+V (or ⌘+C and ⌘+V) to copy and paste the selected element and duplicate it on the Scene.
        Current state: both elements have a regular black frame, even the first one that has the breakpoint set.
      8. Press Ctrl+R (⌘+R) (Run workflow).
        Current state: crash.

      Scenario 2.

      1. Repeat steps 1-7 of the Scenario 1.
      2. Click "Show or hide breakpoint manager" on the main toolbar.
        The "Breakpoints" table appears.
        Current state: there is a breakpoint on the "Read Alignment" element, but none of the Scene elements have the red frame.
      3. In this table click on the "Read Alignment" cell to select the breakpoint.
        The "Highlight selected item" button in the breakpoint manager is enabled.
      4. Click "Highlight selected item".
        Current state: crash.
        Expected state: obviously, after pasting the element, the breakpoint invariants are broken. It doesn't matter what strategy the assignee chooses, as long as all widgets and invariants remain in a consistent state.
        1. If pasting an element deletes the breakpoint, this should be shown in the breakpoint manager. Also, the workflow should run without pauses.
        2. It makes more sense to keep a breakpoint on the element being copied, and not add a breakpoint on the duplicate element. In this case, the earlier element should have the red frame, and the duplicate should have a black frame. The breakpoint manager should have the single breakpoint from which all actions can be executed without crashing. The workflow should pause on the first element and, by default, not pause on the second.
        3. The assignee can even copy the breakpoint on paste. In this case, both elements should have the red frame and be visible in the breakpoint manager; the workflow should pause on each element.

      There should be no crashes in any of the cases.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              biserova Evelina
              Reporter:
              biserova Evelina
              Assigned Tester:
              Svetlana Samoilenko
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: