Closed Bug 1808705 Opened 2 years ago Closed 6 months ago

Crash in [@ java.lang.RuntimeException: at org.webrtc.CameraCapturer.<init>]

Categories

(Core :: WebRTC: Audio/Video, defect, P2)

Unspecified
Android
defect

Tracking

()

RESOLVED FIXED
125 Branch
Tracking Status
firefox-esr115 --- unaffected
firefox114 --- wontfix
firefox115 --- wontfix
firefox116 --- wontfix
firefox123 --- wontfix
firefox124 --- wontfix
firefox125 --- fixed

People

(Reporter: bwc, Assigned: jhlin)

References

Details

(Keywords: crash)

Crash Data

Attachments

(2 files)

Crash report: https://crash-stats.mozilla.org/report/index/f5bcf3e0-24bb-40ed-9f9c-03e160230105

Java stack trace:

java.lang.RuntimeException
	at org.webrtc.CameraCapturer.<init>(CameraCapturer.java:106)
	at org.webrtc.Camera1Capturer.<init>(Camera1Capturer.java:6)
	at org.webrtc.Camera1Enumerator.createCapturer(Camera1Enumerator.java:5)
	at org.webrtc.videoengine.VideoCaptureAndroid.<init>(VideoCaptureAndroid.java:96)

This is our top crash right now.

See Also: → 1808030, 1808031

Looking at this and the related bugs, the line numbers in the stack seem to be pretty unreliable. It looks like this crash might be happening here, in a thread assertion:

https://searchfox.org/mozilla-central/rev/4ebfb48f7e82251145afa4a822f970931dd06c68/third_party/libwebrtc/sdk/android/src/java/org/webrtc/CameraCapturer.java#444

Crash Signature: [@ java.lang.RuntimeException: at org.webrtc.CameraCapturer.<init>(CameraCapturer.java)] → [@ java.lang.RuntimeException: at org.webrtc.CameraCapturer.<init>]
Summary: Crash in [@ java.lang.RuntimeException: at org.webrtc.CameraCapturer.<init>(CameraCapturer.java)] → Crash in [@ java.lang.RuntimeException: at org.webrtc.CameraCapturer.<init>]
Crash Signature: [@ java.lang.RuntimeException: at org.webrtc.CameraCapturer.<init>] → [@ java.lang.RuntimeException: at org.webrtc.CameraCapturer.<init>(CameraCapturer.java)]
Flags: needinfo?(apehrson)
Flags: needinfo?(apehrson) → needinfo?(jolin)

The crash log java.lang.RuntimeException: No cameras attached. suggests that Android failed to enumerate cameras on the device. While this is not a normal situation (the devices in the crash reports do have cameras), the exception should be caught to prevent Gecko from crashing.

Assignee: nobody → jolin
Flags: needinfo?(jolin)
No longer blocks: webrtc-triage

There is an r+ patch which didn't land and no activity in this bug for 2 weeks.
:jhlin, could you have a look please?
If you still have some work to do, you can add an action "Plan Changes" in Phabricator.
For more information, please visit BugBot documentation.

Flags: needinfo?(jolin)
Flags: needinfo?(apehrson)
Flags: needinfo?(apehrson)
Severity: S2 → S3

Is this bug stuck? This is our top crasher (besides bug 1808025) right now.

Flags: needinfo?(apehrson)

Sorry, my bad. The fix is ready, but I failed to follow up on the test case. Will revise it and address the review comment ASAP.

Flags: needinfo?(jolin)
Flags: needinfo?(apehrson)
Pushed by jolin@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/cb9a6fdf3e6c
catch 'No cameras attached' exception. r=pehrsons
https://hg.mozilla.org/integration/autoland/rev/eb9bd67b5b8f
test VideoCaptureAndroid with mock camera enumerator. r=pehrsons,geckoview-reviewers
Pushed by jolin@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/e6f8898d2583
catch 'No cameras attached' exception. r=pehrsons
https://hg.mozilla.org/integration/autoland/rev/c61f6c3b2e0e
test VideoCaptureAndroid with mock camera enumerator. r=pehrsons,geckoview-reviewers
Status: NEW → RESOLVED
Closed: 6 months ago
Resolution: --- → FIXED
Target Milestone: --- → 125 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: