[Libreoffice-bugs] [Bug 125459] New: Document won't load, memory grows continually

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Thu May 23 11:57:13 UTC 2019


https://bugs.documentfoundation.org/show_bug.cgi?id=125459

            Bug ID: 125459
           Summary: Document won't load, memory grows continually
           Product: LibreOffice
           Version: 6.2.3.2 release
          Hardware: x86-64 (AMD64)
                OS: Linux (All)
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: Writer
          Assignee: libreoffice-bugs at lists.freedesktop.org
          Reporter: luke.kendall at gmail.com

Created attachment 151625
  --> https://bugs.documentfoundation.org/attachment.cgi?id=151625&action=edit
One of the documents that won't load

I tried to open an old version of my manuscript edited last with Writer 6.0 or
so (containing many comments), with 6.2.3.2.

Doing so locks up any LO documents already open, and the new document doesn't
load.  By which I mean, the "Loading progress bar is displayed, comnpletes,
runs again, vanishes, and the document window stays greyed out. The main
document canvas is never drawn in with any document content, and the normal
toolbars are not even drawn.  (I killed the process after letting it run for
3h30m.)

Memory use grows steadily.  Looking at "top", the size slowly grew to the 2GB
mark for Writer, then 3GB, then 4GB, and so on.

E.g. after about 20 mins trying to load:
  PID USER      PR  NI    VIRT    RES    SHR S  %CPU %MEM     TIME+ COMMAND     
 3679 luke      20   0 4635724 3.403g  43624 R  99.0 22.2  13:23.75 soffice.bin 

A few minutes later:

  PID USER      PR  NI    VIRT    RES    SHR S  %CPU %MEM     TIME+ COMMAND     
 3679 luke      20   0 4659036 3.426g  43624 R  99.7 22.3  14:38.69 soffice.bin 

I was able to open the file correctly with Writer 6.0.5.2. So I made an
obfuscated version of the file and saved that.  

If examined with gdb, it seems to be mostly calling malloc.  Two sizes I saw
were 296 bytes and 88 bytes.

(Because of the 100% CPU load bug in glib2 timer code, I run soffice after
setting SAL_USE_VCLPLUGIN=gen.)

Example stack traceback:

(gdb) where
#0  _int_malloc (av=av at entry=0x7f425f066b20 <main_arena>, 
    bytes=bytes at entry=296) at malloc.c:3421
#1  0x00007f425ed26184 in __GI___libc_malloc (bytes=296) at malloc.c:2913
#2  0x00007f425f09a3af in ?? ()
   from /opt/libreoffice6.2/program/libuno_sal.so.3
#3  0x00007f425f098e1d in rtl_uStringbuffer_ensureCapacity ()
   from /opt/libreoffice6.2/program/libuno_sal.so.3
#4  0x00007f425f098f30 in rtl_uStringbuffer_insert ()
   from /opt/libreoffice6.2/program/libuno_sal.so.3
#5  0x00007f4261acf1c0 in INetURLObject::appendUCS4(rtl::OUStringBuffer&,
unsigned int, INetURLObject::EscapeType, INetURLObject::Part, unsigned short,
bool)
    () from /opt/libreoffice6.2/program/libmergedlo.so
#6  0x00007f4261ad2d40 in ?? () from /opt/libreoffice6.2/program/libmergedlo.so
#7  0x00007f4261ad5d1d in INetURLObject::setAbsURIRef(rtl::OUString const&,
INetURLObject::EncodeMechanism, unsigned short, bool, FSysStyle) ()
   from /opt/libreoffice6.2/program/libmergedlo.so
#8  0x00007f426123611b in ?? () from /opt/libreoffice6.2/program/libmergedlo.so
#9  0x00007f42612362de in ?? () from /opt/libreoffice6.2/program/libmergedlo.so
#10 0x00007f42612362de in ?? () from /opt/libreoffice6.2/program/libmergedlo.so
#11 0x00007f42612362de in ?? () from /opt/libreoffice6.2/program/libmergedlo.so
#12 0x00007f42612362de in ?? () from /opt/libreoffice6.2/program/libmergedlo.so
#13 0x00007f42612362de in ?? () from /opt/libreoffice6.2/program/libmergedlo.so
#14 0x00007f42612362de in ?? () from /opt/libreoffice6.2/program/libmergedlo.so
#15 0x00007f42612362de in ?? () from /opt/libreoffice6.2/program/libmergedlo.so
#16 0x00007f42612362de in ?? () from /opt/libreoffice6.2/program/libmergedlo.so
#17 0x00007f42612362de in ?? () from /opt/libreoffice6.2/program/libmergedlo.so
#18 0x00007f42612362de in ?? () from /opt/libreoffice6.2/program/libmergedlo.so
#19 0x00007f42612362de in ?? () from /opt/libreoffice6.2/program/libmergedlo.so
#20 0x00007f42612362de in ?? () from /opt/libreoffice6.2/program/libmergedlo.so
#21 0x00007f42612362de in ?? () from /opt/libreoffice6.2/program/libmergedlo.so
#22 0x00007f42612362de in ?? () from /opt/libreoffice6.2/program/libmergedlo.so
#23 0x00007f4261238359 in ?? () from /opt/libreoffice6.2/program/libmergedlo.so
#24 0x00007f4261238efd in ?? () from /opt/libreoffice6.2/program/libmergedlo.so
#25 0x00007f4260e9f73e in ?? () from /opt/libreoffice6.2/program/libmergedlo.so
#26 0x00007f4260ea15ed in ?? () from /opt/libreoffice6.2/program/libmergedlo.so
#27 0x00007f4260e8b2a7 in ?? () from /opt/libreoffice6.2/program/libmergedlo.so
#28 0x00007f4260e8ccda in SfxDocumentTemplates::GetFull(rtl::OUString const&,
rtl::OUString const&, rtl::OUString&) ()
   from /opt/libreoffice6.2/program/libmergedlo.so
#29 0x00007f4260ebfe9b in ?? () from /opt/libreoffice6.2/program/libmergedlo.so
#30 0x00007f4260f15e6c in
SfxBaseModel::connectController(com::sun::star::uno::Reference<com::sun::star::frame::XController>
const&) ()
   from /opt/libreoffice6.2/program/libmergedlo.so
#31 0x00007f4260fadf7a in ?? () from /opt/libreoffice6.2/program/libmergedlo.so
#32 0x00007f426091a0ba in ?? () from /opt/libreoffice6.2/program/libmergedlo.so
#33 0x00007f426091b7e6 in ?? () from /opt/libreoffice6.2/program/libmergedlo.so
#34 0x00007f42608b3835 in ?? () from /opt/libreoffice6.2/program/libmergedlo.so
#35 0x00007f42608b4528 in ?? () from /opt/libreoffice6.2/program/libmergedlo.so
#36 0x00007f42603b91c0 in
comphelper::SynchronousDispatch::dispatch(com::sun::star::uno::Reference<com::sun::star::uno::XInterface>
const&, rtl::OUString const&, rtl::OUString const&,
com::sun::star::uno::Sequence<com::sun::star::beans::PropertyValue> const&) ()
from /opt/libreoffice6.2/program/libmergedlo.so
#37 0x00007f4261007b4e in ?? () from /opt/libreoffice6.2/program/libmergedlo.so
#38 0x00007f426101043f in ?? () from /opt/libreoffice6.2/program/libmergedlo.so
#39 0x00007f4261010bf1 in ?? () from /opt/libreoffice6.2/program/libmergedlo.so
#40 0x00007f4261dbad2f in ?? () from /opt/libreoffice6.2/program/libmergedlo.so
#41 0x00007f426200cd0a in SalUserEventList::DispatchUserEvents(bool) ()
   from /opt/libreoffice6.2/program/libmergedlo.so
#42 0x00007f424f034996 in SalX11Display::Yield() ()
   from /opt/libreoffice6.2/program/libvclplug_genlo.so
#43 0x00007f424f034a89 in ?? ()
   from /opt/libreoffice6.2/program/libvclplug_genlo.so
#44 0x00007f424f03321a in SalXLib::Yield(bool, bool) ()
   from /opt/libreoffice6.2/program/libvclplug_genlo.so
#45 0x00007f4262033532 in ?? () from /opt/libreoffice6.2/program/libmergedlo.so
#46 0x00007f42620353e5 in Application::Execute() ()
   from /opt/libreoffice6.2/program/libmergedlo.so
#47 0x00007f4260ff7fd3 in ?? () from /opt/libreoffice6.2/program/libmergedlo.so
#48 0x00007f426203c142 in ImplSVMain() ()
   from /opt/libreoffice6.2/program/libmergedlo.so
#49 0x00007f4261018a35 in soffice_main ()
   from /opt/libreoffice6.2/program/libmergedlo.so
#50 0x000000000040070b in ?? ()
#51 0x00007f425ecc2830 in __libc_start_main (main=0x400700, argc=2, 
    argv=0x7fff3fa34008, init=<optimised out>, fini=<optimised out>, 
    rtld_fini=<optimised out>, stack_end=0x7fff3fa33ff8)
    at ../csu/libc-start.c:291
#52 0x000000000040073f in ?? ()

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20190523/fb63bc6b/attachment-0001.html>


More information about the Libreoffice-bugs mailing list