Closed Bug 1374572 Opened 3 years ago Closed 3 years ago

Crash in java.lang.NullPointerException: Attempt to invoke interface method ''android.os.IBinder'' on a null object reference at


(Firefox for Android :: Audio/Video, defect, P1)

54 Branch



Firefox 56
Tracking Status
fennec + ---
firefox54 --- wontfix
firefox55 --- fixed
firefox56 --- fixed


(Reporter: gchang, Assigned: jhlin)



(Keywords: crash)

Crash Data


(1 file)

This bug was filed from the Socorro interface and is 
report bp-142fbe5e-be67-4254-a5f8-94e9d0170619.
Frame 	Module 	Signature 	Source
0 	mozilla::java::CodecProxy::Release 	widget/android/jni/Accessors.h:59
1 	mozilla::RemoteDataDecoder::ProcessShutdown 	dom/media/platforms/android/RemoteDataDecoder.cpp:568
2 	mozilla::detail::ProxyRunnable<mozilla::MozPromise<bool, bool, false>, RefPtr<mozilla::MozPromise<bool, bool, false> > (mozilla::MediaDecoderReader::*)(), mozilla::MediaDecoderReader>::Run 	xpcom/threads/nsThreadUtils.h:855
3 	mozilla::TaskQueue::Runner::Run 	xpcom/threads/TaskQueue.cpp:232
4 	nsThreadPool::Run 	xpcom/threads/nsThreadPool.cpp:225
5 	nsThread::ProcessNextEvent 	xpcom/threads/nsThread.cpp:1264
6 	NS_ProcessNextEvent 	xpcom/threads/nsThreadUtils.cpp:389
7 	mozilla::ipc::MessagePumpForNonMainThreads::Run 	ipc/glue/MessagePump.cpp:368
8 	MessageLoop::Run 	ipc/chromium/src/base/
9 	nsThread::ThreadFunc 	xpcom/threads/nsThread.cpp:495
10 	_pt_root 	nsprpub/pr/src/pthreads/ptthread.c:216
Ø 11 	
Ø 12 	
Ø 13 	
Ø 14 	
15 	_PR_CreateThread 	nsprpub/pr/src/pthreads/ptthread.c:541

This is #23 topcrash for firefox for android and there is a spike in the last 3 days.
Sebastian can you help find someone to look at this?  It spiked after the 54 release and is still present in 55beta.
Flags: needinfo?(s.kaspari)
Setting triage flag for the mobile core browser team.

@alastor: It's in the media code - is this something you can look into?
tracking-fennec: --- → ?
Flags: needinfo?(s.kaspari) → needinfo?(alwu)
It looks like related to OOP decoding, so lets forward to jhlin.
Component: General → Audio/Video
Flags: needinfo?(alwu) → needinfo?(jolin)
Priority: -- → P1
It's caused by a bug that the remote link is not protected properly and when decoder shutting down at the same time remote process is dying, which is handled later will get NPE.
Flags: needinfo?(jolin)
Assignee: nobody → jolin
tracking-fennec: ? → +
[traige@0719] + as taken by Media team already with P1.
Comment on attachment 8887814 [details]
Bug 1374572 - don't access disconnected remote binder.
Attachment #8887814 - Flags: review?(esawin) → review+
Pushed by
don't access disconnected remote binder. r=esawin
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 56
Duplicate of this bug: 1374578
Please request Beta approval on this when you get a chance.
Flags: needinfo?(jolin)
Comment on attachment 8887814 [details]
Bug 1374572 - don't access disconnected remote binder.

Approval Request Comment
[Feature/Bug causing the regression]: bug 1257777
[User impact if declined]: browser crashes when remote process crash and decoder shutting down at the same time
[Is this code covered by automated tests?]:no
[Has the fix been verified in Nightly?]:yes
[Needs manual test from QE? If yes, steps to reproduce]: no
[List of other uplifts needed for the feature/fix]:none
[Is the change risky?]:low risk
[Why is the change risky/not risky?]:it protects data access from multiple threads
[String changes made/needed]:none
Flags: needinfo?(jolin)
Attachment #8887814 - Flags: approval-mozilla-beta?
Comment on attachment 8887814 [details]
Bug 1374572 - don't access disconnected remote binder.

fennec crash fix, beta55+
Attachment #8887814 - Flags: approval-mozilla-beta? → approval-mozilla-beta+
You need to log in before you can comment on or make changes to this bug.