Bug 168020 - Writer for macOS crashes when pressing shift+enter
Summary: Writer for macOS crashes when pressing shift+enter
Status: NEEDINFO
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
25.8.0.0 alpha0+
Hardware: ARM macOS (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Crash
  Show dependency treegraph
 
Reported: 2025-08-20 07:07 UTC by John
Modified: 2025-08-21 18:52 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 John 2025-08-20 07:07:23 UTC
Description:
As the title says, even in 25.8.0.0.beta1, any Writer document crashes the app when the user presses shift+enter.

It's 100% reproducible on my side.

Steps to Reproduce:
1.Open a new writer document
2.Click on the text
3.Shift+Enter

Actual Results:
Crash

Expected Results:
Paragraph break


Reproducible: Always


User Profile Reset: No

Additional Info:
Version: 25.8.0.0.beta1 (AARCH64) / LibreOffice Community
Build ID: 1b25e37a63c5a6f16bdcb365ed3da80ac419e6e4
CPU threads: 10; OS: macOS 15.5; UI render: Skia/Metal; VCL: osx
Locale: en-US (en_IT.UTF-8); UI: en-US
Calc: threaded
Comment 1 Xisco Faulí 2025-08-20 09:30:26 UTC
I can't reproduce it in

Version: 25.8.0.4 (AARCH64)
Build ID: 48f00303701489684e67c38c28aff00cd5929e67
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

Do you have Shift + Enter customized for any command ?
Comment 2 Alex Thurgood 2025-08-20 11:12:10 UTC
No repro either with 

Version: 26.2.0.0.alpha0+ (AARCH64) / LibreOffice Community
Build ID: fd48da7236f26d9d8d16759546a5c860f91b82de
CPU threads: 8; OS: macOS 15.6; UI render: Skia/Metal; VCL: osx
Locale: fr-FR (fr_FR.UTF-8); UI: en-US
Calc: threaded

With regard to OP's expected result, by default Shift-Enter does not produce a paragraph break (\cr\ln), but rather, only a new line (\ln).
Comment 3 John 2025-08-20 12:36:52 UTC
Interesting, then it might be specific to my sistem. I didn't add any system-wide keyboard shortcut like this. How can I get the exception report from the app? I couldn't find relevant instructions for macOS.
Thanks
Comment 4 Telesto 2025-08-20 21:10:43 UTC
25.8.0.0.beta1 is rather dated. Is it also happening with release build: 25.8.0.4
Comment 5 John 2025-08-21 06:25:05 UTC
Yes, it still happens with that version. I again tried searching for crash logs but I found none.
Comment 6 Alex Thurgood 2025-08-21 18:32:00 UTC
(In reply to John from comment #3)
> Interesting, then it might be specific to my sistem. I didn't add any
> system-wide keyboard shortcut like this. How can I get the exception report
> from the app? I couldn't find relevant instructions for macOS.
> Thanks

Try looking in Console.app for crash logs, using the search string "soffice".
I haven't had to hunt for LO crash logs in a while, so Apple might have moved them somewhere else.
Comment 7 John 2025-08-21 18:34:37 UTC
I got something, not a crash log though:

default	20:33:24.155144+0200	kernel	Sandbox: ContextStoreAgent(974) allow file-read-data /Applications/LibreOffice.app/Contents/MacOS/soffice
default	20:33:24.155647+0200	kernel	1 duplicate report for Sandbox: ContextStoreAgent(974) allow file-read-data /Applications/LibreOffice.app/Contents/MacOS/soffice
default	20:33:24.155659+0200	kernel	Sandbox: ContextStoreAgent(974) allow file-read-xattr /Applications/LibreOffice.app/Contents/MacOS/soffice
default	20:33:24.183936+0200	soffice	[0x600001e97480] activating connection: mach=false listener=false peer=false name=com.apple.TextInputUI.xpc.CursorUIViewService
default	20:33:24.184271+0200	soffice	[0x600001e97480] invalidated after the last release of the connection object
default	20:33:24.197045+0200	soffice	[0x319428870] activating connection: mach=false listener=false peer=false name=(anonymous)
default	20:33:24.197103+0200	soffice	[0x35f52ec50] activating connection: mach=false listener=false peer=false name=(anonymous)
default	20:33:24.253422+0200	soffice	-[TUINSCursorUIController activate:]_block_invoke: Create CursorUIViewService: TUINSRemoteViewController
default	20:33:24.253499+0200	soffice	[0x3186c9230] invalidated because the current process cancelled the connection by calling xpc_connection_cancel()
default	20:33:24.253515+0200	soffice	[0x3186baf40] invalidated because the current process cancelled the connection by calling xpc_connection_cancel()

error	20:33:24.253551+0200	soffice	ViewBridge to RemoteViewService Terminated: Error Domain=com.apple.ViewBridge Code=18 UserInfo={com.apple.ViewBridge.error.hint=this process disconnected remote view controller -- benign unless unexpected, com.apple.ViewBridge.error.description=NSViewBridgeErrorCanceled}

default	20:33:24.747715+0200	soffice	[0x1288c4570] activating connection: mach=true listener=false peer=false name=com.apple.inputanalyticsd
default	20:33:24.785435+0200	soffice	window <SalFrameWindow: 0x31868a6b0> windowNumber=414d finishing close
default	20:33:24.818310+0200	soffice	order window: 414d op: 0 relative: 0 related: 0
default	20:33:24.818432+0200	soffice	[0x600001e34b40] invalidated because the current process cancelled the connection by calling xpc_connection_cancel()
default	20:33:24.818454+0200	soffice	[0x60000414c0f0] Session canceled.
default	20:33:24.818489+0200	soffice	agent connection cancelled (details: Session manually canceled)
default	20:33:24.819067+0200	soffice	[0x60000414c0f0] Disposing of session
default	20:33:24.842087+0200	soffice	order window front conditionally: 41b3 related: 0
default	20:33:24.842227+0200	soffice	establishing connection to agent
default	20:33:24.842259+0200	soffice	[0x600004071450] Session created.
default	20:33:24.842269+0200	soffice	[0x600004071450] Session created from connection [0x600001e48960]
default	20:33:24.842287+0200	soffice	[0x600001e48960] activating connection: mach=true listener=false peer=false name=com.apple.uiintelligencesupport.agent
default	20:33:24.842371+0200	soffice	[0x600004071450] Session activated
default	20:33:24.850656+0200	soffice	[0x35d55fa70] activating connection: mach=false listener=false peer=false name=(anonymous)
default	20:33:24.853126+0200	soffice	[0x600001e48870] activating connection: mach=false listener=false peer=false name=com.apple.TextInputUI.xpc.CursorUIViewService
default	20:33:24.853499+0200	soffice	[0x600001e48870] invalidated after the last release of the connection object
default	20:33:24.864468+0200	soffice	[0x1288ce740] activating connection: mach=false listener=false peer=false name=(anonymous)
default	20:33:24.864531+0200	soffice	[0x10a118500] activating connection: mach=false listener=false peer=false name=(anonymous)
default	20:33:24.864649+0200	soffice	order all windows front 172746374646000
default	20:33:24.909876+0200	soffice	-[TUINSCursorUIController activate:]_block_invoke: Create CursorUIViewService: TUINSRemoteViewController
default	20:33:24.910223+0200	soffice	[0x35f52ec50] invalidated because the current process cancelled the connection by calling xpc_connection_cancel()
default	20:33:24.910243+0200	soffice	[0x319428870] invalidated because the current process cancelled the connection by calling xpc_connection_cancel()
Comment 8 Alex Thurgood 2025-08-21 18:41:55 UTC
The viewbridge reference reminded me of a similar crashing behaviour I had a while ago that others couldn't reproduce. It turned out that the problem went away with an OS update, so it could be down to the particular version of macOS you are using.
Comment 9 Alex Thurgood 2025-08-21 18:48:01 UTC
See also tdf#167080, which isn't my crashing bug, but which relates to incomplete signing of the libraries included in the release package. Perhaps what you are experiencing is in some way related?
Comment 10 Alex Thurgood 2025-08-21 18:52:21 UTC
Also:

Bug 149385

Bug 165314