Bug 135380 - !!br0ken!! error appears for fields
Summary: !!br0ken!! error appears for fields
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
7.0.0.0.alpha0+
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: bibisectNotNeeded, haveBacktrace, regression
Depends on:
Blocks: Paste
  Show dependency treegraph
 
Reported: 2020-08-02 09:15 UTC by Telesto
Modified: 2024-08-08 06:36 UTC (History)
6 users (show)

See Also:
Crash report or crash signature:


Attachments
gdbtrace.log (26.56 KB, text/x-log)
2020-11-07 04:26 UTC, Kevin Suo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Telesto 2020-08-02 09:15:45 UTC Comment hidden (obsolete)
Comment 1 Xisco Faulí 2020-08-03 15:48:17 UTC
no attached file
Comment 2 Telesto 2020-08-03 18:16:08 UTC
1. Open attachment 163909 [details]
2. CTRL+A
3. CTRL+C
4. Place cursor next to the current field
5. CTRL+V 3x
6. CTRL+Z 3x
7. Paste -> !!br0ken!!
Comment 3 Xisco Faulí 2020-08-04 11:37:17 UTC
Reproduced in

Version: 7.1.0.0.alpha0+
Build ID: 58937aa4a50ecd681382f03331340da4c843b01e
CPU threads: 4; OS: Linux 4.19; UI render: default; VCL: gtk3
Locale: en-US (en_US.UTF-8); UI: en-US
Calc: threaded
Comment 4 Xisco Faulí 2020-08-04 11:38:32 UTC
Not reproducible in

Version 4.1.0.0.alpha0+ (Build ID: efca6f15609322f62a35619619a6d5fe5c9bd5a)
Comment 5 Kevin Suo 2020-11-07 04:26:52 UTC
Created attachment 167070 [details]
gdbtrace.log

There seems to be a crash.

Console output:
soffice.bin: /home/suokunlong/build/lo/master/sw/source/core/txtnode/atrfld.cxx:682:void SwTextInputField::UpdateTextNodeContent(const rtl::OUString&): Asset ‘IsFieldInDoc() && "<SwTextInputField::UpdateTextNodeContent(..)> - misusage as Input Field is not in document content."’ failed.

gdb backtrace attached.
Comment 6 Kevin Suo 2020-11-07 04:30:59 UTC
The bug already exist at least in:
2019-11-13 16:51:24 +0100 9bc848cf0d301aa57eabcffa101a1cf87bad6470

Have not tested older versions. If bibisect is really needed, then need to use some old bibisect repos.
Comment 7 QA Administrators 2022-11-08 03:48:00 UTC Comment hidden (obsolete)
Comment 8 Rajasekaran Karunanithi 2023-02-02 11:39:49 UTC
Reproducable in LO 7.6 Dev under Windows 10(x64).

Version: 7.6.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 1c638b7ac46d8077994c8483e6becc4a33efd12b
CPU threads: 4; OS: Windows 10.0 Build 19044; UI render: Skia/Raster; VCL: win
Locale: en-IN (en_IN); UI: en-US
Calc: threaded
Comment 9 Buovjaga 2024-08-06 18:01:09 UTC
This is a bit confusing. In the oldest of Linux 42max repo, the field says "Input field ff" upon opening. The issue is comment 2 is not reproducible. In latest of 42max repo, the field says "BR0KE!N" upon opening. Same for Windows 4.3 repo. Reproducing seems pointless as it is broken already.

Am I getting a different starting point than all of you?
Comment 10 Telesto 2024-08-06 19:30:08 UTC
I don't see !!br0ken!! anymore. There is still lots of quirkiness going on, though.

From scratch:

1. New Writer Document
2. Insert -> Fields -> More Fields
3. Variables Tab
4. User Field -> Type TEXT -> Name: Hello -> Value: World
5. Green V
6. Input Field -> Select Hello & Click Insert + OK
7. Close the dialog
8. CTRL+A + CTRL+C
9. Place cursor after 'World'
10. CTRL+V
11. CTRL+Z
12. Double Click World -> Dialog Appears
13. Press OK. Another 'World' being added
14. Place cursor after 'WorldWorld;  and CTRL+V (now paste becomes odd, adding multiple 'World' entry's)
15. Press CTRL+Z (undo doesn't work properly anymore)

Version: 25.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 055c906d7b3f2e3709292d1410358d4e66a500ed
CPU threads: 4; OS: Windows 8.1 X86_64 (6.3 build 9600); UI render: Skia/Raster; VCL: win
Locale: nl-NL (nl_NL); UI: en-US
Calc: CL threaded
Comment 11 Buovjaga 2024-08-07 07:21:12 UTC
(In reply to Buovjaga from comment #9)
> This is a bit confusing. In the oldest of Linux 42max repo, the field says
> "Input field ff" upon opening. The issue is comment 2 is not reproducible.
> In latest of 42max repo, the field says "BR0KE!N" upon opening. Same for
> Windows 4.3 repo. Reproducing seems pointless as it is broken already.

The result I got in 42max repo seems bogus, but is consistent: b8002169336b6b7597d32755e41fa3dc2688539e

remove INPATH and PROEXT

- WORKDIR path is just workdir
- INSTDIR path is just instdir
- WORKDIR_FOR_BUILD is workdir_for_build
- INSTDIR_FOR_BUILD is instdir_for_build
- replace other usage of INPATH by combination of OS and CPUNAME

Why would build system tweaks lead to this?
Comment 12 Buovjaga 2024-08-07 07:27:42 UTC
(In reply to Telesto from comment #10)
> I don't see !!br0ken!! anymore. There is still lots of quirkiness going on,
> though.
> 
> From scratch:
> 
> 1. New Writer Document
> 2. Insert -> Fields -> More Fields
> 3. Variables Tab
> 4. User Field -> Type TEXT -> Name: Hello -> Value: World
> 5. Green V
> 6. Input Field -> Select Hello & Click Insert + OK
> 7. Close the dialog
> 8. CTRL+A + CTRL+C
> 9. Place cursor after 'World'
> 10. CTRL+V
> 11. CTRL+Z
> 12. Double Click World -> Dialog Appears
> 13. Press OK. Another 'World' being added

No repro. Safe mode?

Version: 25.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: ec5235ddfd62ca490d13fbc2c91e740a44f9950e
CPU threads: 2; OS: Windows 11 X86_64 (10.0 build 22621); UI render: default; VCL: win
Locale: en-US (en_US); UI: en-GB
Calc: threaded

Version: 25.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: ca466a4a01657e2dad61ca909bd6ab5188f8ccc9
CPU threads: 8; OS: Linux 6.10; UI render: default; VCL: kf6 (cairo+wayland)
Locale: fi-FI (fi_FI.UTF-8); UI: en-US
Calc: CL threaded