[Libreoffice-bugs] [Bug 113548] New: Crash when running a certain macro from BASIC editor

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Tue Oct 31 08:57:14 UTC 2017


https://bugs.documentfoundation.org/show_bug.cgi?id=113548

            Bug ID: 113548
           Summary: Crash when running a certain macro from BASIC editor
           Product: LibreOffice
           Version: 5.3.0.3 release
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: major
          Priority: medium
         Component: graphics stack
          Assignee: libreoffice-bugs at lists.freedesktop.org
          Reporter: baron at caesar.elte.hu

Add the following BASIC macro to My Macros:

Sub Goback_to_normal_view
Dim document   as object
Dim dispatcher as object
document   = ThisComponent.CurrentController.Frame
dispatcher = createUnoService("com.sun.star.frame.DispatchHelper")
Dim args(0) as new com.sun.star.beans.PropertyValue
dispatcher.executeDispatch(document, ".uno:_SwitchViewShell0", "", 0, args())
End Sub


Steps:
- Start a new HTML document.
- Save it.
- Switch to View -> HTML Source.
- Go to the macro editor (Tools -> Macros -> Organize Macros -> LibreOffice
Basic...; find the macro and click Edit).
- Run macro from the editor.

=> There's a crash.
See report:
http://crashreport.libreoffice.org/stats/crash_details/f084c009-4103-4cd8-bec6-884191626551

There's no crash if the macro is run via Tools -> Macros -> Run Macro...
Though sometimes I get "JRE is Defective" error there.

Observed using 6.0 master build (dc55f0618cae0e0ec7877eda065cc4b387e16bfb),
5.4.2.2/ Windows 7.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20171031/ddfca0eb/attachment-0001.html>


More information about the Libreoffice-bugs mailing list