nimiq / qr-scanner

Lightweight Javascript QR Code Scanner
https://nimiq.github.io/qr-scanner/demo
MIT License
2.35k stars 509 forks source link

Camera recognized but green screen in <video> Element #233

Open m0veax opened 1 year ago

m0veax commented 1 year ago

Hi,

since a few days I'm facing the following Issue on some devices we use here for our Application. To determine that the error is not in our Coding, i reproduced the Error using your Demo Page.

Sadly I can't fix that Issue by myself.

Device: Samsung Tab Active2 (Android 9)

Steps to reproduce:

Open Chrome (112.0.5615.135) visit the Demo Website.

Get following output:

image

Flash function does work and he recognizes the front and the back camera. No errors in JS Console found.

I tried different Versions of this library but the error is occuring since 20.04. or 21.04. this year. I had many Users without that Problem before.

Here is a Logcat output gathered per "adb logcat":

04-27 09:34:07.820  3006 12466 D ExynosCamera3: [CAM_ID(0)][]-DEBUG(processCaptureRequest[1695]):Capture request (1987) #out(1)
04-27 09:34:07.879  3006 12466 D ExynosCamera3: [CAM_ID(0)][]-DEBUG(processCaptureRequest[1695]):Capture request (1988) #out(1)
04-27 09:34:07.909  1352  6652 I System.out: (HTTPLog)-Static: isSBSettingEnabled false
04-27 09:34:07.909  1352  6652 I System.out: (HTTPLog)-Static: isSBSettingEnabled false
04-27 09:34:07.911  3023  3149 D EnterpriseController: netId is 0
04-27 09:34:07.911  3023  3149 E Netd    : getNetworkForDns: getNetId from enterpriseCtrl is netid 0
04-27 09:34:07.911  3023  3149 D DnsProxyListener: DNSDBG::dns addrinfo af 2
04-27 09:34:07.923  1352  6652 D NetworkManagementSocketTagger: tagSocket(70) with statsTag=0xffffffff, statsUid=-1
04-27 09:34:07.929  2875  2875 I lmkd    : 2(delay),63(swap), 0(freelimit) memory pressure events were skipped after a kill!
04-27 09:34:07.939  3006 12466 D ExynosCamera3: [CAM_ID(0)][]-DEBUG(processCaptureRequest[1695]):Capture request (1989) #out(1)
04-27 09:34:07.984  5353  5353 I SKBD    : alm isTosAccept false
04-27 09:34:07.999  3006 12466 D ExynosCamera3: [CAM_ID(0)][]-DEBUG(processCaptureRequest[1695]):Capture request (1990) #out(1)
04-27 09:34:08.060  3006 12466 D ExynosCamera3: [CAM_ID(0)][]-DEBUG(processCaptureRequest[1695]):Capture request (1991) #out(1)
04-27 09:34:08.119  3006 12466 D ExynosCamera3: [CAM_ID(0)][]-DEBUG(processCaptureRequest[1695]):Capture request (1992) #out(1)
04-27 09:34:08.179  3006 12466 D ExynosCamera3: [CAM_ID(0)][]-DEBUG(processCaptureRequest[1695]):Capture request (1993) #out(1)
04-27 09:34:08.185  5353  5353 I SKBD    : alm isTosAccept false
04-27 09:34:08.193  2877  2877 E FrameEvents: addLatch: Did not find frame.
04-27 09:34:08.193  2877  2877 E FrameEvents: addPreComposition: Did not find frame.
04-27 09:34:08.195  3368  3530 D WifiTrafficPoller: TrafficStats TxPkts=2376070 RxPkts=885401 TxBytes=2240070033 RxBytes=406476750 , Foreground uid=10104 pkgName=com.android.chrome TxPackets=35245 RxPackets=41649 TxBytes=4645179 RxBytes=46510604
04-27 09:34:08.197  3684  3684 D SecStatusBarWifiView: updateState: WifiIconState(resId=2131232699, visible=true, activityId=2131232707)
04-27 09:34:08.198  3684  3684 D SecStatusBarWifiView: updateState: WifiIconState(resId=2131232699, visible=true, activityId=2131232707)
04-27 09:34:08.239  3006 12466 D ExynosCamera3: [CAM_ID(0)][]-DEBUG(processCaptureRequest[1695]):Capture request (1994) #out(1)
04-27 09:34:08.299  3006 12466 D ExynosCamera3: [CAM_ID(0)][]-DEBUG(processCaptureRequest[1695]):Capture request (1995) #out(1)
04-27 09:34:08.358  3006 12466 D ExynosCamera3: [CAM_ID(0)][]-DEBUG(processCaptureRequest[1695]):Capture request (1996) #out(1)
04-27 09:34:08.385  5353  5353 I SKBD    : alm isTosAccept false
04-27 09:34:08.419  3006 12466 D ExynosCamera3: [CAM_ID(0)][]-DEBUG(processCaptureRequest[1695]):Capture request (1997) #out(1)
04-27 09:34:08.479  3006 12466 D ExynosCamera3: [CAM_ID(0)][]-DEBUG(processCaptureRequest[1695]):Capture request (1998) #out(1)
04-27 09:34:08.538  3006 12466 D ExynosCamera3: [CAM_ID(0)][]-DEBUG(processCaptureRequest[1695]):Capture request (1999) #out(1)
04-27 09:34:08.586  5353  5353 I SKBD    : alm isTosAccept false
04-27 09:34:08.592 17412 17483 E libEGL  : eglGetFrameTimestampsANDROID:2728 error 3002 (EGL_BAD_ACCESS)
04-27 09:34:08.593 17412 17483 E chromium: [ERROR:gl_display.cc(504)] EGL Driver message (Error) eglGetFrameTimestampsANDROID: eglGetFrameTimestampsANDROID failed
04-27 09:34:08.593 17412 17483 E libEGL  : eglGetFrameTimestampsANDROID:2728 error 3002 (EGL_BAD_ACCESS)
04-27 09:34:08.593 17412 17483 E chromium: [ERROR:gl_display.cc(504)] EGL Driver message (Error) eglGetFrameTimestampsANDROID: eglGetFrameTimestampsANDROID failed
04-27 09:34:08.598  3006 12466 D ExynosCamera3: [CAM_ID(0)][]-DEBUG(processCaptureRequest[1695]):Capture request (2000) #out(1)
04-27 09:34:08.659  3006 12466 D ExynosCamera3: [CAM_ID(0)][]-DEBUG(processCaptureRequest[1695]):Capture request (2001) #out(1)
04-27 09:34:08.717  3006 12466 D ExynosCamera3: [CAM_ID(0)][]-DEBUG(processCaptureRequest[1695]):Capture request (2002) #out(1)
04-27 09:34:08.777  3006 12466 D ExynosCamera3: [CAM_ID(0)][]-DEBUG(processCaptureRequest[1695]):Capture request (2003) #out(1)
04-27 09:34:08.786  5353  5353 I SKBD    : alm isTosAccept false
04-27 09:34:08.839  3006 12466 D ExynosCamera3: [CAM_ID(0)][]-DEBUG(processCaptureRequest[1695]):Capture request (2004) #out(1)
04-27 09:34:08.880 17412 17422 W cr_HandleImpl: Handle was not closed.
04-27 09:34:08.897 17412 17422 I chatty  : uid=10104(com.android.chrome) FinalizerDaemon identical 33 lines
04-27 09:34:08.898 17412 17422 W cr_HandleImpl: Handle was not closed.
04-27 09:34:08.898  3006 12466 D ExynosCamera3: [CAM_ID(0)][]-DEBUG(processCaptureRequest[1695]):Capture request (2005) #out(1)
04-27 09:34:08.898 17412 17422 W cr_HandleImpl: Handle was not closed.
04-27 09:34:08.900 17412 17422 I chatty  : uid=10104(com.android.chrome) FinalizerDaemon identical 3 lines
04-27 09:34:08.900 17412 17422 W cr_HandleImpl: Handle was not closed.
04-27 09:34:08.957  3006 12466 D ExynosCamera3: [CAM_ID(0)][]-DEBUG(processCaptureRequest[1695]):Capture request (2006) #out(1)
04-27 09:34:08.987  5353  5353 I SKBD    : alm isTosAccept false
04-27 09:34:09.018  3006 12466 D ExynosCamera3: [CAM_ID(0)][]-DEBUG(processCaptureRequest[1695]):Capture request (2007) #out(1)
04-27 09:34:09.078  3006 12466 D ExynosCamera3: [CAM_ID(0)][]-DEBUG(processCaptureRequest[1695]):Capture request (2008) #out(1)
04-27 09:34:09.137  3006 12466 D ExynosCamera3: [CAM_ID(0)][]-DEBUG(processCaptureRequest[1695]):Capture request (2009) #out(1)
04-27 09:34:09.187  5353  5353 I SKBD    : alm isTosAccept false
04-27 09:34:09.198  3006 12466 D ExynosCamera3: [CAM_ID(0)][]-DEBUG(processCaptureRequest[1695]):Capture request (2010) #out(1)
04-27 09:34:09.203  3684  3684 D SecStatusBarWifiView: updateState: WifiIconState(resId=2131232699, visible=true, activityId=2131232726)
04-27 09:34:09.204  3684  3684 D SecStatusBarWifiView: updateState: WifiIconState(resId=2131232699, visible=true, activityId=2131232726)
04-27 09:34:09.258  3006 12466 D ExynosCamera3: [CAM_ID(0)][]-DEBUG(processCaptureRequest[1695]):Capture request (2011) #out(1)
04-27 09:34:09.317  3006 12466 D ExynosCamera3: [CAM_ID(0)][]-DEBUG(processCaptureRequest[1695]):Capture request (2012) #out(1)
04-27 09:34:09.376  3006 12466 D ExynosCamera3: [CAM_ID(0)][]-DEBUG(processCaptureRequest[1695]):Capture request (2013) #out(1)
04-27 09:34:09.387  5353  5353 I SKBD    : alm isTosAccept false
04-27 09:34:09.437  3006 12466 D ExynosCamera3: [CAM_ID(0)][]-DEBUG(processCaptureRequest[1695]):Capture request (2014) #out(1)
04-27 09:34:09.498  3006 12466 D ExynosCamera3: [CAM_ID(0)][]-DEBUG(processCaptureRequest[1695]):Capture request (2015) #out(1)
04-27 09:34:09.557  3006 12466 D ExynosCamera3: [CAM_ID(0)][]-DEBUG(processCaptureRequest[1695]):Capture request (2016) #out(1)
04-27 09:34:09.587  5353  5353 I SKBD    : alm isTosAccept false
04-27 09:34:09.618  3006 12466 D ExynosCamera3: [CAM_ID(0)][]-DEBUG(processCaptureRequest[1695]):Capture request (2017) #out(1)
04-27 09:34:09.678  3006 12466 D ExynosCamera3: [CAM_ID(0)][]-DEBUG(processCaptureRequest[1695]):Capture request (2018) #out(1)
04-27 09:34:09.737  3006 12466 D ExynosCamera3: [CAM_ID(0)][]-DEBUG(processCaptureRequest[1695]):Capture request (2019) #out(1)
04-27 09:34:09.788  5353  5353 I SKBD    : alm isTosAccept false
04-27 09:34:09.796  3006 12466 D ExynosCamera3: [CAM_ID(0)][]-DEBUG(processCaptureRequest[1695]):Capture request (2020) #out(1)
04-27 09:34:09.856  3006 12466 D ExynosCamera3: [CAM_ID(0)][]-DEBUG(processCaptureRequest[1695]):Capture request (2021) #out(1)
04-27 09:34:09.917  3006 12466 D ExynosCamera3: [CAM_ID(0)][]-DEBUG(processCaptureRequest[1695]):Capture request (2022) #out(1)
04-27 09:34:09.976  3006 12466 D ExynosCamera3: [CAM_ID(0)][]-DEBUG(processCaptureRequest[1695]):Capture request (2023) #out(1)
04-27 09:34:09.988  5353  5353 I SKBD    : alm isTosAccept false
04-27 09:34:10.035  3006 12466 D ExynosCamera3: [CAM_ID(0)][]-DEBUG(processCaptureRequest[1695]):Capture request (2024) #out(1)
04-27 09:34:10.096  3006 12466 D ExynosCamera3: [CAM_ID(0)][]-DEBUG(processCaptureRequest[1695]):Capture request (2025) #out(1)
04-27 09:34:10.155  3006 12466 D ExynosCamera3: [CAM_ID(0)][]-DEBUG(processCaptureRequest[1695]):Capture request (2026) #out(1)
04-27 09:34:10.189  5353  5353 I SKBD    : alm isTosAccept false
04-27 09:34:10.215  3006 12466 D ExynosCamera3: [CAM_ID(0)][]-DEBUG(processCaptureRequest[1695]):Capture request (2027) #out(1)
04-27 09:34:10.276  3006 12466 D ExynosCamera3: [CAM_ID(0)][]-DEBUG(processCaptureRequest[1695]):Capture request (2028) #out(1)
04-27 09:34:10.335  3006 12466 D ExynosCamera3: [CAM_ID(0)][]-DEBUG(processCaptureRequest[1695]):Capture request (2029) #out(1)
04-27 09:34:10.389  5353  5353 I SKBD    : alm isTosAccept false
04-27 09:34:10.395  3006 12466 D ExynosCamera3: [CAM_ID(0)][]-DEBUG(processCaptureRequest[1695]):Capture request (2030) #out(1)
04-27 09:34:10.455  3006 12466 D ExynosCamera3: [CAM_ID(0)][]-DEBUG(processCaptureRequest[1695]):Capture request (2031) #out(1)
04-27 09:34:10.515  3006 12466 D ExynosCamera3: [CAM_ID(0)][]-DEBUG(processCaptureRequest[1695]):Capture request (2032) #out(1)
04-27 09:34:10.525  3368  3531 D WifiStateMachine: enter getWifiLinkLayerStats
04-27 09:34:10.525  3368  3531 I WifiVendorHal: getWifiLinkLayerStats(l.3095) before calling iface.getLinkLayerStats
04-27 09:34:10.526  2865  2865 I android.hardware.wifi@1.0-service: enter getLinkLayerStats
04-27 09:34:10.526  2865  2865 I android.hardware.wifi@1.0-service: enter getLinkLayerStatsInternal
04-27 09:34:10.531  2865  2865 I android.hardware.wifi@1.0-service: Successfully getLinkLayerStats.
04-27 09:34:10.531  3368  3531 I WifiVendorHal: getWifiLinkLayerStats(l.3095) after calling iface.getLinkLayerStats
04-27 09:34:10.537  3368  3531 I WifiStateMachine: checkScoreBasedQuality -  mPreviousScore[0]:70 mPreviousScore[1]:70 mPreviousScore[2]:69 s2Score:70mPrevoiusScoreAverage:69
04-27 09:34:10.574  3006 12466 D ExynosCamera3: [CAM_ID(0)][]-DEBUG(processCaptureRequest[1695]):Capture request (2033) #out(1)
04-27 09:34:10.589  5353  5353 I SKBD    : alm isTosAccept false
04-27 09:34:10.623  2877  2877 E FrameEvents: addLatch: Did not find frame.
04-27 09:34:10.623  2877  2877 E FrameEvents: addPreComposition: Did not find frame.
04-27 09:34:10.636  3006 12466 D ExynosCamera3: [CAM_ID(0)][]-DEBUG(processCaptureRequest[1695]):Capture request (2034) #out(1)
04-27 09:34:10.695  3006 12466 D ExynosCamera3: [CAM_ID(0)][]-DEBUG(processCaptureRequest[1695]):Capture request (2035) #out(1)
04-27 09:34:10.752  4635  4635 D io_stats: !@ 179,0 r 2417818 98662088 w 1010098 15363372 d 63435 7165744 f 272106 271847 iot 1846860 1825726 th 51200 0 0 pt 0 inp 0 0 88161.034
04-27 09:34:10.755  3006 12466 D ExynosCamera3: [CAM_ID(0)][]-DEBUG(processCaptureRequest[1695]):Capture request (2036) #out(1)
04-27 09:34:10.790  5353  5353 I SKBD    : alm isTosAccept false
04-27 09:34:10.796  3368  5694 I EDMNativeHelperService: isCameraEnabled
04-27 09:34:10.798  3368  5694 D RestrictionPolicy: isCameraEnabled ret(true) userId(0) cxtInfo.mCallerUid(10104) cxtInfo.mContainerId(0)
04-27 09:34:10.814  3006 12466 D ExynosCamera3: [CAM_ID(0)][]-DEBUG(processCaptureRequest[1695]):Capture request (2037) #out(1)
04-27 09:34:10.858 17412 17483 E libEGL  : eglGetFrameTimestampsANDROID:2728 error 3002 (EGL_BAD_ACCESS)
04-27 09:34:10.859 17412 17483 E chromium: [ERROR:gl_display.cc(504)] EGL Driver message (Error) eglGetFrameTimestampsANDROID: eglGetFrameTimestampsANDROID failed
04-27 09:34:10.875  3006 12466 D ExynosCamera3: [CAM_ID(0)][]-DEBUG(processCaptureRequest[1695]):Capture request (2038) #out(1)
04-27 09:34:10.934  3006 12466 D ExynosCamera3: [CAM_ID(0)][]-DEBUG(processCaptureRequest[1695]):Capture request (2039) #out(1)

It looks like "ExynosCamera3" is spamming those logs. But i don't have enough Knowledge to gather further informations here.

If you need any kind of informations or if I can support you in solving this Issue, please ping me here.

Thanks in Advance for your help.

Best Regards

Patrick