Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Try running GUI tests on all platforms on Azure. #16921

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

anntzer
Copy link
Contributor

@anntzer anntzer commented Mar 26, 2020

... including the osx backend on osx.

-- just doing some test runs on azure for now.

Edit: looks like macos works "as is" on travis, so let's split that out first.

PR Summary

PR Checklist

  • Has Pytest style unit tests
  • Code is Flake 8 compliant
  • New features are documented, with examples if plot related
  • Documentation is sphinx and numpydoc compliant
  • Added an entry to doc/users/next_whats_new/ if major new feature (follow instructions in README.rst there)
  • Documented in doc/api/api_changes.rst if API changed in a backward-incompatible way

@QuLogic
Copy link
Member

QuLogic commented Dec 15, 2022

On Windows, the error seems to be that the sigint test times out. On Linux, the error appears to be:

----------------------------- Captured stderr call -----------------------------
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx, webgl, xcb.

Fatal Python error: Aborted

Current thread 0x00007ff66bc72740 (most recent call first):
  File "/home/vsts/work/1/s/lib/matplotlib/backends/backend_qt.py", line 145 in _create_qApp
  File "/home/vsts/work/1/s/lib/matplotlib/backends/backend_qt.py", line 206 in __init__
  File "/home/vsts/work/1/s/lib/matplotlib/backend_bases.py", line 2849 in create_with_canvas
  File "/home/vsts/work/1/s/lib/matplotlib/backend_bases.py", line 1722 in new_manager
  File "/home/vsts/work/1/s/lib/matplotlib/backend_bases.py", line 3572 in new_figure_manager_given_figure
  File "/home/vsts/work/1/s/lib/matplotlib/backend_bases.py", line 3567 in new_figure_manager
  File "/home/vsts/work/1/s/lib/matplotlib/pyplot.py", line 383 in new_figure_manager
  File "/home/vsts/work/1/s/lib/matplotlib/pyplot.py", line 807 in figure
  File "/home/vsts/work/1/s/lib/matplotlib/_api/deprecation.py", line 454 in wrapper
  File "<string>", line 20 in _test_sigint_impl
  File "<string>", line 34 in <module>

Extension modules: numpy.core._multiarray_umath, numpy.core._multiarray_tests, numpy.linalg._umath_linalg, numpy.fft._pocketfft_internal, numpy.random._common, numpy.random.bit_generator, numpy.random._bounded_integers, numpy.random._mt19937, numpy.random.mtrand, numpy.random._philox, numpy.random._pcg64, numpy.random._sfc64, numpy.random._generator, matplotlib._c_internal_utils, PIL._imaging, matplotlib._path, kiwisolver._cext, matplotlib._image, PyQt5.QtCore, PyQt5.QtGui, PyQt5.QtWidgets (total: 21)

Are we using system Qt? Do we just need to install something else?

@anntzer
Copy link
Contributor Author

anntzer commented Dec 15, 2022

let's see if qt_debug_plugins can tell us something.
edit: I saw it complain that libxcb-icccm4 was missing; I installed it but now the subprocess just crashes.

@QuLogic
Copy link
Member

QuLogic commented Dec 15, 2022

It's the same crash, I think, just with a different library:

QLibraryPrivate::loadPlugin failed on "/opt/hostedtoolcache/Python/3.9.16/x64/lib/python3.9/site-packages/PyQt5/Qt5/plugins/platforms/libqxcb.so" : "Cannot load library /opt/hostedtoolcache/Python/3.9.16/x64/lib/python3.9/site-packages/PyQt5/Qt5/plugins/platforms/libqxcb.so: (libxcb-image.so.0: cannot open shared object file: No such file or directory)"

@QuLogic
Copy link
Member

QuLogic commented Dec 17, 2022

Now it's

Cannot load library /opt/hostedtoolcache/Python/3.10.9/x64/lib/python3.10/site-packages/PyQt5/Qt5/plugins/platforms/libqxcb.so: (libxcb-keysyms.so.1: cannot open shared object file: No such file or directory)

I couldn't find a libxcb that might install all of them. Maybe 'libxcb-*0' 'libxcb-*1' 'libxcb-*2' is good enough? Unfortunately, libxcb-* would also install a bunch of -dev and doc tools.

@QuLogic
Copy link
Member

QuLogic commented Dec 17, 2022

Actually, looking at rdepends, maybe you can install libqt5gui5 which will get everything that Qt needs?

@anntzer
Copy link
Contributor Author

anntzer commented Dec 17, 2022

@QuLogic Can you take over this PR? TBH I had kind of abandoned it... (Or close it and reopen another one yourself.)

@QuLogic QuLogic force-pushed the azureguitests branch 2 times, most recently from b57419a to 6137069 Compare December 20, 2022 09:57
@QuLogic
Copy link
Member

QuLogic commented Dec 22, 2022

I'm not sure why only one test crashes in _create_qApp, but perhaps this is something related to the Qt problem in the #24770.

On Windows, it looks like our SIGINT handler (or at least its trigger in the test) isn't working somehow.

@github-actions
Copy link

Since this Pull Request has not been updated in 60 days, it has been marked "inactive." This does not mean that it will be closed, though it may be moved to a "Draft" state. This helps maintainers prioritize their reviewing efforts. You can pick the PR back up anytime - please ping us if you need a review or guidance to move the PR forward! If you do not plan on continuing the work, please let us know so that we can either find someone to take the PR over, or close it.

@github-actions github-actions bot added the status: inactive Marked by the “Stale” Github Action label Jul 17, 2023
@ksunden ksunden modified the milestones: v3.8.0, future releases Aug 8, 2023
@github-actions github-actions bot removed the status: inactive Marked by the “Stale” Github Action label Aug 9, 2023
@github-actions
Copy link

Since this Pull Request has not been updated in 60 days, it has been marked "inactive." This does not mean that it will be closed, though it may be moved to a "Draft" state. This helps maintainers prioritize their reviewing efforts. You can pick the PR back up anytime - please ping us if you need a review or guidance to move the PR forward! If you do not plan on continuing the work, please let us know so that we can either find someone to take the PR over, or close it.

@github-actions github-actions bot added the status: inactive Marked by the “Stale” Github Action label Oct 13, 2023
@github-actions github-actions bot added status: needs rebase and removed status: inactive Marked by the “Stale” Github Action labels Dec 20, 2023
@QuLogic QuLogic force-pushed the azureguitests branch 2 times, most recently from 8d93854 to b17237f Compare May 14, 2025 22:49
@QuLogic QuLogic force-pushed the azureguitests branch 5 times, most recently from 584a5be to a329b63 Compare May 15, 2025 09:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants