Device name: Pixel Phone
Android: 7.1.2
Chromium: 60.0.3097.0
Calling faceDetector.detect(canvas) multiple times makes Chromium crashes at some point.
Here are my adb logs:
...
05-11 10:08:50.635 32692 32692 I chromium: [INFO:CONSOLE(217)] "Detecting faces: 805"
05-11 10:08:50.637 664 794 I ThermalEngine: ACTION: CLUSTER - Setting CLUSTER[1] to 2150400
05-11 10:08:50.637 664 787 I ThermalEngine: vs_get_temperature: read[0] tsens_tz_sensor15 58000 mC, weight[0] 1
05-11 10:08:50.637 664 787 I ThermalEngine: vs_get_temperature: read[1] tsens_tz_sensor0 62000 mC, weight[1] -1
05-11 10:08:50.666 32757 409 E Parcel : dup() failed in Parcel::read, i is 0, fds[i] is -1, fd_count is 1, error: Too many open files
05-11 10:08:50.666 32757 409 I Adreno : DequeueBuffer: dequeueBuffer failed
05-11 10:08:50.666 32757 409 E chromium: [ERROR:gles2_cmd_decoder.cc(15623)] Context lost because SwapBuffers failed.
05-11 10:08:50.667 32757 409 E chromium: [ERROR:gles2_cmd_decoder.cc(5327)] Error: 5 for Command kSwapBuffers
05-11 10:08:50.705 32692 32692 I chromium: [INFO:CONSOLE(217)] "Detecting faces: 806"
05-11 10:08:50.725 32757 32766 W HandleImpl: Handle was not closed.
05-11 10:08:50.725 32757 32766 W HandleImpl: Handle was not closed.
05-11 10:08:50.752 32757 409 E Parcel : dup() failed in Parcel::read, i is 1, fds[i] is -1, fd_count is 2, error: Too many open files
05-11 10:08:50.752 32757 409 E Surface : dequeueBuffer: IGraphicBufferProducer::requestBuffer failed: -22
05-11 10:08:50.753 32757 409 I Adreno : DequeueBuffer: dequeueBuffer failed
05-11 10:08:50.754 32757 409 E chromium: [ERROR:gles2_cmd_decoder.cc(15623)] Context lost because SwapBuffers failed.
05-11 10:08:50.754 32757 409 E chromium: [ERROR:gles2_cmd_decoder.cc(5327)] Error: 5 for Command kSwapBuffers
05-11 10:08:50.763 32692 32692 I chromium: [INFO:CONSOLE(217)] "Detecting faces: 807"
05-11 10:08:50.803 32757 32766 W HandleImpl: Handle was not closed.
05-11 10:08:50.803 32757 32766 W HandleImpl: Handle was not closed.
05-11 10:08:50.805 32692 32692 I chromium: [INFO:CONSOLE(217)] "Detecting faces: 808"
05-11 10:08:50.830 507 507 E SurfaceFlinger: releasePendingBuffer failed: Unknown error -1 (1)
05-11 10:08:50.849 32757 409 E Parcel : dup() failed in Parcel::read, i is 0, fds[i] is -1, fd_count is 2, error: Too many open files
05-11 10:08:50.849 32757 409 E Surface : dequeueBuffer: IGraphicBufferProducer::requestBuffer failed: -22
05-11 10:08:50.849 32757 409 I Adreno : DequeueBuffer: dequeueBuffer failed
05-11 10:08:50.849 32757 409 E chromium: [ERROR:gles2_cmd_decoder.cc(15623)] Context lost because SwapBuffers failed.
05-11 10:08:50.850 32757 409 E chromium: [ERROR:gles2_cmd_decoder.cc(5327)] Error: 5 for Command kSwapBuffers
05-11 10:08:50.874 32692 32692 I chromium: [INFO:CONSOLE(217)] "Detecting faces: 809"
05-11 10:08:50.901 32757 409 W art : Large object allocation failed: ashmem_create_region failed for 'large object space allocation': Too many open files
05-11 10:08:50.901 32757 409 I art : Starting a blocking GC Alloc
05-11 10:08:50.901 32757 409 I art : Starting a blocking GC Alloc
05-11 10:08:50.907 32757 409 I art : Alloc sticky concurrent mark sweep GC freed 91(2752B) AllocSpace objects, 2(1952KB) LOS objects, 38% free, 7MB/11MB, paused 338us total 5.738ms
05-11 10:08:50.907 32757 409 W art : Large object allocation failed: ashmem_create_region failed for 'large object space allocation': Too many open files
05-11 10:08:50.907 32757 409 I art : Starting a blocking GC Alloc
05-11 10:08:50.907 32757 32766 W HandleImpl: Handle was not closed.
05-11 10:08:50.919 32757 409 I art : Alloc partial concurrent mark sweep GC freed 80(2568B) AllocSpace objects, 6(2MB) LOS objects, 39% free, 4MB/7MB, paused 235us total 11.987ms
05-11 10:08:50.920 32757 32766 W HandleImpl: Handle was not closed.
05-11 10:08:50.954 32757 409 E Parcel : dup() failed in Parcel::read, i is 0, fds[i] is -1, fd_count is 2, error: Too many open files
05-11 10:08:50.954 32757 409 E Surface : dequeueBuffer: IGraphicBufferProducer::requestBuffer failed: -22
05-11 10:08:50.954 32757 409 I Adreno : DequeueBuffer: dequeueBuffer failed
05-11 10:08:50.955 32757 409 E chromium: [ERROR:gles2_cmd_decoder.cc(15623)] Context lost because SwapBuffers failed.
05-11 10:08:50.955 32757 409 E chromium: [ERROR:gles2_cmd_decoder.cc(5327)] Error: 5 for Command kSwapBuffers
05-11 10:08:50.956 32757 409 E chromium: [ERROR:gles2_cmd_decoder.cc(4288)] GLES2DecoderImpl: Trying to make lost context current.
05-11 10:08:50.957 32757 409 E chromium: [ERROR:gles2_cmd_decoder.cc(4288)] GLES2DecoderImpl: Trying to make lost context current.
05-11 10:08:50.989 32692 32692 I chromium: [INFO:CONSOLE(217)] "Detecting faces: 810"
05-11 10:08:51.002 32757 409 W art : Large object allocation failed: ashmem_create_region failed for 'large object space allocation': Too many open files
05-11 10:08:51.002 32757 409 I art : Starting a blocking GC Alloc
05-11 10:08:51.002 32757 409 I art : Starting a blocking GC Alloc
05-11 10:08:51.009 32757 409 I art : Alloc partial concurrent mark sweep GC freed 54(1704B) AllocSpace objects, 1(244KB) LOS objects, 39% free, 5MB/9MB, paused 140us total 6.526ms
05-11 10:08:51.009 32757 409 W art : Large object allocation failed: ashmem_create_region failed for 'large object space allocation': Too many open files
05-11 10:08:51.009 32757 409 I art : Starting a blocking GC Alloc
05-11 10:08:51.009 32757 32766 W HandleImpl: Handle was not closed.
05-11 10:08:51.048 507 1478 E Parcel : dup() failed in Parcel::read, i is 0, fds[i] is -1, fd_count is 1, error: Bad file descriptor
05-11 10:08:51.048 507 1478 E BufferQueueProducer: [SurfaceView - org.chromium.chrome/org.chromium.chrome.browser.ChromeTabbedActivity] queueBuffer: fence is NULL
05-11 10:08:51.048 32757 409 E Surface : queueBuffer: error queuing buffer to SurfaceTexture, -22
05-11 10:08:51.048 32757 409 I Adreno : QueueBuffer: queueBuffer failed
05-11 10:08:51.048 32757 409 E chromium: [ERROR:gles2_cmd_decoder.cc(15623)] Context lost because SwapBuffers failed.
05-11 10:08:51.048 32757 409 E chromium: [ERROR:gles2_cmd_decoder.cc(5327)] Error: 5 for Command kSwapBuffers
05-11 10:08:51.074 32692 32692 I chromium: [INFO:CONSOLE(217)] "Detecting faces: 811"
05-11 10:08:51.082 507 1478 E Parcel : dup() failed in Parcel::read, i is 0, fds[i] is -1, fd_count is 1, error: Bad file descriptor
05-11 10:08:51.082 507 1478 E BufferQueueProducer: [SurfaceView - org.chromium.chrome/org.chromium.chrome.browser.ChromeTabbedActivity] queueBuffer: fence is NULL
05-11 10:08:51.082 32757 409 E Surface : queueBuffer: error queuing buffer to SurfaceTexture, -22
05-11 10:08:51.082 32757 409 I Adreno : QueueBuffer: queueBuffer failed
05-11 10:08:51.082 32757 409 E chromium: [ERROR:gles2_cmd_decoder.cc(15623)] Context lost because SwapBuffers failed.
05-11 10:08:51.082 32757 409 E chromium: [ERROR:gles2_cmd_decoder.cc(5327)] Error: 5 for Command kSwapBuffers
05-11 10:08:51.135 32757 409 E Parcel : dup() failed in Parcel::read, i is 1, fds[i] is -1, fd_count is 2, error: Too many open files
05-11 10:08:51.135 32757 409 E Surface : dequeueBuffer: IGraphicBufferProducer::requestBuffer failed: -22
05-11 10:08:51.135 32757 409 I Adreno : DequeueBuffer: dequeueBuffer failed
05-11 10:08:51.151 32692 32692 I chromium: [INFO:CONSOLE(217)] "Detecting faces: 812"
05-11 10:08:51.160 32757 409 E chromium: [ERROR:shared_buffer_dispatcher.cc(239)] Unable to map: read_only0
05-11 10:08:51.167 32757 409 W Adreno-GSL: <gsl_ldd_control:477>: ioctl fd 32 code 0xc0140933 (IOCTL_KGSL_TIMESTAMP_EVENT) failed: errno 24 Too many open files
05-11 10:08:51.167 32757 409 W Adreno-GSL: <ioctl_kgsl_syncobj_create:3269>: (21, 8, 37240) fail 24 Too many open files
05-11 10:08:51.168 32757 409 E chromium: [ERROR:gl_fence_egl.cc(34)] Failed to get EGLSync attribute. error code:12300
05-11 10:08:51.170 32692 32692 I chromium: [INFO:CONSOLE(220)] "Uncaught (in promise) NotSupportedError: Face Detection not implemented.", source: https://beaufortfrancois.github.io/sandbox/media-recorder/mustache.html (220)
05-11 10:08:51.638 664 787 I ThermalEngine: vs_get_temperature: read[0] tsens_tz_sensor15 57000 mC, weight[0] 1
05-11 10:08:51.639 664 787 I ThermalEngine: vs_get_temperature: read[1] tsens_tz_sensor0 59000 mC, weight[1] -1
Device name: Pixel Phone
Android: 7.1.2
Chromium: 60.0.3097.0
Calling faceDetector.detect(canvas) multiple times makes Chromium crashes at some point.
Here are my adb logs:
...
05-11 10:08:50.635 32692 32692 I chromium: [INFO:CONSOLE(217)] "Detecting faces: 805"
05-11 10:08:50.637 664 794 I ThermalEngine: ACTION: CLUSTER - Setting CLUSTER[1] to 2150400
05-11 10:08:50.637 664 787 I ThermalEngine: vs_get_temperature: read[0] tsens_tz_sensor15 58000 mC, weight[0] 1
05-11 10:08:50.637 664 787 I ThermalEngine: vs_get_temperature: read[1] tsens_tz_sensor0 62000 mC, weight[1] -1
05-11 10:08:50.666 32757 409 E Parcel : dup() failed in Parcel::read, i is 0, fds[i] is -1, fd_count is 1, error: Too many open files
05-11 10:08:50.666 32757 409 I Adreno : DequeueBuffer: dequeueBuffer failed
05-11 10:08:50.666 32757 409 E chromium: [ERROR:gles2_cmd_decoder.cc(15623)] Context lost because SwapBuffers failed.
05-11 10:08:50.667 32757 409 E chromium: [ERROR:gles2_cmd_decoder.cc(5327)] Error: 5 for Command kSwapBuffers
05-11 10:08:50.705 32692 32692 I chromium: [INFO:CONSOLE(217)] "Detecting faces: 806"
05-11 10:08:50.725 32757 32766 W HandleImpl: Handle was not closed.
05-11 10:08:50.725 32757 32766 W HandleImpl: Handle was not closed.
05-11 10:08:50.752 32757 409 E Parcel : dup() failed in Parcel::read, i is 1, fds[i] is -1, fd_count is 2, error: Too many open files
05-11 10:08:50.752 32757 409 E Surface : dequeueBuffer: IGraphicBufferProducer::requestBuffer failed: -22
05-11 10:08:50.753 32757 409 I Adreno : DequeueBuffer: dequeueBuffer failed
05-11 10:08:50.754 32757 409 E chromium: [ERROR:gles2_cmd_decoder.cc(15623)] Context lost because SwapBuffers failed.
05-11 10:08:50.754 32757 409 E chromium: [ERROR:gles2_cmd_decoder.cc(5327)] Error: 5 for Command kSwapBuffers
05-11 10:08:50.763 32692 32692 I chromium: [INFO:CONSOLE(217)] "Detecting faces: 807"
05-11 10:08:50.803 32757 32766 W HandleImpl: Handle was not closed.
05-11 10:08:50.803 32757 32766 W HandleImpl: Handle was not closed.
05-11 10:08:50.805 32692 32692 I chromium: [INFO:CONSOLE(217)] "Detecting faces: 808"
05-11 10:08:50.830 507 507 E SurfaceFlinger: releasePendingBuffer failed: Unknown error -1 (1)
05-11 10:08:50.849 32757 409 E Parcel : dup() failed in Parcel::read, i is 0, fds[i] is -1, fd_count is 2, error: Too many open files
05-11 10:08:50.849 32757 409 E Surface : dequeueBuffer: IGraphicBufferProducer::requestBuffer failed: -22
05-11 10:08:50.849 32757 409 I Adreno : DequeueBuffer: dequeueBuffer failed
05-11 10:08:50.849 32757 409 E chromium: [ERROR:gles2_cmd_decoder.cc(15623)] Context lost because SwapBuffers failed.
05-11 10:08:50.850 32757 409 E chromium: [ERROR:gles2_cmd_decoder.cc(5327)] Error: 5 for Command kSwapBuffers
05-11 10:08:50.874 32692 32692 I chromium: [INFO:CONSOLE(217)] "Detecting faces: 809"
05-11 10:08:50.901 32757 409 W art : Large object allocation failed: ashmem_create_region failed for 'large object space allocation': Too many open files
05-11 10:08:50.901 32757 409 I art : Starting a blocking GC Alloc
05-11 10:08:50.901 32757 409 I art : Starting a blocking GC Alloc
05-11 10:08:50.907 32757 409 I art : Alloc sticky concurrent mark sweep GC freed 91(2752B) AllocSpace objects, 2(1952KB) LOS objects, 38% free, 7MB/11MB, paused 338us total 5.738ms
05-11 10:08:50.907 32757 409 W art : Large object allocation failed: ashmem_create_region failed for 'large object space allocation': Too many open files
05-11 10:08:50.907 32757 409 I art : Starting a blocking GC Alloc
05-11 10:08:50.907 32757 32766 W HandleImpl: Handle was not closed.
05-11 10:08:50.919 32757 409 I art : Alloc partial concurrent mark sweep GC freed 80(2568B) AllocSpace objects, 6(2MB) LOS objects, 39% free, 4MB/7MB, paused 235us total 11.987ms
05-11 10:08:50.920 32757 32766 W HandleImpl: Handle was not closed.
05-11 10:08:50.954 32757 409 E Parcel : dup() failed in Parcel::read, i is 0, fds[i] is -1, fd_count is 2, error: Too many open files
05-11 10:08:50.954 32757 409 E Surface : dequeueBuffer: IGraphicBufferProducer::requestBuffer failed: -22
05-11 10:08:50.954 32757 409 I Adreno : DequeueBuffer: dequeueBuffer failed
05-11 10:08:50.955 32757 409 E chromium: [ERROR:gles2_cmd_decoder.cc(15623)] Context lost because SwapBuffers failed.
05-11 10:08:50.955 32757 409 E chromium: [ERROR:gles2_cmd_decoder.cc(5327)] Error: 5 for Command kSwapBuffers
05-11 10:08:50.956 32757 409 E chromium: [ERROR:gles2_cmd_decoder.cc(4288)] GLES2DecoderImpl: Trying to make lost context current.
05-11 10:08:50.957 32757 409 E chromium: [ERROR:gles2_cmd_decoder.cc(4288)] GLES2DecoderImpl: Trying to make lost context current.
05-11 10:08:50.989 32692 32692 I chromium: [INFO:CONSOLE(217)] "Detecting faces: 810"
05-11 10:08:51.002 32757 409 W art : Large object allocation failed: ashmem_create_region failed for 'large object space allocation': Too many open files
05-11 10:08:51.002 32757 409 I art : Starting a blocking GC Alloc
05-11 10:08:51.002 32757 409 I art : Starting a blocking GC Alloc
05-11 10:08:51.009 32757 409 I art : Alloc partial concurrent mark sweep GC freed 54(1704B) AllocSpace objects, 1(244KB) LOS objects, 39% free, 5MB/9MB, paused 140us total 6.526ms
05-11 10:08:51.009 32757 409 W art : Large object allocation failed: ashmem_create_region failed for 'large object space allocation': Too many open files
05-11 10:08:51.009 32757 409 I art : Starting a blocking GC Alloc
05-11 10:08:51.009 32757 32766 W HandleImpl: Handle was not closed.
05-11 10:08:51.048 507 1478 E Parcel : dup() failed in Parcel::read, i is 0, fds[i] is -1, fd_count is 1, error: Bad file descriptor
05-11 10:08:51.048 507 1478 E BufferQueueProducer: [SurfaceView - org.chromium.chrome/org.chromium.chrome.browser.ChromeTabbedActivity] queueBuffer: fence is NULL
05-11 10:08:51.048 32757 409 E Surface : queueBuffer: error queuing buffer to SurfaceTexture, -22
05-11 10:08:51.048 32757 409 I Adreno : QueueBuffer: queueBuffer failed
05-11 10:08:51.048 32757 409 E chromium: [ERROR:gles2_cmd_decoder.cc(15623)] Context lost because SwapBuffers failed.
05-11 10:08:51.048 32757 409 E chromium: [ERROR:gles2_cmd_decoder.cc(5327)] Error: 5 for Command kSwapBuffers
05-11 10:08:51.074 32692 32692 I chromium: [INFO:CONSOLE(217)] "Detecting faces: 811"
05-11 10:08:51.082 507 1478 E Parcel : dup() failed in Parcel::read, i is 0, fds[i] is -1, fd_count is 1, error: Bad file descriptor
05-11 10:08:51.082 507 1478 E BufferQueueProducer: [SurfaceView - org.chromium.chrome/org.chromium.chrome.browser.ChromeTabbedActivity] queueBuffer: fence is NULL
05-11 10:08:51.082 32757 409 E Surface : queueBuffer: error queuing buffer to SurfaceTexture, -22
05-11 10:08:51.082 32757 409 I Adreno : QueueBuffer: queueBuffer failed
05-11 10:08:51.082 32757 409 E chromium: [ERROR:gles2_cmd_decoder.cc(15623)] Context lost because SwapBuffers failed.
05-11 10:08:51.082 32757 409 E chromium: [ERROR:gles2_cmd_decoder.cc(5327)] Error: 5 for Command kSwapBuffers
05-11 10:08:51.135 32757 409 E Parcel : dup() failed in Parcel::read, i is 1, fds[i] is -1, fd_count is 2, error: Too many open files
05-11 10:08:51.135 32757 409 E Surface : dequeueBuffer: IGraphicBufferProducer::requestBuffer failed: -22
05-11 10:08:51.135 32757 409 I Adreno : DequeueBuffer: dequeueBuffer failed
05-11 10:08:51.151 32692 32692 I chromium: [INFO:CONSOLE(217)] "Detecting faces: 812"
05-11 10:08:51.160 32757 409 E chromium: [ERROR:shared_buffer_dispatcher.cc(239)] Unable to map: read_only0
05-11 10:08:51.167 32757 409 W Adreno-GSL: <gsl_ldd_control:477>: ioctl fd 32 code 0xc0140933 (IOCTL_KGSL_TIMESTAMP_EVENT) failed: errno 24 Too many open files
05-11 10:08:51.167 32757 409 W Adreno-GSL: <ioctl_kgsl_syncobj_create:3269>: (21, 8, 37240) fail 24 Too many open files
05-11 10:08:51.168 32757 409 E chromium: [ERROR:gl_fence_egl.cc(34)] Failed to get EGLSync attribute. error code:12300
05-11 10:08:51.170 32692 32692 I chromium: [INFO:CONSOLE(220)] "Uncaught (in promise) NotSupportedError: Face Detection not implemented."
05-11 10:08:51.638 664 787 I ThermalEngine: vs_get_temperature: read[0] tsens_tz_sensor15 57000 mC, weight[0] 1
05-11 10:08:51.639 664 787 I ThermalEngine: vs_get_temperature: read[1] tsens_tz_sensor0 59000 mC, weight[1] -1
Comment 1 by fbeaufort@chromium.org
, May 11 2017