Closed Bug 1534388 Opened 6 years ago Closed 6 years ago

Crash in [@ nsObserverService::NotifyObservers] called from nsChildView::PaintWindow

Categories

(Core :: Widget: Cocoa, defect)

defect
Not set
critical

Tracking

()

RESOLVED FIXED
mozilla66
Tracking Status
firefox-esr60 --- fixed
firefox65 --- wontfix
firefox66 --- fixed

People

(Reporter: marcia, Assigned: mstange)

References

(Blocks 1 open bug)

Details

(Keywords: crash, regression)

Crash Data

This bug is for crash report bp-4e0833d9-3949-49ef-a52d-c73c10190311.

Seen while looking at 65 release crash stats - smaller volume crash which appears to affect Mac 10.14 more than the other platforms: https://bit.ly/2TBC6Qg. What concerned me was several comments mentioned "Fresh install of Firefox crashes on startup" as well as "under mojave 10.14.4 no possible opening of firefox"

Code was touched in Bug 1502284 in the 65 timeframe

ni on :gsvelto for ideas

Top 10 frames of crashing thread:

0 XUL nsObserverService::NotifyObservers xpcom/ds/nsObserverService.cpp:173
1 XUL mozilla::PresShell::DidPaintWindow layout/base/PresShell.cpp:8078
2 XUL nsView::DidPaintWindow view/nsViewManager.cpp:703
3 XUL nsChildView::PaintWindow widget/cocoa/nsChildView.mm:1514
4 libobjc.A.dylib objc_msgLookup_fpret 
5 XUL -[ChildView drawRect:] widget/cocoa/nsChildView.mm:3658
6 AppKit GCC_except_table7 
7 libobjc.A.dylib _class_initialize 
8 AppKit GCC_except_table7 
9 libobjc.A.dylib _class_resolveInstanceMethod 

Flags: needinfo?(gsvelto)

The crash reason is:
MOZ_CRASH(Using observer service off the main thread!)

It looks to me like gsvelto's patch just moved around where this check was done, rather than added any checks.

There are a couple of crashes talking about crashing in light mode.

"Still crashes on startup in Light Mode."
bp-2948c019-df1e-4c38-b5db-3fcdd0181213

This crash report maybe has some STR:

  Happens after setting:
  > defaults write -g NSRequiresAquaSystemAppearance -bool NO

bp-27edb217-7e5e-48a2-bf32-4c5e00181223

Blocks: mojave
Component: XPCOM → Widget: Cocoa
Flags: needinfo?(gsvelto)
Summary: Crash in [@ nsObserverService::NotifyObservers] → Crash in [@ nsObserverService::NotifyObservers] called from nsChildView::PaintWindow

We added a main thread check to this method in bug 1515183. Should we uplift that patch?

Flags: needinfo?(mstange)

I think so.

I'll request uplift.

Thanks!

See Also: → 1515183

Looks like the remaining crashes with this signature on 66 are on Windows. Calling this Mac-specific variant fixed by bug 1515183.

Assignee: nobody → mstange
Status: NEW → RESOLVED
Closed: 6 years ago
Depends on: 1515183
Resolution: --- → FIXED
Target Milestone: --- → mozilla66
You need to log in before you can comment on or make changes to this bug.