Bug 167080 - LibreOffice 25.2.4 Writer cannot open PDFs on macOS
Summary: LibreOffice 25.2.4 Writer cannot open PDFs on macOS
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: filters and storage (show other bugs)
Version:
(earliest affected)
25.2.4.3 release
Hardware: ARM macOS (All)
: highest critical
Assignee: Not Assigned
URL:
Whiteboard: target:26.2.0 target:25.2.6 target:25...
Keywords: bibisected, bisected, regression
: 167055 167429 (view as bug list)
Depends on:
Blocks: PDF-Import-Draw File-Opening
  Show dependency treegraph
 
Reported: 2025-06-18 14:04 UTC by vlasbaard
Modified: 2025-07-10 14:04 UTC (History)
5 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 vlasbaard 2025-06-18 14:04:35 UTC
Description:
Writer gives error "General Error. General input/output error." when opening PDFs - any PDF that I have tried.

25.2.3 works fine with the same PDFs.



Steps to Reproduce:
1. Open Writer 25.2.4
2. File - Open - select any PDF file (fresh written empty page export-to-PDF from Writer itself will do the trick)


Actual Results:
Popup with error "General Error. General input/output error." is shown.

Expected Results:
It should open the PDF file.


Reproducible: Always


User Profile Reset: No

Additional Info:
Version: 25.2.4.3 (AARCH64) / LibreOffice Community
Build ID: 33e196637044ead23f5c3226cde09b47731f7e27
CPU threads: 10; OS: macOS 15.5; UI render: Skia/Metal; VCL: osx
Locale: nl-NL (en_NL.UTF-8); UI: en-US
Calc: threaded
Comment 1 m_a_riosv 2025-06-18 23:03:09 UTC
Please test in safe mode, Menu/Help/Restart in Safe Mode
Comment 2 vlasbaard 2025-06-19 09:44:44 UTC
Thanks you for your input.

However, in safe mode, the same thing happens.
Comment 3 Roman Kuznetsov 2025-06-19 18:11:38 UTC
No problem in Windows

Version: 26.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: cc99f7736e10c8290d34eeb96aa6a3b7fd63a212
CPU threads: 16; OS: Windows 10 X86_64 (build 19045); UI render: Skia/Raster; VCL: win
Locale: ru-RU (ru_RU); UI: ru-RU
Calc: CL threaded
Comment 4 vlasbaard 2025-06-19 20:21:07 UTC
I've tested this on 4 different macs now (all on 15.5 though) - 100% fail rate so far, all of which disappear using 25.2.3 instead.
Comment 5 vlasbaard 2025-06-20 10:09:25 UTC
Seeing a mention of network file storage in the linked ticket - just confirming here that the pdf in question is just on the user's local home directory.
Comment 6 Alex Thurgood 2025-06-20 12:32:14 UTC
Confirming with

Version: 25.2.4.3 (AARCH64) / LibreOffice Community
Build ID: 33e196637044ead23f5c3226cde09b47731f7e27
CPU threads: 8; OS: macOS 15.5; UI render: Skia/Metal; VCL: osx
Locale: fr-FR (fr_FR.UTF-8); UI: en-US
Calc: threaded


The code signing characteristics mentions something about it being "thin" (not sure what that means within the code signing framework).

Couldn't see any output on console when launching soffice from console, and trying to load a PDF. The same PDF loads just fine into Draw with LO 24.2.3.2.

Altered the signing to be able to launch LO in lldb, but nothing produced there either, except for a rather laconic message :

2025-06-20 14:31:55.376653+0200 soffice[9354:376304] [INFO @ cvP11UILCB Main.m,18 5BDF0] CB_InitializeEx (Build info: "Dec  6 2021, 21:31:37")
2025-06-20 14:31:55.722624+0200 soffice[9354:376304] [CursorUI] ViewBridge to RemoteViewService Terminated: Error Domain=com.apple.ViewBridge Code=18 "(null)" UserInfo={com.apple.ViewBridge.error.hint=this process disconnected remote view controller -- benign unless unexpected, com.apple.ViewBridge.error.description=NSViewBridgeErrorCanceled}


Marking as regression.
Comment 7 Xisco Faulí 2025-07-04 10:41:00 UTC
Issue also reproduced in

Version: 25.2.5.1 (X86_64) / LibreOffice Community
Build ID: 484541f705153d4ff78284873b0153c3e5a280db
CPU threads: 8; OS: macOS 15.5; UI render: Skia/Metal; VCL: osx
Locale: en-US (en_ES.UTF-8); UI: en-US
Calc: threaded
Comment 8 Xisco Faulí 2025-07-04 10:49:16 UTC
not reproducible in

