Closed Bug 1129921 Opened 9 years ago Closed 9 years ago

crash in java.lang.NullPointerException: Attempt to invoke virtual method ''boolean android.os.Handler.post(java.lang.Runnable)'' on a null object reference at org.webrtc.videoengine.VideoCaptureAndroid.stopCapture(VideoCaptureAndroid.java)

Categories

(Core :: WebRTC, defect)

38 Branch
ARM
Android
defect
Not set
critical

Tracking

()

VERIFIED FIXED
mozilla38
Tracking Status
firefox38 --- verified
fennec 38+ ---

People

(Reporter: TeoVermesan, Assigned: gcp)

References

Details

(Keywords: crash)

Crash Data

Attachments

(1 file)

This bug was filed from the Socorro interface and is 
report bp-150b7001-e411-46c4-83eb-b4a112150205.
=============================================================

Tested with:
Device: Nexus 7 (Android 5.0.1);
Build: Firefox for Android 38.0a1 (2015-02-05);

Steps to reproduce:
1. Go to Menu -> Settings -> Privacy and from "Clear on exit" choose for example "Saved passwords"
2. Go to http://mozilla.github.com/webrtc-landing/gum_test.html
3. Tap "Audio & Video"
4. Choose "Share" from the doorhanger
5. Go to Menu -> Quit
=> Nightly crashes

Java Stack Trace:
java.lang.NullPointerException: Attempt to invoke virtual method 'boolean android.os.Handler.post(java.lang.Runnable)' on a null object reference
	at org.webrtc.videoengine.VideoCaptureAndroid.stopCapture(VideoCaptureAndroid.java:347)
Component: General → WebRTC
Product: Firefox for Android → Core
Version: Firefox 38 → 38 Branch
tracking-fennec: --- → ?
Blocks: 1109248
This is probably because upstream assumes stopCaptures will only be called once, while we can call it from Suspend and then the native code calls it again for the application exiting.
Attachment #8559852 - Flags: review?(rjesup) → review+
Assignee: nobody → gpascutto
tracking-fennec: ? → 38+
https://hg.mozilla.org/mozilla-central/rev/ec32edc7fe6e
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla38
After quitting, Nightly does not crash, so verified as fixed using Nexus 7 (Android 5.0.1) on Firefox for Android 38.0a1 (2015-02-08).
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: