Created attachment 170967 [details] 130056_hyperlink.odt Both the crashing and the cursor not starting in the URL field when inserting a hyperlink started at the same 7.2 commit. commit 9ffd28c32a301141a26e41ddd0cf485a562c83bb Author: Caolán McNamara on Fri Mar 5 16:13:19 2021 +0000 use container_focus_changed instead of toplevel_focus_changed seeing as its the same thing, but available one level of inheritance down The crashing part seems to be here (and avoided by the indicated diff marks): void SfxModelessDialogController::Activate() { if (!m_xImpl) return; + if (!m_xImpl->pMgr) + return; m_pBindings->SetActiveFrame(m_xImpl->pMgr->GetFrame()); Steps to (fairly reliably) reproduce 1.) open 130056_hyperlink.odt. 2.) highlight any word ("Internet") and press Ctrl-K (insert hyperlink). Notice that the cursor is NOT waiting for you to start typing. It was nicer before the identified commit. 3.) type a URL ("junk") and hit enter. Frequently at this point LO will crash and start program recovery.
The crash is (presumably) gone since https://cgit.freedesktop.org/libreoffice/core/commit/?id=82f473c87da72a3d7aac80249d408a02caa25afa
https://gerrit.libreoffice.org/c/core/+/113616 should make this detect the toplevel window gaining focus again the way it used to.
Caolán McNamara committed a patch related to this issue. It has been pushed to "master": https://git.libreoffice.org/core/commit/30507382e11e2340c7dee7adced1f5f37a2d9e7f Related: tdf#141499 don't grab focus during teardown of dialog It will be available in 7.2.0. The patch should be included in the daily builds available at https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: https://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.
Caolán McNamara committed a patch related to this issue. It has been pushed to "master": https://git.libreoffice.org/core/commit/c7cfd3323cf80d5953f5c3808c1afd6fec0c674b tdf#141499 trigger container_focus_changed for toplevel window focus events It will be available in 7.2.0. The patch should be included in the daily builds available at https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: https://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.