Repository navigation
linux-pipewire: Log the screencast portal teardown phases (#2099) - #2553
Merged
Merged
Conversation
The next test_screencast_portal_teardown hang stops after '[portals] Request cancelled', which every remaining step can produce: free_capture() itself, obs_shutdown(), or screencast_portal_unload(). None of them logs today, so the 20 s alarm shows only where the run had been, not where it stuck. These four DEBUG lines bracket the three steps; with PORTAL_TEST_VERBOSE set by the test registration, the next CI hang names the function.
Member
Author
|
Handed off to the coordinator. All checks green including |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Refs #2099
test_screencast_portal_teardownstill hangs to its 20 s alarm now and then (last seen on #2503, run 40365468404). WithPORTAL_TEST_VERBOSE=1from #2123, the hang on #2419 (job 121276394469) ends at:[portals] Request cancelledis printed fromon_cancelled_cb(portal.c.h:144), which only runs fromg_cancellable_cancel()infree_capture()(screencast-portal.c.h:1037). So by that line the deferred idle had already been dispatched and the capture was being freed on the loop thread: the hang is after the cancel, not in the reply handling the test is about.Three unbounded steps follow it and none of them logs, so the alarm cannot say which one stuck:
free_capture()—g_dbus_connection_signal_unsubscribe()and the free, after the cancel callback has logged;obs_shutdown(), which the scenario calls before unloading the plugin;screencast_portal_unload(), which also callsg_source_destroy()onfinish_destroy_sourcefrom the unload thread while the loop thread may still be dispatching that source (screencast-portal.c.h:1310) —GSourceis not thread-safe, so a stuck hand-off there is a candidate.This adds four DEBUG lines so the next hang names the phase instead of narrowing to three functions by hand. No behaviour change, no test edits (the policy forbids changing the C test to make a fix pass), and the messages only appear with
PORTAL_TEST_VERBOSE, which the test registration already sets.The fix itself depends on which step the next failure reports; this PR is the instrument for it, so it says
Refs, notFixes. Local runtime evidence: the local Tier 2 build had to be aborted because another session on this machine was running alinux-validatecontainer, so PR CI's Tier 2 lane (selected by theplugins/linux-pipewirepath) is the compile and run check for this change.