Created attachment 176980 [details] File to reproduce the crash Open attached document. Click on green line to mark it. Press context menu key. => Crash. Crash report was not generated. The crash happens with a today debug build Version: 7.4.0.0.alpha0+ (x64) / LibreOffice Community Build ID: 8c028b7e41e3d350d0e67005b16faf0159cc5c12 CPU threads: 8; OS: Windows 10.0 Build 19043; UI render: default; VCL: win Locale: de-DE (en_US); UI: en-US Calc: threaded
Created attachment 176981 [details] Call Stack by VS2019
@Caolan Reading the BT & your recent work in this area..
commit b37f9fbf05e16eb58eae40c6d900a4b9da2972db Date: Thu Dec 16 19:24:42 2021 +0200 osl::Mutex->std::mutex in VCLXMenu Change-Id: I93883f5cd8f5f83f33eded87d995f95dbfd7989b Reviewed-on: https://gerrit.libreoffice.org/c/core/+/126989 is a strong contender as well. I haven't confirmed yet but VCLXMenu::queryInterface does std::unique_lock aGuard( maMutex ) and VCLXMenu::execute does std::unique_lock aGuard( maMutex ) also
yeah, I think I can confirm it was that. Linux runtime isn't as clever apparently and just hangs rather than assert.
*** Bug 146292 has been marked as a duplicate of this bug. ***
Let's put this one as highest since: - it's in fact just right click - it happens at least on Windows (crash) and Linux (hang) - regression - very fundamental feature
Noel/Caolán: if you think it would need some time to tackle it, IMHO it could be relevant to revert the commit to avoid a lot of people create a lot of dup bugs.
fix at https://gerrit.libreoffice.org/c/core/+/127044
Noel Grandin committed a patch related to this issue. It has been pushed to "master": https://git.libreoffice.org/core/commit/54b80473f4a4b8ac3dfc1936b2214733474a3485 tdf#146286 Crash/hang calling context menu It will be available in 7.4.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.
*** Bug 146308 has been marked as a duplicate of this bug. ***
Confirming the fix. Right clicking on the attachment 177007 [details] (described in the duplicate bug 146308) in Linux, no longer causes LibreOffice to hang.
*** Bug 146324 has been marked as a duplicate of this bug. ***