Bug 119312 - Remote control of impress; Crash in: sdext::presenter::PresenterSlideShowView::LateInit()
Summary: Remote control of impress; Crash in: sdext::presenter::PresenterSlideShowView...
Status: RESOLVED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Impress (show other bugs)
Version:
(earliest affected)
6.1.0.3 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard: target:7.3.0 target:7.2.0.2 target:7.1.6
Keywords:
Depends on:
Blocks: Slide-Show Crash 143293
  Show dependency treegraph
 
Reported: 2018-08-16 10:12 UTC by oo.o+libreoffice
Modified: 2021-07-20 09:24 UTC (History)
4 users (show)

See Also:
Crash report or crash signature: ["sdext::presenter::PresenterSlideShowView::LateInit()"]


Attachments
QT Impress remote experiment (5.51 KB, application/x-7z-compressed)
2018-09-14 08:06 UTC, oo.o+libreoffice
Details
Wireshark capture port 1599 LO 7.0.3 (721.80 KB, application/octet-stream)
2020-09-02 08:08 UTC, oo.o+libreoffice
Details
Patch for impress (1.08 KB, patch)
2020-09-09 21:35 UTC, oo.o+libreoffice
Details

Note You need to log in before you can comment on or make changes to this bug.
Description oo.o+libreoffice 2018-08-16 10:12:56 UTC
This bug was filed from the crash reporting server and is br-f4250b08-b9ac-48ce-850e-9e7070139962.
=========================================

To reproduce
1. Start impress with a presentation
2. Pair remote control application with impress
3. Wait for the initial exchange of the presentation name and so 
4. Send from the remote control application:
4.1. a tcp package with "presentation_start\n\n" and immediately
4.2. a tcp package with "presentation_stop\n\n"
5. impress segfaults

The presentation start and immediately stop was an error in my remote control application. Impress should not segfault on this error.
I tried to debug the error but did not succeed. Sorry.

If more information are needed or I can test something please contact me.
Comment 1 Buovjaga 2018-09-10 09:40:29 UTC
So you have your own remote control application? Can you give us the application to test?
Comment 2 oo.o+libreoffice 2018-09-14 08:06:59 UTC
Created attachment 144856 [details]
QT Impress remote experiment
Comment 3 oo.o+libreoffice 2018-09-14 08:14:35 UTC
I attached my Qt program. For my experiments I use Qt 5.11.1 and to build it Qt Creator 4.7.
To trigger the bug in Impress uncomment the "#define" on line 9 in mainwindow.cpp

