servo/webrender

Multiwindow example panics when debug feature is enabled

开放

#3,860 创建于 2020年2月17日

 (1 条评论) (0 个反应) (0 位负责人)Rust (319 个派生)github user discovery
help wantedtype: bug

仓库指标

星标
 (3,355 个星标)
PR 合并指标
 (平均合并 20天 5小时) (30 天内合并 1 个 PR)

描述

I try cargo run --bin multiwindow --features=debug and get

thread 'main' panicked at 'assertion failed: profiler.borrow().is_none()', /Users/pavel/.cargo/registry/src/github.com-1ecc6299db9ec823/thread_profiler-0.1.3/src/lib.rs:95:17
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace.
fish: 'cargo run --bin multiwindow --f…' terminated by signal SIGABRT (Abort)

As far as I understand the problem is in double initializaition of thread_profiler for compositor thread. What do you think about moving it under wr_has_been_initialized condition?

https://github.com/SergeevPavel/webrender/commit/7a2587acb45ba6552f86c9743ce31ceb616f364c

贡献者指南