Open Bug 1904098 Opened 1 year ago Updated 1 year ago

Crash in [@ mozilla::dom::ClipboardItem::ItemEntry::RejectPendingPromises]

Categories

(Core :: DOM: Copy & Paste and Drag & Drop, defect, P2)

Unspecified
Windows 10
defect

Tracking

()

People

(Reporter: RyanVM, Assigned: edgar)

Details

(Keywords: crash)

Crash Data

Attachments

(1 file)

Crash report: https://crash-stats.mozilla.org/report/index/4f3a0d73-bbee-4f89-aa39-c2eed0240621

MOZ_CRASH Reason: MOZ_DIAGNOSTIC_ASSERT(!mIsLoadingData && !mTransferable) (Should not be in the process of loading data)

Top 10 frames:

0  xul.dll  mozilla::dom::ClipboardItem::ItemEntry::RejectPendingPromises(nsresult)  dom/events/ClipboardItem.cpp:227
1  xul.dll  mozilla::dom::ClipboardItem::ItemEntry::~ItemEntry()  dom/events/ClipboardItem.h:72
2  xul.dll  mozilla::dom::ClipboardItem::ItemEntry::DeleteCycleCollectable()  dom/events/ClipboardItem.cpp:30
2  xul.dll  mozilla::dom::ClipboardItem::ItemEntry::cycleCollection::DeleteCycleCollectab...  dom/events/ClipboardItem.h:37
3  xul.dll  SnowWhiteKiller::MaybeKillObject(SnowWhiteKiller::SnowWhiteObject&)  xpcom/base/nsCycleCollector.cpp:2512
3  xul.dll  SnowWhiteKiller::Visit(nsPurpleBuffer&, nsPurpleBufferEntry*)  xpcom/base/nsCycleCollector.cpp:2537
3  xul.dll  nsPurpleBuffer::VisitEntries<SnowWhiteKiller>(SnowWhiteKiller&)  xpcom/base/nsCycleCollector.cpp:977
4  xul.dll  nsCycleCollector::FreeSnowWhiteWithBudget(js::SliceBudget&)  xpcom/base/nsCycleCollector.cpp:2705
4  xul.dll  nsCycleCollector_doDeferredDeletionWithBudget(js::SliceBudget&)  xpcom/base/nsCycleCollector.cpp:3995
4  xul.dll  AsyncFreeSnowWhite::Run()  js/xpconnect/src/XPCJSRuntime.cpp:158
Severity: -- → S3
Component: DOM: Events → DOM: Copy & Paste and Drag & Drop
Flags: needinfo?(echen)
Priority: -- → P2

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

  • Top 10 content process crashes on beta

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

For more information, please visit BugBot documentation.

Flags: needinfo?(htsai)
Keywords: topcrash

Looking at the crash reports, 20 out of 22 crashes on 128.0b5 were actually coming from a single build. So it seems not a "valid" top-crash to me, S3 still rounds right, but I'd delegate to Edgar to make a call.

Flags: needinfo?(htsai)

The MOZ_DIAGNOSTIC_ASSERT is to catch a problem if the clipboard item somehow resolves or rejects the promise while the data is still loading from the clipboard source.

I checked recent 5 crash reports,

All the crashes happen when the clipboard item is cycle collected during loading the clipboard data. I think it is expected to reject the pending promise in such case, so it is kind of a false alarm. But yes, we should not assert in this case.

Flags: needinfo?(echen)
Assignee: nobody → echen

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

For more information, please visit BugBot documentation.

Keywords: topcrash
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: