<html>
    <head>
      <base href="https://bugs.documentfoundation.org/">
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Fatal Error after insert a new line by Enter (std::bad_array_new_length)"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=140077#c8">Comment # 8</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Fatal Error after insert a new line by Enter (std::bad_array_new_length)"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=140077">bug 140077</a>
              from <span class="vcard"><a class="email" href="mailto:freedesktop@treblig.org" title="Dave Gilbert <freedesktop@treblig.org>"> <span class="fn">Dave Gilbert</span></a>
</span></b>
        <pre>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</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>