Skip to content
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

Intermittent "MapView web canvas didn't initialize" error in Windows CI #2632

Open
mhsmith opened this issue Jun 10, 2024 · 4 comments · Fixed by #2637
Open

Intermittent "MapView web canvas didn't initialize" error in Windows CI #2632

mhsmith opened this issue Jun 10, 2024 · 4 comments · Fixed by #2637
Labels
bug A crash or error in behavior. windows The issue relates to Microsoft Windows support.

Comments

@mhsmith
Copy link
Member

mhsmith commented Jun 10, 2024

This isn't happening as often as the intermittent macOS failures (#2512 and #2631), but I've seen it at least 4 times over the last month. Here are the two most recent ones:

=================================== ERRORS ====================================
___________________ ERROR at setup of test_flex_widget_size ___________________
Traceback (most recent call last):
  File "D:\a\toga\toga\testbed\build\testbed\windows\app\src\app_packages\pytest_asyncio\plugin.py", line 299, in _asyncgen_fixture_wrapper
    result = event_loop.run_until_complete(setup())
  File "D:\a\toga\toga\testbed\build\testbed\windows\app\src\app\tests\conftest.py", line 96, in run_until_complete
    return asyncio.run_coroutine_threadsafe(coro, self.loop).result()
  File "concurrent\futures\_base.py", line 458, in result
  File "concurrent\futures\_base.py", line 403, in __get_result
  File "D:\a\toga\toga\testbed\build\testbed\windows\app\src\app_packages\pytest_asyncio\plugin.py", line 281, in setup
    res = await gen_obj.__anext__()
  File "D:\a\toga\toga\testbed\build\testbed\windows\app\src\app\tests\widgets\test_mapview.py", line 53, in widget
    raise RuntimeError("MapView web canvas didn't initialize")
RuntimeError: MapView web canvas didn't initialize
=========================== short test summary info ===========================
ERROR tests/widgets/test_mapview.py::test_flex_widget_size - RuntimeError: MapView web canvas didn't initialize
======= 417 passed, 45 skipped, 4 xfailed, 1 error in 218.74s (0:03:38) =======
@mhsmith mhsmith added bug A crash or error in behavior. windows The issue relates to Microsoft Windows support. labels Jun 10, 2024
@freakboy3742
Copy link
Member

I've seen this one too; however, my read is that this might be outside our control. We get a bunch of failures that amount to "Github's CI machine falls off the network" - failures contacting the Ubuntu package server etc. It's disturbing how often this happens, but I'm not sure there's much we can do about it when it does, other than perhaps increasing retries and timeouts.

@mhsmith
Copy link
Member Author

mhsmith commented Jun 10, 2024

I used to have similar problems in the Chaquopy CI, and I found some discussion which led me to this action which I now run at the start of every job. Since then, the problems have completely disappeared.

@freakboy3742
Copy link
Member

Interesting... can't hurt to try adding that one in, I guess...

@mhsmith
Copy link
Member Author

mhsmith commented Jun 20, 2024

@mhsmith mhsmith reopened this Jun 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A crash or error in behavior. windows The issue relates to Microsoft Windows support.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants