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] Fix channel buffers control commands error handling #45056

Conversation

bleroux
Copy link
Contributor

@bleroux bleroux commented Aug 24, 2023

Description

This PR fixes a mistake I made on #44636 where the error handling code wrongly relied on fl_method_channel_invoke_method_finish instead of fl_binary_messenger_send_on_channel_finish.
The error handling code was not called when running the tests added in #44636 so this mistake did not pop up.

@robert-ancell I added a test that simulates an error response and I had to rely on g_idle_add to make it works. Is this approach ok?

Related Issue

Linux implementation for flutter/flutter#132386

Tests

Adds one test.

@bleroux bleroux requested a review from robert-ancell August 25, 2023 08:24
Copy link
Contributor

@robert-ancell robert-ancell left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great, thanks!

@bleroux bleroux added the autosubmit Merge PR when tree becomes green via auto submit App label Sep 1, 2023
@auto-submit auto-submit bot merged commit 73f55dc into flutter:main Sep 1, 2023
@bleroux bleroux deleted the linux_fix_resize_and_overflow_error_managment branch September 1, 2023 07:43
auto-submit bot pushed a commit to flutter/flutter that referenced this pull request Sep 1, 2023
…133857)

flutter/engine@ced8f1a...4c085b8

2023-09-01 [email protected] Roll Fuchsia Mac SDK from _x3hf702RacYnw3E6... to sk7JBGzW1Jw10Wy-T... (flutter/engine#45372)
2023-09-01 [email protected] [Linux] Fix channel buffers control commands error handling (flutter/engine#45056)

Also rolling transitive DEPS:
  fuchsia/sdk/core/mac-amd64 from _x3hf702RacY to sk7JBGzW1Jw1

If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/flutter-engine-flutter-autoroll
Please CC [email protected],[email protected],[email protected] on the revert to ensure that a human
is aware of the problem.

To file a bug in Flutter: https://github.com/flutter/flutter/issues/new/choose

To report a problem with the AutoRoller itself, please file a bug:
https://bugs.chromium.org/p/skia/issues/entry?template=Autoroller+Bug

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
affects: desktop autosubmit Merge PR when tree becomes green via auto submit App platform-linux
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants