Cannot open an encrypted basic library -> 100% CPU

I have changed from Fedora 25 to Fedora 26 and I want to reinstall my
LibreOffice Basic libraries. It works fine with the unencrypted ones.
But it fails for the encrypted one.

Here is what I do:
Menu Tools/Macros/Manage Macros/LibreOffice Basic/Manage/Libraries/Import.../
Then I select the script.xlb of the encrypted macro.
I click on Open and then I can see the Library name with a tick in
front of it. I do not check Insert as reference or Replace existing
libraries. I just click on OK.
I enter the password.
Then nothing happens and soffice.bin is using 100% CPU.
I have to kill it.

Here is the output in the terminal:
$ libreoffice --calc
(soffice:8103): Gtk-CRITICAL **: gtk_container_foreach: assertion
'GTK_IS_CONTAINER (container)' failed
(soffice:8103): Gtk-WARNING **: Failed to measure available space:
L'emplacement indiqué n'est pas pris en charge

Frédéric

I have changed from Fedora 25 to Fedora 26 and I want to reinstall my
LibreOffice Basic libraries. It works fine with the unencrypted ones.

This is wrong: in fact, I import but the modules are empty.

But it fails for the encrypted one.

Here is what I do:
Menu Tools/Macros/Manage Macros/LibreOffice Basic/Manage/Libraries/Import.../
Then I select the script.xlb of the encrypted macro.
I click on Open and then I can see the Library name with a tick in
front of it. I do not check Insert as reference or Replace existing
libraries. I just click on OK.
I enter the password.
Then nothing happens and soffice.bin is using 100% CPU.
I have to kill it.

Here is the output in the terminal:
$ libreoffice --calc
(soffice:8103): Gtk-CRITICAL **: gtk_container_foreach: assertion
'GTK_IS_CONTAINER (container)' failed
(soffice:8103): Gtk-WARNING **: Failed to measure available space:
L'emplacement indiqué n'est pas pris en charge

apparently, this is not due to linux update but to LibreOffice update.
Macros working well with 5.2 version do not work with 5.3 version
(tested on linux F26 and Windows).
What's wrong with 5.3?

Frédéric

I have changed from Fedora 25 to Fedora 26 and I want to reinstall my
LibreOffice Basic libraries. It works fine with the unencrypted ones.

This is wrong: in fact, I import but the modules are empty.

apparently, this is not due to linux update but to LibreOffice update.
Macros working well with 5.2 version do not work with 5.3 version
(tested on linux F26 and Windows).
What's wrong with 5.3?

I have updated the bug report with a minimal example that alwyas fails
on my machine:
https://bugs.documentfoundation.org/show_bug.cgi?id=112466

Greetings,
I am currently using Slackware Linux 14.2 (k4.4.88), LO 5.3.4.2, mariadb 10.0.32, and mysql-connector-java 5.1.42.

Not sure this is your problem, but it sounds familiar. I have learned that there is a possibility that at least some LO macros are Java-based. If that is so, then your Linux kernel update may have broken LO, actually, the Java interface. This is ill-behaved, since a kernel update should never break Java or LO. I believe that LO is doing something ill-behaved or the LO code is making some bad assumptions about the stack frame gaps. For me, this has happened in LO 5.2 as well as 5.3, so it is not LO version-dependent, at least not the later releases.

When I updated my Slackware Linux 14.2 (k4.4.38) to kernel 4.4.75, LO Base started crashing hard, but OpenOffice did not. My investigation discovered that a Linux kernel security fix in k4.4.75 that increased the inter-stack gap was causing the problem. To make a long story short, there are two solutions that I know of:
1. Switch to 64-bit Linux, which does not seem to have this problem.
2. Add " stack_guard_gap=6" to the 32-bit kernel boot parameters. Which reduces the inter-stack gap to where Java/LO can operate.

This has been documented in the Slackware forum on LinuxQuestions.org. Search for my thread:

    *Problem with the 4.4.75 kernel security upgrade dated 26 June 2017
    (SSE 2017-177-01) *

on https://www.linuxquestions.org/ .

Ever since I have done #2, I have not had any LibreOffice Base crashes.

Note that in addition to Base crashes, I discovered some of the Tools -> Options dialogs crashed too, especially the "Internet" options. So Java must be used for more than just Base or macros. But this problem definitely crashes LO when trying to connect to my external Mariadb (MySQL) database.

HTH.
Girvin Herr

Not sure this is your problem, but it sounds familiar. I have learned that
there is a possibility that at least some LO macros are Java-based. If that
is so, then your Linux kernel update may have broken LO

That's interesting because of course when I switched to Fedora 26, I
probably change the java runtime version.

1. Switch to 64-bit Linux, which does not seem to have this problem.

I am already using 64bits linux so I guess it's a different problem.
However, Java may be the right direction. I will add the version to
the bug tracker.

These are the versions on F25 where the macros work:
- kernel: x86_64, 4.12.14.200.fc25
- java-1.8.0-openjdk: x86_64, 1.8.0.144.7.b01.fc25
- libreoffice: x86_64, 5.2.7.2.12.fc25

Versions on F26 where the macros do no work:
- kernel: x86_64, 4.12.14.300.fc26
- java-1.8.0-openjdk: x86_64, 1.8.0.144.7.b01.fc26
- libreoffice: x86_64, 5.3.6.1.6.fc26

So apparently, only the libreoffice version is different.

Frédéric