How to stop LibreOffice Draw from crashing in Debian Bullseye?
After I switching from Debian 10 to 11, LibreOffice Draw 7.0 can no longer open.
I tried opening an existing file and starting a new file, no matter how I open Draw, it crashes with this message:
Due to an error, LibreOffice crashed. All the files you were working on will now be saved. Next time the LibreOffice is launched, your files will be recovered automatically.
If I open an existing file, or try to create a new one, it crashes, then immediately tries to pull up a document recovery for the blank file, then crashes again, no matter which open I choose.
Please ensure that a JVM and the package libreoffice-java-common is installed. If it is already installed then try removing ~/.config/libreoffice/4/user/config/javasettings_Linux_*.xml Warning: failed to read path from javaldx (soffice:4787): dbind-WARNING **: 14:29:52.992: AT-SPI: Error retrieving accessibility bus address: org.freedesktop.DBus.Error.ServiceUnknown: The name org.a11y.Bus was not provided by any .service files
- The errors above appear on another Debian computer where Draw does work, so I think these have nothing to do with the error.
I tried several things:
- Tried purging the entire LibreOffice install, and reinstalling.
- Tried deleting the
.configfiles related to LibreOffice.
- Tried running in command line, but there are no messages shown related to its crashing.
- Tried running in Safe Mode, no change.
libreoffice-gtk3(some said it crashes without this installed).
- LibreOffice Write and Calc work fine.
How can I fix LibreOffice Draw from crashing?
journalctl reports this every time I try to open Draw, but not when opening a tool that does work, like Write:
Jul 08 15:35:20 debian audit: AVC apparmor="ALLOWED" operation="open" profile="libreoffice-soffice" name="/home/village/Projects/Textbooks/Popups/Core/2022-07-05_glossary.data" pid=2833 comm="soffice.bin" requested_mask="r" denied_mask="r" fsuid=1000 ouid=1000 Jul 08 15:35:20 debian kernel: audit: type=1400 audit(1657316120.083:15): apparmor="ALLOWED" operation="open"
I found if I run
libreoffce --norestore to disable crash handling, it prints this error:
Fatal exception: Signal 6
/usr/lib/libreoffice/program/libuno_sal.so.3(+0x3dc53)[0x7f3a8d719c53] /usr/lib/libreoffice/program/libuno_sal.so.3(+0x3ddc2)[0x7f3a8d719dc2] /lib/x86_64-linux-gnu/libc.so.6(+0x3bd60)[0x7f3a8d547d60] /lib/x86_64-linux-gnu/libc.so.6(gsignal+0x141)[0x7f3a8d547ce1] /lib/x86_64-linux-gnu/libc.so.6(abort+0x123)[0x7f3a8d531537] /usr/lib/libreoffice/program/libmergedlo.so(+0x1188b91)[0x7f3a8e8cab91] /usr/lib/libreoffice/program/libmergedlo.so(+0x2255cf0)[0x7f3a8f997cf0] /usr/lib/libreoffice/program/libmergedlo.so(+0x32fcfb9)[0x7f3a90a3efb9] /usr/lib/libreoffice/program/libuno_sal.so.3(+0x17412)[0x7f3a8d6f3412] /usr/lib/libreoffice/program/libuno_sal.so.3(+0x3dd2f)[0x7f3a8d719d2f] /lib/x86_64-linux-gnu/libc.so.6(+0x3bd60)[0x7f3a8d547d60]
Edit: clarity & comment(s)
Fixing Udev issue
To fix the udev issue, which is not connected to the, Draw crashes you have to install
sudo apt-get install at-spi2-core.
LO Draw crashing
Now to your core issue. Due to your actions it is pretty safe to say that it is either your configuration or LO Draw bug (or combination of those).
The apparmor line:
Jul 08 15:35:20 debian audit: AVC apparmor="ALLOWED" operation="open" profile="libreoffice-soffice" name="/home/village/Projects/Textbooks/Popups/Core/2022-07-05_glossary.data" pid=2833 comm="soffice.bin" requested_mask="r" denied_mask="r" fsuid=1000 ouid=1000
Tells you that the apparmor allowed the operation open the
"/home/village/Projects/Textbooks/Popups/Core/2022-07-05_glossary.data" file (to make sure it has nothing to do with the apparmor you can temporarily stop it for the test purposes with –
sudo systemctl stop apparmor).
I would do the following:
- Check the file rights, adjust them with
chownif needed, for your login for the file at location:
Check the file itself for inconsistencies
~/.bash_loginfor any mistakes. For example, pointing to wrong file.
I will write some possible solutions, because it is to long for a comment.
- Try to reinstall and install again
apt purge libreoffice* apt autoremove apt install libreoffice
There are some problems with
waylandand a view programms in
- can you try to run a second desktop like
cinnamon, etc.. and ran
- if you switch from
waylandcan you try to install both together and try to run once with
x11and once with
waylandand see if the problem exists in both or in one of them
check again all packages, their connections and dependents which are needed for
LibreOfficeto run and fix, reinstall them
there are some problems too with
I think to remember that there were still a few problems with the
In the company we still work with debian 10.9 because we had some problems with debian 11 ourselves at the beginning in the past,
but that’s just only my opinion!
Fatal exception: Signal 6
Looks like there is the problem with the packages.
Check this for dependent packages:
Check this for Fatal exception: Signal 6:
If this won’t fit with, update, upgrade, downgrade, fix, clear of the packages, than try nr.3 with the desktops and nr. 5 if possible.
I would first use only this
/etc/apt/sources.list on a fresh install of
debian 11 for
update & upgrade
deb http://deb.debian.org/debian bullseye main deb-src http://deb.debian.org/debian bullseye main deb http://deb.debian.org/debian-security/ bullseye-security main deb-src http://deb.debian.org/debian-security/ bullseye-security main deb http://deb.debian.org/debian bullseye-updates main deb-src http://deb.debian.org/debian bullseye-updates main
Even after completely reformatting my computer’s hard drives, making new install media, and installing the latest version of Debian Bullseye, I continued to have this problem.
After considerable trial and error, I found the crashing stopped after I installed
You can install the essential distro LibreOffice packages in this way:
$ sudo apt install libreoffice
But, I suggest that you install the latest version of LibreOffice from its website, libreoffice.org.
This is the download page, in which you can download LibreOffice 7.4 as a set of .deb files that you can easily install:
Then, extract the downloaded package with:
$ tar zxf LibO_*.tar.gz
And then install the .deb files:
$ cd LibO_*/DEBS $ sudo dpkg -i *.deb