MR-MaoJiu/beauty_cam

Camera view render on UI problem

Opened this issue · 0 comments

I am getting camera view render problem on Ui in vivo and some samsung models other devices its working fine. Please provide any solution or work arround,, I tried with your github example
Butwhen I go to backgroound and then come to foreground then view render perfectly
Here is the logs

Performing hot restart...
Syncing files to device vivo 1804...
V/Camera (32356): sendReleaseCameraBroadCast isNormalCamera = true
I/libCGE_java(32356): glsurfaceview onPause in...
I/libCGE_java(32356): glsurfaceview onPause out...
E/BufferQueueProducer(32356): [SurfaceTexture-0-32356-2] disconnect: not connected (req=1)
Restarted application in 2,563ms.
I/libCGE_java(32356): View port: 0, 0, 0, 0
I/libCGE_java(32356): presetRecordingSize: 1080x1920
I/PlatformViewsController(32356): Hosting view in a virtual display for platform view: 0
I/PlatformViewsController(32356): PlatformView is using SurfaceTexture backend
E/BufferQueueProducer(32356): [SurfaceTexture-0-32356-4] connect: already connected (cur=1 req=1)
I/PhoneWindow(32356): initSystemUIColor
W/libCGE (32356): ===== Here are some information of your device =====
W/libCGE (32356):
W/libCGE (32356): GL_INFO Vendor = Qualcomm
W/libCGE (32356): GL_INFO Renderer = Adreno (TM) 512
W/libCGE (32356): GL_INFO GL Version = OpenGL ES 3.2 V@415.0 (GIT@a9b95c8, Ia11ce2d146, 1599237616) (Date:09/04/20)
W/libCGE (32356): GL_INFO GL Extension = GL_OES_EGL_image GL_OES_EGL_image_external GL_OES_EGL_sync GL_OES_vertex_half_float GL_OES_framebuffer_object GL_OES_rgb8_rgba8 GL_OES_compressed_ETC1_RGB8_texture GL_AMD_compressed_ATC_texture GL_KHR_texture_compression_astc_ldr GL_KHR_texture_compression_astc_hdr GL_OES_texture_compression_astc GL_OES_texture_npot GL_EXT_texture_filter_anisotropic GL_EXT_texture_format_BGRA8888 GL_EXT_read_format_bgra GL_OES_texture_3D GL_EXT_color_buffer_float GL_EXT_color_buffer_half_float GL_QCOM_alpha_test GL_OES_depth24 GL_OES_packed_depth_stencil GL_OES_depth_texture GL_OES_depth_texture_cube_map GL_EXT_sRGB GL_OES_texture_float GL_OES_texture_float_linear GL_OES_texture_half_float GL_OES_texture_half_float_linear GL_EXT_texture_type_2_10_10_10_REV GL_EXT_texture_sRGB_decode GL_EXT_texture_format_sRGB_override GL_OES_element_index_uint GL_EXT_copy_image GL_EXT_geometry_shader GL_EXT_tessellation_shader GL_OES_texture_stencil8 GL_EXT_shader_io_blocks GL_OES_shader_image_atomic GL_OES_sample_vari
W/libCGE (32356): GL_INFO Shading Language Version = OpenGL ES GLSL ES 3.20
W/libCGE (32356): Max Vertex Uniform Vectors: 1024
W/libCGE (32356): Max Fragment Uniform Vectors : 1024
W/libCGE (32356): Max Varying Vectors: 124
W/libCGE (32356): Max Texture Image Units : 16
W/libCGE (32356): Max Combined Texture Image Units : 96
W/libCGE (32356): Max Texture Size : 16384
W/libCGE (32356): Max Vertex Attribs: 32
W/libCGE (32356): Max Viewport Dims : [16384, 16384]
W/libCGE (32356): Max Render Buffer Size: 16384
W/libCGE (32356): Stencil Buffer Bits : 0
W/libCGE (32356): Point Size Range: [1, 1023]
W/libCGE (32356): Line Width Range: [1, 8]
W/libCGE (32356): Depth Bits: 0
W/libCGE (32356):
W/libCGE (32356): ===== Information end =====
W/libCGE (32356):
I/libCGE_java(32356): onSurfaceCreated...
I/libCGE_java(32356): view onCreate
I/libCGE_java(32356): onSurfaceChanged: 1080 x 2214
I/libCGE_java(32356): View port: -82, 0, 1245, 2214
I/libCGE_java(32356): try open camera...
E/libc (32356): Access denied finding property "vendor.camera.aux.packagelist"
W/com.example.beauty_cam_example(32356): type=1400 audit(0.0:10826194): avc: denied { read } for comm=474C5468726561642037303235 name="u:object_r:persist_camera_prop:s0" dev="tmpfs" ino=19486 scontext=u:r:untrusted_app:s0:c102,c257,c512,c768 tcontext=u:object_r:persist_camera_prop:s0 tclass=file permissive=0
E/libc (32356): Access denied finding property "vendor.camera.aux.packagelist"
W/com.example.beauty_cam_example(32356): type=1400 audit(0.0:10826195): avc: denied { read } for comm=474C5468726561642037303235 name="u:object_r:persist_camera_prop:s0" dev="tmpfs" ino=19486 scontext=u:r:untrusted_app:s0:c102,c257,c512,c768 tcontext=u:object_r:persist_camera_prop:s0 tclass=file permissive=0
E/libc (32356): Access denied finding property "vendor.camera.aux.packagelist"
W/com.example.beauty_cam_example(32356): type=1400 audit(0.0:10826196): avc: denied { read } for comm=474C5468726561642037303235 name="u:object_r:persist_camera_prop:s0" dev="tmpfs" ino=19486 scontext=u:r:untrusted_app:s0:c102,c257,c512,c768 tcontext=u:object_r:persist_camera_prop:s0 tclass=file permissive=0
E/libc (32356): Access denied finding property "vendor.camera.aux.packagelist"
E/libc (32356): Access denied finding property "vendor.camera.hal1.packagelist"
D/Camera-JNI(32356): android_hardware_Camera_native_setup before halVersion -2
D/Camera-JNI(32356): now pre halVersion:-2,now change to -2
D/Camera-JNI(32356): android_hardware_Camera_native_setup after halVersion -2
W/com.example.beauty_cam_example(32356): type=1400 audit(0.0:10826198): avc: denied { read } for comm=474C5468726561642037303235 name="u:object_r:vendor_default_prop:s0" dev="tmpfs" ino=19532 scontext=u:r:untrusted_app:s0:c102,c257,c512,c768 tcontext=u:object_r:vendor_default_prop:s0 tclass=file permissive=0
V/Camera (32356): isNormalCamera packageName = com.example.beauty_cam_example
V/Camera (32356): isTopActivity
I/Camera (32356): isTopActivity: pkgname: com.example.beauty_cam_example
V/Camera (32356): isNormalCamera isTopActivity true
I/libCGE_java(32356): Camera opened!
V/Camera (32356): sendOpenCameraBroadCast isNormalCamera = true
I/libCGE_java(32356): Picture Format: 100
I/libCGE_java(32356): Supported picture size: 5760 x 4320
I/libCGE_java(32356): Supported picture size: 5760 x 3248
I/libCGE_java(32356): Supported picture size: 5760 x 2672
I/libCGE_java(32356): Supported picture size: 5120 x 3840
I/libCGE_java(32356): Supported picture size: 4608 x 3456
I/libCGE_java(32356): Supported picture size: 4160 x 3120
I/libCGE_java(32356): Supported picture size: 4032 x 3024
I/libCGE_java(32356): Supported picture size: 4032 x 2268
I/libCGE_java(32356): Supported picture size: 3840 x 2160
I/libCGE_java(32356): Supported picture size: 3264 x 2448
I/libCGE_java(32356): Supported picture size: 2816 x 2112
I/libCGE_java(32356): Supported picture size: 2560 x 1920
I/libCGE_java(32356): Supported picture size: 2560 x 1440
I/libCGE_java(32356): Supported picture size: 2304 x 1728
I/libCGE_java(32356): Supported picture size: 2304 x 1296
I/libCGE_java(32356): Supported picture size: 1920 x 1080
I/libCGE_java(32356): Supported picture size: 1600 x 1200
I/libCGE_java(32356): Supported picture size: 1440 x 1080
I/libCGE_java(32356): Supported picture size: 1280 x 960
I/libCGE_java(32356): Supported picture size: 1280 x 720
I/libCGE_java(32356): Supported picture size: 1024 x 768
I/libCGE_java(32356): Supported picture size: 800 x 600
I/libCGE_java(32356): Supported picture size: 800 x 480
I/libCGE_java(32356): Supported picture size: 720 x 480
I/libCGE_java(32356): Supported picture size: 640 x 480
I/libCGE_java(32356): Supported picture size: 640 x 360
I/libCGE_java(32356): Supported picture size: 384 x 216
I/libCGE_java(32356): Supported picture size: 320 x 240
I/libCGE_java(32356): Supported preview size: 2280 x 1080
I/libCGE_java(32356): Supported preview size: 1920 x 1080
I/libCGE_java(32356): Supported preview size: 1440 x 1080
I/libCGE_java(32356): Supported preview size: 1280 x 960
I/libCGE_java(32356): Supported preview size: 1280 x 720
I/libCGE_java(32356): Supported preview size: 1024 x 768
I/libCGE_java(32356): Supported preview size: 960 x 540
I/libCGE_java(32356): Supported preview size: 800 x 480
I/libCGE_java(32356): Supported preview size: 768 x 432
I/libCGE_java(32356): Supported preview size: 720 x 480
I/libCGE_java(32356): Supported preview size: 640 x 480
I/libCGE_java(32356): Supported preview size: 352 x 288
I/libCGE_java(32356): Supported preview size: 320 x 240
I/libCGE_java(32356): Supported preview size: 176 x 144
I/libCGE_java(32356): Supported frame rate: 7
I/libCGE_java(32356): Supported frame rate: 8
I/libCGE_java(32356): Supported frame rate: 9
I/libCGE_java(32356): Supported frame rate: 10
I/libCGE_java(32356): Supported frame rate: 11
I/libCGE_java(32356): Supported frame rate: 12
I/libCGE_java(32356): Supported frame rate: 13
I/libCGE_java(32356): Supported frame rate: 14
I/libCGE_java(32356): Supported frame rate: 15
I/libCGE_java(32356): Supported frame rate: 16
I/libCGE_java(32356): Supported frame rate: 17
I/libCGE_java(32356): Supported frame rate: 18
I/libCGE_java(32356): Supported frame rate: 19
I/libCGE_java(32356): Supported frame rate: 20
I/libCGE_java(32356): Supported frame rate: 21
I/libCGE_java(32356): Supported frame rate: 22
I/libCGE_java(32356): Supported frame rate: 23
I/libCGE_java(32356): Supported frame rate: 24
I/libCGE_java(32356): Supported frame rate: 25
I/libCGE_java(32356): Supported frame rate: 26
I/libCGE_java(32356): Supported frame rate: 27
I/libCGE_java(32356): Supported frame rate: 28
I/libCGE_java(32356): Supported frame rate: 29
I/libCGE_java(32356): Supported frame rate: 30
I/libCGE_java(32356): Camera Picture Size: 2816 x 2112
I/libCGE_java(32356): Camera Preview Size: 1920 x 1080
I/libCGE_java(32356): tryOpenCamera OK...
I/libCGE_java(32356): Camera startPreview...
V/Camera (32356): sendStartPreviewBroadCast
IMG_8606