Closed Bug 1699936 Opened 4 years ago Closed 1 year ago

Crash in [@ nsMenuBarX::Paint] with NSInvalidArgumentException: *** -[__NSArrayM insertObject:atIndex:]: object cannot be nil

Categories

(Core :: Widget: Cocoa, defect, P3)

All
macOS
defect

Tracking

()

RESOLVED FIXED
122 Branch
Tracking Status
firefox-esr78 --- unaffected
firefox-esr91 --- wontfix
firefox-esr115 --- wontfix
firefox86 --- unaffected
firefox87 --- wontfix
firefox88 --- wontfix
firefox89 --- wontfix
firefox97 --- wontfix
firefox98 --- wontfix
firefox99 --- wontfix
firefox100 --- wontfix
firefox101 --- wontfix
firefox102 --- wontfix
firefox103 --- wontfix
firefox104 --- wontfix
firefox120 --- wontfix
firefox121 --- wontfix
firefox122 --- fixed

People

(Reporter: mstange, Assigned: spohl)

References

(Regression)

Details

(Keywords: crash, regression, Whiteboard: [mac:stability])

Crash Data

Attachments

(2 files)

Crash report: https://crash-stats.mozilla.org/report/index/c8049cd0-e2c0-4e47-8f2a-526140210319

MOZ_CRASH Reason: MOZ_CRASH(Encountered unexpected Objective C exception)

Obj-C Exception data:
NSInvalidArgumentException: *** -[__NSArrayM insertObject:atIndex:]: object cannot be nil

Thrown at stack:

__exceptionPreprocess (in CoreFoundation) + 0x93
objc_exception_throw (in libobjc.A.dylib) + 0x30
_CFThrowFormattedException (in CoreFoundation) + 0xc2
-[__NSArrayM insertObject:atIndex:] (in CoreFoundation) + 0x4dd
-[NSMenu insertItem:atIndex:] (in AppKit) + 0x12e
nsMenuBarX::Paint() (in XUL) + 0x6f

Top 10 frames of crashing thread:

0 XUL nsMenuBarX::Paint widget/cocoa/nsMenuBarX.mm:459
1 XUL nsMenuBarX::Create widget/cocoa/nsMenuBarX.mm:148
2 XUL mozilla::widget::NativeMenuSupport::CreateNativeMenuBar widget/cocoa/NativeMenuSupport.mm:18
3 XUL mozilla::LoadNativeMenus xpfe/appshell/AppWindow.cpp:3006
4 XUL mozilla::dom:: dom/promise/Promise.cpp:384
5 XUL mozilla::dom::NativeHandlerCallback dom/promise/Promise.cpp:337
6 XUL js::InternalCallOrConstruct js/src/vm/Interpreter.cpp:520
7 XUL mozilla::dom::CallbackObject::CallSetup::~CallSetup dom/bindings/CallbackObject.cpp:342
8 XUL js::Call js/src/vm/Interpreter.cpp:597
9 XUL PromiseReactionJob js/src/builtin/Promise.cpp:1905

Set release status flags based on info from the regressing bug 1692647

Severity: -- → S2
Priority: -- → P2
Whiteboard: [mac:stability]
Has Regression Range: --- → yes

P2 for over a year doesn't seem to reflect reality and there is no-one assigned. I'm going to reset this.

Flags: needinfo?(spohl.mozilla.bugs)
Priority: P2 → --
Severity: S2 → S3
Flags: needinfo?(spohl.mozilla.bugs)
Priority: -- → P3
Assignee: nobody → spohl.mozilla.bugs
Status: NEW → ASSIGNED
Pushed by spohl@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/338840bec053 Prevent possible crashes due to Objective-C exceptions when drawing the menubar on macOS. r=mstange
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 101 Branch
See Also: → 1765391
Regressions: 1765524
Attachment #9273651 - Attachment description: WIP: Bug 1699936: Backout 338840bec053 for causing bug 1765524. → Bug 1699936: Backout 338840bec053 for causing bug 1765524.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Target Milestone: 101 Branch → ---
Regressions: 1765391
No longer regressions: 1765391
See Also: 1765391

:spohl do you still plan on working on this?

Flags: needinfo?(spohl.mozilla.bugs)

I happen to be looking at an issue that deals with menu items in bug 1642138 and I'll keep this bug in mind.

Flags: needinfo?(spohl.mozilla.bugs)
Flags: needinfo?(spohl.mozilla.bugs)
Flags: needinfo?(spohl.mozilla.bugs)
See Also: → 1642138

The bug is linked to a topcrash signature, which matches the following criterion:

  • Top 5 desktop browser crashes on Mac on beta (startup)

:spohl, could you consider increasing the severity of this top-crash bug?

For more information, please visit auto_nag documentation.

Flags: needinfo?(spohl.mozilla.bugs)
Flags: needinfo?(spohl.mozilla.bugs)

Based on the topcrash criteria, the crash signature linked to this bug is not a topcrash signature anymore.

For more information, please visit auto_nag documentation.

Pushed by spohl@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/3d4fed7df6d2 Prevent possible crashes due to Objective-C exceptions when drawing the menubar on macOS. r=mstange
Status: REOPENED → RESOLVED
Closed: 3 years ago1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 122 Branch

The patch landed in nightly and beta is affected.
:spohl, is this bug important enough to require an uplift?

  • If yes, please nominate the patch for beta approval. Also, don't forget to request an uplift for the patches in the regression caused by this fix.
  • If no, please set status-firefox121 to wontfix.

For more information, please visit BugBot documentation.

Flags: needinfo?(spohl.mozilla.bugs)

(In reply to BugBot [:suhaib / :marco/ :calixte] from comment #15)

The patch landed in nightly and beta is affected.
:spohl, is this bug important enough to require an uplift?

  • If yes, please nominate the patch for beta approval. Also, don't forget to request an uplift for the patches in the regression caused by this fix.
  • If no, please set status-firefox121 to wontfix.

For more information, please visit BugBot documentation.

Since this is a longstanding issue and that the patch here has caused regressions before, it does not seem prudent to uplift it at this time. Setting status-firefox121 to wontfix.

Flags: needinfo?(spohl.mozilla.bugs)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: