gazebosim / gz-gui

Builds on top of Qt to provide widgets which are useful when developing robotics applications, such as a 3D view, plots, dashboard, etc, and can be used together in a convenient unified interface.
https://gazebosim.org
Apache License 2.0
74 stars 43 forks source link

:farmer: Gz gui main tests failing due to no screens available and subprocess aborted #557

Open Crola1702 opened 1 year ago

Crola1702 commented 1 year ago

Environment

Description

Steps to reproduce

  1. Run a build in gz-gui_ci-main
  2. See tests fail

Output

Reference build: https://build.osrfoundation.org/job/ignition_gui-ci-main-homebrew-amd64/81/

Test regressions:

Log output:

There are a lot of warnings at the build stage. Here is the first one:

``` /Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/System/Library/Frameworks/Security.framework/Headers/SecCertificate.h:200:77: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] CFDataRef SecCertificateCopySerialNumberData(SecCertificateRef certificate, CFErrorRef *error) ^ /Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/System/Library/Frameworks/Security.framework/Headers/SecCertificate.h:200:77: note: insert '_Nullable' if the pointer may be null CFDataRef SecCertificateCopySerialNumberData(SecCertificateRef certificate, CFErrorRef *error) ^ _Nullable /Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/System/Library/Frameworks/Security.framework/Headers/SecCertificate.h:200:77: note: insert '_Nonnull' if the pointer should never be null CFDataRef SecCertificateCopySerialNumberData(SecCertificateRef certificate, CFErrorRef *error) ^ _Nonnull /Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/System/Library/Frameworks/Security.framework/Headers/SecCertificate.h:200:88: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] CFDataRef SecCertificateCopySerialNumberData(SecCertificateRef certificate, CFErrorRef *error) ^ /Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/System/Library/Frameworks/Security.framework/Headers/SecCertificate.h:200:88: note: insert '_Nullable' if the pointer may be null CFDataRef SecCertificateCopySerialNumberData(SecCertificateRef certificate, CFErrorRef *error) ^ _Nullable /Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/System/Library/Frameworks/Security.framework/Headers/SecCertificate.h:200:88: note: insert '_Nonnull' if the pointer should never be null CFDataRef SecCertificateCopySerialNumberData(SecCertificateRef certificate, CFErrorRef *error) ^ _Nonnull /Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/System/Library/Frameworks/Security.framework/Headers/SecCertificate.h:224:73: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] CFDataRef SecCertificateCopySerialNumber(SecCertificateRef certificate, CFErrorRef *error) ^ /Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/System/Library/Frameworks/Security.framework/Headers/SecCertificate.h:224:73: note: insert '_Nullable' if the pointer may be null CFDataRef SecCertificateCopySerialNumber(SecCertificateRef certificate, CFErrorRef *error) ^ _Nullable /Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/System/Library/Frameworks/Security.framework/Headers/SecCertificate.h:224:73: note: insert '_Nonnull' if the pointer should never be null CFDataRef SecCertificateCopySerialNumber(SecCertificateRef certificate, CFErrorRef *error) ^ _Nonnull /Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/System/Library/Frameworks/Security.framework/Headers/SecCertificate.h:224:84: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] CFDataRef SecCertificateCopySerialNumber(SecCertificateRef certificate, CFErrorRef *error) ^ /Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/System/Library/Frameworks/Security.framework/Headers/SecCertificate.h:224:84: note: insert '_Nullable' if the pointer may be null CFDataRef SecCertificateCopySerialNumber(SecCertificateRef certificate, CFErrorRef *error) ^ _Nullable /Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/System/Library/Frameworks/Security.framework/Headers/SecCertificate.h:224:84: note: insert '_Nonnull' if the pointer should never be null CFDataRef SecCertificateCopySerialNumber(SecCertificateRef certificate, CFErrorRef *error) ```

In the failing tests you can see Cannot create window: no screens available in each failing test:

``` test 21 Start 21: UNIT_ImageDisplay_TEST ... 21: PasteBoard: Error creating pasteboard: com.apple.pasteboard.clipboard [-4960] 21: PasteBoard: Error creating pasteboard: com.apple.pasteboard.find [-4960] 21: no screens available, assuming 24-bit color 21: [GUI] [Wrn] [Application.cc:932] [QT] Populating font family aliases took 210 ms. Replace uses of missing font family "Roboto" with one that exists to avoid this cost. 21: [GUI] [Err] [Application.cc:936] [QT] Cannot create window: no screens available ... 21/56 Test #21: UNIT_ImageDisplay_TEST ......................Subprocess aborted***Exception: 1.10 sec ```