New issue
Advanced search Search tips

Issue 637335 link

Starred by 1 user

Issue metadata

Status: WontFix
Owner: ----
Closed: Aug 2016
EstimatedDays: ----
NextAction: ----
OS: Linux , Android
Pri: 3
Type: Bug



Sign in to add a comment

Camera capture stops and doesn't resume when Cr shows an overlay e.g. a <select>

Project Member Reported by mcasas@chromium.org, Aug 12 2016

Issue description

Made a very simple Html+Js file that opens the first Android WebCam
and offers a <select> with four dummy methods [1].

The camera is capturing live video directly after navigating to 
said [1]; when clicking on the drop-down menu, the whole window
gets an overlay with the maximized options, adb logcat shows some
errors [2];  when returning, the video feed is frozen.

Even more fun: if I show the tab chooser and come back to
Chrome, the video feed is alive again.

What should happen? The video feed should be alive all the time
(including when the <select> options are overlayed.

This is reproducible in Nexus6 with Canary 54.0.2826.0 and
Chrome 52.0.2743.98. The model is an angler and has a user-debug
build with dev-keys, NRD69 2952797.



[1] https://rawgit.com/Miguelao/demos/master/gum_simple_with_dropdown.html

[2] adb logcat extracted after clicking on the <select> element:

08-12 10:13:52.454   554  9339 I Camera2ClientBase: Closed Camera 1. Client was: org.chromium.chrome (PID 17906, UID 10096)
08-12 10:13:52.467 17906 18943 E BufferQueueProducer: [ImageReader-640x480f23m2-17906-2] dequeueBuffer: BufferQueue has been abandoned
08-12 10:13:52.467   554 18917 E Camera3-OutputStream: getBufferLocked: Stream 0: Can't dequeue next output buffer: No such device (-19)
08-12 10:13:52.467   554 18917 E Camera3-Device: RequestThread: Can't get output buffer, skipping request: No such device (-19)
08-12 10:13:52.471 17906 18943 E BufferQueueProducer: [ImageReader-640x480f23m2-17906-2] queueBuffer: BufferQueue has been abandoned
08-12 10:13:52.471   554 18924 E Surface : queueBuffer: error queuing buffer to SurfaceTexture, -19
08-12 10:13:52.471   554 18924 E Camera3-OutputStream: returnBufferCheckedLocked: Stream 0: Error queueing buffer to native window: No such device (-19)
08-12 10:13:52.471   554 18924 E Camera3-Device: Can't return buffer to its stream: No such device (-19)
08-12 10:13:52.504 17906 18943 E BufferQueueProducer: [ImageReader-640x480f23m2-17906-2] queueBuffer: BufferQueue has been abandoned
08-12 10:13:52.505   554 18926 E Surface : queueBuffer: error queuing buffer to SurfaceTexture, -19
08-12 10:13:52.505   554 18926 E Camera3-OutputStream: returnBufferCheckedLocked: Stream 0: Error queueing buffer to native window: No such device (-19)
08-12 10:13:52.505   554 18926 E Camera3-Device: Can't return buffer to its stream: No such device (-19)
08-12 10:13:52.537 17906 17919 E BufferQueueProducer: [ImageReader-640x480f23m2-17906-2] queueBuffer: BufferQueue has been abandoned
08-12 10:13:52.537   554 18924 E Surface : queueBuffer: error queuing buffer to SurfaceTexture, -19
08-12 10:13:52.537   554 18924 E Camera3-OutputStream: returnBufferCheckedLocked: Stream 0: Error queueing buffer to native window: No such device (-19)
08-12 10:13:52.537   554 18924 E Camera3-Device: Can't return buffer to its stream: No such device (-19)
08-12 10:13:52.573 17906 17919 E BufferQueueProducer: [ImageReader-640x480f23m2-17906-2] queueBuffer: BufferQueue has been abandoned
08-12 10:13:52.574   554 18926 E Surface : queueBuffer: error queuing buffer to SurfaceTexture, -19
08-12 10:13:52.574   554 18926 E Camera3-OutputStream: returnBufferCheckedLocked: Stream 0: Error queueing buffer to native window: No such device (-19)
08-12 10:13:52.574   554 18926 E Camera3-Device: Can't return buffer to its stream: No such device (-19)
08-12 10:13:53.188 17906 17917 I art     : Background partial concurrent mark sweep GC freed 136358(4MB) AllocSpace objects, 0(0B) LOS objects, 39% free, 17MB/28MB, paused 984us total 119.414ms
08-12 10:13:55.364   566 18911 E mm-camera-sensor: port_sensor_handle_aec_update:443miss aec update window, skip
08-12 10:13:57.459 19945 19945 I DownloadManagerWrapper: onReceive() : Charging = true
08-12 10:13:58.561 17906 17906 W InputEventReceiver: Attempted to finish an input event but the input event receiver has already been disposed.
08-12 10:13:58.564   928   940 W InputMethodManagerService: Window already focused, ignoring focus gain of: com.android.internal.view.IInputMethodClient$Stub$Proxy@9781e91 attribute=null, token = android.os.BinderProxy@5cdae24
08-12 10:13:58.744   928   955 I WindowManager: Destroying surface Surface(name=org.chromium.chrome/org.chromium.chrome.browser.ChromeTabbedActivity) called by com.android.server.wm.WindowStateAnimator.destroySurface:1986 com.android.server.wm.WindowStateAnimator.destroySurfaceLocked:884 com.android.server.wm.WindowState.destroyOrSaveSurface:2073 com.android.server.wm.AppWindowToken.destroySurfaces:359 com.android.server.wm.WindowStateAnimator.finishExit:557 com.android.server.wm.WindowStateAnimator.stepAnimationLocked:483 com.android.server.wm.WindowAnimator.updateWindowsLocked:303 com.android.server.wm.WindowAnimator.animateLocked:704 





 

Comment 1 by mcasas@chromium.org, Aug 12 2016

Does not repro with my Nexus5X stock Android MTC20F.

Comment 2 by mcasas@chromium.org, Aug 12 2016

Screenshot (Aug 12, 2016 10-17-06 AM).png
34.2 KB View Download

Comment 3 by mcasas@chromium.org, Aug 12 2016

Status: WontFix (was: Unconfirmed)
phew! reflashed a more modern build and the problem disappeared :)

Sign in to add a comment