Hi.

On Wed, 20 May 2026 09:48:40 +0700 Frederic Muller <[email protected]> wrote:

> This time I have some LO documents which either do not open 
> (LibreOffice is not responding. Force Quit/Wait) or take 17 seconds to 
> open (I just measured).

You may try to strace LibreOffice as follow:

  - strace -o /tmp/s01 -tt -T -f /bin/ooffice SOME_FILE

then identify in /tmp/s01 what takes too much time.

Testing that with "sleep 2" shows:

  07:51:26.054303 execve("/bin/sleep", ["/bin/sleep", "2"], 0x7fff71f208f8 /* 
50 vars */) = 0 <0.000380>
  07:51:26.054797 brk(NULL)               = 0x55590f9ec000 <0.000006>
  [...]
  07:51:26.056102 futex(0x7f23469df6ec, FUTEX_WAKE_PRIVATE, 2147483647) = 0 
<0.000006>
  07:51:26.056133 clock_nanosleep(CLOCK_REALTIME, 0, {tv_sec=2, tv_nsec=1}, 
0x7ffd9ea441f0) = 0 <2.000075>

the last part: "<2.000075>" is the time spent in system calls given by
the -T option.

You can for example identify the system calls taking more than one
second with:

  grep '<[^0]' /tmp/s01
  07:51:26.056133 clock_nanosleep(CLOCK_REALTIME, 0, {tv_sec=2, tv_nsec=1}, 
0x7ffd9ea441f0) = 0 <2.000075>

I fear that this will be far more difficult with LibreOffice.

Good luck.

-- 
francis
-- 
_______________________________________________
users mailing list -- [email protected]
To unsubscribe send an email to [email protected]
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/[email protected]
Do not reply to spam, report it: 
https://forge.fedoraproject.org/infra/tickets/issues/new

Reply via email to