Bug 115559 - Insert | Frame | Frame | Macro tab or Tools | Macro | Run Macro and crash appears
Summary: Insert | Frame | Frame | Macro tab or Tools | Macro | Run Macro and crash app...
Status: RESOLVED NOTOURBUG
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
6.0.0.3 release
Hardware: All Linux (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-02-08 18:10 UTC by grofaty
Modified: 2018-03-06 14:38 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description grofaty 2018-02-08 18:10:19 UTC
Description:
Using Insert | Frame | Frame | Macro tab

or

Tools | Macro

in both cases crash appears

Steps to Reproduce:
On Ubuntu 16.04 on 32-bit old laptop I have installed LibreOffice 6.0.0.3 from ppa:
http://ppa.launchpad.net/libreoffice/ppa/ubuntu

In Writer:
1. Menu Insert | Frame | Frame.
2. Click on Macro tab and LibreOffice crashes.

Don't know if this is related, but crash also appears:
1. Menu Tools | Macro | Run Macro and crash appears.

Actual Results:  
Crash.

Expected Results:
No crash.


Reproducible: Always


User Profile Reset: No



Additional Info:
[Information automatically included from LibreOffice]
Locale: en-US
Module: TextDocument
[Information guessed from browser]
OS: Linux (All)
OS is 64bit: no

Version: 6.0.0.3
Build ID: 1:6.0.0~rc3-0ubuntu0.16.04.1~lo7
CPU threads: 2; OS: Linux 4.13; UI render: default; VCL: gtk2; 
Locale: sl-SI (en_US.UTF-8); Calc: group


User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:58.0) Gecko/20100101 Firefox/58.0
Comment 1 Xisco Faulí 2018-02-08 18:25:47 UTC
I can't reproduce it in

Version: 6.0.0.3
Build ID: 1:6.0.0~rc3-0ubuntu0.16.04.1~lo7
CPU threads: 4; OS: Linux 4.13; UI render: default; VCL: gtk3; 
Locale: ca-ES (ca_ES.UTF-8); Calc: group

To be certain the reported issue is not
related to corruption in the user profile, could you please reset your
Libreoffice profile ( https://wiki.documentfoundation.org/UserProfile ) and
re-test?

I have set the bug's status to 'NEEDINFO'. Please change it back to
'UNCONFIRMED' if the issue is still present

OTOH, could it be related to bug 108619 ?
Comment 2 grofaty 2018-02-09 09:35:45 UTC
@Xisco,
I closed down LibreOffice and deleted the profile directory:
rm -rf ~/.config/libreoffice/

Restarted LibreOffice, repeated the steps (both cases) and crash in both of them.

Actually it is something strange it is not classical crash, because there is no crash window. LibreOffice just closes down like it would be minimized, but when restarting LibreOffice then document recovery window opens.
Comment 3 grofaty 2018-02-09 09:39:57 UTC
I have checked the bug 108619, it is little bit too technical for me. But I have noticed there is some discussion about Java.

It looks like LibreOffice is using Java to run macros (I didn't know this before). Maybe my problem is related to Java.

Few days ago I was required to install Oracle Java for one of the application (made by government for taxes). Few days ago I did (I see from 'history' command):

sudo apt update && sudo apt -y full-upgrade
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java8-installer
sudo update-java-alternatives -s java-8-oracle


To test if above is cause for the problems today I did:
1. Removed Oracle Java and installed default one
sudo apt purge oracle-java8-installer
sudo apt -y autoremove
sudo apt install default-jre
sudo update-java-alternatives -s java-1.8.0-openjdk-i386

2. I removed LibreOffice profile
rm -rf ~/.config/libreoffice/

3. Started LibreOffice and checked how it is seen by ps command:
ps aux | grep -i [l]ibreoffice

user1     18594  0.2  0.1  35252  5184 ?        Sl   10:29   0:00 /usr/lib/libreoffice/program/oosplash --writer
user1     18620 29.5  3.7 276944 115324 ?       Rl   10:29   0:02 /usr/lib/libreoffice/program/soffice.bin --writer --splash-pipe=5

4. Retested and the same problem. LibreOffice just closes down without any crash info or anything. It just feels like app would be minimized. Repeating ps command from step 3 and it displays nothing.

It may be some Java problem or something, but no matter what, LibreOffice crash should be more informative, to catch at least some of the info, in order to easily debug the problem.
Comment 4 Xisco Faulí 2018-02-09 10:36:39 UTC
Could you please try what it's mentioned in comment 16 https://bugs.documentfoundation.org/show_bug.cgi?id=108619#c16 ?
Comment 5 grofaty 2018-02-11 15:43:30 UTC
@Xisco, I tried your suggestion: Tools | Options | LibreOffice | Advance | unchecked "Use a Java runtime environment".

Now when I select menu Tools | Macro | Run Macro I get:
"LibreOffice requires a Java runtime environment (JRE) to perform this task. However, use of a JRE has been disabled. Do you want to enable the use of a JRE now?" and LibreOffice does not crashes which is OK, but still using macro is probably useless in my case now, isn't it, because Java is required.


By the way today LibreOffice PPA for Ubuntu has updated to LibreOffice 6.0.1, but problem is exactly the same as in previous 6.0.0.3 version.


Help | About

Version: 6.0.1.1
Build ID: 1:6.0.1~rc1-0ubuntu0.16.04.1~lo1
CPU threads: 2; OS: Linux 4.13; UI render: default; VCL: gtk2; 
Locale: en-US (en_US.UTF-8); Calc: grou
Comment 6 Buovjaga 2018-03-06 14:38:43 UTC
Sounds the same as this: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1699772
Read the latest comments, it has been solved with a custom kernel build.

Also: https://ask.libreoffice.org/en/question/120447/libreoffice-base-crashes-on-32bit-linux/