Bug 169688 - VCL demo applications do not display any window on macOS as they should
Summary: VCL demo applications do not display any window on macOS as they should
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: graphics stack (show other bugs)
Version:
(earliest affected)
26.2.0.0 alpha0+ master
Hardware: All macOS (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Dev-related
  Show dependency treegraph
 
Reported: 2025-11-25 16:39 UTC by Hossein
Modified: 2025-12-09 23:12 UTC (History)
2 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 Hossein 2025-11-25 16:39:54 UTC
Description:
While VCL demos and workbenches work fine on Linux and Windows, many of them do not display any window on macOS.

Steps to Reproduce:
1. Build LibreOffice from sources on macOS
2. Run vcl demos and workbenches from command line:
$ ./bin/run vcldemo
$ ./bin/run svdemo
$ ./bin/run minweld
$ ./bin/run mtfdemo odk/examples/basic/forms_and_controls/burger.wmf
$ ./bin/run midvcl

Actual Results:
Only the last command displays a window, and other commands although run, do not display any window on the screen.

Expected Results:
Each of the above commands should display a window consisting of some stuff. This is the result on Linux and Windows.


Reproducible: Always


User Profile Reset: No

Additional Info:
Version: 26.2.0.0.alpha0+ (AARCH64) / LibreOffice Community
Build ID: 02a8272d7c3b94a8721bdd4ab94bdc42bcd44caf
CPU threads: 10; OS: macOS 26.1; UI render: Skia/Metal; VCL: osx
Locale: en-US (en_US.UTF-8); UI: en-US
Calc: threaded
Comment 1 Alex Thurgood 2025-11-26 13:07:38 UTC
See bug 145127#c4

There's no headless VCL implementation on macOS.
Comment 2 Alex Thurgood 2025-11-26 13:09:11 UTC
Could this be considered a DUP of bug 145127 ?
Comment 3 Hossein 2025-11-26 13:36:19 UTC
(In reply to Alex Thurgood from comment #1)
> See bug 145127#c4
> There's no headless VCL implementation on macOS.
That is true, but is it related to the specific issue here?
I mean do 'vcldemo' or 'minvcl' examples need headless implementation of VCL? I don't think so. If that was the case, you would get explicit exception message telling you that. It happens with LibreOfficeKit examples:
> ...
> [General] nextEventMatchingMask should only be called from the Main Thread!
But not here.

(In reply to Alex Thurgood from comment #2)
> Could this be considered a DUP of bug 145127 ?
No, I don't think so.
Comment 4 Buovjaga 2025-11-26 14:43:09 UTC
Alex: do you confirm this on macOS?
Comment 5 Alex Thurgood 2025-11-26 17:44:27 UTC
I couldn't previously get any sdk examples to even build on macOS, so haven't tested anything remotely related to this in a long time.

Unfortunately, I'm neither in a position to confirm or deny. Your best bet might be to ask Patrick.
Comment 6 Buovjaga 2025-11-29 05:43:48 UTC
(In reply to Alex Thurgood from comment #1)
> See bug 145127#c4
> 
> There's no headless VCL implementation on macOS.

There is now with Kendy's 857a760f317ad6540a6f03169ef8dda97d2c1de7
Make vcl build on macOS with --enable-headless
Comment 7 dcbw@libreoffice.org 2025-12-08 15:46:39 UTC
- vcldemo does work; but to get it to display anything you need to give it some options, like:

bin/run vcldemo --widgets

- svdemo shows a window but doesn't have any content.

- minweld doesn't show any window at all.

- mtfdemo works and shows a window with the picture

- minvcl shows a window with no content
Comment 8 dcbw@libreoffice.org 2025-12-08 17:49:40 UTC
I lied, minweld does show the tip of the day window, but like the others it doesn't jump to front when run so its lost behind other ones.
Comment 9 dcbw@libreoffice.org 2025-12-08 17:56:53 UTC
I think with current git master all of these work as expected; if there is an issue with a specific demo we should either change this bug to reflect that demo, or file new bugs for the issues in each demo.
Comment 10 Hossein 2025-12-09 09:40:04 UTC
(In reply to dcbw@libreoffice.org from comment #8)
> minweld does show the tip of the day window, but like the others it
> doesn't jump to front when run so its lost behind other ones.
Thanks for clarifying. This matches my older observations, but maybe it was vcldemo that made me believe that nothing is working! vcldemo indeed has a problem with displaying demo window. Also, `bin/run vcldemo --popup` gives some warnings and nothing more, while it works on Windows and Linux. These issues does not happen for LibreOffice widgets, or at least those widgets it uses.

Falling behind other windows is an important issue, but that is also a separate separate. This also happens for LibreOffice, when you invoke from command line.

I close this one as WORKSFORME, and I will file separate issues for the above problems
Comment 11 Hossein 2025-12-09 23:12:06 UTC
(In reply to dcbw@libreoffice.org from comment #7)
> - vcldemo does work; but to get it to display anything you need to give
> it some options, like:
Ah! I waited 40 seconds on a fast idle macOS machine, and in the end vcldemo window came up! Of course, without any extra switches. :-D