sexytopo icon indicating copy to clipboard operation
sexytopo copied to clipboard

Deleting parent of the active station sometimes leaves the deleted station active

Open tarquinwj opened this issue 3 years ago • 3 comments

I don't know how to reliably reproduce this, since it sometimes works correctly, and sometimes doesn't. It's random. Whenever I try to make the bug happen, it doesn't. But it happens with my real surveys.

Survey from 1-2-3-4-5-6 with legs and splays. Delete station 3.

It is supposed to make station 2 active. Sometimes it doesn't make any station active. Taking more reading causes them to disappear into a black hole, but it sometimes vibrates to say it made an invisible station. At least it doesn't crash :)

Android 11 SexyTopo 1.6.1

tarquinwj avatar Nov 21 '21 22:11 tarquinwj

sounds familiar...

CaverBruce avatar Nov 22 '21 02:11 CaverBruce

Indeed it does. This used to cause a nasty crash, which lost me a day of surveying (which Rich thankfully recovered for me). He fixed the crasher, and in most cases made it set a valid station to active, but it seems there is still some vestigial bug hanging around.

tarquinwj avatar Nov 22 '21 08:11 tarquinwj

The underlying data model is a little hacky. I'd like to rewrite it when I have time.

richsmith avatar Nov 30 '21 00:11 richsmith