Created attachment 138302 [details] File that causes watermark crash Steps to reproduce 1/ Load attachment document in writer 2/ Add watermark Popup with message: LibreOffice Fatal Error - no text available Press OK --> LibreOffice crash
Can you give by step process? Indeed, Googling about inserting watermark gives old links with obsolete step by step. eg Format > Page > Background, there's no "Background" option.
Forget my last comment, Format/watermark
Reproduced in Version: 6.1.0.0.alpha0+ Build ID: 495ac1bc97f3deea8e13cb1a2b9f59d087873c3f CPU threads: 4; OS: Linux 4.10; UI render: default; VCL: gtk3; Locale: en-US (ca_ES.UTF-8); Calc: group threaded
Created attachment 138305 [details] gdb backtrace
LibreOffice crashes since e01c6a3ba7c0e6a089769187ee1ad241aa862280 while inserting the watermark, before the document crashed at import time. Adding Szymon Kłos as he implemented the watermark dialog in 5.4
Created attachment 138306 [details] error before crashing BTW, I get this error just before crashing...
Created attachment 138312 [details] valgrind trace On pc Debian x86-64 with master sources updated yesterday, I could reproduce the crash but only when letting the watermark test non empty. When it's empty, no crash. (with gtk3 or gtk2 renderings)
Szymon Kłos committed a patch related to this issue. It has been pushed to "master": http://cgit.freedesktop.org/libreoffice/core/commit/?id=d4a54ec92674773bc0f9358a3d9090915a3c8fb0 tdf#114338 don't crash on watermark insert w/ existing header It will be available in 6.1.0. The patch should be included in the daily builds available at http://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: http://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.
Szymon Kłos committed a patch related to this issue. It has been pushed to "libreoffice-6-0": http://cgit.freedesktop.org/libreoffice/core/commit/?id=0622e5db4e330de000f1318540c85e3223f45b40&h=libreoffice-6-0 tdf#114338 don't crash on watermark insert w/ existing header It will be available in 6.0.0.1. The patch should be included in the daily builds available at http://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: http://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.
Crash no longer reproduced in Version: 6.1.0.0.alpha0+ Build ID: 3af500580b1c82eabd60335c9ebc458a3f68850c CPU threads: 4; OS: Linux 4.10; UI render: default; VCL: gtk3; Locale: ca-ES (ca_ES.UTF-8); Calc: group threaded Szymon Kłos, However, no watermark is inserted, is it expected? should I report a new issue for that?
I tested it in MSO and MSO also didn't insert Watermark in this case. Because Watermark is a shape inside a header then if we have another content there already, we can remove old content or not insert watermark to prevent user from data loss. It was intentional, I wanted to have the same behaviour. But now I tested it second time, MSO inserts Watermark only if I choose predefined one, using custom text it is not inserted. So you can create new bug for this.