[Bug 167295] The program freezes when changing the table column size

2025-07-15 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=167295

--- Comment #10 from Miklos Vajna  ---
Ah, does  mean justify? It's a recently reworked area,
Laszlo did a ton of work on Word's new "smart justify", I wonder if you hit a
loop in the smart justify code once you resize your table column.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 167295] The program freezes when changing the table column size

2025-07-14 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=167295

--- Comment #9 from Vladislav Tarakanov  ---
Created attachment 201798
  --> https://bugs.documentfoundation.org/attachment.cgi?id=201798&action=edit
Compare w:jc both and left

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 167295] The program freezes when changing the table column size

2025-07-14 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=167295

--- Comment #8 from Vladislav Tarakanov  ---
It seems that the problem with the infinite loops somehow depends on the
alignment of the content in the paragraph after the table.

If in document.xml `` is changed to ``,
then the displayed content of the document will be visually different.
Apparently, any alignments other than "left" lead to the fact that the content
of the paragraph after the floating table begins to be duplicated on previous
pages.

When using "left" the freezing also occurs, but with much less frequency (it is
not so easy to find the right column size at which the freezing occurs) and
occurs somewhere else, and not in the previously noted "while (true)" loop.

The changed xml fragment:

  
  
  
  
  



  


Tested on:
Version: 26.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 4409ab659064e3d10e281d718a06b1ebf566
CPU threads: 12; OS: Linux 6.6; UI render: default; VCL: kf5 (cairo+xcb)
Locale: ru-RU (ru_RU.UTF-8); UI: en-US
Calc: CL threaded

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 167295] The program freezes when changing the table column size

2025-07-07 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=167295

--- Comment #7 from Miklos Vajna  ---
One way you can debug such a problem is to create a similar document with a
multi-page section: i.e. a section that contains enough paragraphs that is
spans over multiple pages. Then you can see how GetNextSctLeaf() works, the
concept is really similar. If there is not enough space on the current page,
optionally create a next page, find the potential anchor on that next page and
create a follow fly frame there.

I intend to look at this myself, but I'm not yet sure where I'll have the time.
When I do that, I'll comment here. Thanks.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 167295] The program freezes when changing the table column size

2025-07-04 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=167295

--- Comment #6 from Vladislav Tarakanov  ---
As far as I can see, the cause of the current bug is the following:

The problem appears in the "while (true)" loop in
"sw/source/core/layout/flycnt.cxx", method "GetNextFlyLeaf".

1 while iteration. In "if (bLeftBody || bLeftFly || bSameBody)"

1.1. pOldLayLeaf remembers the current value of pLayLeaf.
1.2. In the do...while loop below, pLayLeaf gets the value of
pLayLeaf->GetNextLayoutLeaf(), which is nullptr.

2 while iteration. In the "else" branch of "if (pLayLeaf)" at the top level, in
the case of "if (eMakePage == MAKEPAGE_INSERT)"

2.1 InsertPage is called
2.2 pLayLeaf gets the value of pOldLayLeaf

After 2.2 pLayLeaf gets the old value, for which
"pLayLeaf->GetNextLayoutLeaf()" is still nullptr, which causes an infinite loop
in the next while iterations.

Amin and I would like to try to fix this problem. Floating table issues affect
many of our users who are trying to migrate from MS Office while keeping their
existing docx files.

There may not be a specific commit that causes this regression, it looks more
like a cumulative issue. Based on this, we have a question - is it expected
that calling the "InsertPage" method will lead to changes in the pOldLayLeaf
fields that will change the value of NextLayoutLeaf from nullprt to something
else?

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 167295] The program freezes when changing the table column size

2025-07-03 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=167295

Timur  changed:

   What|Removed |Added

 Blocks||139532
   See Also||https://bugs.documentfounda
   ||tion.org/show_bug.cgi?id=15
   ||6260

--- Comment #5 from Timur  ---
I checked this and got different bisect commit:
commit  262a1ae36eaf20e741759cd2c216456bbb472f7c[log]
author  Miklos Vajna Wed Aug 02 09:56:49 2023 +0200
committer   Michael Stahl  Thu Aug 03
11:55:19 2023 +0200
tdf#156260 sw floattable: avoid moving text from the last anchor to its precede


Referenced Bugs:

https://bugs.documentfoundation.org/show_bug.cgi?id=139532
[Bug 139532] [META] DOCX Floating table related issues
-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 167295] The program freezes when changing the table column size

2025-07-01 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=167295

Saburo  changed:

   What|Removed |Added

  Regression By||Miklos Vajna
 CC||[email protected]
   Keywords|bibisectRequest |bibisected, bisected

--- Comment #4 from Saburo  ---
bibisected with linux-64-7.6
Version: 7.6.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: ce3308a926f036b87515b8cd97d2b197063dc77a

author  Miklos Vajna
commit  ce3308a926f036b87515b8cd97d2b197063dc77a

tdf#61594 sw floattable: import floating tables as split flys by default
To get wider testing.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 167295] The program freezes when changing the table column size

2025-06-30 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=167295

Telesto  changed:

   What|Removed |Added

   Keywords||bibisectRequest, regression
 CC||[email protected]

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 167295] The program freezes when changing the table column size

2025-06-30 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=167295

m_a_riosv  changed:

   What|Removed |Added

 Ever confirmed|0   |1
 Status|UNCONFIRMED |NEW
 CC||[email protected]
   ||rg

--- Comment #3 from m_a_riosv  ---
Reproducible
Version: 26.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: e7201fd7c51743cb103bae82263d98830f5174cf
CPU threads: 16; OS: Windows 11 X86_64 (build 26100); UI render: Skia/Raster;
VCL: win
Locale: en-US (es_ES); UI: en-US
Calc: CL threaded

Maybe it has some relation with the options:
- Add paragraph and table spacing at top of first page and page breaks
- Add paragraph and table spacing at bottom of table cells

Trying to modify this options and apply them, also hangs LO.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 167295] The program freezes when changing the table column size

2025-06-30 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=167295

--- Comment #2 from Vladislav Tarakanov  ---
Created attachment 201556
  --> https://bugs.documentfoundation.org/attachment.cgi?id=201556&action=edit
Video of reproducing

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 167295] The program freezes when changing the table column size

2025-06-30 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=167295

--- Comment #1 from Vladislav Tarakanov  ---
Created attachment 201555
  --> https://bugs.documentfoundation.org/attachment.cgi?id=201555&action=edit
Document with bug

-- 
You are receiving this mail because:
You are the assignee for the bug.