Please note: this is only an experiment to learn Qt and the Impress remote protocol
Comment 4 oo.o+libreoffice 2018-09-26 09:58:21 UTC
This also affects Version: 6.1.2.1
Comment 5 oo.o+libreoffice 2018-10-08 09:43:59 UTC
I made a debug build on linux (this was hard to make).
I could not reproduce the error on this (old and slow) machine.
So I think it is a timing problem:
It tries to build the presentation screen and the stop message deletes some important structures for the presentation screen. Then the crash happen.
Comment 6 Xisco Faulí 2019-04-10 11:13:39 UTC
A new major release of LibreOffice is available since this bug was reported.
Could you please try to reproduce it with the latest version of LibreOffice
from https://www.libreoffice.org/download/libreoffice-fresh/ ?
I have set the bug's status to 'NEEDINFO'. Please change it back to
'UNCONFIRMED' if the bug is still present in the latest version.
Comment 7 oo.o+libreoffice 2019-04-11 10:11:19 UTC
The crash persists in the latest LibreOffice version.
I can't reference a crash report cause the crash dialog does not show the ID any more.
Comment 8 Xisco Faulí 2019-10-21 11:48:51 UTC
(In reply to oo.o+libreoffice from comment #7)
> The crash persists in the latest LibreOffice version.
> I can't reference a crash report cause the crash dialog does not show the ID
> any more.

Could you please paste the info from Help - about LibreOffice ?

I have set the bug's status to 'NEEDINFO'. Please change it back to
'UNCONFIRMED' once the information has been provided
Comment 9 QA Administrators 2020-04-19 03:36:33 UTC Comment hidden (obsolete)
Comment 10 QA Administrators 2020-05-20 03:40:53 UTC Comment hidden (obsolete)
Comment 11 oo.o+libreoffice 2020-09-02 08:08:47 UTC
Created attachment 165004 [details]
Wireshark capture port 1599 LO 7.0.3
Comment 12 oo.o+libreoffice 2020-09-02 08:11:46 UTC
I tested it with LO 7.0.3 and it still crashes.
Report: https://crashreport.libreoffice.org/stats/crash_details/9c749314-e788-4c28-b138-ca94e8193e54

Info from help->about

Version: 7.0.0.3 (x64)
Build ID: 8061b3e9204bef6b321a21033174034a5e2ea88e
CPU-Threads: 8; BS: Windows 10.0 Build 19041; UI-Render: Skia/Raster; VCL: win
Locale: de-DE (de_DE); UI: de-DE
Calc: CL
Comment 13 oo.o+libreoffice 2020-09-07 08:10:52 UTC Comment hidden (obsolete)
Comment 14 oo.o+libreoffice 2020-09-07 08:11:28 UTC Comment hidden (obsolete)
Comment 15 oo.o+libreoffice 2020-09-09 07:19:45 UTC
I moved the aBuffer and send telegram function into the if above where the reference was checked valid.
Then I can't crash impress. I can extract a patch if needed.
Comment 16 Buovjaga 2020-09-09 07:38:14 UTC
(In reply to oo.o+libreoffice from comment #15)
> I moved the aBuffer and send telegram function into the if above where the
> reference was checked valid.
> Then I can't crash impress. I can extract a patch if needed.

Yes, would be great. Options are:
- submit it to gerrit from your local machine: https://wiki.documentfoundation.org/Development/gerrit/setup
- create it directly in gerrit: https://gerrit.libreoffice.org/Documentation/user-inline-edit.html

A license statement to the mailing list is also needed https://wiki.documentfoundation.org/Development/GetInvolved#License_statement
Comment 17 oo.o+libreoffice 2020-09-09 21:35:26 UTC
Created attachment 165341 [details]
Patch for impress
Comment 18 oo.o+libreoffice 2020-09-09 21:38:34 UTC
I added the patch here. My login does not work at gerrit.

I don't know if it is needed for moving some lines around:

I grand this contribution to LibreOffice may be
licensed under the MPLv2/LGPLv3+ dual license.
I put this patch into the public domain.
Comment 19 Buovjaga 2020-09-10 13:35:29 UTC
(In reply to oo.o+libreoffice from comment #18)
> I added the patch here. My login does not work at gerrit.
> 
> I don't know if it is needed for moving some lines around:
> 
> I grand this contribution to LibreOffice may be
> licensed under the MPLv2/LGPLv3+ dual license.
> I put this patch into the public domain.

Can you provide your name? Caolán said he could submit it for you with git commit --author=
Comment 20 Dennis Roczek 2020-09-10 13:43:15 UTC
(In reply to oo.o+libreoffice from comment #18)
> I added the patch here. My login does not work at gerrit.
Why does it not work? Any error message? Did you have already an account? We switched to a SSO authentication in June 2018 and you might lost your account (which can be recovered), see 
https://listarchives.libreoffice.org/global/projects/msg02649.html and simply write to hostmaster@documentfoundation.org.
Comment 21 oo.o+libreoffice 2020-09-14 20:18:35 UTC
@Buovjaga
He can use "Hochwasser" for the author.
Thanks.

@Dennis Roczek
I used my login from here. But it does not work.
Comment 22 Buovjaga 2020-09-14 20:27:22 UTC
(In reply to oo.o+libreoffice from comment #21)
> @Buovjaga
> He can use "Hochwasser" for the author.
> Thanks.
> 
> @Dennis Roczek
> I used my login from here. But it does not work.

Bugzilla is unfortunately still not part of TDF single sign on service. The next Bugzilla version should provide us with the functionality.

For now, you have to create an account in our single sign on system and use it for gerrit: https://wiki.documentfoundation.org/Development/gerrit/setup#Register_in_Gerrit_for_first_time
Comment 23 Caolán McNamara 2020-09-17 08:10:23 UTC
submitted as https://gerrit.libreoffice.org/c/core/+/102902
Comment 24 Commit Notification 2021-07-10 16:51:00 UTC
Hochwasser committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/dabb1dc347071abb7d6a708930f5fbdb8c68c72a

tdf#119312 Crash in: sdext::presenter::PresenterSlideShowView::LateInit()

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 25 Xisco Faulí 2021-07-12 08:31:18 UTC
Patch backported to 7-2 branch in https://gerrit.libreoffice.org/c/core/+/118719
Closing as RESOLVED FIXED.
Comment 26 Commit Notification 2021-07-13 14:44:44 UTC
Hochwasser committed a patch related to this issue.
It has been pushed to "libreoffice-7-2":

https://git.libreoffice.org/core/commit/8fe92ee041a38e3e2057ba0287ef60845e2faa34

tdf#119312 Crash in: sdext::presenter::PresenterSlideShowView::LateInit()

It will be available in 7.2.0.2.

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 27 Commit Notification 2021-07-20 09:24:55 UTC
Hochwasser committed a patch related to this issue.
It has been pushed to "libreoffice-7-1":

https://git.libreoffice.org/core/commit/051bb16057904647f11ec0b6ac0f4a245ea63531

tdf#119312 Crash in: sdext::presenter::PresenterSlideShowView::LateInit()

It will be available in 7.1.6.

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.