Trouble with threads

144 views
Skip to first unread message

Jon Mann

unread,
Jul 20, 2018, 1:31:02 PM7/20/18
to chromi...@chromium.org
Hi,

I'm trying to write a browsertest which creates a callback that gets executed on BrowserThread::UI.  In the browsertest I post the function which makes the bind call to the UI thread and the callback gets executed on the UI thread as well, however I'm getting  "Check failed: sequence_checker_.CalledOnValidSequence(). WeakPtrs must be checked on the same sequenced thread."  I dumped PlatformThread::CurrentRef().id_ when I create the callback and when it's executed and they're printing different values.  This makes it seem like there's more than one BrowserThread::UI?  Is there any way to get the code in the browsertest that creates the callback to execute on the right one?

I'm new to chromium development and not really sure what else I should try, any pointers would be amazing!

Thanks :)


--


  • 
 Jon Mann
  •  Software Engineer
  •  Android + Chrome OS
    Los Angeles, CA

Wez

unread,
Jul 21, 2018, 5:19:41 AM7/21/18
to jon...@google.com, chromi...@chromium.org
You'll need to look at the call-stack for the failing WeakPtr check, to determine which WeakPtr is being dereferenced or invalidated on multiple difference sequences.

--
--
Chromium Developers mailing list: chromi...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-dev
---
You received this message because you are subscribed to the Google Groups "Chromium-dev" group.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-dev/CAAxmN0ULxytKR1v_Pz_UNMhCGCiMmF%3DZ%2B2huZXo5x0Y2fG67Lw%40mail.gmail.com.
Reply all
Reply to author
Forward
0 new messages