Closed Bug 22943 Opened 25 years ago Closed 25 years ago

hitting "attemping to process events on the wrong thread" assertion on the mac a ton of times

Categories

(MailNews Core :: Backend, defect, P3)

x86
Mac System 8.6
defect

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: sspitzer, Assigned: dougt)

Details

> I just did a clean build on my mac, and as soon as I click on my imap
> inbox (and get the password dialog) I get a ton of asserts from
>
> "nsEventQueue.cpp" line 194"
>
> NS_ASSERTION(correctThread, "attemping to process events on the wrong
> thread");

dougt's comments: "the mac event loop is still hosed (I never fixed it).  Assign
the bug to me and I will see that it gets fixed."
Status: NEW → ASSIGNED
thanks.
I just checked the following patch in, so that until this bug gets fixed, people
can use the mac debug version.

Index: nsEventQueue.cpp
===================================================================
RCS file: /cvsroot/mozilla/xpcom/threads/nsEventQueue.cpp,v
retrieving revision 3.16
diff -p -r3.16 nsEventQueue.cpp
*** nsEventQueue.cpp    1999/12/20 23:12:18     3.16
--- nsEventQueue.cpp    2000/01/04 00:13:02
*************** NS_IMETHODIMP
*** 191,197 ****
--- 191,200 ----
  nsEventQueueImpl::ProcessPendingEvents()
  {
    PRBool correctThread = PL_IsQueueOnCurrentThread(mEventQueue);
+   /* until dougt fixes #22943, turning this off of the mac */
+ #ifndef XP_MAC
    NS_ASSERTION(correctThread, "attemping to process events on the wrong thread
");
+ #endif /* XP_MAC */

    if (!correctThread)
      return NS_ERROR_FAILURE;
*************** NS_IMETHODIMP
*** 204,210 ****
--- 207,216 ----
  nsEventQueueImpl::EventLoop()
  {
    PRBool correctThread = PL_IsQueueOnCurrentThread(mEventQueue);
+   /* until dougt fixes #22943, turning this off of the mac */
+ #ifndef XP_MAC
    NS_ASSERTION(correctThread, "attemping to process events on the wrong thread
");
+ #endif /* XP_MAC */
    if (!correctThread)
      return NS_ERROR_FAILURE;
Status: ASSIGNED → RESOLVED
Closed: 25 years ago
Resolution: --- → FIXED
fixed
will mark verified.  I assume you no longer see this in your debug builds, Seth.
Status: RESOLVED → VERIFIED
I don't debug on the mac that often.

ducarroz would be able to verify.
Product: MailNews → Core
Product: Core → MailNews Core
You need to log in before you can comment on or make changes to this bug.