# Draw Tool Delete / Crash Bug

**URL:** <https://discuss.avogadro.cc/t/draw-tool-delete-crash-bug/2070>\
**Category:** Development\
**Created:** [March 31, 2011, 3:18pm UTC](https://discuss.avogadro.cc/t/draw-tool-delete-crash-bug/2070 "2011-03-31T15:18:51Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![ghutchis](https://discuss.avogadro.cc/user_avatar/discuss.avogadro.cc/ghutchis/32/456_2.png) [@ghutchis](https://discuss.avogadro.cc/u/ghutchis)\
**Post date:** [March 31, 2011, 3:18pm UTC](https://discuss.avogadro.cc/t/draw-tool-delete-crash-bug/2070/1 "2011-03-31T15:18:51Z")

</div>

Hi Konstantin,

I’ve been trying to debug the bug with the draw tool on the 1.0.x branch – delete an atom, draw something new and it crashes. I tried out a few other similar options: cut, clear, select a bunch of atoms, delete, or remove hydrogens and then draw. None of these crash – it seems limited to the draw tool and/or draw command.

Have you tried this on master? I don’t get the crash.

If you agree – that the bug is only in the branch and not master, then we should isolate differences in the draw tool code between the two for a cherry-pick.

Thanks,  
-Geoff

---

<div class="post-metadata">

**Author:** ![Konstantin\_Tokarev](https://discuss.avogadro.cc/letter_avatar_proxy/v4/letter/k/ecd19e/32.png) [@Konstantin\_Tokarev](https://discuss.avogadro.cc/u/Konstantin_Tokarev)\
**Post date:** [March 31, 2011, 3:27pm UTC](https://discuss.avogadro.cc/t/draw-tool-delete-crash-bug/2070/2 "2011-03-31T15:27:31Z")

</div>

31.03.2011, 19:18, “Geoffrey Hutchison” [geoff.hutchison@gmail.com](mailto:geoff.hutchison@gmail.com):

> Hi Konstantin,
> 
> I’ve been trying to debug the bug with the draw tool on the 1.0.x branch – delete an atom, draw something new and it crashes. I tried out a few other similar options: cut, clear, select a bunch of atoms, delete, or remove hydrogens and then draw. None of these crash – it seems limited to the draw tool and/or draw command.
> 
> Have you tried this on master? I don’t get the crash.
> 
> If you agree – that the bug is only in the branch and not master, then we should isolate differences in the draw tool code between the two for a cherry-pick.

Could you specify bug number? I don’t get which of those bugs do you mean.

–  
Regards,  
Konstantin

---

<div class="post-metadata">

**Author:** ![Konstantin\_Tokarev](https://discuss.avogadro.cc/letter_avatar_proxy/v4/letter/k/ecd19e/32.png) [@Konstantin\_Tokarev](https://discuss.avogadro.cc/u/Konstantin_Tokarev)\
**Post date:** [March 31, 2011, 3:30pm UTC](https://discuss.avogadro.cc/t/draw-tool-delete-crash-bug/2070/3 "2011-03-31T15:30:07Z")

</div>

31.03.2011, 19:27, “Konstantin Tokarev” [annulen@yandex.ru](mailto:annulen@yandex.ru):

> 31.03.2011, 19:18, “Geoffrey Hutchison” [geoff.hutchison@gmail.com](mailto:geoff.hutchison@gmail.com);:
> 
> > Hi Konstantin,
> > 
> > I’ve been trying to debug the bug with the draw tool on the 1.0.x branch – delete an atom, draw something new and it crashes. I tried out a few other similar options: cut, clear, select a bunch of atoms, delete, or remove hydrogens and then draw. None of these crash – it seems limited to the draw tool and/or draw command.
> > 
> > Have you tried this on master? I don’t get the crash.
> > 
> > If you agree – that the bug is only in the branch and not master, then we should isolate differences in the draw tool code between the two for a cherry-pick.
> 
> Could you specify bug number? I don’t get which of those bugs do you mean.

This one:  
[http://sourceforge.net/tracker/?func=detail&aid=3103523&group\_id=165310&atid=835077](http://sourceforge.net/tracker/?func=detail&aid=3103523&group_id=165310&atid=835077)  
?

–  
Regards,  
Konstantin

---

<div class="post-metadata">

**Author:** ![ghutchis](https://discuss.avogadro.cc/user_avatar/discuss.avogadro.cc/ghutchis/32/456_2.png) [@ghutchis](https://discuss.avogadro.cc/u/ghutchis)\
**Post date:** [March 31, 2011, 3:36pm UTC](https://discuss.avogadro.cc/t/draw-tool-delete-crash-bug/2070/4 "2011-03-31T15:36:53Z")

</div>

> Could you specify bug number? I don’t get which of those bugs do you mean.

[https://sourceforge.net/tracker/?func=detail&aid=3103523&group\_id=165310&atid=835077](https://sourceforge.net/tracker/?func=detail&aid=3103523&group_id=165310&atid=835077)

I think this is also related:  
[https://sourceforge.net/tracker/?func=detail&aid=3176302&group\_id=165310&atid=835077](https://sourceforge.net/tracker/?func=detail&aid=3176302&group_id=165310&atid=835077)

-Geoff

* * *

Prof. Geoffrey Hutchison  
Department of Chemistry  
University of Pittsburgh  
tel: (412) 648-0492  
email: [geoff.hutchison@gmail.com](mailto:geoff.hutchison@gmail.com)  
web: [http://hutchison.chem.pitt.edu/](http://hutchison.chem.pitt.edu/)

---

<div class="post-metadata">

**Author:** ![Konstantin\_Tokarev](https://discuss.avogadro.cc/letter_avatar_proxy/v4/letter/k/ecd19e/32.png) [@Konstantin\_Tokarev](https://discuss.avogadro.cc/u/Konstantin_Tokarev)\
**Post date:** [March 31, 2011, 3:44pm UTC](https://discuss.avogadro.cc/t/draw-tool-delete-crash-bug/2070/5 "2011-03-31T15:44:09Z")

</div>

31.03.2011, 19:36, “Geoffrey Hutchison” [geoff.hutchison@gmail.com](mailto:geoff.hutchison@gmail.com):

> > Could you specify bug number? I don’t get which of those bugs do you mean.
> 
> [Avogadro / Old Bugs / #501 Crash on drawing after atom removal](https://sourceforge.net/tracker/?func=detail&aid=3103523&group_id=165310&atid=835077)
> 
> I think this is also related:  
> [Avogadro / Old Bugs / #515 Drawing hydrogens -\> crash](https://sourceforge.net/tracker/?func=detail&aid=3176302&group_id=165310&atid=835077)

I’ve reproduced both on master just now.

–  
Regards,  
Konstantin

---

<div class="post-metadata">

**Author:** ![Konstantin\_Tokarev](https://discuss.avogadro.cc/letter_avatar_proxy/v4/letter/k/ecd19e/32.png) [@Konstantin\_Tokarev](https://discuss.avogadro.cc/u/Konstantin_Tokarev)\
**Post date:** [March 31, 2011, 3:52pm UTC](https://discuss.avogadro.cc/t/draw-tool-delete-crash-bug/2070/6 "2011-03-31T15:52:14Z")

</div>

31.03.2011, 19:44, “Konstantin Tokarev” [annulen@yandex.ru](mailto:annulen@yandex.ru):

> 31.03.2011, 19:36, “Geoffrey Hutchison” [geoff.hutchison@gmail.com](mailto:geoff.hutchison@gmail.com);:
> 
> > > Could you specify bug number? I don’t get which of those bugs do you mean.  
> > > [Avogadro / Old Bugs / #501 Crash on drawing after atom removal](https://sourceforge.net/tracker/?func=detail&aid=3103523&group_id=165310&atid=835077)
> > 
> > I think this is also related:  
> > [Avogadro / Old Bugs / #515 Drawing hydrogens -\> crash](https://sourceforge.net/tracker/?func=detail&aid=3176302&group_id=165310&atid=835077)
> 
> I’ve reproduced both on master just now.

P.S. On Linux. I can also test on Mac OS 10.5 later on.

–  
Regards,  
Konstantin
