Closed Bug 1333288 Opened 9 years ago Closed 9 years ago

assert failure in wr_profiler_set_enabled()

Categories

(Core :: Graphics: WebRender, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla54

People

(Reporter: sotaro, Assigned: sotaro)

Details

Attachments

(1 file)

When I updated "gfx.webrender.profiler.enable" pref from "about:config", assert of wr_profiler_set_enabled() was failed. It was called from main thread. ----------------------------- #[no_mangle] pub extern fn wr_profiler_set_enabled(window: &mut WrWindowState, enabled: bool) { assert!( unsafe { is_in_compositor_thread() }); window.renderer.set_profiler_enabled(enabled); }
Assignee: nobody → sotaro.ikeda.g
Attachment #8829714 - Flags: review?(nical.bugzilla)
attachment 8829714 [details] [diff] [review] is not ideal, but it seems ok as temporary solution. wr_profiler_set_enabled() is going to be removed when render thread is enabled.
Comment on attachment 8829714 [details] [diff] [review] patch - call wr_profiler_set_enabled() on compositor thread Review of attachment 8829714 [details] [diff] [review]: ----------------------------------------------------------------- This is fine, although I have a preference towards only allowing CompositorBridgeParent::SetWebRenderProfilerEnabled to be called on the compositor thread. and have the pref callback that calls it take care of remoting to the proper thread.
Attachment #8829714 - Flags: review?(nical.bugzilla) → review+
(In reply to Nicolas Silva [:nical] from comment #3) > Comment on attachment 8829714 [details] [diff] [review] > patch - call wr_profiler_set_enabled() on compositor thread > > Review of attachment 8829714 [details] [diff] [review]: > ----------------------------------------------------------------- > > This is fine, although I have a preference towards only allowing > CompositorBridgeParent::SetWebRenderProfilerEnabled to be called on the > compositor thread. and have the pref callback that calls it take care of > remoting to the proper thread. Yea, I agree. But the patch seems ok as a short time solution.
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
The commit message is missing the bug number. I'll do a backout/reland with that fixed and DONTBUILD to avoid rerunning builds on it.
Pushed by kgupta@mozilla.com: https://hg.mozilla.org/projects/graphics/rev/12cb4acdb646 call wr_profiler_set_enabled() on compositor thread r=nical DONTBUILD
Target Milestone: --- → mozilla54
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: