Bug 150686 - Macro connected through Tools → Customize → Events → View created leads to error when document is opened again
Summary: Macro connected through Tools → Customize → Events → View created leads to e...
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Base (show other bugs)
Version:
(earliest affected)
7.4.0.3 release
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: regression
Depends on:
Blocks:
 
Reported: 2022-08-30 15:19 UTC by Robert Großkopf
Modified: 2024-02-24 01:30 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
Open the attached database file with macros enabled. Close it, open it again … (13.16 KB, application/vnd.oasis.opendocument.database)
2022-08-30 15:19 UTC, Robert Großkopf
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Robert Großkopf 2022-08-30 15:19:55 UTC
Created attachment 182100 [details]
Open the attached database file with macros enabled. Close it, open it again …

Open the attached database with Macros enabled.

There will be a procedure running through Tools → Customize → Events → View created. 
In this example there is no content in procedure, but with content its the same behavior.

SUB Test
'no content
END SUB

Now close the database document but don't close LO.
Reopen the database document.

This error appears.

com.sun.star.lang.DisposedException: Component is already disposed. at /home/buildslave/source/libo-core/dbaccess/source/core/inc/ModelImpl.hxx:471

Close the database document. Error appears again.

Detected this buggy behavior with OpenSUSE 15.3 64bit rpm Linux and LO 7.4.0.3, also earlier 7.4.0-versions. Error won't appear in LO 7.3.5.2, so a regression.
Comment 1 jcsanz 2022-08-30 16:48:51 UTC
(In reply to Robert Großkopf from comment #0)

> 
> This error appears.
> 
> com.sun.star.lang.DisposedException: Component is already disposed. at
> /home/buildslave/source/libo-core/dbaccess/source/core/inc/ModelImpl.hxx:471
> 
It appears for me too but do not show the part "at /home/..."

> Close the database document. Error appears again.
When I close the error do not appear, only when opening
 
Version: 7.4.0.3 (x64) / LibreOffice Community
Build ID: f85e47c08ddd19c015c0114a68350214f7066f5a
CPU threads: 4; OS: Windows 10.0 Build 19044; UI render: Skia/Raster; VCL: win
Locale: es-ES (es_ES); UI: en-US
Calc: CL


Also can confirm that the error do not appear when tested with:
 
Version: 7.2.5.2 (x64) / LibreOffice Community
Build ID: 499f9727c189e6ef3471021d6132d4c694f357e5
CPU threads: 4; OS: Windows 10.0 Build 19044; UI render: Skia/Raster; VCL: win
Locale: es-ES (es_ES); UI: es-ES
Calc: threaded
Comment 2 Robert Großkopf 2022-08-30 17:04:55 UTC
@jcsanz: You are right. Onls appears when opening the database. I had first tested with event "View is going to be closed". This event would happen while closing and the error would appear while closing.
Comment 3 raal 2023-12-30 12:01:20 UTC
No repro with Version: 24.8.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 71c28942fbc7f36e5bcd46c5a6cdfbb3fcbcd6a0
CPU threads: 4; OS: Linux 6.2; UI render: default; VCL: gtk3
Locale: cs-CZ (cs_CZ.UTF-8); UI: en-US
Calc: threaded
Comment 4 Robert Großkopf 2023-12-30 16:08:38 UTC
Tested again. Bug exists up to LO 7.4.3.2, but with current version there is no error any more. I will close this one as WORKSFORME.