Description: Open a new Writer document. Press dt[F3], meaning Autotext for dt. After the first paragraph press Enter In the dbg build of LibreOffice I get in terminal this warnings: warn:legacy.osl:10459:10459:xmloff/source/transform/OOo2Oasis.cxx:1945: duplicate doc handler warn:sw.core:10459:10459:sw/source/core/attr/format.cxx:217: ~SwFormat: format still has clients on death, but parent format is missing: Frameformat warn:legacy.osl:10459:10459:sw/source/core/swg/SwXMLTextBlocks1.cxx:316: Tried to open non-existent folder or stream! warn:legacy.osl:10459:10459:sw/source/core/swg/SwXMLTextBlocks1.cxx:316: Tried to open non-existent folder or stream! warn:legacy.osl:10459:10459:sw/source/core/swg/SwXMLTextBlocks1.cxx:316: Tried to open non-existent folder or stream! warn:legacy.osl:10459:10459:sw/source/core/swg/SwXMLTextBlocks1.cxx:316: Tried to open non-existent folder or stream! warn:legacy.osl:10459:10459:sw/source/core/swg/SwXMLTextBlocks1.cxx:316: Tried to open non-existent folder or stream! warn:legacy.osl:10459:10459:sw/source/core/swg/SwXMLTextBlocks1.cxx:316: Tried to open non-existent folder or stream! warn:legacy.osl:10459:10459:sw/source/core/swg/SwXMLTextBlocks1.cxx:316: Tried to open non-existent folder or stream! warn:legacy.osl:10459:10459:sw/source/core/swg/SwXMLTextBlocks1.cxx:316: Tried to open non-existent folder or stream! warn:legacy.osl:10459:10459:sw/source/core/swg/SwXMLTextBlocks1.cxx:316: Tried to open non-existent folder or stream! warn:legacy.osl:10459:10459:sw/source/core/swg/SwXMLTextBlocks1.cxx:316: Tried to open non-existent folder or stream! warn:legacy.osl:10459:10459:sw/source/core/swg/SwXMLTextBlocks1.cxx:316: Tried to open non-existent folder or stream! warn:legacy.osl:10459:10459:sw/source/core/swg/SwXMLTextBlocks1.cxx:316: Tried to open non-existent folder or stream! warn:legacy.osl:10459:10459:sw/source/core/swg/SwXMLTextBlocks1.cxx:316: Tried to open non-existent folder or stream! warn:legacy.osl:10459:10459:sw/source/core/swg/SwXMLTextBlocks1.cxx:316: Tried to open non-existent folder or stream! warn:legacy.osl:10459:10459:sw/source/core/swg/SwXMLTextBlocks1.cxx:316: Tried to open non-existent folder or stream! warn:legacy.osl:10459:10459:sw/source/core/swg/SwXMLTextBlocks1.cxx:316: Tried to open non-existent folder or stream! warn:legacy.osl:10459:10459:sw/source/core/swg/SwXMLTextBlocks1.cxx:316: Tried to open non-existent folder or stream! warn:legacy.osl:10459:10459:sw/source/core/swg/SwXMLTextBlocks1.cxx:316: Tried to open non-existent folder or stream! warn:legacy.osl:10459:10459:sw/source/core/swg/SwXMLTextBlocks1.cxx:316: Tried to open non-existent folder or stream! warn:legacy.osl:10459:10459:sw/source/core/swg/SwXMLTextBlocks1.cxx:316: Tried to open non-existent folder or stream! warn:legacy.osl:10459:10459:sw/source/core/swg/SwXMLTextBlocks1.cxx:316: Tried to open non-existent folder or stream! warn:legacy.osl:10459:10459:sw/source/core/swg/SwXMLTextBlocks1.cxx:316: Tried to open non-existent folder or stream! warn:legacy.osl:10459:10459:sw/source/core/swg/SwXMLTextBlocks1.cxx:316: Tried to open non-existent folder or stream! First 2 lines are about F3 command, and the rest is after pressing Enter after the first paragraph. If warning should NOT be there they should be silence or solved. Version: 7.5.0.0.alpha0+ / LibreOffice Community Build ID: 4c96abd81460977d413d4d28e891bbbac5769ede CPU threads: 16; OS: Linux 5.15; UI render: default; VCL: gtk3 Locale: ro-RO (ro_RO.UTF-8); UI: en-US Calc: threaded Steps to Reproduce: 1.See description Actual Results: A lot of warnings Expected Results: No warnings Reproducible: Always User Profile Reset: Yes Additional Info: Version: 7.5.0.0.alpha0+ / LibreOffice Community Build ID: 4c96abd81460977d413d4d28e891bbbac5769ede CPU threads: 16; OS: Linux 5.15; UI render: default; VCL: gtk3 Locale: ro-RO (ro_RO.UTF-8); UI: en-US Calc: threaded
Confirm the existence, but I'm unable to make an assessment Version: 7.5.0.0.alpha0+ (x64) / LibreOffice Community Build ID: 1c1647e6ee252fe68d7406d01043e88f1721590f CPU threads: 4; OS: Windows 6.3 Build 9600; UI render: Skia/Raster; VCL: win Locale: nl-NL (nl_NL); UI: en-US Calc: CL
If I go to Tools - Autotext - Only for Templates - Header Brochure I get warn:sw.core:79478:79478:sw/source/core/attr/calbck.cxx:196: a 16SwTextFormatColl client added as listener to a 16SwTextFormatColl during client iteration. warn:sw.core:79478:79478:sw/source/core/attr/calbck.cxx:196: a 16SwTextFormatColl client added as listener to a 16SwTextFormatColl during client iteration. warn:sw.core:79478:79478:sw/source/core/attr/calbck.cxx:196: a 16SwTextFormatColl client added as listener to a 16SwTextFormatColl during client iteration. warn:sw.core:79478:79478:sw/source/core/attr/calbck.cxx:196: a 16SwTextFormatColl client added as listener to a 16SwTextFormatColl during client iteration. warn:sw.core:79478:79478:sw/source/core/attr/format.cxx:217: ~SwFormat: format still has clients on death, but parent format is missing: Frameformat warn:sw:79478:79478:sw/source/core/swg/SwXMLTextBlocks1.cxx:249: com.sun.star.io.IOException message: "Element does not exist and cannot be created: "atevent.xml" at /home/tdf/lode/jenkins/workspace/lo_gerrit/tb/src_master/package/source/xstor/xstorage.cxx:1984" warn:sw.core:79478:79478:sw/source/core/attr/calbck.cxx:196: a 16SwTextFormatColl client added as listener to a 16SwTextFormatColl during client iteration. warn:sw.core:79478:79478:sw/source/core/attr/calbck.cxx:196: a 16SwTextFormatColl client added as listener to a 16SwTextFormatColl during client iteration. warn:sw.core:79478:79478:sw/source/core/attr/calbck.cxx:196: a 16SwTextFormatColl client added as listener to a 16SwTextFormatColl during client iteration. warn:sw.core:79478:79478:sw/source/core/attr/format.cxx:217: ~SwFormat: format still has clients on death, but parent format is missing: Frameformat warn:sw.core:79478:79478:sw/source/core/attr/calbck.cxx:196: a 16SwTextFormatColl client added as listener to a 16SwTextFormatColl during client iteration. warn:sw.core:79478:79478:sw/source/core/attr/calbck.cxx:196: a 16SwTextFormatColl client added as listener to a 16SwTextFormatColl during client iteration. warn:sw.core:79478:79478:sw/source/core/attr/calbck.cxx:196: a 16SwTextFormatColl client added as listener to a 16SwTextFormatColl during client iteration. warn:sw.core:79478:79478:sw/source/core/attr/calbck.cxx:196: a 16SwTextFormatColl client added as listener to a 16SwTextFormatColl during client iteration. warn:sw.core:79478:79478:sw/source/core/attr/format.cxx:217: ~SwFormat: format still has clients on death, but parent format is missing: Frameformat
NOT REPRODUCED: Open a new Writer document. Press dt[F3], meaning Autotext for dt. After the first paragraph press Enter the auto text working find there no warning raised. the warning should NOT be there they should be silence or solved. version: Libre Office : 7.4.0.0 alpha1 Linux Mint 21
Please, if you don't know how to test bugs don't change them. Confirmed based on comment 1. Let see if developers think is noise or something to change.
No repro using Version: 7.5.0.0.alpha0+ (x64) / LibreOffice Community Build ID: 992b393be8c33103cd18ca65dfc51cdfdb3fd618 CPU threads: 12; OS: Windows 10.0 Build 19044; UI render: Skia/Raster; VCL: win Locale: ru-RU (ru_RU); UI: en-US Calc: CL threaded Additionally, putting a breakpoint to SwXMLTextBlocks::GetBlockText (the function showing all those "Tried to open non-existent folder or stream!"), the function doesn't get called at all, neither when a new Writer document is created, not when I typed "dt", pressed "F3", pressed Enter (including trying to put the cursor immediately after "hide?", and even at the end of the first *line* after "late at", because I didn't fully understand the "After the first paragraph press Enter" for a text that consists of a single paragraph).
Created attachment 182502 [details] video about this bug
Mike, please see the video from comment 7 and retest it.
The same with 7.6 warn:legacy.osl:81483:81483:sw/source/core/swg/SwXMLTextBlocks1.cxx:316: Tried to open non-existent folder or stream! warn:legacy.osl:81483:81483:sw/source/core/swg/SwXMLTextBlocks1.cxx:316: Tried to open non-existent folder or stream! warn:legacy.osl:81483:81483:sw/source/core/swg/SwXMLTextBlocks1.cxx:316: Tried to open non-existent folder or stream! warn:legacy.osl:81483:81483:sw/source/core/swg/SwXMLTextBlocks1.cxx:316: Tried to open non-existent folder or stream! warn:legacy.osl:81483:81483:sw/source/core/swg/SwXMLTextBlocks1.cxx:316: Tried to open non-existent folder or stream! warn:legacy.osl:81483:81483:sw/source/core/swg/SwXMLTextBlocks1.cxx:316: Tried to open non-existent folder or stream! warn:legacy.osl:81483:81483:sw/source/core/swg/SwXMLTextBlocks1.cxx:316: Tried to open non-existent folder or stream! warn:legacy.osl:81483:81483:sw/source/core/swg/SwXMLTextBlocks1.cxx:316: Tried to open non-existent folder or stream! warn:legacy.osl:81483:81483:sw/source/core/swg/SwXMLTextBlocks1.cxx:316: Tried to open non-existent folder or stream! warn:legacy.osl:81483:81483:sw/source/core/swg/SwXMLTextBlocks1.cxx:316: Tried to open non-existent folder or stream! warn:legacy.osl:81483:81483:sw/source/core/swg/SwXMLTextBlocks1.cxx:316: Tried to open non-existent folder or stream! warn:legacy.osl:81483:81483:sw/source/core/swg/SwXMLTextBlocks1.cxx:316: Tried to open non-existent folder or stream! warn:legacy.osl:81483:81483:sw/source/core/swg/SwXMLTextBlocks1.cxx:316: Tried to open non-existent folder or stream! warn:legacy.osl:81483:81483:sw/source/core/swg/SwXMLTextBlocks1.cxx:316: Tried to open non-existent folder or stream! warn:legacy.osl:81483:81483:sw/source/core/swg/SwXMLTextBlocks1.cxx:316: Tried to open non-existent folder or stream! warn:legacy.osl:81483:81483:sw/source/core/swg/SwXMLTextBlocks1.cxx:316: Tried to open non-existent folder or stream! warn:legacy.osl:81483:81483:sw/source/core/swg/SwXMLTextBlocks1.cxx:316: Tried to open non-existent folder or stream! warn:legacy.osl:81483:81483:sw/source/core/swg/SwXMLTextBlocks1.cxx:316: Tried to open non-existent folder or stream! warn:legacy.osl:81483:81483:sw/source/core/swg/SwXMLTextBlocks1.cxx:316: Tried to open non-existent folder or stream! warn:legacy.osl:81483:81483:sw/source/core/swg/SwXMLTextBlocks1.cxx:316: Tried to open non-existent folder or stream! warn:legacy.osl:81483:81483:sw/source/core/swg/SwXMLTextBlocks1.cxx:316: Tried to open non-existent folder or stream! warn:legacy.osl:81483:81483:sw/source/core/swg/SwXMLTextBlocks1.cxx:316: Tried to open non-existent folder or stream! warn:legacy.osl:81483:81483:sw/source/core/swg/SwXMLTextBlocks1.cxx:316: Tried to open non-existent folder or stream!
Version: 7.6.0.0.alpha0+ (X86_64) / LibreOffice Community Build ID: 01c9c971e43782800ebf63acc763a7e7fba096c1 CPU threads: 16; OS: Linux 5.15; UI render: default; VCL: gtk3 Locale: ro-RO (ro_RO.UTF-8); UI: en-US Calc: threaded
Caolan, I added you here, because is affecting simple text document. Could be reproduce much easier with a new document, type "A" and press Enter.
reproducible with: LANG=ro_RO.UTF-8 ./instdir/program/swriter
This looks specific to the default Romanian autocorrect file
Caolán McNamara committed a patch related to this issue. It has been pushed to "master": https://git.libreoffice.org/core/commit/00d2d9145b530cac605206a6220c5e8175ad9382 Related: tdf#150687 add info to warning as to what is not found It will be available in 7.6.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/5bd1fec8db76a608f05d95dfeb92e49940864697 Related: tdf#150687 pretty-print Romanian autocorrect file It will be available in 7.6.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/44355a90b3450111ad87ad4b6607a564e41d7b54 Resolves: tdf#150687 remove Romanian autocorr entries that correct to itself It will be available in 7.6.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.
Caolan, thanks for fixing this. I can'd belive what you have discovered from a simple text in a document and some warnings. 2 things I want to ask you: - is this bug affecting other languages also? if we test with Hungarian, and so on? - could Xisco or anyone else do a unittest in order to check the things you have discoverd: duplicated words, or any come back of the new SAL_WARN, for all the languages?
W.r.t. your first question, Julien has already sent patches to fix other AutoCorrect files that show the problem. Thanks Caolán for improving the debug message!
Julien has a script at https://gerrit.libreoffice.org/c/core/+/144925 which we could maybe use to avoid this situation happening again
(In reply to Adolfo Jayme Barrientos from comment #18) > W.r.t. your first question, Julien has already sent patches to fix other > AutoCorrect files that show the problem. Thanks Caolán for improving the > debug message! Yes, I tested the code on my local LO. Nice, it worked and discoverd the identical code (there was nothing to find, but I change something in order to find at least something). Thanks Julien.
I placed the today code from Julien in extras folder and this is the result: In ../extras/source/autocorr/lang/tr/DocumentList.xml same value: parlemento In ../extras/source/autocorr/lang/ro/DocumentList.xml same value: a-ti I changed the good terms to bad terms in order to find something. Nice!
*** Bug 150704 has been marked as a duplicate of this bug. ***
Caolán McNamara committed a patch related to this issue. It has been pushed to "master": https://git.libreoffice.org/core/commit/8549d6e26f5116b1fcf5e066252cc987a3f2574f Related: tdf#150687 check autocorr DocumentList.xml at build time It will be available in 7.6.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.
NO warning now in Version: 7.6.0.0.alpha0+ (X86_64) / LibreOffice Community Build ID: cb4c33ef88a0ef252383e7a12678f28c4432347e CPU threads: 4; OS: Linux 5.19; UI render: default; VCL: gtk3 Locale: ro-RO (ro_RO.UTF-8); UI: en-US Calc: threaded Thanks Caolan. A lot of changes, a lot of work.