Created attachment 146015 [details]
Use a debug build for the reproduction steps.
- Start a new presentation.
- Enter a character in the content text box.
- Switch to a different slide layout, eg. to "Title, Content".
=> Crash with an assertion failure.
Assert is triggered here:
#3 0x00007ffff734e412 in __GI___assert_fail (assertion=0x7ffff21dad88 "!(bListeningAlready && eDuplicateHanding == DuplicateHandling::Unexpected) && \"duplicate listener, try building with DBG_UTIL to find the other insert site.\"", file=0x7ffff21dad50 "/build/sources/libreoffice/svl/source/notify/lstner.cxx", line=103, function=0x7ffff21db560 <SfxListener::StartListening(SfxBroadcaster&, DuplicateHandling)::__PRETTY_FUNCTION__> "void SfxListener::StartListening(SfxBroadcaster&, DuplicateHandling)") at assert.c:101
#4 0x00007ffff20f44d8 in SfxListener::StartListening(SfxBroadcaster&, DuplicateHandling) (this=0x55555b23edf0, rBroadcaster=..., eDuplicateHanding=DuplicateHandling::Unexpected) at /build/sources/libreoffice/svl/source/notify/lstner.cxx:103
Observed using LO 220.127.116.11.alpha1+ (313392119522c21a6ecd14403d6f92c948149df7) / Ubuntu 18.04.
This seemed like a regression, as it start occurring in repo lo-linux-dbgutil-daily-till60, and could be bibisected to the following range:
However, it seems it's the assert that was added at that point:
author Noel Grandin <email@example.com> 2017-08-10 10:39:59 +0200
committer Noel Grandin <firstname.lastname@example.org> 2017-08-16 10:41:56 +0200
assert on duplicate listener in SfxListener
Created attachment 146100 [details]
bt with debug symbols
On pc Debian x86-64 with master sources updated yesterday, I could reproduce this.
Noel: thought you might be interested in this one.
Noel Grandin committed a patch related to this issue.
It has been pushed to "master":
tdf#120920 Assertion failure when switching slide layouts with text entered
It will be available in 6.2.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:
Affected users are encouraged to test the fix and report feedback.
Verified with a local master debug build (26caf1bc59c81704f11225e3e431e412deb8c475), thanks for the fix, Noel!