Bug 144979 - Function XSystemChildFactory::createSystemChild() hangs
Summary: Function XSystemChildFactory::createSystemChild() hangs
Status: RESOLVED INSUFFICIENTDATA
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: sdk (show other bugs)
Version:
(earliest affected)
7.1.6.2 release
Hardware: x86 (IA32) Windows (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-10-07 10:00 UTC by Gianpaolo
Modified: 2023-05-24 03:14 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Gianpaolo 2021-10-07 10:00:07 UTC
Our program allows users to open calc documents in a window inside the program, to open calc window we use this code:

Reference<XWindowPeer> xPeer = Reference<XWindowPeer>(xSystemChildFactory->createSystemChild(			 Any(reinterpret_cast<long>(hWndParent)), Sequence<sal_Int8>(4), SYSTEM_WIN32), UNO_QUERY);

It worked well until LibreOffice 7.1.6.2 where is hangs and soffice.bin must be killed from task manager
On LibreOffice 7.0.6.2 works fine and the child window is created
We tested also LibreOffice 7.2.2.1 it hangs the same as 7.1
Comment 1 Roman Kuznetsov 2021-10-23 14:56:24 UTC
Mike may be you have some ideas about this problem or may be some questions to the bug reporter?
Comment 2 Buovjaga 2022-10-24 16:54:07 UTC
Gianpaolo: you could try bisecting it with the bibisect-win64-7.1 repository.
Also, could you provide a minimal working example program that others can easily run?

Instructions for bisecting:
https://wiki.documentfoundation.org/QA/Bibisect
https://wiki.documentfoundation.org/QA/Bibisect/Windows
Comment 3 Mike Kaganski 2022-10-24 18:11:41 UTC
First of all: please provide both versions' full information from Help->About. Then, please give a complete test code, that can be used to reproduce.

Immediately I see the problem in the code: it uses 4 bytes "handle", casting hWndParent to 'long' - and that would definitely fail, when you run 64-bit application, where HANDLE is 64-bit (8-byte). OTOH, the failure should not be a hang ...
Comment 4 QA Administrators 2023-04-23 03:26:18 UTC Comment hidden (obsolete)
Comment 5 QA Administrators 2023-05-24 03:14:58 UTC
Dear Gianpaolo,

Please read this message in its entirety before proceeding.

Your bug report is being closed as INSUFFICIENTDATA due to inactivity and
a lack of information which is needed in order to accurately
reproduce and confirm the problem. We encourage you to retest
your bug against the latest release. If the issue is still
present in the latest stable release, we need the following
information (please ignore any that you've already provided):

a) Provide details of your system including your operating
   system and the latest version of LibreOffice that you have
   confirmed the bug to be present

b) Provide easy to reproduce steps – the simpler the better

c) Provide any test case(s) which will help us confirm the problem

d) Provide screenshots of the problem if you think it might help

e) Read all comments and provide any requested information

Once all of this is done, please set the bug back to UNCONFIRMED
and we will attempt to reproduce the issue. Please do not:

a) respond via email 

b) update the version field in the bug or any of the other details
   on the top section of our bug tracker

Warm Regards,
QA Team

MassPing-NeedInfo-FollowUp