<html>
    <head>
      <base href="https://bugs.documentfoundation.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_UNCONFIRMED "
   title="UNCONFIRMED - LibreOffice Calc may hang at 100 % CPU usage"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=114509">114509</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>LibreOffice Calc may hang at 100 % CPU usage
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>LibreOffice
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>6.0.0.0.beta2
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>x86-64 (AMD64)
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux (All)
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>UNCONFIRMED
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>Calc
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>libreoffice-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>federicoleva@tiscali.it
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Description:
I have a rather big spreadsheet which sometimes hangs LibreOffice Calc forever.
CPU is maxed out at 100 %, while RAM is stable and GPU doesn't seem to be doing
anything (according to radeontop).

I'm collecting some of the information requested in <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED INVALID - soffice.bin loads the CPU on 90-100%"
   href="show_bug.cgi?id=46468">bug 46468</a> now. The strace
has little output but it seems to show that nothing is really happening: most
of the lines are like

[pid  9317] futex(0x7efffc7e1040, FUTEX_WAKE_PRIVATE, 1) = 0
[pid  9317] futex(0x7efffc7e12ac,
FUTEX_WAIT_BITSET_PRIVATE|FUTEX_CLOCK_REALTIME, 7791, {tv_sec=1513504177,
tv_nsec=959517000}, 0xffffffff) = -1 ETIMEDOUT (Connection timed out)

Steps to Reproduce:
1. Open a long table (in my case it's a CSV with ~500k lines, about 100 MB in
size)
2. Launch some operation, for instance a VLOOKUP over a few hundred thousands
lines (applying the formula with a whole column by e.g. ctrl-c ctrl-p as in
<a href="https://stackoverflow.com/a/31271467/1333493">https://stackoverflow.com/a/31271467/1333493</a> )

Actual Results:  
After several hours, LibreOffice is still unresponsive (trying to switch to its
window will not bring up anything on the screen).

In the worst case, usually after working on the document for a bit, even the
smallest operation will hang libreoffice for a few minutes: for instance
clicking a cell, or typing one letter, or clicking a menu item. Parts of its
GUI may be stuck on the screen even when switching to other programs, until
it's done. This variant is usually temporary: by closing the document and
opening it again, the spreadsheet is again usable.

Expected Results:
LibreOffice should work hard for a while, probably consuming GPU resources as
well, and potentially be unresponsive, but eventually finish the job or crash.


Reproducible: Sometimes


User Profile Reset: No


OpenGL enabled: Yes

Additional Info:
$ libreoffice --version
LibreOffice 5.2.7.2 20(Build:2)
$ rpm -qa | grep libreoffice
libreoffice-ure-common-5.2.7.2-12.fc25.noarch
libreoffice-impress-5.2.7.2-12.fc25.x86_64
libreoffice-langpack-en-5.2.7.2-12.fc25.x86_64
libreoffice-5.2.7.2-12.fc25.x86_64
libreoffice-ure-5.2.7.2-12.fc25.x86_64
libreoffice-math-5.2.7.2-12.fc25.x86_64
libreoffice-gtk3-5.2.7.2-12.fc25.x86_64
libreoffice-opensymbol-fonts-5.2.7.2-12.fc25.noarch
libreoffice-x11-5.2.7.2-12.fc25.x86_64
libreoffice-graphicfilter-5.2.7.2-12.fc25.x86_64
libreoffice-emailmerge-5.2.7.2-12.fc25.x86_64
libreoffice-writer-5.2.7.2-12.fc25.x86_64
libreoffice-core-5.2.7.2-12.fc25.x86_64
libreoffice-langpack-it-5.2.7.2-12.fc25.x86_64
libreoffice-gtk2-5.2.7.2-12.fc25.x86_64
libreoffice-pdfimport-5.2.7.2-12.fc25.x86_64
libreoffice-calc-5.2.7.2-12.fc25.x86_64
libreoffice-draw-5.2.7.2-12.fc25.x86_64
libreoffice-base-5.2.7.2-12.fc25.x86_64
libreoffice-pyuno-5.2.7.2-12.fc25.x86_64
libreoffice-data-5.2.7.2-12.fc25.noarch
libreoffice-wiki-publisher-5.2.7.2-12.fc25.x86_64
$ uname -a
Linux a88x 4.13.11-100.fc25.x86_64 #1 SMP Thu Nov 2 19:58:50 UTC 2017 x86_64
x86_64 x86_64 GNU/Linux
$ lshw
[...]
     *-memory
          description: System memory
          physical id: 0
          size: 14GiB
     *-cpu
          product: AMD A8-7600 Radeon R7, 10 Compute Cores 4C+6G
          vendor: Advanced Micro Devices [AMD]
[...]
        *-display
             description: VGA compatible controller
             product: Kaveri [Radeon R7 Graphics]
             vendor: Advanced Micro Devices, Inc. [AMD/ATI]
             physical id: 1
             bus info: pci@0000:00:01.0
             version: 00
             width: 64 bits
             clock: 33MHz
             capabilities: vga_controller bus_master cap_list rom
             configuration: driver=radeon latency=0
             resources: irq:44 memory:c0000000-cfffffff
memory:d0000000-d07fffff ioport:f000(size=256) memory:feb00000-feb3ffff
memory:c0000-dffff


User-Agent: Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:56.0) Gecko/20100101
Firefox/56.0</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>