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

Linux unit tests crashes in ssh #140479

Open
dkwingsmt opened this issue Dec 20, 2023 · 2 comments
Open

Linux unit tests crashes in ssh #140479

dkwingsmt opened this issue Dec 20, 2023 · 2 comments
Labels
a: desktop Running on desktop platform-linux Building on or for Linux specifically team-desktop Owned by Desktop platforms team

Comments

@dkwingsmt
Copy link
Contributor

dkwingsmt commented Dec 20, 2023

The linux unit tests crashes when I run it on my cloud gLinux:

[----------] 3 tests from FlPlatformPluginTest
[ RUN      ] FlPlatformPluginTest.PlaySound
[       OK ] FlPlatformPluginTest.PlaySound (0 ms)
[ RUN      ] FlPlatformPluginTest.ExitApplication
[       OK ] FlPlatformPluginTest.ExitApplication (0 ms)
[ RUN      ] FlPlatformPluginTest.ExitApplicationDispose

(flutter_linux_unittests:3309376): Gtk-WARNING **: 11:27:22.393: cannot open display: 
[FATAL:flutter/fml/thread_local.cc(32)] Check failed: false. pthread_setspecific failed (22): Invalid argument
[1]    3309376 IOT instruction  ../out/host_debug_unopt/flutter_linux_unittests

which might be due to the fact that ssh doesn't come with a display device.

Reproduction:

  • Ssh into the cloudtop gLinux Open a terminal on Linux.
  • Check out the commit 88baf62f1e66e973e919faef7d80fb1a4c3ef90c on the engine
  • Compile and run ../out/host_debug_unopt/flutter_linux_unittests

Bisect shows that the first bad commit is flutter/engine#47713 by @gspencergoog.

If our guess is correct, then we can skip or even fail the test when there's no device, but crashing should still be avoided.

@dkwingsmt dkwingsmt added platform-linux Building on or for Linux specifically a: desktop Running on desktop labels Dec 20, 2023
@gspencergoog gspencergoog self-assigned this Dec 20, 2023
@dkwingsmt
Copy link
Contributor Author

dkwingsmt commented Jan 10, 2024

Just tested it today and flutter_linux_unittests crashes in the same way when I run it a desktop environment. I ran it in a terminal on gLinux. Engine rev 6810c9a57460524b985455d1aa9f9f50b01d1436

@flutter-triage-bot flutter-triage-bot bot added the Bot is counting down the days until it unassigns the issue label May 15, 2024
@flutter-triage-bot
Copy link

This issue is assigned to @gspencergoog but has had no recent status updates. Please consider unassigning this issue if it is not going to be addressed in the near future. This allows people to have a clearer picture of what work is actually planned. Thanks!

@gspencergoog gspencergoog removed their assignment May 17, 2024
@flutter-triage-bot flutter-triage-bot bot removed the Bot is counting down the days until it unassigns the issue label May 18, 2024
@huycozy huycozy added the team-desktop Owned by Desktop platforms team label May 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
a: desktop Running on desktop platform-linux Building on or for Linux specifically team-desktop Owned by Desktop platforms team
Projects
None yet
Development

No branches or pull requests

3 participants