Bug 149527 - Calc crashes when scroll up and down quickly within a document, or hold Page Down (Skia/Vulkan)
Summary: Calc crashes when scroll up and down quickly within a document, or hold Page ...
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
7.3.0.3 release
Hardware: x86-64 (AMD64) Windows (All)
: high critical
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: bibisected, haveBacktrace, regression
: 147608 149902 150157 150190 150294 150841 151749 152355 152649 152720 154861 156215 157429 158474 (view as bug list)
Depends on:
Blocks: Scrolling-PageUpDown Skia Crash
  Show dependency treegraph
 
Reported: 2022-06-11 20:56 UTC by Juergen Ziegler
Modified: 2024-05-29 04:02 UTC (History)
26 users (show)

See Also:
Crash report or crash signature:


Attachments
File crashes when scrolling (185.85 KB, application/vnd.oasis.opendocument.spreadsheet)
2022-06-13 20:40 UTC, Juergen Ziegler
Details
Clip Calc crashes then scrolling (5.29 MB, video/mp4)
2022-06-15 08:45 UTC, Juergen Ziegler
Details
WinDbg stack trace (~* kp) from freeze of LO 7.3.4.2 scrolling empty sheet w/ Skia Vulkan rendering (25.87 KB, text/plain)
2023-01-17 10:28 UTC, Stéphane Guillou (stragu)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Juergen Ziegler 2022-06-11 20:56:10 UTC
Description:
I use different Calc documents with several tabs. After opening a document, I quickly scroll up and down within a tab. After a short time, Calc crashes without an error message. After reopening the document, it should be restored, which does not work. The data entered up to that point is lost.

Steps to Reproduce:
1. opening a calc document "anteile_risikofonds2022.ods"
2. i go to the tab "Dividende"
3. scroll uo an down within the tab
4. use another tab "Kontoführung"
5. scroll uo an down within the tab
6. Calc crashes without a error message

Actual Results:
-

Expected Results:
-


Reproducible: Always


User Profile Reset: No



Additional Info:
I am now using version 7.2.7 and I can no longer reproduce the error.
Comment 1 raal 2022-06-12 21:04:18 UTC Comment hidden (obsolete)
Comment 2 Juergen Ziegler 2022-06-13 20:40:52 UTC
Created attachment 180737 [details]
File crashes when scrolling
Comment 3 QA Administrators 2022-06-14 03:28:47 UTC Comment hidden (obsolete)
Comment 4 m_a_riosv 2022-06-14 18:18:45 UTC
No able to repro, scrolling on every tab.
Version: 7.4.0.0.alpha1+ (x64) / LibreOffice Community
Build ID: 66b1ebd4ddc7127a923bf81eb569e7f99dd52022
CPU threads: 4; OS: Windows 10.0 Build 19044; UI render: Skia/Raster; VCL: win
Locale: es-ES (es_ES); UI: en-US Calc: threaded

