Description: A specifically designed regex can make crash of Writer. Probably due to find & replace the regex "with format like yellow highlighted". Steps to Reproduce: 1.Create a new document in LibreOffice Writer 2.Type the document's content is as follow: Abc, 1 Def, 2, 3, 4 Ghi, 5, 6, 7 3.Use find & replace with the following Regular Expression to find (and must specified "no bold" for the format match): (?!\w+ly\b|a\b|about\b|above\b|according\b|across\b|after\b|against\b|all\b|along\b|also\b|although\b|always\b|among\b|an\b|and\b|another\b|any\b|anybody\b|anyone\b|anything\b|around\b|as\b|as if\b|as long as\b|as much as\b|as soon as\b|as though\b|assuming that\b|at\b|be\b|because\b|been\b|before\b|behind\b|besides\b|between\b|beyond\b|both\b|but\b|by\b|by the time\b|called\b|can\b|concerning\b|Consequent\b|could\b|despite\b|did\b|do\b|down\b|during\b|each\b|either\b|even if\b|even though\b|ever\b|everybody\b|everyone\b|everything\b|except\b|few\b|Finally\b|First\b|following\b|for\b|forever\b|from\b|Furthermore\b|had\b|has\b|have\b|he\b|hence\b|her\b|hers\b|herself\b|him\b|himself\b|his\b|how\b|However\b|I\b|if\b|in\b|In addition\b|in case\b|in order\b|in spite of\b|including\b|instead\b|into\b|it\b|its\b|it's\b|itself\b|lest\b|like\b|likewise\b|many\b|may\b|me\b|meanwhile\b|might\b|mine\b|more\b|moreover\b|most\b|my\b|myself\b|near\b|neither\b|never\b|nevertheless\b|next to\b|no\b|no one\b|nobody\b|none\b|nonetheless\b|nor\b|nothing\b|now that\b|of\b|off\b|often\b|on\b|On the other hand\b|once\b|one\b|only if\b|or\b|other\b|others\b|otherwise\b|our\b|ours\b|ourselves\b|out\b|over\b|provided that\b|rather\b|rather than\b|Second\b|several\b|shall\b|she\b|should\b|since\b|so\b|so that\b|some\b|somebody\b|someone\b|something\b|somwtimes\b|still\b|such\b|than\b|that\b|the\b|their\b|theirs\b|them\b|themselves\b|then\b|Therefore\b|these\b|they\b|Third\b|this\b|those\b|though\b|through\b|throughout\b|thus\b|till\b|to\b|towards\b|under\b|unless\b|until\b|up\b|upon\b|us\b|was\b|we\b|were\b|what\b|whatever\b|when\b|whenever\b|where\b|whereas\b|wherever\b|whether\b|which\b|whichever\b|while\b|who\b|whoever\b|whom\b|whomever\b|whose\b|why\b|will\b|with\b|within\b|without\b|would\b|yet\b|you\b|your|must\b|yours\b|are\b|is\b|just\b|yourself\b|yourselves\b|meaning\b|mean\b|means\b|meant\b|way\b|ways\b|thereby\b|there\b|not\b|cause\b|causes\b|caused\b|causing\b|make\b|makes\b|made\b|making\b|ch\b|ch\.\b|chapter\b|introduce\b|introduced\b|introduces\b|introducing\b|introduction\b|\d+\b|[a-z]\b)(\b\w+) 4.To replace with the following (and must specified font color: "yellow", highlighted: "yellow" for the format match): $1 5. Put the carriage to the beginning of the document's content. 6. Start press "Replace" button(not Replace ALL) on Find & Replace window, it will work fine at the beginning. 7. Continuously press "Replace" button few times(maybe less than 5 or 6 times), it crash. Actual Results: Crash, Not Response Expected Results: Turn each text separated by comma into yellow highlighted & yellow in font color. Reproducible: Always User Profile Reset: No Additional Info: Version: 6.3.5.2 (x86) Build ID: dd0751754f11728f69b42ee2af66670068624673 CPU threads: 8; OS: Windows 10.0; UI render: GL; VCL: win; Locale: en-US (en_US); UI-Language: en-US Calc: CL Also tried in v6.4.2
The document's content is: Abc, 1 Def, 2, 3, 4 Ghi, 5, 6, 7 no blank/indent before each row.
On pc Debian x86-64 with master sources updated today, I gave it a try but failed to reproduce this. But, I must recognize, I didn't see how to do this: - ""no bold" for the format match" - "font color: "yellow"" ok but "highlighted: "yellow" for the format match" ?
Please find the following screenshot for your more information. no Bold (for Find field): https://imgur.com/pGUXQI4 Yellow Font (for Replace field) https://imgur.com/eLWheVh Yellow Highlighted (for Replace field) https://imgur.com/Q4FjhOg
I got another test. document's content: qqq qqqqqqqqq “qqqqqq qqqq” qq qqqqqqq qqqqqqqqqqq qq qqq qqqqqqqqq qqqqqq qq qqqqqqqqq qqqqqqqqq qq q qqqqqq qqqqqq (qqqqqq-qq). qqqq qqqqqq-qq qqqqqqq qqq qqqqqqqqq qqqq qqq qqqqq qqqq qq qq qq qqqq qqqqq qq qqq qqqqqq qqqq qqq qqqqqqq qq qqqqqq. qqqq qqq qqqqqq qqqq q qqqqqqq qq qqqqqqqqq qqqqqqq qq qqq qqqq qqqqqqqq. q qqqqqqq q qqqqqqq qqq q qqqq qqqqqqqq qqqqq qq qqqqqq qqqqqqqqqq qqq q qqqqq qqqqqqqq qq qqq q qqqqqqq. qqqq qqqqqqqqq qqqqqq qqq “q” qq q qqqqqq qq qqqqqq qqq qqqqqqqqq. qqq qq q qqq qqqqqqqq qqqq qqqqqqqq qqqq qqqq qq qqqqqqqqqq, qqq qqq qqqqq qqqqq qqqqqq qqq qqqqq qqqqq. qq “qqqq” qq qq qq q q qqqqqqq qq qqqqqqqqqqqqq qqqqqqqqq qq “qqqqq”. qqqqqqq qqqqqq qqq qqqqq qqqqq. Find with Regex:(with "no Bold" format) (\b\w+\b) You will not find any match. I think there are also bugs for the Find.
(In reply to richardchung0907 from comment #4) > I got another test. > > > document's content: > > qqq qqqqqqqqq “qqqqqq qqqq” qq qqqqqqq qqqqqqqqqqq qq qqq qqqqqqqqq qqqqqq > qq qqqqqqqqq qqqqqqqqq qq q qqqqqq qqqqqq (qqqqqq-qq). qqqq qqqqqq-qq > qqqqqqq qqq qqqqqqqqq qqqq qqq qqqqq qqqq qq qq qq qqqq qqqqq qq qqq qqqqqq > qqqq qqq qqqqqqq qq qqqqqq. qqqq qqq qqqqqq qqqq q qqqqqqq qq qqqqqqqqq > qqqqqqq qq qqq qqqq qqqqqqqq. q qqqqqqq q qqqqqqq qqq q qqqq qqqqqqqq qqqqq > qq qqqqqq qqqqqqqqqq qqq q qqqqq qqqqqqqq qq qqq q qqqqqqq. qqqq qqqqqqqqq > qqqqqq qqq “q” qq q qqqqqq qq qqqqqq qqq qqqqqqqqq. qqq qq q qqq qqqqqqqq > qqqq qqqqqqqq qqqq qqqq qq qqqqqqqqqq, qqq qqq qqqqq qqqqq qqqqqq qqq qqqqq > qqqqq. qq “qqqq” qq qq qq q q qqqqqqq qq qqqqqqqqqqqqq qqqqqqqqq qq “qqqqq”. > qqqqqqq qqqqqq qqq qqqqq qqqqq. > > > > > > > Find with Regex:(with "no Bold" format) > > (\b\w+\b) > > > > > You will not find any match. > > > I think there are also bugs for the Find. please copy and paste the document's content as "Unformatted text"
On pc Debian x86-64 with master sources updated today, I don't reproduce the initial bug. Perhaps Windows only. For the rest, it seems a different pb. Please don't confirm your own bug. Version field must correspond to the oldest one. You can give a try to brand new 6.4.3 + you can give a try at https://wiki.documentfoundation.org/QA/FirstSteps If possible, a backtrace would be useful (see https://wiki.documentfoundation.org/QA/BugReport/Debug_Information#Windows:_How_to_get_a_backtrace)
I downloaded the latest source as of today, and built on Linux. Version string 7.0.0.0.alpha1+ Linux linux-mint-pc 4.15.0-43-generic #46-Ubuntu SMP Thu Dec 6 14:45:28 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux I wasn't able to reproduce the bug as described in the initial description, nor in Comment 4.
richardchung907, could you please try to reproduce it with the latest version of LibreOffice from https://www.libreoffice.org/download/libreoffice-fresh/ ? I have set the bug's status to 'NEEDINFO'. Please change it back to 'UNCONFIRMED' if the bug is still present in the latest version. Change to RESOLVED WORKSFORME, if the problem went away.
Dear richardchung0907, This bug has been in NEEDINFO status with no change for at least 6 months. Please provide the requested information as soon as possible and mark the bug as UNCONFIRMED. Due to regular bug tracker maintenance, if the bug is still in NEEDINFO status with no change in 30 days the QA team will close the bug as INSUFFICIENTDATA due to lack of needed information. For more information about our NEEDINFO policy please read the wiki located here: https://wiki.documentfoundation.org/QA/Bugzilla/Fields/Status/NEEDINFO If you have already provided the requested information, please mark the bug as UNCONFIRMED so that the QA team knows that the bug is ready to be confirmed. Thank you for helping us make LibreOffice even better for everyone! Warm Regards, QA Team MassPing-NeedInfo-Ping
Dear richardchung0907, Please read this message in its entirety before proceeding. Your bug report is being closed as INSUFFICIENTDATA due to inactivity and a lack of information which is needed in order to accurately reproduce and confirm the problem. We encourage you to retest your bug against the latest release. If the issue is still present in the latest stable release, we need the following information (please ignore any that you've already provided): a) Provide details of your system including your operating system and the latest version of LibreOffice that you have confirmed the bug to be present b) Provide easy to reproduce steps – the simpler the better c) Provide any test case(s) which will help us confirm the problem d) Provide screenshots of the problem if you think it might help e) Read all comments and provide any requested information Once all of this is done, please set the bug back to UNCONFIRMED and we will attempt to reproduce the issue. Please do not: a) respond via email b) update the version field in the bug or any of the other details on the top section of our bug tracker Warm Regards, QA Team MassPing-NeedInfo-FollowUp