Bug 120483 - Hangs when loading a specific html page and use 100% CPU
Summary: Hangs when loading a specific html page and use 100% CPU
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
6.0.6.2 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-10-10 13:31 UTC by fbezagu
Modified: 2018-10-31 20:12 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
Unloadable HTML file (2.22 KB, text/html)
2018-10-10 13:32 UTC, fbezagu
Details

Note You need to log in before you can comment on or make changes to this bug.
Description fbezagu 2018-10-10 13:31:32 UTC
Description:
I use LO (4.2.8.2) on a linux production server to convert HTML files to PDF. Most of the time, it works. But under special conditions, the soffice process use 100% CPU and can't convert file. 
I reproduced this behaviour on Windows with LO 6.0.6.2 and tried to delete everything in my file until it doesn't crash. I add the minimal html file causing the bug. 

Steps to Reproduce:
1. Save additional information to an HTML file
2. Open the HTML file


Actual Results:
Writer hangs 

Expected Results:
Writer should load the document


Reproducible: Always


User Profile Reset: No



Additional Info:
<html>
<body>
 <div> 
  <div> 
   <div> 
    <div> 
     <div> 
      <div> 
       <div> 
        <div> 
         <div> 
          <div  style="float:left;width:500"> 
           <div  style="float:left;width:400px"> 
            <div> 
             <div> 
              <div> 
               <div> 
                <div> 
                 <div> 
                  <div id="tata"> 
                   <div> 
                    <div> 
                     <div> 
                      <table> 
                       <table> 
                        <tr> 
                         <td> 
                          <div> 
                           <div> 
                            <div> 
                             <div> 
                              <div> 
                               <div> 
                                <div> 
                                 <div> 
                                  <div id="titi"> 
                                  
                                   <div> 
                                    <div> 
                                     <div> 
                                      <div id="toto"> 
                                       hello
                                      </div> 
                                     </div> 
                                    </div> 
                                   </div> 
                                  </div> 
                                 </div> 
                                </div> 
                               </div> 
                              </div> 
                             </div> 
                            </div> 
                           </div> 
                           
                          </div> 
                         </td> 
                        </tr> 
                       </table> 
                      </table> 
                     </div> 
                    </div> 
                   </div> 
                  </div> 
                 </div> 
                </div> 
               </div> 
              </div> 
             </div> 
            </div> 
           </div> 
          </div> 
         </div> 
        </div> 
       </div> 
      </div> 
    </div>
   </div> 
  </div> 
 </div> 
</div>
</body>
</html>
Comment 1 fbezagu 2018-10-10 13:32:36 UTC
Created attachment 145567 [details]
Unloadable HTML file
Comment 2 fbezagu 2018-10-10 14:18:26 UTC
Can't reproduce with LO "Evolution" 6.1.2.1.
Comment 3 Buovjaga 2018-10-31 20:12:01 UTC
(In reply to fbezagu from comment #2)
> Can't reproduce with LO "Evolution" 6.1.2.1.

I can't reproduce either, so let's be happy and close.

Arch Linux 64-bit
Version: 6.2.0.0.alpha1+
Build ID: 45d8fb0ba77396b7d5e02c2fc9a8ae5b233a02bc
CPU threads: 8; OS: Linux 4.18; UI render: default; VCL: gtk3_kde5; 
Locale: fi-FI (fi_FI.UTF-8); Calc: threaded
Built on 31 October 2018