Bug 98124 - Crash on copying cells (openCL)
Summary: Crash on copying cells (openCL)
Status: RESOLVED NOTOURBUG
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
unspecified
Hardware: x86-64 (AMD64) Windows (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: OpenCL
  Show dependency treegraph
 
Reported: 2016-02-23 22:48 UTC by martin
Modified: 2016-07-14 13:09 UTC (History)
8 users (show)

See Also:
Crash report or crash signature:


Attachments
Spreadsheet giving the error (43.68 KB, application/vnd.oasis.opendocument.spreadsheet)
2016-02-23 23:06 UTC, martin
Details
Debug session with scalc.exe 5.1.2 (10.45 KB, text/plain)
2016-04-10 15:08 UTC, martin
Details
see comment 12 (377 bytes, text/plain)
2016-05-01 21:13 UTC, Dieter
Details
open *GL* _device.log (316 bytes, text/plain)
2016-06-29 21:09 UTC, martin
Details
GL device log and crash files (21.81 KB, application/x-zip-compressed)
2016-06-29 21:32 UTC, martin
Details

Note You need to log in before you can comment on or make changes to this bug.
Description martin 2016-02-23 22:48:24 UTC
I have a spreadsheet containing about 660 lines of data. The sheet contains my gasoline records.
I have some columns calculating the average consumption.

When I create a new line with data and I copy the cells with the average calculations from the line above then when I paste the cells, libre office crashes.

This is with all new versions 5.x (5.0.x and 5.1).

Martin
Comment 1 martin 2016-02-23 23:06:38 UTC
Created attachment 122932 [details]
Spreadsheet giving the error

Copy G111 to G112 and Libre Office Calc will crash
Comment 2 MM 2016-02-24 00:07:23 UTC
Unconfirmed with v5.0.5.2 under ubuntu 14.04 x64.
Unconfirmed with v5.1.1.1 under ubuntu 14.04 x64.
Unconfirmed with v5.1.1.1 under windows 10 x64.

Try resetting your user profile and see if it helps: https://wiki.documentfoundation.org/UserProfile#Resolving_corruption_in_the_user_profile
Comment 3 martin 2016-02-24 19:27:03 UTC
I reset my profile as described in the link but the problem still persists.

Martin
Comment 4 martin 2016-02-24 19:58:35 UTC
I event tried to open the file with version 5.1.1.1 but LibreOffice crashes directly when opening the file...

Version 5.1.1.1 was installed as a "parallel" installation.

Martin
Comment 5 Timur 2016-03-29 17:27:59 UTC
Only another person that reproduces the bug should set it to New. 
When reply is provided, just set back as Unconfirmed.
Comment 6 raal 2016-03-31 18:11:02 UTC
No crash with Version: 5.2.0.0.alpha0+
Build ID: ef34535ceb60d7d63b8d8671e4c6e9e43ffbd17d
CPU Threads: 4; OS Version: Linux 4.2; UI Render: default; 
TinderBox: Linux-rpm_deb-x86_64@70-TDF, Branch:master, Time: 2016-03-27_09:53:05
and Version: 5.1.1.3; win7
Comment 7 Buovjaga 2016-04-10 12:34:07 UTC
If it still crashes in latest stable 5.1.2, try to get a backtrace of the crash: https://wiki.documentfoundation.org/How_to_get_a_backtrace_with_WinDbg
Comment 8 martin 2016-04-10 15:06:41 UTC
Still doesn't work.
Seems to be a problem with amd graphics driver??
Is graphics driver called with bad parameters?

I have attached backtrace.txt.

Martin
Comment 9 martin 2016-04-10 15:08:03 UTC
Created attachment 124233 [details]
Debug session with scalc.exe 5.1.2

Having still the crash
Comment 10 raal 2016-04-11 08:11:33 UTC
Please try to disable OpenCL - Tools > Options > OpenCL
Comment 11 martin 2016-04-11 19:18:05 UTC
OpenCL disabled - no more problems.
Everything works fine now.

Thanks!
Comment 12 raal 2016-04-11 19:30:44 UTC
(In reply to martin from comment #11)
> OpenCL disabled - no more problems.
> Everything works fine now.
> 
> Thanks!

Please take a look at

C:\Users\User_name\AppData\Roaming\LibreOffice\4\cache\sc_opencl_device_profile.dat

Do you have this file on your PC? If yes, please attach it

Please could you test it with developer version (with OpenCl enabled)? Some OpenCl issues was resolved in new versions and we need to know if your bug is resolved too. 
Dev version you can download here: http://dev-builds.libreoffice.org/daily/master/

Thank you for your help.
Comment 13 martin 2016-04-11 19:48:02 UTC
No, the file is missing in my directory.

How can I test a developer version? Is there a Wiki or HowTo how to use it?
Comment 14 martin 2016-04-11 20:09:09 UTC
Ok, found the alpha version.
With 5.2.0.0.alpha0+ the same problem:
With OpenCL immediate crash when loading the file, without OpenCL no problems.
Comment 15 raal 2016-04-12 07:54:45 UTC
(In reply to martin from comment #14)
> Ok, found the alpha version.
> With 5.2.0.0.alpha0+ the same problem:
> With OpenCL immediate crash when loading the file, without OpenCL no
> problems.

Thanks. In dev profile should be .dat file - C:\Users\User_name\AppData\Roaming\LibreOfficeDev\4\cache\sc_opencl_device_profile.dat
Comment 16 martin 2016-04-14 21:14:44 UTC
No, sorry, there is only one file: opengl_device.log.
Nothing else.
Comment 17 Michael Meeks 2016-04-25 11:09:51 UTC
martin: interesting - can you confirm that you notice the difference between 'OpenCL' and 'OpenGL' ? - one is for Graphics, one for Compute - I suspect that the bug is an OpenGL related bug =) and un-related to OpenCL; particularly if there is no opencl_ device log in the cache/ directory.

Is there any chance of trying with a development build and it would also be interesting to have your OGL device log attached - so we can see what hardware you're running on.

Thanks ! =)
Comment 18 Michael Meeks 2016-04-25 11:16:59 UTC
Huh; I should of read the trace - this is an OCL crash indeed ... and it looks like it crashes trying to get the OCL device information:

0149b064 290825f6 28c90000 2905b216 28c90000 amdocl!clGetSamplerInfo+0x3b66a
0149b090 2904c091 00000004 626b1085 00000000 amdocl!clGetSamplerInfo+0x2b8e6
0149b098 626b1085 00000000 00000000 0149b0b4 amdocl!clIcdGetPlatformIDsKHR+0x11
0149b0c0 626b36d7 0149b0f0 0149b67c 06feb064 OpenCL+0x1085
0149b0c4 0149b0f0 0149b67c 06feb064 0149b53c OpenCL!clGetExtensionFunctionAddress+0x877
0149b0c8 0149b67c 06feb064 0149b53c 00000035 0x149b0f0

Which is horrific ... Tomaz - any ideas ? =)
Comment 19 Dieter 2016-05-01 21:13:47 UTC
Created attachment 124772 [details]
see comment 12
Comment 20 Dieter 2016-05-01 21:19:22 UTC
Sorry it's my my first contribution to a bug, and so I'm not familiar with bugzilla. I also had the problem (crash) but only after cutting and paste a text in a table. When I disabled OpenCL as described in commetn 10, no crash occured. So I attached the file as discribed in comment 12

Kind regards

Dieter
Comment 21 raal 2016-05-31 03:45:42 UTC
(In reply to mail.geschaeftlich from comment #20)
> Sorry it's my my first contribution to a bug, and so I'm not familiar with
> bugzilla. I also had the problem (crash) but only after cutting and paste a
> text in a table. When I disabled OpenCL as described in commetn 10, no crash
> occured. So I attached the file as discribed in comment 12
> 
> Kind regards
> 
> Dieter

Please  try to get a backtrace of the crash: https://wiki.documentfoundation.org/How_to_get_a_backtrace_with_WinDbg

Setting to new.
Comment 22 How can I remove my account? 2016-06-28 11:15:26 UTC
Please try to update to newest versions of LibreOffice (5.1.x and 5.2.x), see if you can reproduce the crash, and attach the opencl_devices.log file.

If you have the patience and (basic) command-line skills, you can also try to produce a log file from a developer build using the method described in https://wiki.documentfoundation.org/QA/BugReport/Debug_Information#Windows , the case for OpenCL
Comment 23 martin 2016-06-29 21:09:38 UTC
Created attachment 125992 [details]
open *GL* _device.log

Problem still exists with 5.1.4.2.
In C:\Users\User_name\AppData\Roaming\LibreOffice\4\cache only a opengl_device.log exists.
No sc_opencl_device_profile.dat exists as described in comment_12.

opengl_device.log is attached.
Comment 24 martin 2016-06-29 21:32:35 UTC
Created attachment 125993 [details]
GL device log and crash files

Test with 5.2.0.1 also crashes. Available debug files are attached.
Comment 25 martin 2016-06-29 21:41:51 UTC
Alpha version 5.3.0.0.alpha0+ (libo-master-2016-06-24_23.12.13_LibreOfficeDev_5.3.0.0.alpha0_Win_x86) also crashes.
Comment 26 How can I remove my account? 2016-06-29 22:01:22 UTC
Please don't keep bringing up OpenGL. There is no way this could be related to OpenGL. If you don't get any OpenCL logs, then you don't have OpenCL. Which is fine. Then the crash must be caused by something else.
Comment 27 martin 2016-06-29 22:07:28 UTC
Ok, I understand.
But normally the OpenCL checkbox in the options dialog box is marked and with this setting I get the crash.

If I switch off the OpenCL marker, everything is fine.

So I think the problem has something to do with OpenCL.
Comment 28 How can I remove my account? 2016-06-30 03:22:45 UTC
Yeah, sorry, I was confused. Probably the crash happens while LibreOffice is gathering the information it is going to write to the OpenCL-related log and xml files.
Comment 29 martin 2016-06-30 15:18:32 UTC
Yes, maybe.
Even the analyzing tool openclinfo.exe crashes.
Comment 30 Michael Meeks 2016-07-14 13:09:02 UTC
If openclinfo.exe crashes - then this is a bad OpenCL driver. We are now testing that driver during first-start / early init. and disabling OpenCL if it crashes - so closing, since this should be disabled on start for bad drivers.

Thanks for reporting :-) you should prolly find out why your CL driver is busted though.