Bug 45041

Summary: Crash opening ods file containing macros
Product: LibreOffice Reporter: Peter <peter>
Component: CalcAssignee: Not Assigned <libreoffice-bugs>
Status: RESOLVED WORKSFORME    
Severity: normal CC: cno, jbfaure, peter, serval2412
Priority: medium    
Version: 3.5.0 RC1   
Hardware: All   
OS: All   
Whiteboard:
Crash report or crash signature: Regression By:
Attachments: File which causes the crash

Description Peter 2012-01-21 08:47:16 UTC
Created attachment 55917 [details]
File which causes the crash

Opening the attached file will crash libreoffice...

Only tested with the Windows 32bit version.
Its working with 3.4....
Comment 1 Julien Nabet 2012-01-21 08:55:26 UTC
I don't reproduce it neither with 3.5 branch (so not exactly the 3.5.0 rc1)  nor with master.

PC Debian x86-64.
Comment 2 Julien Nabet 2012-01-21 08:59:51 UTC
In both versions, I have this kind of error logs :

warn:legacy.osl:20153:1:/home/julien/compile-libreoffice/libo/xmloff/source/core/xmlerror.cxx:195: An error or a warning has occurred during XML import/export!
Error-Id: 0x20040003
    Flags: 2 ERRROR
    Class: 4 API
    Number: 3
Parameters:
    0: CharEscapementHeight
Exception-Message: UNKNOWN_PROPERTY
Position:
    Public Identifier: 
    System Identifier: file:///home/julien/compile-libreoffice/bugs/45041_odt_macro_crash/IO_Liste.ods
    Row, Column: 16628,692005

The author uses Windows XP (IRC info)
Comment 3 Peter 2012-01-21 09:03:31 UTC
And it will only crash, if the macro is executed (of course).
Comment 4 Peter 2012-01-22 06:28:39 UTC
Ok, I did some more research.

It does not crash every time, but very often.
Maybe it depends on memory usage, but sometime it opens directly after a reboot and sometimes not.

Is there a possibility to get more information about the problem?
Save the stack, core dump or so?
Comment 5 Cor Nouws 2012-02-06 04:44:51 UTC
Hi Peter,

(In reply to comment #4)

> Is there a possibility to get more information about the problem?
> Save the stack, core dump or so?

Yes, here:
  http://wiki.documentfoundation.org/BugReport#Providing_extra_information_for_the_developers

thanks - Cor
Comment 6 Peter 2012-02-09 06:26:49 UTC
Same problems with RC3...
Comment 7 Peter 2012-02-09 06:29:24 UTC
@Cor Nouws ...yes, under Linux, but it seems it crashes only on WinXP
Comment 8 Cor Nouws 2012-02-12 07:52:04 UTC
(In reply to comment #6)
> Same problems with RC3...

pls don't touch the field 'version'. It reflects the version of the initial report :-)
Comment 9 Pedro 2012-02-12 08:04:07 UTC
Opened the file 3 times with Macros enabled. All calculations completed successfully and there was no crash.

Tested on Win XP Pro x86 SP3.
Comment 10 Pedro 2012-02-12 08:05:22 UTC
Oops what a lame QA :)

This was on LibreOffice 3.5.0rc3.

Sorry for the additional message...
Comment 11 Jean-Baptiste Faure 2012-02-12 10:16:29 UTC
Asked confirmation from MS-Windows users on FR discuss list:
- no crash on XP
- no crash on W7 x86_64
with LO 3.5.0 rc3
From my side: no crash on Ubuntu 11.10 x86_64 with LO 3.5.0 rc3 and LO 3.5.1 rc0+ (Version ID : 848b0b4-8c0b455-f9b8d0b-ad1896d-24eb504)

Best regards. JBF
Comment 12 Cor Nouws 2012-02-12 11:29:57 UTC
(In reply to comment #2)
> In both versions, I have this kind of error logs :

So no crash but an error log..

> Exception-Message: UNKNOWN_PROPERTY
> Position:
>     Public Identifier: 
>     System Identifier: file:///home/julien/compile-libreoffice/bugs/45041_odt_macro_crash/IO_Liste.ods
>     Row, Column: 16628,692005

Reads as a broken file, that somehow does not crash in the system pf the people that tried to reproduce...

@Peter: what about 350rc3 for you?
Comment 13 Peter 2012-02-13 17:21:51 UTC
@(In reply to comment #12)

The same behavior for 350rc3
 * it happens also with macros disabled, so it seems its not depending on macro execution
 * sometimes it crashes, but sometimes not, so it not full reproducible
 * maybe it depends on the memory usage, because if there are more programs running, it will crash more often.
 * but even after reboot it crashes, and sometimes not
Comment 14 Julien Nabet 2012-03-12 12:22:51 UTC
- could you try with a brand new LO profile (so remove or backup your LO profile located here : ~/.config/libreoffice or ~/.libreoffice) ?
- can you reproduce it with a brand new document ?
- could you monitor CPU/memory during the tests ? (BTW how much RAM do you have ?)
Comment 15 Peter 2012-03-14 06:31:05 UTC
Yep, I deleted the profile, but there was no change.
And I have 3 GB RAM
* There are no changes in RAM Usage and the CPU gets 50-60% peak, by loading 
* new documents (created by the explorer) will not crash LO.

There some things I figured out:
  - it is not related to macros, I have a lot of documents, which make libreoffice crashing sometimes
  - there is a difference if I open the document & libreoffice direct, by clicking on the icon
    (here are the crashes are often) or if I open the document with File->Open
    (then it will not crash)
  - it crashes normally only if there are a some other application are running 
  - and (of course) no crash if I'm (or the soffice.bin) attached to WinDbg...

I have absolutely no Idea how to provide better and useful information on this issue.
Would be much easier to get a crash report directly from LO.
Comment 16 Peter 2012-03-15 05:44:38 UTC
3.5.1RC2 looks better...I will test some more weeks...if there are no crashes anymore, I will close this report
Comment 17 Jorendc 2012-12-23 13:35:44 UTC
Change odt to ods in bugname, because this is a spreadsheet bug (odt = files for Writer; ods = Calc).
Comment 18 Julien Nabet 2012-12-29 09:01:46 UTC
Petr: do you reproduce this with 3.6.4 and a brand new LO profile?
I had forgotten to ask you these also:
- did you install any LO specific extensions?
- do you have any specific fonts? (I mean fonts downloaded or from a specific software other than LO)
- what's your Java version?
Comment 19 Peter 2013-01-01 09:00:46 UTC
Hi Julien,

I don't know what I have changed, but this bug never hit me again with 
newer versions of LO.
So I guess we can close this one.


(In reply to comment #18)
> Petr: do you reproduce this with 3.6.4 and a brand new LO profile?
> I had forgotten to ask you these also:
> - did you install any LO specific extensions?
> - do you have any specific fonts? (I mean fonts downloaded or from a
> specific software other than LO)
> - what's your Java version?
Comment 20 Jean-Baptiste Faure 2013-01-01 09:50:49 UTC
According to comment #19, closing as WorksForMe.

Thank you. JBF