Bug 106379 - EDITING: Column copy and paste freezes with 100% CPU loop in soffice.bin
Summary: EDITING: Column copy and paste freezes with 100% CPU loop in soffice.bin
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
5.2.5.1 release
Hardware: All Linux (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Paste
  Show dependency treegraph
 
Reported: 2017-03-07 08:58 UTC by ads
Modified: 2017-11-15 10:20 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 ads 2017-03-07 08:58:06 UTC
New spreadsheet; enter simple text data in cells A1, A2, A3; Ctrl-C column A; Ctrl-V on column B results in soffice.bin running at 100% for a long time, with screen frozen.

i.e. I am copying column A with only 3 text values in it to column B and I get the freezing behaviour.

When there are bugs like this in the software it makes it unusable, because you never know if the next key press is going to lock the program and you lose all your work. It reminds me of Excel V6 back in the early 90's.
Comment 1 Xisco Faulí 2017-03-07 09:33:57 UTC Comment hidden (obsolete)
Comment 2 ads 2017-03-07 09:54:17 UTC
After resetting the user profile the problem is still there
Comment 3 Xisco Faulí 2017-03-08 10:40:16 UTC
Hello,

This is very strange indeed.
Is OpenCL enabled ( Tools - Options - OpenCL ) ? if so, What happens if you disable it ?
Comment 4 ads 2017-03-08 13:26:33 UTC
Hi,

In Tools - Options - OpenCL there were two options:

1) Allow use of Software Interpreter (even when OpenCL is not available)
2) Allow use of OpenCL

I unchecked the first [Allow use of Software Interpreter (even when OpenCL is not available)] and the problem went away.

I tried checking the second either with or without the first one checked, and it seemed to accept it, but when I restarted Libreoffice the second was always unchecked i.e. it didn't save it over a restart - and of course it doesn't take effect unless you restart.

What does unchecking the first option do (apart from apparently fixing my problem)?

Thanks for your help.
Comment 5 Buovjaga 2017-04-30 11:38:24 UTC
(In reply to ads from comment #4)
> Hi,
> 
> In Tools - Options - OpenCL there were two options:
> 
> 1) Allow use of Software Interpreter (even when OpenCL is not available)
> 2) Allow use of OpenCL
> 
> I unchecked the first [Allow use of Software Interpreter (even when OpenCL
> is not available)] and the problem went away.
> 
> I tried checking the second either with or without the first one checked,
> and it seemed to accept it, but when I restarted Libreoffice the second was
> always unchecked i.e. it didn't save it over a restart - and of course it
> doesn't take effect unless you restart.
> 
> What does unchecking the first option do (apart from apparently fixing my
> problem)?
> 
> Thanks for your help.

OpenCL uses your graphics card's processing abilities for calculations. Software interpreter thus uses CPU.
Comment 6 Jean-Baptiste Faure 2017-04-30 21:04:56 UTC
(In reply to ads from comment #4)
> [...]
> What does unchecking the first option do (apart from apparently fixing my
> problem)?

Calc don't use the new formula interpreter needed by OpenCL implementation.

For the second option, I think that that means that Calc made tests to check if OpenCL driver works well and found that it does not work well and must be not used for Calc.
See Hardware Acceleration in https://people.gnome.org/~michael/blog/2017-02-01-under-the-hood-5-3.html 


Best regards. JBF
Comment 7 Xisco Faulí 2017-11-15 10:02:16 UTC Comment hidden (obsolete)
Comment 8 ads 2017-11-15 10:16:16 UTC
Hi, I just tried to recreate with my current version of libreoffice which is 

Version: 5.3.7.2.0+
Build ID: 5.3.7-5
CPU Threads: 4; OS Version: Linux 4.13; UI Render: default; VCL: gtk2; Layout Engine: new; 
Locale: en-GB (en_GB.UTF-8); Calc: single

Copy and paste columns now works as expected, whether or not I allow use of OpenCL.
Is there any point downloading the fresh version?
Comment 9 Xisco Faulí 2017-11-15 10:20:10 UTC
(In reply to ads from comment #8)
> Hi, I just tried to recreate with my current version of libreoffice which is 
> 
> Version: 5.3.7.2.0+
> Build ID: 5.3.7-5
> CPU Threads: 4; OS Version: Linux 4.13; UI Render: default; VCL: gtk2;
> Layout Engine: new; 
> Locale: en-GB (en_GB.UTF-8); Calc: single
> 
> Copy and paste columns now works as expected, whether or not I allow use of
> OpenCL.
> Is there any point downloading the fresh version?

It's ok to test it with 5.3.7.2 as well. Thanks for retesting. Closing as RESOLVED WORKSFORME