[Libreoffice-bugs] [Bug 112418] New: Calling ImageMagick COM object from macro with more than two parameters results in exception

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Sat Sep 16 01:09:40 UTC 2017


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

            Bug ID: 112418
           Summary: Calling ImageMagick COM object from macro with more
                    than two parameters results in exception
           Product: LibreOffice
           Version: 3.5.0 release
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Keywords: notBibisectable, regression
          Severity: normal
          Priority: medium
         Component: LibreOffice
          Assignee: libreoffice-bugs at lists.freedesktop.org
          Reporter: baron at caesar.elte.hu

Download and install ImageMagick from [1]. There are lots of different
versions, for 32-bit LibreOffice ImageMagick-7.0.7-2-Q16-x86-dll.exe should be
good.
During installation make sure check box 'Install ImageMagick OLE Control' etc.
is checked. Finally, restart your computer.

Start Writer, open the macro editor via Tools -> Macros -> Edit Macros.
The following macro code uses ImageMagick to flip the image in the first
parameter horizontally, saving the result into the file in the last parameter
(substitute valid file names).
Run the macro:


Sub Main
Set img = CreateObject("ImageMagickObject.MagickImage.1")
r = img.Convert("c:\input.png", "-flop", "c:\output.png")
End Sub


There is the following error:
"BASIC runtime error.
An exception occurred 
Type: com.sun.star.lang.IllegalArgumentException
Message: [automation bridge]UnoConversionUtilities<T>::createUnoSequenceWrapper 
The any does not contain a sequence!."

There's no error if the 2nd parameter is removed (then the image is just copied
into the target file).

[1] http://www.imagemagick.org/script/download.php

Observed using LO 6.0 daily build (2017-09-14_00:10:31,
f70e0ec6b3c61a7c7caa469949b0ac8016c89854) and 3.5.0.3 / Windows 7.
Doesn't occur with LO 3.3.0.
=> regression

-- 
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/20170916/70f93d5a/attachment.html>


More information about the Libreoffice-bugs mailing list