Bug 167901 - In 2nd sheet, copy (and close), Crash
Summary: In 2nd sheet, copy (and close), Crash
Status: RESOLVED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
25.8.0.0 alpha0+
Hardware: All All
: medium normal
Assignee: Xisco Faulí
URL:
Whiteboard: target:26.2.0 target:25.8.1 target:25...
Keywords: bibisected, bisected, regression
: 167900 167918 167932 (view as bug list)
Depends on:
Blocks:
 
Reported: 2025-08-11 10:31 UTC by nobu
Modified: 2025-08-13 22:31 UTC (History)
4 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 nobu 2025-08-11 10:31:38 UTC
Description:
In 2nd sheet, copy and close, Crash.

Steps to Reproduce:
1. Open a new Calc.
2. Create 2nd sheet and select 2nd sheet.
3. Select Cell [A1] & Copy. 
4. Close Calc , and don't save.

Actual Results:
5. Crash.

Expected Results:
5. Do not crash.


Reproducible: Always


User Profile Reset: No

Additional Info:

Bug reports that may be relevant.

Crash quiting LibreOffice with something on the clipboard (Win)
https://bugs.documentfoundation.org/show_bug.cgi?id=166767

---
Reproducible with
Version: 25.8.0.3 (X86_64)
Build ID: ab0112984cb0c13cf3d4edd063593d096a42a1aa
CPU threads: 4; OS: Windows 10 X86_64 (build 19045); UI render: Skia/Raster; VCL: win
Locale: en-US (ja_JP); UI: en-US
Calc: CL threaded
Comment 1 nobu 2025-08-11 11:06:12 UTC
Reproducible with
Version: 25.8.0.3 (X86_64)
Build ID: ab0112984cb0c13cf3d4edd063593d096a42a1aa
CPU threads: 2; OS: Linux 6.1; UI render: default; VCL: gtk3
Locale: ja-JP (ja_JP.UTF-8); UI: en-US
Calc: threaded
Comment 2 raal 2025-08-11 14:14:21 UTC
No repro with Version: 26.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: a0ae1b0cf2661e7be9ea042e5357530f5fb412f5
CPU threads: 4; OS: Linux 6.8; UI render: default; VCL: gtk3
Locale: cs-CZ (cs_CZ.UTF-8); UI: en-US
Calc: threaded
Comment 3 nobu 2025-08-11 14:36:34 UTC
In my environment, the crash dialog appears after 25 seconds.

Reproducible with
Version: 26.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 05fb33a4296b48b2910422a2b12228f0a7dfb64a
CPU threads: 2; OS: Linux 6.1; UI render: default; VCL: gtk3
Locale: ja-JP (ja_JP.UTF-8); UI: ja-JP
Calc: threaded
Comment 4 nobu 2025-08-11 14:42:43 UTC
Reproducible with
[2025_08_11]
Version: 26.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 05fb33a4296b48b2910422a2b12228f0a7dfb64a
CPU threads: 2; OS: Linux 6.1; UI render: default; VCL: gtk3
Locale: ja-JP (ja_JP.UTF-8); UI: ja-JP
Calc: threaded
Comment 5 Xisco Faulí 2025-08-11 15:39:33 UTC
*** Bug 167900 has been marked as a duplicate of this bug. ***
Comment 6 Xisco Faulí 2025-08-11 15:39:52 UTC
Regression introduced by:

commit eb99e28a92517cac9534a6a52b9266777f735ce5	[log]
author	Xisco Fauli <xiscofauli@libreoffice.org>	Fri Aug 08 13:34:54 2025 +0200
committer	Xisco Fauli <xiscofauli@libreoffice.org>	Fri Aug 08 16:27:45 2025 +0200
tree c87dab908048366a457504e3f4034e41b5db5bff
parent 4862b5efbd6724d01e04b0951188f2a18c9362e8 [diff]

tdf#167075: init doc shell before pasting as png/bmp
Comment 7 Xisco Faulí 2025-08-11 15:41:05 UTC
My fix for bug 167075 seems to be wrong. Reverting for now in https://gerrit.libreoffice.org/c/core/+/189379 so it can backported to libreoffice-25-8 and libreoffice-25-8-0.
Comment 8 Commit Notification 2025-08-11 16:58:51 UTC
Xisco Fauli committed a patch related to this issue.
It has been pushed to "master":

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

tdf#167901: Revert "tdf#167075: init doc shell before pasting as png/bmp"

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 9 Commit Notification 2025-08-11 18:18:03 UTC
Xisco Fauli committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/5cdee7efe527ffc55c62b3fe3bd2126f727f09f4

tdf#167901: sc_uicalc: Add unittest

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 10 Commit Notification 2025-08-12 11:19:24 UTC
Xisco Fauli committed a patch related to this issue.
It has been pushed to "libreoffice-25-8":

https://git.libreoffice.org/core/commit/4f05e09bd0e54dc0bd1102c15e2ee62a7a92d9fd

tdf#167901: Revert "tdf#167075: init doc shell before pasting as png/bmp"

It will be available in 25.8.1.

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 11 Commit Notification 2025-08-12 11:20:29 UTC
Xisco Fauli committed a patch related to this issue.
It has been pushed to "libreoffice-25-8-0":

https://git.libreoffice.org/core/commit/1a8edcb9781471f977d1676aed44248e125f6839

tdf#167901: Revert "tdf#167075: init doc shell before pasting as png/bmp"

It will be available in 25.8.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 12 Xisco Faulí 2025-08-12 11:59:36 UTC
*** Bug 167918 has been marked as a duplicate of this bug. ***
Comment 13 Xisco Faulí 2025-08-13 18:16:54 UTC
*** Bug 167932 has been marked as a duplicate of this bug. ***