Bug 167075 - Pasting a selection onto a sheet in PNG or BMP results in a blank image
Summary: Pasting a selection onto a sheet in PNG or BMP results in a blank image
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:25.8.1 target:26.2.0 target:25...
Keywords: bibisected, regression
Depends on:
Blocks: Paste
  Show dependency treegraph
 
Reported: 2025-06-18 08:10 UTC by nobu
Modified: 2025-08-12 15:59 UTC (History)
2 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-06-18 08:10:46 UTC
Description:
Pasting a selection onto a sheet in PNG or BMP results in a blank image.

Steps to Reproduce:
1. Open a new Calc.
2. Insert "a" to Cell [A1].
3. Select Cell [A1] & Copy.
4. Move the cursor somewhere.
5. Paste Image in PNG or BMP using Paste-Dropdown-Icon.

Actual Results:
6. A blank image is pasted.

Expected Results:
6. The image of "a" is pasted.


Reproducible: Always


User Profile Reset: No

Additional Info:

Not reproduced with
[2025-01-08]
Version: 25.8.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 6700b311310a94e0de8123b307275cd553bb0d9b
CPU threads: 4; OS: Windows 10 X86_64 (build 19045); UI render: Skia/Vulkan; VCL: win
Locale: en-US (ja_JP); UI: en-US
Calc: CL threaded

Reproducible with
Version: 25.8.0.0.beta1 (X86_64) / LibreOffice Community
Build ID: 1b25e37a63c5a6f16bdcb365ed3da80ac419e6e4
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

Reproducible with
[2025-06-18]
Version: 26.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: cf339d5f79551dec606e4872d2bb0307be382080
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 Saburo 2025-06-18 13:36:21 UTC
reproduce
[2025-06-04]
Version: 25.8.0.0.alpha1+ (X86_64) / LibreOffice Community
Build ID: ca6b1677cc3d923f0c13b2253b48a0ea90485b41
CPU threads: 12; OS: Windows 11 X86_64 (build 26100); UI render: default; VCL: win
Locale: ja-JP (ja_JP); UI: ja-JP
Calc: CL threaded

not reproduce
Version: 25.8.0.0.alpha1 (X86_64) / LibreOffice Community
Build ID: a2896e060b54ce6ce36e3e29218fac40d2919c74
CPU threads: 12; OS: Windows 11 X86_64 (build 26100); UI render: Skia/Vulkan; VCL: win
Locale: ja-JP (ja_JP); UI: ja-JP
Calc: CL threaded
Comment 2 Saburo 2025-06-18 13:53:00 UTC
reproduce
Version: 25.8.0.0.beta1 (X86_64) / LibreOffice Community
Build ID: 1b25e37a63c5a6f16bdcb365ed3da80ac419e6e4
CPU threads: 4; OS: Linux 6.12; UI render: default; VCL: gtk3
Locale: ja-JP (ja_JP.UTF-8); UI: en-US
Calc: threaded
Comment 3 Saburo 2025-06-19 02:06:53 UTC
bibisected with linux-64-25.8 b4460d983401e0b5962f71159016209e2d74d095..63597069fbb3209db1b4acd3c3e85b512b5d717c

See also 166767

possible d8ab8992bd35aedfc1d2b0debebab0d623aa8d09 335d23999d7210d310287e143a725a805233d1d8 52e3b2b040ac54c2a5661e3676b135170f028f50
Comment 4 nobu 2025-08-08 07:27:55 UTC
Reproducible with
[2025-08-08]
Version: 26.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 76f3531532b7618d43e4f783748e30689f58900a
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 5 Saburo 2025-08-08 08:40:49 UTC
@Xisco Fauli
Please, take a look?
Comment 6 Xisco Faulí 2025-08-08 11:38:29 UTC
fix in https://gerrit.libreoffice.org/c/core/+/189188
Comment 7 Commit Notification 2025-08-08 14:19:46 UTC
Xisco Fauli committed a patch related to this issue.
It has been pushed to "libreoffice-25-8":

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

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 8 Commit Notification 2025-08-08 14:28:55 UTC
Xisco Fauli committed a patch related to this issue.
It has been pushed to "master":

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

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-08 14:51:00 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/fe787f1fa5f9f267c4b36a2ddbfade5b95a99aa5

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 10 Commit Notification 2025-08-11 16:58:52 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 11 Commit Notification 2025-08-12 11:19:25 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 12 Commit Notification 2025-08-12 11:20:30 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 13 Commit Notification 2025-08-12 15:59:27 UTC
Xisco Fauli committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/671564bce4541244ad3d67b5b98899321176231e

tdf#167075: init doc shell before pasting as png/bmp (take 2)

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.