[Libreoffice-bugs] [Bug 140077] Fatal Error after insert a new line by Enter (std::bad_array_new_length)

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Sun Feb 21 15:07:29 UTC 2021


https://bugs.documentfoundation.org/show_bug.cgi?id=140077

--- Comment #8 from Dave Gilbert <freedesktop at treblig.org> ---
for me in 7.x head 130a866a2e289d78a680a57c0cdf84e7dd17d285
it's hanging rather than crashing as such; it's getting stuck in
CountCJKCharacters:

        while ( nPos < nEnd )
        {
            nPos = TextFrameIndex(g_pBreakIt->GetBreakIter()->nextCharacters(
                    rText, sal_Int32(nPos),
                    rLocale,
                    i18n::CharacterIteratorMode::SKIPCELL, 1, nDone));
            nCount++;
        }


SwTextPaintInfo::DrawBackBrush entry: 0x577cc10
lcl_AddSpace: (!pStr) nPos=23 nEnd=26
SwScriptInfo::CountCJKCharacters '承包人(全称): 重庆钢铁集团建设工程有限公司' nPos: 23 nEnd: 26
SwScriptInfo::CountCJKCharacters loop bottom: nPos: 23 nEnd: 26 nDone: 0
nCount: 1
SwScriptInfo::CountCJKCharacters loop bottom: nPos: 23 nEnd: 26 nDone: 0
nCount: 2
SwScriptInfo::CountCJKCharacters loop bottom: nPos: 23 nEnd: 26 nDone: 0
nCount: 3
SwScriptInfo::CountCJKCharacters loop bottom: nPos: 23 nEnd: 26 nDone: 0
nCount: 4

so nextCharacters is always giving the same answer

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20210221/21d31366/attachment.htm>


More information about the Libreoffice-bugs mailing list