<div dir="auto">Ps. I just create a new dive and save, no fields completed. all blank... maibe this is.... let me test<div dir="auto"><br></div><div dir="auto">So </div><div dir="auto"><br></div><div dir="auto">new dive > save > long press or using 3 dots to delete crashes app</div><div dir="auto"><br></div><div dir="auto">2. new dive > complete dive location > save > long press or context to delete does not crash app anymore :)</div><div dir="auto"><br></div><div dir="auto">So I guess the default "unnamed dive site" type of entry is the culprit</div><div dir="auto"><br></div><div dir="auto">Regards,</div><div dir="auto">Theodor</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Jan 18, 2021, 22:03 Chirana Gheorghita Eugeniu Theodor <<a href="mailto:office@adaptcom.ro">office@adaptcom.ro</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="auto">Hmmm. I will try reproducing and detail each step. By the way I am using dark theme :)</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Jan 18, 2021, 20:47 Dirk Hohndel <<a href="mailto:dirk@hohndel.org" target="_blank" rel="noreferrer">dirk@hohndel.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word;line-break:after-white-space"><br><div><br><blockquote type="cite"><div>On Jan 18, 2021, at 12:00 AM, Chirana Gheorghita Eugeniu Theodor <<a href="mailto:office@adaptcom.ro" rel="noreferrer noreferrer" target="_blank">office@adaptcom.ro</a>> wrote:</div><br><div><div dir="ltr" style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none">Hello. OK.<div><br></div><div>Discovered something:</div><div>- I add a new dive</div><div>-Save and exit to Dive list</div><div>- Enter that dive again</div><div>- delete it >> all ok.</div><div><br></div><div>- Add a new dive</div><div>- Save and exit to Dive list</div><div>- select another dive and back to dive list</div><div>- Select the newly added dive and back to dive list and tha new dive remains selected</div><div>- Open context menu and hit delete >>> App crashes.. Attached logs.</div></div><br style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none"></div></blockquote><br></div><div><br></div><div>So I understand what the log tells us... but I cannot figure out how to reproduce the situation.</div><div>I followed your steps as exactly as I could. And tried several variations. I tried this on three different Android devices (including two running Android 11) as well as on iOS and mobile-on-desktop.</div><div>I simply cannot reproduce the crash.</div><div><br></div><div>The log file implied that a QML object was deleted while one of its signal handlers was running. During the dive delete a signal handler for the context menu is running, but I don't see how that object could be deleted.</div><div>And because of the undo stack, the dive itself isn't actually deleted, just moved on a different list. The one thing that does get deleted is the delegate that shows the dive in the dive list - but that one doesn't actually have a  signal handler running... because even if you opened the context drawer by press-and-hold on the dive (instead of using the three dots in the lower right corner), the signal handler for that delegate has finished when you open the context menu. And by the time you tap on delete in the context menu, it has definitely completed running.</div><div><br></div><div>So... hmm... no idea...</div><div><br></div><div>And as I said many times before - fixing bugs I cannot reproduce is incredibly hard :-(</div><div><br></div><div>/D</div><br></div></blockquote></div>
</blockquote></div>