Created attachment 177350 [details] EnhancedMouseClickHandler.ods Calc crashes when stopping (removing) XEnhancedMouseClickHandler listener from event handling macro. 1. Open the attached file. 2. Run the RegisterMouseClickHandler macro. 3. Mouse click on any cell of the sheet. LibreOffice crashes. If the XMouseClickHandler interface is used instead of the XEnhancedMouseClickHandler, then the error does not occur.
https://gerrit.libreoffice.org/c/core/+/128054
Mike, thank you for your fantastically quick response! :)
Mike Kaganski committed a patch related to this issue. It has been pushed to "master": https://git.libreoffice.org/core/commit/e9dce4e8cbea04d6c6636a45f5a172e986714409 tdf#146617: iterators may be invalidated during handler call 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.
Mike Kaganski committed a patch related to this issue. It has been pushed to "libreoffice-7-3": https://git.libreoffice.org/core/commit/6d8b019f8f72d9802d86ab0414c909db04fdc912 tdf#146617: iterators may be invalidated during handler call It will be available in 7.3.0.2. 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.
Mike Kaganski committed a patch related to this issue. It has been pushed to "libreoffice-7-2": https://git.libreoffice.org/core/commit/6f69c445719e7c100e2669dae1afc0b9a44267c5 tdf#146617: iterators may be invalidated during handler call It will be available in 7.2.6. 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.
Mike, thanks again!