Bug 108049 - Calc crashes when/after running VBA macro
Summary: Calc crashes when/after running VBA macro
Status: RESOLVED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: BASIC (show other bugs)
Version:
(earliest affected)
3.5 all versions
Hardware: All All
: medium normal
Assignee: Justin L
QA Contact:
URL:
Whiteboard: target:5.5.0 target:5.4.0.1 target:5.3.4
Keywords: haveBacktrace
Depends on:
Blocks:
 
Reported: 2017-05-24 08:55 UTC by Justin L
Modified: 2017-05-26 19:07 UTC (History)
2 users (show)

See Also:
Crash report or crash signature: ["ScVbaRange::setStyle(com::sun::star::uno::Any const &)"]


Attachments
Universal Budget Template - Version 3.1.xlsm (237.69 KB, application/vnd.ms-excel.sheet.macroEnabled.12)
2017-05-24 08:55 UTC, Justin L
Details
backtrace from gdb (17.78 KB, text/plain)
2017-05-24 09:20 UTC, Justin L
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Justin L 2017-05-24 08:55:18 UTC
Created attachment 133505 [details]
Universal Budget Template - Version 3.1.xlsm

Calc crashes after pressing "ok" during a macro execution.

Steps to reproduce: 
-enable macros when opening the .xlsm file and press the "Refresh Chart" button at cell "Budget Summary:I31".
-press OK to acknowledge the message
-crash occurs.
Comment 1 Xisco Faulí 2017-05-24 09:14:18 UTC
Confirmed in

Version: 5.4.0.0.alpha1+
Build ID: 74d2e606fd3605fe0a585f596eaa215ae4e20d18
CPU Threads: 4; OS Version: Linux 4.8; UI Render: default; VCL: gtk2; 
Locale: en-US (ca_ES.UTF-8); Calc: group

and

Versión: 5.3.2.2
Id. de compilación: 6cd4f1ef626f15116896b1d8e1398b56da0d0ee1
Subproc. CPU: 1; SO: Windows 6.1; Repr. de IU: predet.; Motor de trazado: HarfBuzz; 
Configuración regional: ro-RO (es_ES); Calc: group
Comment 2 Xisco Faulí 2017-05-24 09:17:20 UTC
Confirmed back to

Version 4.1.0.0.alpha0+ (Build ID: efca6f15609322f62a35619619a6d5fe5c9bd5a)

in

LibreOffice 3.3.0 
OOO330m19 (Build:6)
tag libreoffice-3.3.0.4


the button is not displayed.
Comment 3 Justin L 2017-05-24 09:20:23 UTC
Created attachment 133506 [details]
backtrace from gdb

Crashes in the oldest bibisect43all.
Comment 4 Julien Nabet 2017-05-26 07:37:02 UTC Comment hidden (no-value)
Comment 5 Commit Notification 2017-05-26 10:45:38 UTC
Justin Luth committed a patch related to this issue.
It has been pushed to "master":

http://cgit.freedesktop.org/libreoffice/core/commit/?id=4dc3e7d5e9044be66177e467d739bd8be7556783

tdf#108049 VBA exception avoided in ScVbaRange::setStyle

It will be available in 5.5.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.
Comment 6 Commit Notification 2017-05-26 17:14:19 UTC
Justin Luth committed a patch related to this issue.
It has been pushed to "libreoffice-5-4":

http://cgit.freedesktop.org/libreoffice/core/commit/?id=bb9c240046955c432d963610d5dd99edcc6b43e6&h=libreoffice-5-4

tdf#108049 VBA exception avoided in ScVbaRange::setStyle

It will be available in 5.4.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.
Comment 7 Commit Notification 2017-05-26 19:05:51 UTC
Justin Luth committed a patch related to this issue.
It has been pushed to "libreoffice-5-3":

http://cgit.freedesktop.org/libreoffice/core/commit/?id=f82a36749a9df51d2344e4acb88f0e53b39f8e72&h=libreoffice-5-3

tdf#108049 VBA exception avoided in ScVbaRange::setStyle

It will be available in 5.3.4.

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.