Please test with a clean profile, Menu/Help/Restart in Safe Mode
Comment 5 Juergen Ziegler 2022-06-15 08:45:01 UTC
Created attachment 180777 [details]
Clip Calc crashes then scrolling
Comment 6 Juergen Ziegler 2022-06-15 08:47:43 UTC
In safe mode, the document does not crash when scrolling. 
After opening in normal mode, the document crashes again. 
I have attached a clip about this.
Thanks for your help.
Comment 7 m_a_riosv 2022-06-16 17:49:01 UTC
Please test if changing the values for Menu/Tools/Options/LibreOffice/View/Graphics output, like enable/disable skia shows any difference.
Comment 8 Juergen Ziegler 2022-06-19 08:18:35 UTC
Thank you for the answer.
If I deactivate SKIA in the menu item, I no longer have any problems and LibreOffice no longer crashes.
Comment 9 m_a_riosv 2022-06-19 10:22:48 UTC
To enable Skia, try to update your video card driver.
Comment 10 Juergen Ziegler 2022-06-20 08:14:11 UTC
This ist the Driver I use at the moment and LibreOffice crashes then I enable Skia.
GeForce Game Ready-Treiber 
Version: 516.40  WHQL
Freigabedatum: 	2022.6.15
Comment 11 QA Administrators 2022-06-21 03:30:33 UTC Comment hidden (obsolete)
Comment 12 Timur 2022-09-08 08:21:38 UTC
*** Bug 150841 has been marked as a duplicate of this bug. ***
Comment 13 Timur 2022-09-08 08:24:48 UTC
I set New based on duplicate bug 150841. 
There are multiple reports for crash on scroll but they were not connected not Skia was determined everywhere. Like bug 148989, bug 144962, bug 149849, bug 149902.
Comment 14 Timur 2022-09-08 08:40:57 UTC
In these bugs, where testers cannnot reproduce and they obviously depend on a system, we must rely on reporters to test daily master. 
Please do install from https://dev-builds.libreoffice.org/daily/master/current.html it's separate to working LO and will not take over your extensions.
Comment 15 Timur 2022-09-08 08:49:55 UTC
*** Bug 149902 has been marked as a duplicate of this bug. ***
Comment 16 Alessandro 2022-09-08 09:22:35 UTC Comment hidden (obsolete)
Comment 17 Timur 2022-09-08 09:44:02 UTC
*** Bug 144962 has been marked as a duplicate of this bug. ***
Comment 18 Timur 2022-09-14 07:30:27 UTC
*** Bug 150157 has been marked as a duplicate of this bug. ***
Comment 19 Stéphane Guillou (stragu) 2023-01-17 10:01:05 UTC
Duplicate has it reported since Calc 7.3.0.3 and can't reproduce in 7.2.7.2: https://bugs.documentfoundation.org/show_bug.cgi?id=150157#c0
Comment 20 Stéphane Guillou (stragu) 2023-01-17 10:11:49 UTC
*** Bug 152355 has been marked as a duplicate of this bug. ***
Comment 21 Stéphane Guillou (stragu) 2023-01-17 10:22:14 UTC
*** Bug 150294 has been marked as a duplicate of this bug. ***
Comment 22 Stéphane Guillou (stragu) 2023-01-17 10:25:23 UTC
*** Bug 150190 has been marked as a duplicate of this bug. ***
Comment 23 Stéphane Guillou (stragu) 2023-01-17 10:27:05 UTC
Many important comments in duplicate bug 150190.
Comment 24 Stéphane Guillou (stragu) 2023-01-17 10:28:35 UTC
Created attachment 184706 [details]
WinDbg stack trace (~* kp) from freeze of LO 7.3.4.2 scrolling empty sheet w/ Skia Vulkan rendering

This stack trace was shared by V Stuart Foot in duplicate bug 150190.
Attaching again here to make it easier to find.
Comment 25 Stéphane Guillou (stragu) 2023-01-17 18:56:34 UTC
Reproduced with both Page Down (once at 18k+ rows, once at 34k+ rows) and fast scrolling holding the scrollbar thumb in:

    Version: 7.4.4.2 (x64) / LibreOffice Community
    Build ID: 85569322deea74ec9134968a29af2df5663baa21
    CPU threads: 8; OS: Windows 10.0 Build 19045; UI render: Skia/Vulkan; VCL: win
    Locale: fr-FR (fr_FR); UI: fr-FR
    Calc: CL

Skia log:

    RenderMethod: vulkan
    Vendor: 0x10de
    Device: 0x1c82
    API: 1.3.205
    Driver: 516.376.0
    DeviceType: discrete
    DeviceName: NVIDIA GeForce GTX 1050 Ti
    Denylisted: no

Not reproduced with Skia off, or Force Skia software rendering on (Skia/Raster).

Not reproduced in LO 7.2:

    Version: 7.2.7.2 (x64) / LibreOffice Community
    Build ID: 8d71d29d553c0f7dcbfa38fbfda25ee34cce99a2
    CPU threads: 8; OS: Windows 10.0 Build 19045; UI render: Skia/Vulkan; VCL: win
    Locale: fr-FR (fr_FR); UI: en-US
    Calc: CL
Comment 26 Stéphane Guillou (stragu) 2023-01-18 08:05:29 UTC
I tried to bibisect the issue with the bibisect-win64-7.3 repo but had a large commit range with segmentation faults. The offending commit seems to be in this range:

https://git.libreoffice.org/core/+log/97b7511acfd9593051a611c71d307916097256dd..2a0f2f074dd643b723bfbcc5c96e4f5ee8da87a3

Quite a few commits have Skia in the message, all by Luboš Luňák.
Here is a shortlist of Luboš's commits for that range:

https://git.libreoffice.org/core/+log/97b7511acfd9593051a611c71d307916097256dd..2a0f2f074dd643b723bfbcc5c96e4f5ee8da87a3?pretty=oneline&author=l.lunak%40collabora.com
Comment 27 Stéphane Guillou (stragu) 2023-01-18 18:26:54 UTC
*** Bug 152720 has been marked as a duplicate of this bug. ***
Comment 28 Stéphane Guillou (stragu) 2023-01-23 20:24:56 UTC
*** Bug 151749 has been marked as a duplicate of this bug. ***
Comment 29 Stéphane Guillou (stragu) 2023-01-23 22:39:53 UTC
*** Bug 152649 has been marked as a duplicate of this bug. ***
Comment 30 V Stuart Foote 2023-01-24 02:43:26 UTC
*** Bug 147608 has been marked as a duplicate of this bug. ***
Comment 31 Telesto 2023-04-18 06:43:16 UTC
*** Bug 154861 has been marked as a duplicate of this bug. ***
Comment 32 a_sandox 2023-04-21 10:00:13 UTC
I hope you noticed that an extremely large amount of RAM is being consumed?
Comment 33 Stéphane Guillou (stragu) 2023-07-13 23:23:50 UTC
*** Bug 156215 has been marked as a duplicate of this bug. ***
Comment 34 danfrantes 2023-09-29 14:02:42 UTC
no reaction on windows 11
 lo 7.6.2.1
probebly resolved
Comment 35 danfrantes 2023-09-29 14:04:21 UTC Comment hidden (obsolete)
Comment 36 Stéphane Guillou (stragu) 2023-09-29 20:47:34 UTC
Hm seeing that Dan never reported experiencing the issue before, I'd like to see if others can confirm that the issue is gone first. Setting back to "new".

