Bug 149866 - LibreOffice crashes when handling the windowClosing event.
Summary: LibreOffice crashes when handling the windowClosing event.
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: BASIC (show other bugs)
Version:
(earliest affected)
7.3.4.2 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Crash
  Show dependency treegraph
 
Reported: 2022-07-05 13:36 UTC by Vladimir Sokolinskiy
Modified: 2023-02-17 15:47 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
TopWindowListener.ods (9.50 KB, application/vnd.oasis.opendocument.spreadsheet)
2022-07-05 13:36 UTC, Vladimir Sokolinskiy
Details
basic.zip (9.14 KB, application/x-zip-compressed)
2023-01-23 16:13 UTC, Vladimir Sokolinskiy
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Vladimir Sokolinskiy 2022-07-05 13:36:47 UTC
Created attachment 181126 [details]
TopWindowListener.ods

Steps to reproduce:

1. Install MRI extension.
2. Open TopWindowListener.ods and run macro ListenerStart.
3. Menu / Tools / Add-ons / Mri. Close MRI window.

LO crashes.

Crash report https://crashreport.libreoffice.org/stats/crash_details/3ed92e4b-9d88-4bb8-bdda-a6e8cd69c0e3
Comment 1 Mike Kaganski 2022-07-05 13:44:16 UTC
Can't repro using Version: 7.3.4.2 (x64) / LibreOffice Community
Build ID: 728fec16bd5f605073805c3c9e7c4212a0120dc5
CPU threads: 12; OS: Windows 10.0 Build 19044; UI render: Skia/Raster; VCL: win
Locale: ru-RU (ru_RU); UI: en-US
Calc: CL
Comment 2 Buovjaga 2023-01-23 11:38:06 UTC
Works fine for me with MRI 1.3.4. Do you still reproduce the crash?

Set to NEEDINFO.
Change back to UNCONFIRMED, if the problem persists. Change to RESOLVED WORKSFORME, if the problem went away.

Version: 7.6.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 1c638b7ac46d8077994c8483e6becc4a33efd12b
CPU threads: 2; OS: Windows 10.0 Build 22621; UI render: Skia/Raster; VCL: win
Locale: en-US (en_FI); UI: en-US
Calc: threaded
Comment 3 Vladimir Sokolinskiy 2023-01-23 13:23:01 UTC
Hello! Thank you for your attention to the topic.
My error always occurs after all version changes (now version 7.4.2.3 Win 10).
At the same time, I cannot reproduce this error on a "clean" profile. I'm still hoping to find the cause.
Comment 4 Buovjaga 2023-01-23 14:09:40 UTC
(In reply to Vladimir Sokolinskiy from comment #3)
> Hello! Thank you for your attention to the topic.
> My error always occurs after all version changes (now version 7.4.2.3 Win
> 10).
> At the same time, I cannot reproduce this error on a "clean" profile. I'm
> still hoping to find the cause.

Do you mean a clean profile + MRI installed does not crash?

If you can zip up your profile and attach it, it might be useful for investigation.
Comment 5 Vladimir Sokolinskiy 2023-01-23 16:13:21 UTC
It seems that the half-division method did the trick. :)

So with a clean profile:

1. Start LibreOffice.
2. Change the contents of the ...\4\user\Basic directory to the contents of the basic.zip archive (attachment to the message).
3. Next, perform the actions from the start message. There is an error in my configuration.

The basic.zip archive contains the Standard library, which contains one ObjInspector.xba module from the famous book by A. Pitonyak. Why this affects the result is beyond my understanding.

I hope I'm not wrong this time.

Version: 7.4.2.3 (x64) / LibreOffice Community
Build ID: 382eef1f22670f7f4118c8c2dd222ec7ad009daf
CPU threads: 6; OS: Windows 10.0 Build 19044; UI render: Skia/Vulkan; VCL: win
Locale: ru-RU (ru_RU); UI: en-US
Calc: CL
Comment 6 Vladimir Sokolinskiy 2023-01-23 16:13:47 UTC
Created attachment 184851 [details]
basic.zip
Comment 7 Vladimir Sokolinskiy 2023-01-23 19:54:52 UTC
Further experiments showed that after the first start of LO, it is enough to enter the following text into the Module1 module of the Standard library (instead of step 2 of comment 5):

Option Explicit

Private oObjects(100) 'Objects to inspect
Private Titles(100)   'Titles

Sub Test(Optional oInsObj, Optional title$)
End Sub
Comment 8 Mike Kaganski 2023-01-25 08:42:24 UTC
Repro using Version: 7.5.0.2 (X86_64) / LibreOffice Community
Build ID: c0dd1bc3f1a385d110b88e26ece634da94921f58
CPU threads: 12; OS: Windows 10.0 Build 19045; UI render: Skia/Raster; VCL: win
Locale: ru-RU (ru_RU); UI: en-US
Calc: CL threaded

https://crashreport.libreoffice.org/stats/crash_details/4e5a67ce-4e9a-49d4-9811-edce718ea2ee