From ef79ececb74f35bc7dc2c89b23d2d04bcdf88f00 Mon Sep 17 00:00:00 2001 From: bunnie Date: Sun, 23 Feb 2025 12:03:09 +0800 Subject: [PATCH] modify graphics-server to ignore unimplemented opcodes the opcode list is shared between multiple implementations, so an invalid opcode might not necessarily be a severe bug. --- services/graphics-server/src/main.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/services/graphics-server/src/main.rs b/services/graphics-server/src/main.rs index d35e4d850..3fa543d07 100644 --- a/services/graphics-server/src/main.rs +++ b/services/graphics-server/src/main.rs @@ -736,7 +736,11 @@ fn wrapped_main(main_thread_token: backend::MainThreadToken) -> ! { } Some(GfxOpcode::Quit) => break, None => { - log::error!("received GfxOpcode scalar that is not handled"); + log::error!("Received invalid GfxOpcode. Ignoring."); + } + _ => { + // This is perfectly normal because not all opcodes are handled by all platforms. + log::debug!("Invalid or unhandled opcode: {:?}", op); } } } else {