Bug 150687 - Simple inserting of text: too many warnings in console with debug LO
Summary: Simple inserting of text: too many warnings in console with debug LO
Status: VERIFIED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
7.5.0.0 alpha0+
Hardware: All Linux (All)
: medium normal
Assignee: Caolán McNamara
URL:
Whiteboard: target:7.6.0
Keywords:
: 150704 (view as bug list)
Depends on:
Blocks: console-noise
  Show dependency treegraph
 
Reported: 2022-08-30 15:57 UTC by BogdanB
Modified: 2023-01-05 16:01 UTC (History)
4 users (show)

See Also:
Crash report or crash signature:


Attachments
video about this bug (4.46 MB, video/mp4)
2022-09-16 18:46 UTC, BogdanB
Details

Note You need to log in before you can comment on or make changes to this bug.
Description BogdanB 2022-08-30 15:57:08 UTC
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
Comment 1 Telesto 2022-08-30 19:37:08 UTC
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
Comment 2 BogdanB 2022-08-30 20:11:07 UTC
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
Comment 3 Jegatheesan 2022-09-11 06:03:42 UTC Comment hidden (obsolete)
Comment 4 Stephen Reginold 2022-09-11 10:39:10 UTC Comment hidden (obsolete)
Comment 5 BogdanB 2022-09-11 21:40:47 UTC
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.
Comment 6 Mike Kaganski 2022-09-12 06:20:38 UTC
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).
Comment 7 BogdanB 2022-09-16 18:46:21 UTC
Created attachment 182502 [details]
video about this bug
Comment 8 BogdanB 2022-11-01 19:35:24 UTC
Mike, please see the video from comment 7 and retest it.
Comment 9 BogdanB 2022-12-12 20:52:46 UTC
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!
Comment 10 BogdanB 2022-12-12 20:53:09 UTC
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
Comment 11 BogdanB 2022-12-31 07:42:17 UTC
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.
Comment 12 Caolán McNamara 2022-12-31 19:59:44 UTC
reproducible with:
LANG=ro_RO.UTF-8 ./instdir/program/swriter
Comment 13 Caolán McNamara 2022-12-31 20:41:34 UTC
This looks specific to the default Romanian autocorrect file
Comment 14 Commit Notification 2022-12-31 21:31:31 UTC
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.
Comment 15 Commit Notification 2022-12-31 21:31:33 UTC
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.
Comment 16 Commit Notification 2022-12-31 21:44:37 UTC
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.
Comment 17 BogdanB 2023-01-01 07:36:18 UTC
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?
Comment 18 Adolfo Jayme Barrientos 2023-01-01 12:42:43 UTC
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!
Comment 19 Caolán McNamara 2023-01-02 14:44:45 UTC
Julien has a script at https://gerrit.libreoffice.org/c/core/+/144925 which we could maybe use to avoid this situation happening again
Comment 20 BogdanB 2023-01-02 17:37:44 UTC
(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.
Comment 21 BogdanB 2023-01-02 17:43:13 UTC
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!
Comment 22 BogdanB 2023-01-04 15:45:17 UTC
*** Bug 150704 has been marked as a duplicate of this bug. ***
Comment 23 Commit Notification 2023-01-05 09:57:26 UTC
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.
Comment 24 BogdanB 2023-01-05 16:01:00 UTC
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.