To reproduce the issue:
- Open a nucleotide FASTA sequence
- Create a new annotation object and document (e.g. search for repeats in the sequence)
- On the annotations document select "Add > Add object to document"
- Select the sequence object in the appeared dialog => The document must now contain the sequence and the annotations object
- Right-click on the annotations object and click "Delete" keyboard button
Result: a debug error occurs.