Skip to content

Do not launch WebRtcServer for GpuMode::None#2820

Merged
chihchiachen merged 1 commit into
google:mainfrom
chihchiachen:no-webrtc-for-sdv-core
Jul 8, 2026
Merged

Do not launch WebRtcServer for GpuMode::None#2820
chihchiachen merged 1 commit into
google:mainfrom
chihchiachen:no-webrtc-for-sdv-core

Conversation

@chihchiachen

Copy link
Copy Markdown
Collaborator

When instance.gpu_mode() is GpuMode::None (headless mode), ScreenConnector explicitly rejects initialization and aborts process execution with: LOG(FATAL) << "Invalid gpu mode: none".

Commit 63c9518 ("Remove the start_webrtc flag behavior") inadvertently caused WebRtcServer to launch even when start_webrtc is explicitly set to false on sdv_core targets. To fix this issue, let's skip enabling WebRtcServer whenever instance_.gpu_mode() == GpuMode::None.

Bug: b/532203075

When instance.gpu_mode() is GpuMode::None (headless mode), ScreenConnector
explicitly rejects initialization and aborts process execution with:
LOG(FATAL) << "Invalid gpu mode: none".

Commit 63c9518 ("Remove the start_webrtc flag behavior") inadvertently
caused WebRtcServer to launch even when `start_webrtc` is explicitly set
to `false` on sdv_core targets. To fix this issue, let's skip enabling
WebRtcServer whenever instance_.gpu_mode() == GpuMode::None.

Bug: b/532203075
@chihchiachen chihchiachen requested a review from Databean July 7, 2026 20:28
@chihchiachen chihchiachen enabled auto-merge July 8, 2026 16:36
@chihchiachen chihchiachen added the kokoro:run Run e2e tests. label Jul 8, 2026
@GoogleCuttlefishTesterBot GoogleCuttlefishTesterBot removed the kokoro:run Run e2e tests. label Jul 8, 2026
@chihchiachen chihchiachen added this pull request to the merge queue Jul 8, 2026
Merged via the queue into google:main with commit 80e0c19 Jul 8, 2026
46 of 47 checks passed
@chihchiachen chihchiachen deleted the no-webrtc-for-sdv-core branch July 8, 2026 20:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants