Closed Bug 1055020 Opened 6 years ago Closed 6 years ago

Crash on stop attempt after display wake up - java.lang.NullPointerException @ org.mozilla.gecko.ChromeCast.end(ChromeCast.java:254)

Categories

(Firefox for Android :: Screencasting, defect, critical)

34 Branch
ARM
Android
defect
Not set
critical

Tracking

()

RESOLVED FIXED
Tracking Status
firefox34 --- affected
fennec 33+ ---

People

(Reporter: aaronmt, Assigned: wesj)

References

Details

(Keywords: crash, verifyme)

Crash Data

D/dalvikvm( 1187): GC_FOR_ALLOC freed 552K, 11% free 22061K/24524K, paused 40ms, total 40ms
E/GeckoAppShell(18536): >>> REPORTING UNCAUGHT EXCEPTION FROM THREAD 3958 ("Gecko")
E/GeckoAppShell(18536): java.lang.NullPointerException
E/GeckoAppShell(18536): 	at com.google.android.gms.cast.Cast$CastApi$a.stopApplication(Unknown Source)
E/GeckoAppShell(18536): 	at org.mozilla.gecko.ChromeCast.end(ChromeCast.java:254)
E/GeckoAppShell(18536): 	at org.mozilla.gecko.MediaPlayerManager.handleMessage(MediaPlayerManager.java:166)
E/GeckoAppShell(18536): 	at org.mozilla.gecko.EventDispatcher.dispatchEvent(EventDispatcher.java:168)
E/GeckoAppShell(18536): 	at org.mozilla.gecko.GeckoAppShell.handleGeckoMessage(GeckoAppShell.java:2290)
E/GeckoAppShell(18536): 	at org.mozilla.gecko.mozglue.GeckoLoader.nativeRun(Native Method)
E/GeckoAppShell(18536): 	at org.mozilla.gecko.mozglue.GeckoLoader.nativeRun(Native Method)
E/GeckoAppShell(18536): 	at org.mozilla.gecko.mozglue.GeckoLoader.nativeRun(Native Method)
E/GeckoAppShell(18536): 	at org.mozilla.gecko.GeckoAppShell.runGecko(GeckoAppShell.java:360)
E/GeckoAppShell(18536): 	at org.mozilla.gecko.GeckoThread.run(GeckoThread.java:186)

Here is what I did

i) Started playing http://people.mozilla.org/~atrain/mobile/tests/test.mp4
ii) Hit pause and walked away for a few minutes to grab a drink
iii) Woke display up and hit pause, resume did not work at all so I hit stop

* Crash *

report bp-8f3e1084-1e52-46bc-b78f-9299f2140818
Severity: normal → critical
Full GeckoAppShell output


E/GeckoAppShell(18536): >>> REPORTING UNCAUGHT EXCEPTION FROM THREAD 3958 ("Gecko")
E/GeckoAppShell(18536): java.lang.NullPointerException
E/GeckoAppShell(18536): 	at com.google.android.gms.cast.Cast$CastApi$a.stopApplication(Unknown Source)
E/GeckoAppShell(18536): 	at org.mozilla.gecko.ChromeCast.end(ChromeCast.java:254)
E/GeckoAppShell(18536): 	at org.mozilla.gecko.MediaPlayerManager.handleMessage(MediaPlayerManager.java:166)
E/GeckoAppShell(18536): 	at org.mozilla.gecko.EventDispatcher.dispatchEvent(EventDispatcher.java:168)
E/GeckoAppShell(18536): 	at org.mozilla.gecko.GeckoAppShell.handleGeckoMessage(GeckoAppShell.java:2290)
E/GeckoAppShell(18536): 	at org.mozilla.gecko.mozglue.GeckoLoader.nativeRun(Native Method)
E/GeckoAppShell(18536): 	at org.mozilla.gecko.mozglue.GeckoLoader.nativeRun(Native Method)
E/GeckoAppShell(18536): 	at org.mozilla.gecko.mozglue.GeckoLoader.nativeRun(Native Method)
E/GeckoAppShell(18536): 	at org.mozilla.gecko.GeckoAppShell.runGecko(GeckoAppShell.java:360)
E/GeckoAppShell(18536): 	at org.mozilla.gecko.GeckoThread.run(GeckoThread.java:186)
E/GeckoAppShell(18536): Main thread stack:
E/GeckoAppShell(18536): android.view.GLES20Canvas.nDrawDisplayList(Native Method)
E/GeckoAppShell(18536): android.view.GLES20Canvas.drawDisplayList(GLES20Canvas.java:420)
E/GeckoAppShell(18536): android.view.HardwareRenderer$GlRenderer.drawDisplayList(HardwareRenderer.java:1646)
E/GeckoAppShell(18536): android.view.HardwareRenderer$GlRenderer.draw(HardwareRenderer.java:1469)
E/GeckoAppShell(18536): android.view.ViewRootImpl.draw(ViewRootImpl.java:2377)
E/GeckoAppShell(18536): android.view.ViewRootImpl.performDraw(ViewRootImpl.java:2249)
E/GeckoAppShell(18536): android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1879)
E/GeckoAppShell(18536): android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:996)
E/GeckoAppShell(18536): android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:5600)
E/GeckoAppShell(18536): android.view.Choreographer$CallbackRecord.run(Choreographer.java:761)
E/GeckoAppShell(18536): android.view.Choreographer.doCallbacks(Choreographer.java:574)
E/GeckoAppShell(18536): android.view.Choreographer.doFrame(Choreographer.java:544)
E/GeckoAppShell(18536): android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:747)
E/GeckoAppShell(18536): android.os.Handler.handleCallback(Handler.java:733)
E/GeckoAppShell(18536): android.os.Handler.dispatchMessage(Handler.java:95)
E/GeckoAppShell(18536): android.os.Looper.loop(Looper.java:136)
E/GeckoAppShell(18536): android.app.ActivityThread.main(ActivityThread.java:5001)
E/GeckoAppShell(18536): java.lang.reflect.Method.invokeNative(Native Method)
E/GeckoAppShell(18536): java.lang.reflect.Method.invoke(Method.java:515)
E/GeckoAppShell(18536): com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:785)
E/GeckoAppShell(18536): com.android.internal.os.ZygoteInit.main(ZygoteInit.java:601)
E/GeckoAppShell(18536): dalvik.system.NativeStart.main(Native Method)
E/Gecko   (18536): mozalloc_abort: Redirecting call to abort() to mozalloc_abort
Assignee: nobody → wjohnston
tracking-fennec: ? → 33+
I reprod this, but with the patch from bug 1046537, we now just log "Can't play not connected", and shutdown casting on the phone. The chromecast is stuck paused. We probably need to rework the play/pause/end code to try and reconnect to the client, but the crash is gone.
Blocks: 901803
Keywords: verifyme
Marking fixed since I haven't heard from QA.
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.