I'll attach a test document with macro and explanation. Runs fine in for example 4.2.x Does not run in 4.4.x Crash on Windows: Error on Linux: Basic runtime error / An exception occured Type: com.sun.star.uno.RunTimeException Message: type coercion failed: conversion not possible at line 26: oClipContents = oClip.setContents(oTRX, null). on exiting function Function TR_getTransferDataFlavors() As Any (line 46)
Created attachment 116946 [details] test document for error / crash
I can confirm that the bug is present in LO 5.0.0.2 64bit and 4.4.5.0 on Win8.1.
On pc Debian x86-64 with master sources updated today, I could reproduce this. I noticed this on console: warn:stoc:22698:1:stoc/source/inspect/introspection.cxx:1643: object of type "com.sun.star.datatransfer.XTransferable" lacks XTypeProvider
This seems to have begun at the below commit. Adding Cc: to sbergman@redhat.com; Could you possibly take a look at this one? Thanks commit 6b4c596b01039324cfe78f38c4e3ffb9080bcd34 Author: Stephan Bergmann <sbergman@redhat.com> AuthorDate: Mon Jun 2 11:12:11 2014 +0200 Commit: Stephan Bergmann <sbergman@redhat.com> CommitDate: Mon Jun 2 11:12:11 2014 +0200 Fix memory leak for BASIC sub (as well as void function) d88593af59d9126cdbcd6c0a5b06fb9c673dc6f9 "INTEGRATION: CWS ab34: #i73457# Prevent sub from beeing set as param 0 for return type void" to fix i#73457 "Memory Leak in all Basic type void Method calls" had made the PutDirect call dependent on != SbxVOID only (which would cover void functions) but not also on != SbxEMPTY (which would apparently be required to also cover subs, as seen with CppunitTest_basic_vba run under lsan). Either this was an oversight with the original fix, or subs have meanwhile changed from GetType() == SbxVOID to SbxEMPTY? Change-Id: I3e5dbf79bfd5eea3cfec8ed3fa984d13167aa501
Stephan Bergmann committed a patch related to this issue. It has been pushed to "master": http://cgit.freedesktop.org/libreoffice/core/commit/?id=9d094b9f0a05d2ea62181201efb8f9e46ecfc8f1 tdf#92446: Revert apparently bogus attempt at fixing a memory leak It will be available in 5.1.0. The patch should be included in the daily builds available at http://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: http://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.
Stephan Bergmann committed a patch related to this issue. It has been pushed to "libreoffice-5-0": http://cgit.freedesktop.org/libreoffice/core/commit/?id=c79c5d8066538001959f18cab81f74bd6dacf4c8&h=libreoffice-5-0 tdf#92446: Revert apparently bogus attempt at fixing a memory leak It will be available in 5.0.2. The patch should be included in the daily builds available at http://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: http://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.
"So revert it and leave a fix for the memory leak to somebody who actually understands all this code." Filed bug 93423 for that.
Stephan Bergmann committed a patch related to this issue. It has been pushed to "libreoffice-5-0-1": http://cgit.freedesktop.org/libreoffice/core/commit/?id=40bbc0958478627081704c7c86cfa048553fe451&h=libreoffice-5-0-1 tdf#92446: Revert apparently bogus attempt at fixing a memory leak It will be available in 5.0.1. The patch should be included in the daily builds available at http://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: http://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.
Stephan Bergmann committed a patch related to this issue. It has been pushed to "libreoffice-4-4": http://cgit.freedesktop.org/libreoffice/core/commit/?id=60c6bf6e60f788ebfb7305fda97e856b67fd2e29&h=libreoffice-4-4 tdf#92446: Revert apparently bogus attempt at fixing a memory leak It will be available in 4.4.6. The patch should be included in the daily builds available at http://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: http://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.
Migrating Whiteboard tags to Keywords: (bibisected) [NinjaEdit]