danfrantes, in which version did you experience the issue? And can you share your full version information in which it works?
Comment 37 ilya.y.komarov 2023-10-01 15:38:23 UTC
(In reply to Stéphane Guillou (stragu) from comment #36)
> Hm seeing that Dan never reported experiencing the issue before, I'd like to
> see if others can confirm that the issue is gone first. Setting back to
> "new".
> 
> danfrantes, in which version did you experience the issue? And can you share
> your full version information in which it works?

Hello. I've reproduced this bug in :

Version: 7.6.2.1 (X86_64) / LibreOffice Community
Build ID: 56f7684011345957bbf33a7ee678afaf4d2ba333
CPU threads: 8; OS: Windows 10.0 Build 19045; UI render: Skia/Vulkan; VCL: win
Locale: en-CA (en_CA); UI: en-US
Calc: CL threaded

Everything forks fine using scrolling method as well as using Page Up or Page Down buttons.
Comment 38 ilya.y.komarov 2023-10-01 15:46:47 UTC
Also reproduced this bug using same methods in:

Version: 24.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: cba8c933d1ff2e31ec55544f46d6fff99e8a5ccd
CPU threads: 8; OS: Windows 10.0 Build 19045; UI render: Skia/Vulkan; VCL: win
Locale: en-CA (en_CA); UI: en-US
Calc: CL threaded


Everything is working according expectations.


Edition	Windows 10 Pro
Version	22H2
Installed on	‎2021-‎03-‎11
OS build	19045.3448
Experience	Windows Feature Experience Pack 1000.19044.1000.0
Comment 39 Stéphane Guillou (stragu) 2023-10-01 20:12:34 UTC
(In reply to ilya.y.komarov from comment #37)
> Hello. I've reproduced this bug [..]
> Everything forks fine using scrolling method as well as using Page Up or
> Page Down buttons.

Ilya, "reproduced" means you can see the bug described here and it crashes.
Then you say that everything works fine. Which why is it?
Also, please don't set a confirmed be with status "new" back to "unconfirmed". Please see: https://wiki.documentfoundation.org/QA/Bugzilla/Fields/Status
Comment 40 ilya.y.komarov 2023-10-02 02:54:41 UTC
(In reply to Stéphane Guillou (stragu) from comment #39)
> (In reply to ilya.y.komarov from comment #37)
> > Hello. I've reproduced this bug [..]
> > Everything forks fine using scrolling method as well as using Page Up or
> > Page Down buttons.
> 
> Ilya, "reproduced" means you can see the bug described here and it crashes.
> Then you say that everything works fine. Which why is it?
> Also, please don't set a confirmed be with status "new" back to
> "unconfirmed". Please see:
> https://wiki.documentfoundation.org/QA/Bugzilla/Fields/Status

I meant , that  I've reproduced scenario of this bug.

Everything works fine mean that the bug wasn't confirmed.
Comment 41 danfrantes 2023-10-02 06:08:53 UTC
Why wo don't close it, because it looks nobody have this issues in newer versions.
Comment 42 Stéphane Guillou (stragu) 2023-10-02 07:39:50 UTC
To close a bug, you have to be sure that you could reproduce it in one version and you can't anymore in a newer version, _on the same system_.
So far, neither Ilya nor Dan have mentioned which version they were experiencing the bug in.
This bug seems specific to some systems, so many won't ever experience it. Maybe that's your case.
So, before we can close this bug, please:
- share the full version details of a version that crashes for you when scrolling
- share the full version details of a newer version that does not crashes anymore

And would be great if people in CC, especially the ones who has their bug marked as a duplicate, could also have a look at a recent 7.6.2.1 or a daily build to see if they still experience it (with graphics drivers updated too).

Thank you!
Comment 43 Jérôme 2023-10-28 15:17:50 UTC
I encounter the same bug with :
Version: 7.3.7.2.M5 (x64) / LibreOffice Community
Build ID: cf0a4747cef76399d7acd30c4dcda7a78e7973c2
CPU threads: 4; OS: Windows 10.0 Build 19045; UI render: Skia/Vulkan; VCL: win
Locale: fr-FR (fr_FR); UI: fr-FR
Calc: threaded

My system :
Edition : Windows 10 Professionnel
Version : 22H2
AMD Ryzen 3 PRO 3300U w/ Radeon Vega Mobile Gfx   2.10 GHz
Comment 44 bert.vanderveen 2023-11-02 22:38:05 UTC
Hello,

I am one of the people on the CC list. 
I reported the problem (as bug 150157) in version 7.3.x.x in july 2022. Since then I have used version 7.2.7.2 to prevent troubles in daily work.
But now I have installed version 7.6.2.1 on the same Windows 10 machine and I can confirm that the problem with scrolling in a long Calc sheet does not occur anymore.
I also installed 7.6.2.1 on a new Core i7 (13th gen) laptop with Windows 11. And also on this machine I did not experience the earlier scrolling problem with Calc.
So my conclusion is that the bug in 7.6.2.1 seems to be solved. 
Thank you for that.

Sincerely,
Bert
Comment 45 Jérôme 2023-11-05 08:11:48 UTC
Could someone narrow(In reply to bert.vanderveen from comment #44)
> I reported the problem (as bug 150157) in version 7.3.x.x in july 2022.
> Since then I have used version 7.2.7.2 to prevent troubles in daily work.
> But now I have installed version 7.6.2.1 on the same Windows 10 machine and
> I can confirm that the problem with scrolling in a long Calc sheet does not
> occur anymore.

Could we narrow the version that fixed this bug ? Could we deactivate Skia by default on the versions which have this bug ?
Comment 46 Stéphane Guillou (stragu) 2023-11-05 14:04:10 UTC
(In reply to bert.vanderveen from comment #44)
> But now I have installed version 7.6.2.1 on the same Windows 10 machine and
> I can confirm that the problem with scrolling in a long Calc sheet does not
> occur anymore. [...]
> So my conclusion is that the bug in 7.6.2.1 seems to be solved. 

Thanks Bert. Can you please provide the full version information copied from Help > About LibreOffice? Just to make sure that you are indeed using Skia.

(In reply to Jérôme from comment #45)
> Could we narrow the version that fixed this bug ? Could we deactivate Skia
> by default on the versions which have this bug ?

If it is indeed fixed, one could bibisect the fixing commit: https://wiki.documentfoundation.org/QA/Bibisect

If you are using a buggy version, you can use Skia Raster: Tools ▸ Options ▸ LibreOffice ▸ View ▸ Force Skia software rendering.
Comment 47 bert.vanderveen 2023-11-10 23:01:39 UTC
Hello,

To answer your questino: 
Can you please provide the full version information copied from Help > About LibreOffice? Just to make sure that you are indeed using Skia.

This is the information:
Version: 7.6.2.1 (X86_64)
Build: 56f....a7ee...
Operating system: Windows 10.0 Build 19045
User interface: UI-render: Skia/Vulkan; VCL: win nl-NL (nl_NL); GI: nl-NL
Other: Calc: CL threaded 

I hope this information will help you to finalize the issue.

Regards Bert
Comment 48 Stéphane Guillou (stragu) 2023-11-10 23:25:56 UTC
Well, that's great news, let's mark as "works for me" then.
Still, if someone can bibisect the fix, it would be much appreciated.
Comment 49 Stéphane Guillou (stragu) 2024-03-05 13:22:25 UTC
*** Bug 154861 has been marked as a duplicate of this bug. ***
Comment 50 Stéphane Guillou (stragu) 2024-03-28 03:37:43 UTC
*** Bug 157429 has been marked as a duplicate of this bug. ***
Comment 51 Stéphane Guillou (stragu) 2024-05-29 04:02:04 UTC
*** Bug 158474 has been marked as a duplicate of this bug. ***