Crash under [@ mozilla::dom::StopGamepadMonitoring()]

NEW
Unassigned

Status

()

Core
DOM: Device Interfaces
P2
normal
2 months ago
a month ago

People

(Reporter: Dolske, Unassigned, NeedInfo)

Tracking

Trunk
x86_64
Mac OS X
Points:
---

Firefox Tracking Flags

(firefox59 affected)

Details

(crash signature)

(Reporter)

Description

2 months ago
I get a 100% reproducible crash on Nightly/macOS when loading https://classicreload.com/a8b_mule.html with a USB joystick plugged in. I think it also crashed once without a joystick plugged in, but I'm not sure.

e.g. bp-aec86eb5-bab3-46dc-a753-a7ada0171203

0 pthread_mutex_lock
1 -[NSMutableArray sortUsingComparator:]
2 mozilla::dom::StopGamepadMonitoring()
3 mozilla::dom::MaybeStopGamepadMonitoring()
4 mozilla::dom::GamepadEventChannelParent::ActorDestroy()

Sorta sounds like bug 1347519 was trying to fix this (similar crash stack there), so maybe this is a dupe?
(Reporter)

Updated

2 months ago
Crash Signature: [@ pthread_mutex_lock | -[NSMutableArray sortUsingComparator:] ]
(Reporter)

Comment 1

2 months ago
I guess I also see bug 1382176, but that says not reproducible.
Hi Michael, are you the right person to take a look at this crash and comment 0 or to point me to the right person?
Component: DOM → DOM: Device Interfaces
Flags: needinfo?(cleu)
I can reproduce this crash, it is the first time I encounter it in person.

Hi Justin, can you test the patch in bug 1397194 ?

This patch utilizes gecko's nsITimer instead of macos' native eventloop.
Flags: needinfo?(cleu)
Flags: needinfo?(dolske)
Depends on: 1397194
You need to log in before you can comment on or make changes to this bug.