Version: 25.2.4.1 (X86_64) / LibreOffice Community
Build ID: 09303ce8b49f86f106fccd32b1324662053027cc
CPU threads: 8; OS: macOS 15.5; UI render: Skia/Metal; VCL: osx
Locale: en-US (en_ES.UTF-8); UI: en-US
Calc: threaded
Comment 9 Xisco Faulí 2025-07-04 10:58:52 UTC
Reproduced in

Version: 25.2.4.2 (X86_64) / LibreOffice Community
Build ID: 508ff62361999404a9d3590fe47df713b5888744
CPU threads: 8; OS: macOS 15.5; UI render: Skia/Metal; VCL: osx
Locale: en-US (en_ES.UTF-8); UI: en-US
Calc: threaded

so introduced between 25.2.4.2 and 25.2.4.1
Comment 10 Xisco Faulí 2025-07-04 12:40:34 UTC
I checkout my local build to tag 25.2.4.2 and I can't reproduce it locally

Version: 25.2.4.2 (AARCH64) / LibreOffice Community
Build ID: 508ff62361999404a9d3590fe47df713b5888744
CPU threads: 8; OS: macOS 15.5; UI render: Skia/Metal; VCL: osx
Locale: en-US (en_ES.UTF-8); UI: en-US
Calc: threaded

so something related to the release build
Comment 11 Xisco Faulí 2025-07-04 12:42:18 UTC
According to git log --oneline libreoffice-25.2.4.1..libreoffice-25.2.4.2, the only commit that seems related is

commit 4213ac0cae9f06b9e83488d4bc4eafbc5035ac6c	[log]
author	Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>	Mon May 26 13:16:48 2025 +0200
committer	Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>	Fri May 30 20:07:22 2025 +0200
tree 64b13a6eaf6b70072dc6368b687efb39b9070505
parent 70fb1c2b91aa500bf1ae47eba3ff113ffbfb9b7b [diff]

mac: add parent launch-constraint to packaged framework/helpers
Comment 12 Commit Notification 2025-07-04 16:30:18 UTC
Christian Lohmaier committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/14b5fa6d6cadd8be1c62017c4d500903b4a6f386

tdf#167080 macOS: fix opening PDFs in signed builds

It will be available in 26.2.0.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.
Comment 13 Commit Notification 2025-07-04 16:30:22 UTC
Christian Lohmaier committed a patch related to this issue.
It has been pushed to "libreoffice-25-2":

https://git.libreoffice.org/core/commit/ef114b09a006cdc14e14b8e96b6bc22edebb1e77

tdf#167080 macOS: fix opening PDFs in signed builds

It will be available in 25.2.6.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.
Comment 14 Commit Notification 2025-07-04 16:31:25 UTC
Christian Lohmaier committed a patch related to this issue.
It has been pushed to "libreoffice-25-8":

https://git.libreoffice.org/core/commit/25fc475be265d44487f569c7b61a304eecb4ea9c

tdf#167080 macOS: fix opening PDFs in signed builds

It will be available in 25.8.0.0.beta2.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.
Comment 15 Christian Lohmaier 2025-07-04 18:18:51 UTC
*** Bug 167055 has been marked as a duplicate of this bug. ***
Comment 16 vlasbaard 2025-07-07 09:47:22 UTC
There only seem to be daily 25.2 builds for X86_64 (so, not for AARCH64), which I believe wasn't affected. 

With the master build (details below) I'm getting warnings that disappear after the `xattr -d com.apple.quarantine` mentioned in the documentation, but I'm not sure if that invalidates test results re: signing?

Either way, after the `xattr`, opening PDFs again works as expected. Thanks!

Version: 26.2.0.0.alpha0+ (AARCH64) / LibreOffice Community
Build ID: 40df99b1111b492f81157b101e084f5c2028c8e2
CPU threads: 10; OS: macOS 15.5; UI render: Skia/Metal; VCL: osx
Locale: en-US (en_NL.UTF-8); UI: en-US
Calc: threaded
Comment 17 Xisco Faulí 2025-07-07 12:49:11 UTC
I tested locally with --enable-release-build with the patch and without the patch and I can confirm the issue is fixed if the patch is included.
@Cloph, thanks for fixing this issue. Should it be closed as RESOLVED FIXED now ?
Comment 18 Xisco Faulí 2025-07-09 11:05:10 UTC
*** Bug 167429 has been marked as a duplicate of this bug. ***
Comment 19 Commit Notification 2025-07-10 14:04:53 UTC
Christian Lohmaier committed a patch related to this issue.
It has been pushed to "libreoffice-25-2-5":

https://git.libreoffice.org/core/commit/26d6f3a76c1385b8c461027e7c89c7c7a95076bf

tdf#167080 macOS: fix opening PDFs in signed builds

It will be available in 25.2.5.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.