LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   LibreOffice hangs on save since --current 4.20 (https://www.linuxquestions.org/questions/slackware-14/libreoffice-hangs-on-save-since-current-4-20-a-4175589514/)

Regnad Kcin 09-15-2016 01:56 PM

LibreOffice hangs on save since --current 4.20
 
Since the most recent kernel upgrade or thereabout in --current, LibreOffice 5.x.x hangs in what appears to be a tight loop on Save in both the Writer and Impress modules. the calc module is not affected.

Slackware --current up to the time of the most recent kernel upgrade works fine with all versions of LibreOffice including the various recent AlienBob versions and the rpm2tgz conversion of LibreOffice 5.2.x and 5.3.x. Current with the 4.19 kernel works fine.

A clean reinstall of Slackware does not help fix the problem and fiddling with the libreoffice.sh settings in /etc/profile.d doesn't help.

LibreOffice remains in a tight hang with 100% CPU use on the affected core until killed in htop.

Any suggestions?

jostber 09-15-2016 03:09 PM

Since kernel 4.4.21 was just released it would be interesting to hear if this is still the case there.

https://lkml.org/lkml/2016/9/15/55

chris.willing 09-15-2016 06:11 PM

I just built & tested SBo's LibreOffice (build from source SlackBuild, rather than the repackaging "libreoffice" SlackBuild) version 5.2.1.2 in a fresh -current VM with kernel 4.4.20 and saving works fine AFAICS.

chris

hitest 09-15-2016 06:16 PM

Using Eric's Libreoffice (older version 5.1.3) on -current with 4.4.20 kernel. Everything working fine here. Not hanging on Save.

Regnad Kcin 09-16-2016 05:48 PM

Chris,
I used your SlackBuild and built LibreOffice5.2.1.2 in 57 minutes.

The save problem with Impress persists as before.

Writer and Calc work fine.

Other features of Impress seem to work ok except saving the file.

I have found that I can save the file in .pptx format but not as the default .odp

guanx 09-16-2016 06:43 PM

Does running libo with the --strace or the --backtrace parameter help you locate the problem?

chris.willing 09-16-2016 08:02 PM

Quote:

Originally Posted by Regnad Kcin (Post 5606269)
Chris,
I used your SlackBuild and built LibreOffice5.2.1.2 in 57 minutes.

The save problem with Impress persists as before.

Writer and Calc work fine.

Other features of Impress seem to work ok except saving the file.

I have found that I can save the file in .pptx format but not as the default .odp

I just checked again and Impress saves fine here so I wonder if there's something strange about the content you're trying to save? What I'm doing is as follows:
- open Impress (in a fresh -current VM with only LO and required packages from building LO)
- make a page with just title and text
- make a second page with a title and image (/usr/share/pixmaps/firefox.png)
- save using defaults and exit LO
- check Documents directory and find "Untitled\ 1.odt" (from the default save)
- open LO and open "Untitled\ 1" from "Open Recent" in File menu.

Could you try exactly the same steps and/or spell out the steps that lead to failure for you?

chris

Regnad Kcin 09-17-2016 09:09 AM

Chris,
I have tried exactly the same steps as you indicate.
The hang occurs with impress at the "save using defaults" step.

I have tried with different content and have reopened .odt and .ppt and .pptx files.
The hang always occurs when saving as a .odp

*
guanx,
will try the tracing parameters.
I have checked the various system logs and tried running in a terminal and found nothing.
thanks for the tip.

chris.willing 09-17-2016 06:22 PM

Hey Regnad, I just noticed you're running a multilib -current. I wonder if that is somehow a factor?

Regnad Kcin 09-17-2016 10:37 PM

@chris,
I haven't reinstalled the multilib on the machine since reinstalling slackware64 -current. I have another machine that runs multilib on linux 4.19 current and everything works fine. The problem seems to be something regarding the tools for saving the presentation in .odp format.

@guanx,
I dont find a trace or debug option for soffice...?

guanx 09-18-2016 02:26 PM

Quote:

Originally Posted by Regnad Kcin (Post 5606719)
...
...
I dont find a trace or debug option for soffice...?

Sorry, I haven't been using soffice for quite some years, but with libreoffice you can do something like this:
Code:

libreoffice5.2 --strace
or
Code:

libreoffice5.2 --backtrace
See the text file `which libreoffice5.2`.

jostber 09-18-2016 03:43 PM

Some tips for using strace, backtrace and valgrind to debug Libreoffice here:

https://en.opensuse.org/openSUSE:Bugreport_LO

Regnad Kcin 09-18-2016 04:46 PM

Reading the simpress script helped me to see what
Quote:

simpress --strace
was doing....
(it saved the strace log as strace.log)

the edited strace.log (original minus many pages of repetitive fails) can be seen here:
http://pigs.ag/bugz/strace_snipped.log.tar.gz

Some dude running Ubuntu 16.x has reported the same problem in LibreOffice's Bugzilla...

https://bugs.documentfoundation.org/....cgi?id=101898

Regnad Kcin 09-22-2016 12:16 PM

I've done some investigative work.
The hang on save in Impress bug is also reported for Ubuntu 16
What ever version of Windows that Ubuntu16 is I am not quite sure but is the same problem with LO 5.2.1.2 .
I peeled my Slackware64 -current off the machine and reformatted everything
and started with a clean install of Slackware64 current no multilib.
I installed AlienBob's 5.2.1.2 on it and immediately got the error.
Uninstalled that and installed LO5.2.0.2 from the rpms. same problem.
hangs on save in impress.

Installed Arch Linux on the machine in a ext4 partition on a backup hard drive on the machine.
Triple boot now with Slackware 64-current, win-friggin-seven (china chinese version) and Arch which
is the Linux 4.7.4 kernel. A bloody pain in the backside installing that Arch, buckos.
One really appreciates the Slackware install scripts after That.
So I have Arch with KDE plasma similar to AlienBob KDE5 and also Fluxbox (and TWM xterms
for those who are monochromatic at heart). I'll believe it when i see it in B&W.
LibreOffice-fresh which is good ol' 5.2.1.2 shows the same bug --- hang on save in impress!
Unstalled -fresh and installed LibreOffice-still which is the 5.1.5 version.
No hang on save!
What does it all mean Mr Natural?
Us Roman Meal Bakers thought you'd like to know.

chris.willing 09-22-2016 11:50 PM

Could you try the LO 5.2.1.2 package at: http://www.darlo.tv/lotest/ if you have the time? It's a built version of the SlackBuild from SBo. I made it in a new VM with -current, in which I can't replicate the Save problem. It would be interesting to know if it still works on your system. There's a saved test file there too.

chris


All times are GMT -5. The time now is 02:35 PM.