Bug 142094 - virtual SwModify::~SwModify(): Assertion `!hasListenersOnDeath' failed when closing master document
Summary: virtual SwModify::~SwModify(): Assertion `!hasListenersOnDeath' failed when c...
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
7.2.0.0.alpha0+
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Crash-Assert
  Show dependency treegraph
 
Reported: 2021-05-05 09:39 UTC by Buovjaga
Modified: 2023-04-04 08:29 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
GDB trace (43.41 KB, text/plain)
2021-05-05 09:39 UTC, Buovjaga
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Buovjaga 2021-05-05 09:39:09 UTC
Created attachment 171641 [details]
GDB trace

You need a debug build to hit this.

1. Unzip attachment 109540 [details]
2. Open master-image-vanish.odm, update links
3. Close the document

Crashes with this in console
soffice.bin: /home/user/libreoffice/sw/source/core/attr/calbck.cxx:157: virtual SwModify::~SwModify(): Assertion `!hasListenersOnDeath' failed.

Assert was added by Björn in https://git.libreoffice.org/core/commit/d656da9bc4f2df0bb99c65a288847e3fdd43a37c

Arch Linux 64-bit
Version: 7.2.0.0.alpha0+ / LibreOffice Community
Build ID: 211a63a780659b404541cae619d10f204a8bfe65
CPU threads: 8; OS: Linux 5.11; UI render: default; VCL: kf5 (cairo+xcb)
Locale: fi-FI (fi_FI.UTF-8); UI: en-US
Calc: threaded
Built on 2 May 2021
Comment 1 Aron Budea 2021-05-05 11:55:16 UTC
Confirmed with a recent local main build on Ubuntu.
Comment 2 Stéphane Guillou (stragu) 2023-04-04 08:15:00 UTC
Could not crash with a recent master debug build:

Version: 7.6.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 1b463f697405e64a03378fb38a32172c4d3c25e6
CPU threads: 8; OS: Linux 5.15; UI render: default; VCL: kf5 (cairo+xcb)
Locale: en-AU (en_AU.UTF-8); UI: en-US
Calc: threaded

Same with gtk3.

In the console, only warnings (I use "don't save" when closing):

warn:sw.core:138309:138309:sw/source/core/attr/calbck.cxx:196: a 12SwCharFormat client added as listener to a 12SwCharFormat during client iteration.
warn:vcl.schedule.deinit:138309:138309:vcl/source/app/scheduler.cxx:177: DeInit task: Timer a: 1 p: 1 framework::AutoRecovery m_aTimer 600000ms (0x265b398)
warn:vcl.schedule.deinit:138309:138309:vcl/source/app/scheduler.cxx:177: DeInit task: Timer a: 1 p: 1 graphic::Manager maSwapOutTimer 10000ms (0x7f69150383c0)
warn:vcl.schedule.deinit:138309:138309:vcl/source/app/scheduler.cxx:198: DeInit active tasks: 2 (ignored: 0)

Buovjaga or Aron, can you still crash it?
Comment 3 Buovjaga 2023-04-04 08:29:24 UTC
It's gone.