[Libreoffice-bugs] [Bug 130314] LibreOffice 6.4.0.3 hang convert-to pdf 6.4.0.3

2020-09-15 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=130314

Timur  changed:

   What|Removed |Added

   Keywords|regression  |
   Severity|normal  |major

-- 
You are receiving this mail because:
You are the assignee for the bug.___
Libreoffice-bugs mailing list
Libreoffice-bugs@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs


[Libreoffice-bugs] [Bug 130314] LibreOffice 6.4.0.3 hang convert-to pdf 6.4.0.3

2020-09-14 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=130314

--- Comment #10 from Justin L  ---
(In reply to Jan-Marek Glogowski from comment #8)
> commit 9fc9510ae3f46e5c1fd65303bac9f01ddc79cb5c
> tdf#106174 writerfilter: bidi - prev adjust? prev bidi?
> 
> This patch introduces / uncovers a bug / state, which
> SwScriptInfo::CountCJKCharacters can't handle.

My involvement here results in the paragraph style "Plain Text"'s "full
justify" positioning taking effect, instead of having a "left justify" direct
formatting plastered on each paragraph. (And that is correct BTW - Word 2016
shows most paragraphs with full justify.)

And that makes sense, since the space calculation would come into effect for
justifying each line. So my commit has just exposed an existing bug.

-- 
You are receiving this mail because:
You are the assignee for the bug.___
Libreoffice-bugs mailing list
Libreoffice-bugs@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs


[Libreoffice-bugs] [Bug 130314] LibreOffice 6.4.0.3 hang convert-to pdf 6.4.0.3

2020-09-13 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=130314

Jan-Marek Glogowski  changed:

   What|Removed |Added

  Component|Printing and PDF export |Writer
   Keywords|perf|

--- Comment #9 from Jan-Marek Glogowski  ---
FWIW: the same bug happens, if you scroll the document to page 28. And it's
Writer specific, so moving the bug there.

-- 
You are receiving this mail because:
You are the assignee for the bug.___
Libreoffice-bugs mailing list
Libreoffice-bugs@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs


[Libreoffice-bugs] [Bug 130314] LibreOffice 6.4.0.3 hang convert-to pdf 6.4.0.3

2020-09-13 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=130314

Jan-Marek Glogowski  changed:

   What|Removed |Added

 CC||jl...@mail.com,
   ||mark...@gmail.com

--- Comment #8 from Jan-Marek Glogowski  ---
(In reply to Buovjaga from comment #7)
> (In reply to Telesto from comment #6)
> > @Buovjaga
> > Maybe ICU too? Same as bug 126344 (speculation)
> 
> It's not the ICU update. Bibisected with win32-6.2 to
> https://git.libreoffice.org/core/+/
> fad862e290d727fc9fefe206f6e4b807482c4175%5E!/
> tdf#118555 fix HFONT fallback handing / lifecycle
> 
> Adding Cc: to Jan-Marek Glogowski
> 
> I tested using GUI, not command line.
> 
> Previous commit takes 12 seconds.
> Blamed commit takes 55 seconds.

While I know this commit added quite some overhead for Windows initially, it
can't be the problematic commit, because that commit is Windows only. FWIW I
don't know about the current state.

So I bibisected myself. The good time here is ~10s. And the bad time is oo (AKA
unlimited) - the document never finishes, as the reporter claimed, which is
true.

This started with:

commit 9fc9510ae3f46e5c1fd65303bac9f01ddc79cb5c
tdf#106174 writerfilter: bidi - prev adjust? prev bidi?

This patch introduces / uncovers a bug / state, which
SwScriptInfo::CountCJKCharacters can't handle.

That code was added in

commit dcef76b34aa1dca8389b3c068dc3d82a11d2c382
tdf#43740 Count CJK characters to distribute spaces.

The problem is, that for the bugdoc rText.getLength() < nEnd, so nPos < nEnd is
will always true. Maybe the loop should just end, if nDone == 0? No idea, if
even the input can be considered correct.

I simply couldn't uncover the constraints of rText, nPos, nEnd, SwTextSizeInfo
and SwLinePortion and their respective Len, Idx and Text values in more then a
few hours (incl. debug, callgrind). Every time I thought I had grooked it, I
found something new, like it's valid that Idx + Len > len(Text)...

-- 
You are receiving this mail because:
You are the assignee for the bug.___
Libreoffice-bugs mailing list
Libreoffice-bugs@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs


[Libreoffice-bugs] [Bug 130314] LibreOffice 6.4.0.3 hang convert-to pdf 6.4.0.3

2020-06-09 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=130314

Aron Budea  changed:

   What|Removed |Added

   See Also||https://bugs.documentfounda
   ||tion.org/show_bug.cgi?id=11
   ||8555
 CC||ba...@caesar.elte.hu
Version|6.4.0.3 release |6.2.0.3 release

-- 
You are receiving this mail because:
You are the assignee for the bug.___
Libreoffice-bugs mailing list
Libreoffice-bugs@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs


[Libreoffice-bugs] [Bug 130314] LibreOffice 6.4.0.3 hang convert-to pdf 6.4.0.3

2020-06-09 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=130314

Buovjaga  changed:

   What|Removed |Added

   Keywords|bibisectRequest |bibisected, bisected, perf
  Component|LibreOffice |Printing and PDF export
 CC||glo...@fbihome.de

--- Comment #7 from Buovjaga  ---
(In reply to Telesto from comment #6)
> @Buovjaga
> Maybe ICU too? Same as bug 126344 (speculation)

It's not the ICU update. Bibisected with win32-6.2 to
https://git.libreoffice.org/core/+/fad862e290d727fc9fefe206f6e4b807482c4175%5E!/
tdf#118555 fix HFONT fallback handing / lifecycle

Adding Cc: to Jan-Marek Glogowski

I tested using GUI, not command line.

Previous commit takes 12 seconds.
Blamed commit takes 55 seconds.

-- 
You are receiving this mail because:
You are the assignee for the bug.___
Libreoffice-bugs mailing list
Libreoffice-bugs@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs


[Libreoffice-bugs] [Bug 130314] LibreOffice 6.4.0.3 hang convert-to pdf 6.4.0.3

2020-06-08 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=130314

Telesto  changed:

   What|Removed |Added

 CC||ilmari.lauhakangas@libreoff
   ||ice.org
   See Also||https://bugs.documentfounda
   ||tion.org/show_bug.cgi?id=12
   ||6344

--- Comment #6 from Telesto  ---
@Buovjaga
Maybe ICU too? Same as bug 126344 (speculation)

-- 
You are receiving this mail because:
You are the assignee for the bug.___
Libreoffice-bugs mailing list
Libreoffice-bugs@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs


[Libreoffice-bugs] [Bug 130314] LibreOffice 6.4.0.3 hang convert-to pdf 6.4.0.3

2020-06-07 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=130314

Telesto  changed:

   What|Removed |Added

   Keywords||regression

-- 
You are receiving this mail because:
You are the assignee for the bug.___
Libreoffice-bugs mailing list
Libreoffice-bugs@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs


[Libreoffice-bugs] [Bug 130314] LibreOffice 6.4.0.3 hang convert-to pdf 6.4.0.3

2020-06-07 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=130314

--- Comment #5 from Telesto  ---
Created attachment 161746
  --> https://bugs.documentfoundation.org/attachment.cgi?id=161746=edit
Example file

-- 
You are receiving this mail because:
You are the assignee for the bug.___
Libreoffice-bugs mailing list
Libreoffice-bugs@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs


[Libreoffice-bugs] [Bug 130314] LibreOffice 6.4.0.3 hang convert-to pdf 6.4.0.3

2020-02-04 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=130314

Eike Rathke  changed:

   What|Removed |Added

   Keywords||bibisectRequest

-- 
You are receiving this mail because:
You are the assignee for the bug.___
Libreoffice-bugs mailing list
Libreoffice-bugs@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs


[Libreoffice-bugs] [Bug 130314] LibreOffice 6.4.0.3 hang convert-to pdf 6.4.0.3

2020-02-01 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=130314

--- Comment #4 from Julien Nabet  ---
(In reply to jinhongxin from comment #3)
> is the root cause from font?

If it worked before, I'd rather say ICU component more than the font but I'm
not an expert.

-- 
You are receiving this mail because:
You are the assignee for the bug.___
Libreoffice-bugs mailing list
Libreoffice-bugs@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs


[Libreoffice-bugs] [Bug 130314] LibreOffice 6.4.0.3 hang convert-to pdf 6.4.0.3

2020-02-01 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=130314

--- Comment #3 from jinhongxin <22580...@qq.com> ---
is the root cause from font?

-- 
You are receiving this mail because:
You are the assignee for the bug.___
Libreoffice-bugs mailing list
Libreoffice-bugs@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs


[Libreoffice-bugs] [Bug 130314] LibreOffice 6.4.0.3 hang convert-to pdf 6.4.0.3

2020-01-31 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=130314

Julien Nabet  changed:

   What|Removed |Added

 CC||er...@redhat.com
 Status|UNCONFIRMED |NEW
 Ever confirmed|0   |1

--- Comment #2 from Julien Nabet  ---
Eike: it seems there's some loop there:
#0  0x7fffe1239684 in
i18npool::BreakIteratorImpl::getLocaleSpecificBreakIterator(com::sun::star::lang::Locale
const&) (this=0x5837f0f0, rLocale=...)
at
/home/julien/lo/libreoffice/i18npool/source/breakiterator/breakiteratorImpl.cxx:575
#1  0x7fffe123761d in
i18npool::BreakIteratorImpl::nextCharacters(rtl::OUString const&, int,
com::sun::star::lang::Locale const&, short, int, int&)
(this=0x5837f0f0, Text="", nStartPos=4, rLocale=...,
nCharacterIteratorMode=1, nCount=1, nDone=@0x7ffecdd8: 0)
at
/home/julien/lo/libreoffice/i18npool/source/breakiterator/breakiteratorImpl.cxx:58
#2  0x7fffd9eacd30 in SwScriptInfo::CountCJKCharacters(rtl::OUString
const&, o3tl::strong_int, o3tl::strong_int, o3tl::strong_int)
(rText="", nPos=..., nEnd=..., aLang=...) at
/home/julien/lo/libreoffice/sw/source/core/text/porlay.cxx:2604
#3  0x7fffd9edd1d5 in lcl_AddSpace(SwTextSizeInfo const&, rtl::OUString
const*, SwLinePortion const&) (rInf=..., pStr=0x7ffed390, rPor=...)
at /home/julien/lo/libreoffice/sw/source/core/text/portxt.cxx:100
#4  0x7fffd9edf9f9 in SwTextPortion::CalcSpacing(long, SwTextSizeInfo
const&) const (this=0x5f28f5a0, nSpaceAdd=184, rInf=...) at
/home/julien/lo/libreoffice/sw/source/core/text/portxt.cxx:646
#5  0x7fffd9e62602 in SwTextPaintInfo::CalcRect(SwLinePortion const&,
SwRect*, SwRect*, bool) const (this=0x7ffed7d0, rPor=...,
pRect=0x7ffed0b0, pIntersect=0x0, bInsideBox=true)
at /home/julien/lo/libreoffice/sw/source/core/text/inftxt.cxx:796

More precisely:
Thread 1 "soffice.bin" hit Breakpoint 3, SwScriptInfo::CountCJKCharacters
(rText="", nPos=..., nEnd=..., aLang=...) at
/home/julien/lo/libreoffice/sw/source/core/text/porlay.cxx:2604
2604nPos =
TextFrameIndex(g_pBreakIt->GetBreakIter()->nextCharacters(

(gdb) p nCount
$5 = {m_value = -1205828024}

-- 
You are receiving this mail because:
You are the assignee for the bug.___
Libreoffice-bugs mailing list
Libreoffice-bugs@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs


[Libreoffice-bugs] [Bug 130314] LibreOffice 6.4.0.3 hang convert-to pdf 6.4.0.3

2020-01-31 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=130314

Julien Nabet  changed:

   What|Removed |Added

 CC||serval2...@yahoo.fr

--- Comment #1 from Julien Nabet  ---
Created attachment 157569
  --> https://bugs.documentfoundation.org/attachment.cgi?id=157569=edit
perf flamegraph

Here's a Flamegraph retrieved on pc Debian x86-64 with master sources updated
today.

-- 
You are receiving this mail because:
You are the assignee for the bug.___
Libreoffice-bugs mailing list
Libreoffice-bugs@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs