Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Desktop Environments
  • Search

LibreOffice crashes when I try to open a PDF

Problems with GUI applications? Questions about X, KDE, Gnome, Fluxbox, etc.? Come on in. NOTE: For multimedia, go up one forum
Post Reply
Advanced search
21 posts • Page 1 of 1
Author
Message
leyvi
l33t
l33t
Posts: 719
Joined: Fri Sep 08, 2023 1:22 pm

LibreOffice crashes when I try to open a PDF

  • Quote

Post by leyvi » Fri Feb 21, 2025 1:04 pm

Whenever I try to open a PDF file with any LO app, it crashes with the following message:

Code: Select all

General Error.
General input/output error.
Nothing appears in syslog, and this is what I get in stdout/stderr:

Code: Select all

QGuiApplication::setDesktopFileName: the specified desktop file name ends with .desktop. For compatibility reasons, the .desktop suffix will be removed. Please specify a desktop file name without .desktop suffix
This plugin supports grabbing the mouse only for popup windows
This plugin supports grabbing the mouse only for popup windows
I get this core dump, if that's helpful. I tried rebuilding app-office/libreoffice with custom-cflags disabled, but that didn't solve it either. Anyone know what's going on?
Top
Da51d
Tux's lil' helper
Tux's lil' helper
Posts: 79
Joined: Wed Mar 27, 2024 3:20 pm

  • Quote

Post by Da51d » Sun Feb 23, 2025 12:19 am

Have you ever been able to open a pdf with libreoffice? Do you wish to simply read the pdf or edit it? My understanding is that libreoffice is not supposed to be a pdf viewer or editor.
https://ask.libreoffice.org/t/libreoffi ... iles/16079
https://ask.libreoffice.org/t/opening-p ... ins/101095
What can be said at all can be said clearly and what we cannot talk about we must pass over in silence.
Top
leyvi
l33t
l33t
Posts: 719
Joined: Fri Sep 08, 2023 1:22 pm

  • Quote

Post by leyvi » Sun Feb 23, 2025 12:13 pm

Yes. In the past, opening a PDF with LO would always work. It would open with LO Draw. I did just change a config file with dispatch-conf, specifically /etc/xdg/mimeapps.list. Maybe that has something to do with it? But those are just system defaults, not my user-specific settings, so I don't really know what's going on.
Top
szatox
Advocate
Advocate
Posts: 3858
Joined: Tue Aug 27, 2013 12:35 pm

  • Quote

Post by szatox » Sun Feb 23, 2025 12:16 pm

It has a pdfimport use flag though, which allows it to edit pdf files.
LibreOffice Draw module is not a great tool for the purpose and makes editing quite a painful process, but it _can_ do that.

Or at least it could, because it currently throws a "general input/output error" on my machine, whatever it means, and without any debug information. Weird.
Make Pipewire a system service
Top
Da51d
Tux's lil' helper
Tux's lil' helper
Posts: 79
Joined: Wed Mar 27, 2024 3:20 pm

  • Quote

Post by Da51d » Sun Feb 23, 2025 12:34 pm

Sorry, I did not know about the pdfimport flag. That's probably why it never worked for me. I will re-emerge with that and try it out. Thanks for the useful tip.
What can be said at all can be said clearly and what we cannot talk about we must pass over in silence.
Top
leyvi
l33t
l33t
Posts: 719
Joined: Fri Sep 08, 2023 1:22 pm

  • Quote

Post by leyvi » Sun Feb 23, 2025 1:57 pm

Glad to see I'm not the only one with this issue.
Top
sam_
Developer
Developer
User avatar
Posts: 2817
Joined: Fri Aug 14, 2020 12:33 am

  • Quote

Post by sam_ » Sun Feb 23, 2025 6:10 pm

leyvi wrote:Glad to see I'm not the only one with this issue.
Did you try the pdfimport USE flag, per above?
Top
dmpogo
Advocate
Advocate
Posts: 3717
Joined: Thu Sep 02, 2004 9:21 pm
Location: Canada

  • Quote

Post by dmpogo » Sun Feb 23, 2025 6:22 pm

I have libreoffice with pdfimport flag and it opens PDF's in Impress just fine (just tried). Though my version is not updated to the latest -r1 that appeared few days ago
Top
szatox
Advocate
Advocate
Posts: 3858
Joined: Tue Aug 27, 2013 12:35 pm

  • Quote

Post by szatox » Sun Feb 23, 2025 8:22 pm

Talking about versions, I'm on ~amd64 and 2 most recent versions I merged fail to import pdf with that generic error I mentioned above.
2025-02-14T16:40:49 >>> app-office/libreoffice-24.2.7.2-r1
2025-02-23T16:47:29 >>> app-office/libreoffice-25.2.1.1
I don't know when it stopped working; I found xournal much more convenient for scribbling on other people's papers (though, unfortunately, much more limited in what it _can_ do).

dmpogo, what exact version do you have? The one that works?
Make Pipewire a system service
Top
leyvi
l33t
l33t
Posts: 719
Joined: Fri Sep 08, 2023 1:22 pm

  • Quote

Post by leyvi » Sun Feb 23, 2025 10:26 pm

sam_, I do have that USE flag enabled. My whole system is nuked right now though, trying to recover from that. I'll revisit this once I have a functioning computer.
Top
Da51d
Tux's lil' helper
Tux's lil' helper
Posts: 79
Joined: Wed Mar 27, 2024 3:20 pm

  • Quote

Post by Da51d » Mon Feb 24, 2025 12:38 am

I reemerged libreoffice ( 24.2.7.2) this morning with pdfimport flag and was able to open a pdf with libreoffice draw. This evening I did emerge-webrsync and a world update and libreoffice updated to 24.2.7.2-r1. I am still able to open pdfs (although not too pretty...eg text often extends beyond the edge of it's box or even the page). However, there was some output at the end of the build process which might shed light on the issue(?)

Code: Select all

 * QA Notice: This package installs one or more .desktop files that do not
 * pass validation.
 * 
 * 	/usr/share/applications/libreoffice-writer.desktop: warning: value "application/clarisworks;application/docbook+xml;application/macwriteii;application/msword;application/prs.plucker;application/rtf;application/vnd.apple.pages;application/vnd.lotus-wordpro;application/vnd.ms-word;application/vnd.ms-word.document.macroEnabled.12;application/vnd.ms-word.template.macroEnabled.12;application/vnd.ms-works;application/vnd.oasis.opendocument.text;application/vnd.oasis.opendocument.text-flat-xml;application/vnd.oasis.opendocument.text-master;application/vnd.oasis.opendocument.text-master-template;application/vnd.oasis.opendocument.text-template;application/vnd.oasis.opendocument.text-web;application/vnd.openxmlformats-officedocument.wordprocessingml.document;application/vnd.openxmlformats-officedocument.wordprocessingml.template;application/vnd.palm;application/vnd.stardivision.writer-global;application/vnd.stardivision.writer-global;application/vnd.sun.xml.writer;application/vnd.sun.xml.writer.global;application/vnd.sun.xml.writer.template;application/vnd.wordperfect;application/wordperfect;application/x-abiword;application/x-aportisdoc;application/x-doc;application/x-extension-txt;application/x-fictionbook+xml;application/x-hwp;application/x-iwork-pages-sffpages;application/x-mswrite;application/x-pocket-word;application/x-sony-bbeb;application/x-starwriter;application/x-starwriter-global;application/x-t602;text/plain;text/rtf;" for key "MimeType" in group "Desktop Entry" contains "application/vnd.stardivision.writer-global" more than once
What can be said at all can be said clearly and what we cannot talk about we must pass over in silence.
Top
dmpogo
Advocate
Advocate
Posts: 3717
Joined: Thu Sep 02, 2004 9:21 pm
Location: Canada

  • Quote

Post by dmpogo » Mon Feb 24, 2025 10:39 pm

szatox wrote:Talking about versions, I'm on ~amd64 and 2 most recent versions I merged fail to import pdf with that generic error I mentioned above.
2025-02-14T16:40:49 >>> app-office/libreoffice-24.2.7.2-r1
2025-02-23T16:47:29 >>> app-office/libreoffice-25.2.1.1
I don't know when it stopped working; I found xournal much more convenient for scribbling on other people's papers (though, unfortunately, much more limited in what it _can_ do).

dmpogo, what exact version do you have? The one that works?
I am on stable for almost everything, so it is

app-office/libreoffice-24.2.7.2

However, I tried on another machine that runs app-office/libreoffice-24.2.7.2-r1 and it opens it in Draw, but not in Impress (when I do it in Impress, nothing happens). Does anybody know how to force Impress from command line ?
If I do

loimpress pdffile.pdf it still opens it in Draw

PS, I see, on my original try, thought I was opening pdffile in Impress, libreoffice switched to Draw. OK, so it is just in Draw mode that pdfs were opened

PS2. I switched from xournal to xournalpp
Top
sam_
Developer
Developer
User avatar
Posts: 2817
Joined: Fri Aug 14, 2020 12:33 am

  • Quote

Post by sam_ » Thu Feb 27, 2025 3:23 am

Might also be https://bugs.documentfoundation.org/sho ... ?id=165433
Last edited by sam_ on Thu Feb 27, 2025 5:59 am, edited 1 time in total.
Top
dmpogo
Advocate
Advocate
Posts: 3717
Joined: Thu Sep 02, 2004 9:21 pm
Location: Canada

  • Quote

Post by dmpogo » Thu Feb 27, 2025 4:20 am

sam_ wrote:Might also be https://bugs.documentfoundation.org/sho ... ?id=165433.
The link fails for me with 'not valid bug number'
Top
sam_
Developer
Developer
User avatar
Posts: 2817
Joined: Fri Aug 14, 2020 12:33 am

  • Quote

Post by sam_ » Thu Feb 27, 2025 5:59 am

Fixed. It's my bad habit of not using the markup.
Top
asturm
Developer
Developer
Posts: 9496
Joined: Thu Apr 05, 2007 4:07 pm

  • Quote

Post by asturm » Sun Mar 02, 2025 2:02 pm

Please test with app-office/libreoffice-24.2.7.2-r2 once it got available on your sync mirror.
Top
leyvi
l33t
l33t
Posts: 719
Joined: Fri Sep 08, 2023 1:22 pm

  • Quote

Post by leyvi » Tue Mar 04, 2025 3:23 pm

I've been using 25.2.1.2. The issue remains.
Top
asturm
Developer
Developer
Posts: 9496
Joined: Thu Apr 05, 2007 4:07 pm

  • Quote

Post by asturm » Tue Mar 04, 2025 8:21 pm

That's why I asked to
asturm wrote:Please test with app-office/libreoffice-24.2.7.2-r2
:)
Top
sam_
Developer
Developer
User avatar
Posts: 2817
Joined: Fri Aug 14, 2020 12:33 am

  • Quote

Post by sam_ » Tue Mar 04, 2025 8:32 pm

I'll backport the fix to 25.x but it would be nice if you could confirm that the 24.x fix actually helped or not...
Top
leyvi
l33t
l33t
Posts: 719
Joined: Fri Sep 08, 2023 1:22 pm

  • Quote

Post by leyvi » Wed Mar 05, 2025 8:13 pm

Good news: the latest version of LibreOffice (25.2.1.2-r1) runs just fine on my machine now, with LLVM/Clang, -O3 and LTO. PDFs open as expected again. Thanks for your hard work, sam_ and asturm!
Top
sam_
Developer
Developer
User avatar
Posts: 2817
Joined: Fri Aug 14, 2020 12:33 am

  • Quote

Post by sam_ » Wed Mar 05, 2025 8:15 pm

You're most welcome - thank you for confirming!
Top
Post Reply

21 posts • Page 1 of 1

Return to “Desktop Environments”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic