Bug 43657

Summary: Simple macro crashes LibreOffice.Impress
Product: LibreOffice Reporter: Zirneklītis <k_a_r_l_o_>
Component: ImpressAssignee: Not Assigned <libreoffice-bugs>
Status: RESOLVED WORKSFORME    
Severity: critical CC: sasha.libreoffice
Priority: medium    
Version: 3.4.4 release   
Hardware: All   
OS: Linux (All)   
See Also: https://bugzilla.redhat.com/show_bug.cgi?id=759647
https://issues.apache.org/ooo/show_bug.cgi?id=118671
Whiteboard:
Crash report or crash signature: Regression By:
Attachments: Custom slide show with killer macro

Description Zirneklītis 2011-12-08 22:27:06 UTC
Created attachment 54264 [details]
Custom slide show with killer macro

LibreOffice.Impress is crashing during a
slide show when one custom slide show is replaced by another.

Version-Release number of selected component (if applicable):
Latest stable pre-compiled binary (3.4.4 , OOO340m1, Build:402)

How reproducible:
100%

Steps to Reproduce:
1. Open the attached presentation.
2. Enable macros for this presentation.
3. Start slide show.
4. Navigate to the second slide.
5. Choose the second or the third example.


Actual results:
LibreOffice crashes.

Expected results:
The slide show must go on.

Verified OS/OOo:
This presentation crashes on:
Fedora 14 x64
   - latest stable pre-compiled binary (3.4.4 , OOO340m1, Build:402)
     from www.libreoffice.org
     LibO_3.4.4_Linux_x86-64_install-rpm_en-US.tar.gz
Scientific Linux 6.1 x86 LiveDVD
   - latest stable pre-compiled binary (3.4.4 , OOO340m1, Build:402)
     from www.libreoffice.org
     LibO_3.4.4_Linux_x86_install-rpm_en-US.tar.gz

This presentation works fine with OOo 3.2.0


The "Killer-Macro" is as follows:
------------------------------------
Sub KursSkats (view_name as String)

 oDoc = ThisComponent
 oDoc.Presentation.setPropertyValue("CustomShow", view_name)
 oDoc.Presentation.start() 

End Sub
-------------------------------------
Comment 2 Florian Reisinger 2012-01-21 10:02:11 UTC
At my LibO 3,5rc1 the second and third are doing nothing.
Pls test with  LibreOffice 3,5rc1 or newer...
Comment 3 Zirneklītis 2012-01-23 02:26:06 UTC
(In reply to comment #2)
> ..
> Pls test with  LibreOffice 3,5rc1 or newer...

Tested with Fedora 14 ×64 + LibO_3.5.0rc1_Linux_x86-64.
Works as expected (don't crash any more).
Comment 4 sasha.libreoffice 2012-03-30 05:23:56 UTC
Thanks for additional testing
Due to last comment, changing status to WorksForMe

If problem will appear again, please, change status to Reopened