Bug 145371 - Global Array of defined user type : values lost
Summary: Global Array of defined user type : values lost
Status: VERIFIED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: BASIC (show other bugs)
Version:
(earliest affected)
7.2.2.2 release
Hardware: All All
: medium normal
Assignee: Andreas Heinisch
URL:
Whiteboard: target:7.3.0 target:7.2.3
Keywords: bibisectNotNeeded, regression
Depends on:
Blocks:
 
Reported: 2021-10-29 05:43 UTC by Dorange-Pattoret Didier
Modified: 2021-11-02 09:14 UTC (History)
4 users (show)

See Also:
Crash report or crash signature:


Attachments
A small extension for tests (1.38 KB, application/vnd.openofficeorg.extension)
2021-10-29 05:48 UTC, Dorange-Pattoret Didier
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dorange-Pattoret Didier 2021-10-29 05:43:45 UTC
Description:
LO 7.2 : Values of Global Array defined user type are lost at end of runtime.
No problem with LO 7.1 or Aoo 4.1

Steps to Reproduce:
Use joigned extension
1. Run macro 1
2. Run macro 2

Actual Results:
Values of A lost

Expected Results:
Values of A retained


Reproducible: Always


User Profile Reset: Yes



Additional Info:
It works without problem with LO 7.1.2, AOOo 4.1.11 but not with LO 7.2.1
So it's a regression.
Comment 1 Dorange-Pattoret Didier 2021-10-29 05:48:48 UTC
Created attachment 175982 [details]
A small extension for tests
Comment 3 Andreas Heinisch 2021-10-29 06:25:13 UTC
Confirmed in:
Version: 7.3.0.0.alpha0+ (x64) / LibreOffice Community
Build ID: 207207f2752cde4d6edfe47a5a41470358a32b02
CPU threads: 6; OS: Windows 10.0 Build 19042; UI render: Skia/Raster; VCL: win
Locale: de-DE (de_DE); UI: en-US
Calc: CL
Comment 4 Commit Notification 2021-10-30 16:29:31 UTC
Andreas Heinisch committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/27d96bfaea5f7967a11dc3a7e2bc9d88dd6f5666

tdf#145371 - Delete array variable only before ReDim

It will be available in 7.3.0.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.
Comment 5 Dorange-Pattoret Didier 2021-10-31 08:26:55 UTC
Hello Andreas,
I tried with :
Version: 7.3.0.0.alpha1+ / LibreOffice Community
Build ID: c6af59b234e8eb8182dc7f686290524feafd6ed6
CPU threads: 4; OS: Linux 5.8; UI render: default; VCL: gtk3
Locale: fr-FR (fr_FR.UTF-8); UI: fr-FR
Calc: threaded
It works fine.

Does the patch will be pushed in LO 7.2.3 ?

Thanks and congratulations.
Comment 6 Andreas Heinisch 2021-10-31 08:34:19 UTC
Usually Xisco ports these kind of patchs back.
Comment 7 Dorange-Pattoret Didier 2021-11-01 07:48:20 UTC
Hello Andreas,
I do'nt understand. 
For my previous bugs, the same developer ported the patch in LO 7.3.0 and in LO 7.2.x
Example : https://bugs.documentfoundation.org/show_bug.cgi?id=144084

Have a nice day.
Thanks in advance.
Comment 8 Commit Notification 2021-11-02 09:14:26 UTC
Andreas Heinisch committed a patch related to this issue.
It has been pushed to "libreoffice-7-2":

https://git.libreoffice.org/core/commit/627cc6481f8a0b3df6ee550f16140b40340e86b2

tdf#145371 - Delete array variable only before ReDim

It will be available in 7.2.3.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.