Skip to content

panic on on mobile devices #40016

@kongbai1996

Description

@kongbai1996

Describe the bug:
panic on on mobile devices

To Reproduce:

  1. Open the page
  2. Touch the screen
    panic log:
PanicInfo: panicked at components/compositing/webview_renderer.rs:317:18:
internal error: entered unreachable code: Unexpected input event type: InputEventAndId { event: Touch(TouchEvent { event_type: Down, id: TouchId(0), point: (517.0, 680.625), cancelable: true }), id: InputEventId(0) }
internal error: entered unreachable code: Unexpected input event type: InputEventAndId { event: Touch(TouchEvent { event_type: Down, id: TouchId(0), point: (517.0, 680.625), cancelable: true }), id: InputEventId(0) } (thread <unnamed>, at components/compositing/webview_renderer.rs:317)
   0: <servoshell::backtrace::Print as core::fmt::Debug>::fmt
   1: core::fmt::write
   2: core::fmt::write
   3: <hilog::Logger as log::Log>::log
   4: servoshell::egl::ohos::initialize_logging_once::{{closure}}::{{closure}}
   5: std::panicking::rust_panic_with_hook
   6: std::panicking::begin_panic_handler::{{closure}}
   7: std::sys::backtrace::__rust_end_short_backtrace
   8: __rustc::rust_begin_unwind
   9: core::panicking::panic_fmt
  10: compositing::webview_renderer::WebViewRenderer::dispatch_input_event_with_hit_testing
  11: compositing::webview_renderer::WebViewRenderer::notify_input_event
  12: compositing::compositor::IOCompositor::notify_input_event
  13: servo::webview::WebView::notify_input_event
  14: servoshell::egl::app_state::RunningAppState::touch_down
  15: std::sys::backtrace::__rust_begin_short_backtrace
  16: core::ops::function::FnOnce::call_once{{vtable.shim}}
  17: std::sys::pal::unix::thread::Thread::new::thread_start
  18: <unknown>
Panic in Rust code
PanicInfo: panicked at ports/servoshell/egl/ohos.rs:279:30:
called `Result::unwrap()` on an `Err` value: ChannelDied
called `Result::unwrap()` on an `Err` value: ChannelDied (thread <unnamed>, at ports/servoshell/egl/ohos.rs:279)
Failed to dispatch call for touch Event Move: ChannelDied
   0: <servoshell::backtrace::Print as core::fmt::Debug>::fmt
   1: core::fmt::write
   2: core::fmt::write
   3: <hilog::Logger as log::Log>::log
   4: servoshell::egl::ohos::initialize_logging_once::{{closure}}::{{closure}}
   5: std::panicking::rust_panic_with_hook
   6: std::panicking::begin_panic_handler::{{closure}}
   7: std::sys::backtrace::__rust_end_short_backtrace
   8: __rustc::rust_begin_unwind
   9: core::panicking::panic_fmt
  10: core::result::unwrap_failed
  11: servoshell::egl::ohos::on_vsync_cb
  12: <unknown>
  13: _ZN4OHOS5Rosen21VSyncCallBackListener10OnReadableEi
  14: <unknown>
  15: <unknown>
  16: <unknown>
  17: <unknown>
  18: <unknown>
  19: <unknown>
Failed to dispatch call for touch Event Move: ChannelDied
Failed to dispatch call for touch Event Move: ChannelDied
Failed to dispatch call for touch Event Move: ChannelDied
Failed to dispatch call for touch Event Move: ChannelDied
Failed to dispatch call for touch Event Move: ChannelDied
Failed to dispatch call for touch Event Move: ChannelDied
Failed to dispatch call for touch Event Move: ChannelDied
Failed to dispatch call for touch Event Move: ChannelDied
Failed to dispatch call for touch Event Move: ChannelDied
Failed to dispatch call for touch Event Move: ChannelDied
Failed to dispatch call for touch Event Move: ChannelDied
dummy exit (0)
Failed to dispatch call for touch Event Move: ChannelDied
Failed to dispatch call for touch Event Move: ChannelDied
Failed to dispatch call for touch Event Up: ChannelDied
dummy exit (0)

Platform:
openharmony、android

Metadata

Metadata

Assignees

Labels

C-assignedThere is someone working on resolving the issueC-untriagedNew issues that haven't been triaged yet

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions