servo/servo

(Bug) GitHub website 404 link redirection

Opened this issue · 6 comments

image

How to reproduce

  • Access the https://github.com website and wait some seconds
  • It will redirect you to a link with a 404 error

Information

  • Binary date - 13-04-2024
  • OS - Fedora 39

Thanks for filing this bug, but it isn't super useful without a minimized test case or screenshots. Servo is still lacking many features (fully implemented flexbox, grid, etc), so it's natural that the layout of some sites is broken. If you are interested in digging into this failure a bit and adding debugging information we could reopen this issue and start working on things -- but many sites are broken and we can't have a bug for every broken site at the moment.

Sorry. I'll reopen this one as it isn't layout-related and it's a bit more straight-forward to debug.

@mrobinson Servo gives me two logs, one inside the GUI renderer and one on the terminal.

  • The log text in the GUI renderer can't be copied, why?
  • The terminal log is useful?
  • The log text in the GUI renderer can't be copied, why?

Selection support hasn't been implemented yet, so only a screenshot could work now.

Screenshot of crash log (the log is very similar to the one pasted below

  • The terminal log is useful?

Yes, it's useful. It's more or less the same output.

iframe should have browsing context (thread Script(1,1), at components/script/dom/globalscope.rs:2428)
   0: servoshell::backtrace::print
   1: servoshell::main::{{closure}}
   2: <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call
             at /rustc/a28077b28a02b92985b3a3faecf92813155f1ea1/library/alloc/src/boxed.rs:2021:9
      std::panicking::rust_panic_with_hook
             at /rustc/a28077b28a02b92985b3a3faecf92813155f1ea1/library/std/src/panicking.rs:735:13
   3: std::panicking::begin_panic_handler::{{closure}}
             at /rustc/a28077b28a02b92985b3a3faecf92813155f1ea1/library/std/src/panicking.rs:609:13
   4: std::sys_common::backtrace::__rust_end_short_backtrace
             at /rustc/a28077b28a02b92985b3a3faecf92813155f1ea1/library/std/src/sys_common/backtrace.rs:170:18
   5: rust_begin_unwind
             at /rustc/a28077b28a02b92985b3a3faecf92813155f1ea1/library/std/src/panicking.rs:597:5
   6: core::panicking::panic_fmt
             at /rustc/a28077b28a02b92985b3a3faecf92813155f1ea1/library/core/src/panicking.rs:72:14
   7: core::panicking::panic_display
             at /rustc/a28077b28a02b92985b3a3faecf92813155f1ea1/library/core/src/panicking.rs:168:5
      core::panicking::panic_str
             at /rustc/a28077b28a02b92985b3a3faecf92813155f1ea1/library/core/src/panicking.rs:152:5
      core::option::expect_failed
             at /rustc/a28077b28a02b92985b3a3faecf92813155f1ea1/library/core/src/option.rs:1988:5
   8: script::dom::globalscope::GlobalScope::get_referrer
   9: script::dom::servoparser::prefetch::Tokenizer::new
  10: script::dom::servoparser::ServoParser::new
  11: script::dom::servoparser::ServoParser::parse_html_document
  12: script::script_thread::ScriptThread::load
  13: script::script_thread::ScriptThread::page_headers_available
  14: <script::dom::servoparser::ParserContext as net_traits::FetchResponseListener>::process_response
  15: script::script_thread::ScriptThread::handle_new_layout
  16: script::script_thread::ScriptThread::handle_msgs
  17: script::script_thread::ScriptThread::start
  18: profile_traits::mem::ProfilerChan::run_with_memory_reporting
  19: std::sys_common::backtrace::__rust_begin_short_backtrace
  20: core::ops::function::FnOnce::call_once{{vtable.shim}}
  21: <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once
             at /rustc/a28077b28a02b92985b3a3faecf92813155f1ea1/library/alloc/src/boxed.rs:2007:9
      <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once
             at /rustc/a28077b28a02b92985b3a3faecf92813155f1ea1/library/alloc/src/boxed.rs:2007:9
      std::sys::unix::thread::Thread::new::thread_start
             at /rustc/a28077b28a02b92985b3a3faecf92813155f1ea1/library/std/src/sys/unix/thread.rs:108:17
  22: start_thread
             at ./nptl/pthread_create.c:444:8
  23: __GI___clone3
             at ./misc/../sysdeps/unix/sysv/linux/x86_64/clone3.S:81

@mrego The screenshot log will be incomplete, you need two screenshots.

I don't get the crash log on the terminal, IDK why.

Taym95 commented

I don't see issues on https://github.com on macos