Bug 149359 - Assertion failed: (index >= 0 && static_cast<sal_uInt32>(index) < static_cast<sal_uInt32>(getLength())), function operator[], file ustring.hxx, line 842.
Summary: Assertion failed: (index >= 0 && static_cast<sal_uInt32>(index) < static_cast...
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
7.4.0.0 alpha0+
Hardware: All macOS (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Track-Changes Crash-Assert
  Show dependency treegraph
 
Reported: 2022-05-29 08:02 UTC by Telesto
Modified: 2023-03-21 03:58 UTC (History)
4 users (show)

See Also:
Crash report or crash signature:


Attachments
BT with symbols (11.39 KB, text/plain)
2022-05-29 08:03 UTC, Telesto
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Telesto 2022-05-29 08:02:58 UTC
Description:
Assertion failed: (index >= 0 && static_cast<sal_uInt32>(index) < static_cast<sal_uInt32>(getLength())), function operator[], file ustring.hxx, line 842.

Steps to Reproduce:
1. Open attachment 165697 [details]
2. Place the cursor after x
3. Press say ==
4. CTRL+Z
5. CTRL+Y
6. CTRL+Z

Actual Results:
Assertion failed: (index >= 0 && static_cast<sal_uInt32>(index) < static_cast<sal_uInt32>(getLength())), function operator[], file ustring.hxx, line 842.

Expected Results:
No assert


Reproducible: Always


User Profile Reset: No



Additional Info:
Version: 7.4.0.0.alpha1+ / LibreOffice Community
Build ID: 62531ec1091c7b3f6a3577889a18234790ec716d
CPU threads: 8; OS: Mac OS X 12.3.1; UI render: Skia/Metal; VCL: osx
Locale: nl-NL (nl_NL.UTF-8); UI: en-US
Calc: threaded
Comment 1 Telesto 2022-05-29 08:03:48 UTC
Created attachment 180451 [details]
BT with symbols
Comment 2 Rainer Bielefeld Retired 2022-05-29 16:42:15 UTC
I don't understand STR. Place cursor where?
Comment 3 Aron Budea 2022-05-29 16:55:59 UTC
(In reply to Telesto from comment #0)
> 2. Place the cursor after x
Yeah, there's no "x" in the document.
Comment 4 Telesto 2022-05-29 17:53:48 UTC
1. Open attachment 173161 [details]
2. Place the cursor after x
3. Press say == (does need to be necessarily == I guess)
4. CTRL+Z
5. CTRL+Y
6. CTRL+Z
Comment 5 Aron Budea 2022-05-29 20:10:44 UTC
No assertion failure in a local debug build of LO 7.4.0.0.alpha1+ (c3e9eb997f409f7fcf42659adedff43a8ade913d) / Windows.
Comment 6 Rainer Bielefeld Retired 2022-05-30 11:10:09 UTC
NOT reproducible with attachment 173161 [details], STR and Server Installation of Version: 7.4.0.0.alpha0+ (x64)  Build ID b871abad383583f02eb49c7e49aeae01f6941072
CPU threads: 12; OS: Windows 10.0 Build 19044; UI render: Skia/Raster; VCL: win
LLocale: de-DE (de_DE); UI: en-US  |  Calc: CL  |  Auto Colibre Theme  |  Special devUserProfile based on my normal User Profile 

Currently only observed with MacOS

@reporter:
Please test with newly created User Profile!
Comment 7 Telesto 2022-05-30 11:24:39 UTC
(In reply to Rainer Bielefeld Retired from comment #6)
Note asserts will only occur with debug builds (so local builds with debug symbols enabled or @39 daily). 

It might be even compiler depended.
Comment 8 QA Administrators 2022-06-01 03:38:49 UTC Comment hidden (obsolete)
Comment 9 Gabor Kelemen (allotropia) 2022-08-18 10:21:52 UTC
No repro here either:

Version: 7.5.0.0.alpha0+ / LibreOffice Community
Build ID: 1052ec9cff72e2810fdb934a85ab500d3b4ace35
CPU threads: 8; OS: Linux 5.4; UI render: default; VCL: gtk3
Locale: hu-HU (hu_HU.UTF-8); UI: hu-HU
Calc: threaded
Comment 10 Buovjaga 2023-03-17 12:51:52 UTC
(In reply to Telesto from comment #4)
> 1. Open attachment 173161 [details]
> 2. Place the cursor after x
> 3. Press say == (does need to be necessarily == I guess)
> 4. CTRL+Z
> 5. CTRL+Y
> 6. CTRL+Z

No assertion with my debug build

Arch Linux 64-bit, X11
Version: 7.6.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: f0ff4243d45b11f372a2ed824fbb8806de9cb595
CPU threads: 8; OS: Linux 6.2; UI render: default; VCL: kf5 (cairo+xcb)
Locale: fi-FI (fi_FI.UTF-8); UI: en-US
Calc: threaded
Built on 17 March 2023
Comment 11 Telesto 2023-03-20 23:56:28 UTC
No repro
Version: 7.6.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: d8ae6d1388f28c405c4de2dfe93dbfe2d8acd470
CPU threads: 8; OS: Mac OS X 12.6.3; UI render: Skia/Raster; VCL: osx
Locale: nl-NL (nl_NL.UTF-8); UI: en-US
Calc: threaded