New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 818132 link

Starred by 3 users

Issue metadata

Status: Duplicate
Owner: ----
Closed: Mar 2018
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Android
Pri: 2
Type: Bug-Regression



Sign in to add a comment

NullPointerException on CrPreviewSessionListener.onCaptureCompleted

Reported by hec...@appear.in, Mar 2 2018

Issue description

Steps to reproduce the problem:
This seems to only affect Xperia devices.
1. - Open any WebRTC-based video call (e.g. an appear.in room)
2. - Browser crashes

What is the expected behavior?

What went wrong?
Unknown, potentially a NullPointerException  at org.chromium.media.VideoCaptureCamera2$CrPreviewSessionListener$1.onCaptureCompleted (VideoCaptureCamera2.java:3)

Did this work before? Yes First report we have is from Jan 25th, we do not know the Chrome version running in these devices

Does this work in other browsers? Yes

Chrome version: 64.0.3282.137  Channel: stable
OS Version: 8.0.0 Build 41.3.A.2.75
Flash Version: 

This has been reported by a user of our platform, happens both in the browser (Chrome on Android) and on our Android app (webapp in a native wrapper). Works on Firefox.

As far as the Google Play report shows this is only affecting Xperia devices (a wide variety of them).

This particular user has a Xperia X Performance (F8131) and reports that both Chrome and our app crash when entering a conversation. The stacktrace in our app is:

java.lang.NullPointerException: 
  at org.chromium.media.VideoCaptureCamera2$CrPreviewSessionListener$1.onCaptureCompleted (VideoCaptureCamera2.java:3)
  at java.lang.reflect.Method.invoke (Method.java)
  at android.hardware.camera2.dispatch.InvokeDispatcher.dispatch (InvokeDispatcher.java:39)
  at android.hardware.camera2.dispatch.HandlerDispatcher$1.run (HandlerDispatcher.java:65)
  at android.os.Handler.handleCallback (Handler.java:751)
  at android.os.Handler.dispatchMessage (Handler.java:95)
  at android.os.Looper.loop (Looper.java:241)
  at android.app.ActivityThread.main (ActivityThread.java:6223)
  at java.lang.reflect.Method.invoke (Method.java)
  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run (ZygoteInit.java:865)
  at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:755)
 
I wonder if it also occurs in the newer X devices? Reason I ask is that if I can buy a new model in the X lineup (XZ1, XZ2, XA2 etc) for repro or have to get a used X performance.

Comment 2 by hec...@appear.in, Mar 2 2018

Hi Jansson, here you can see a list of the most affected models.
bug stats.jpg
198 KB View Download
Labels: Needs-triage-Mobile

Comment 4 by hec...@appear.in, Mar 6 2018

We had our user report the crash from Chrome. He uploaded two, hopefully at least one is for this issue and can be of help.

Crash IDs: f98112dbec4be6ac and 60ac6e8bfd910a7a

Comment 5 by hec...@appear.in, Mar 6 2018

Hi Jansson, I hope you were able to get hold of one of the devices that suffer the issue, the new models seem affected as well.

Pasting down the list as text in case it comes in handy:
- Xperia XZ
- Xperia XZ1
- Xperia XZ1 Compact
- Xperia XZs
- Xperia X
- Xperia X Compact
- Xperia X Performance
- Xperia XZ
- Xperia XZ Premium
- Xperia Z5
- Xperia Z5 Compact
- Xperia Z5 Premium
Cc: pnangunoori@chromium.org chfremer@chromium.org
Components: Blink>WebRTC
Labels: Traiged-Mobile
Tested on Sony Xperia XA F3116 Android 7.0.0 and Xperia C6902 on reported Chrome #64.0.3282.137 and not able to reproduce the issue by following the steps below:

1. Launched Chrome browser.
2. Navigated to the URL to join the room - appear.in/axsysmob1
3. And able to continue the video call.
4. Observed no crashes.

Requesting dev team to look into the issue as the devices mentioned in Comment #5 are not available with the triage teams.

chfremer@ -- Could you also take a look into this issue as the recent changes are done by you to the file VideoCaptureCamera2.java

Thanks!
818132.mp4
5.5 MB View Download
Cc: cma...@chromium.org
Mergedinto: 806440
Status: Duplicate (was: Unconfirmed)
This is duplicate with issue 806440.
A fix for this landed in 65.0.3325.43 but did not make it into M64.

Comment 8 by hec...@appear.in, Mar 20 2018

The issue seems to be dying out as M65 rolled out.

Thank you all for looking into it and, of course, for the fix!
crash graph.png
84.6 KB View Download

Sign in to add a comment