android - EglCore.release() of grafika cause application to terminate on GT-I9500 -


i refered continuouscaptureactivity of grafika implement demo records video mediacodec. demo worked fine in cases, crashed on gt-i9500 device when key pressed ( crash undetectable because assumed activity destroyed, used 'adb shell ps' check existence of demo process ). checked source code repeatedly, found code same continuouscaptureactivity of grafika. did following things:

  1. i installed apk of grafika in gt-i9500 device , launched continuouscaptureactivity, pressed key of phone, application did not crash, turned out grafika worked fine.

  2. i checked code again , found nothing suspicious.

  3. i created new android project , copyed continuouscaptureactivity.java , other necessary files such androidmanifest.xml, activity_continuous_capture.xml on grafika new project. modified androidmanifest.xml make continuouscaptureactivity main activity. compiled code , installed apk on gt-i9500 device. the same thing happened, application crashed after pressed key!!!

i confused problem, why did grafika work fine same code in new project crashed? anyhow believe there solution crash of demo because grafika worked fine. give me advices?

information can offer follows:

  1. i debuged application , found exact code caused crash, code https://github.com/google/grafika/blob/master/src/com/android/grafika/gles/eglcore.java#l191

  2. the crash strage, there no tombstone file generated , adb log limited:

06-15 14:39:33.853 i/activitymanager( 771): process com.example.grafikaaa (pid 13138) (adj 1) has died.

06-15 14:39:33.853 w/activitymanager( 771): force removing activityrecord{42a876c8 u0 com.example.grafikaaa/.continuouscaptureactivity}: app died, no saved state .... ....

06-15 14:39:33.903 d/zygote ( 209): process 13138 terminated signal (11)

  1. information of device showed glesinfoactivity of grafika follows:
===== gl information =====   vendor    : qualcomm   version   : opengl es 3.0 v@45.0 au@  (cl@4169980)   renderer  : adreno (tm) 320   extensions:     gl_amd_compressed_atc_texture     gl_amd_performance_monitor     gl_amd_program_binary_z400     gl_ext_color_buffer_float     gl_ext_color_buffer_half_float     gl_ext_debug_label     gl_ext_debug_marker     gl_ext_discard_framebuffer     gl_ext_disjoint_timer_query     gl_ext_robustness     gl_ext_srgb     gl_ext_texture_filter_anisotropic     gl_ext_texture_format_bgra8888     gl_ext_texture_type_2_10_10_10_rev     gl_nv_fence     gl_oes_egl_image     gl_oes_egl_image_external     gl_oes_compressed_etc1_rgb8_texture     gl_oes_depth24     gl_oes_depth_texture     gl_oes_depth_texture_cube_map     gl_oes_element_index_uint     gl_oes_fbo_render_mipmap     gl_oes_fragment_precision_high     gl_oes_get_program_binary     gl_oes_packed_depth_stencil     gl_oes_rgb8_rgba8     gl_oes_standard_derivatives     gl_oes_texture_3d     gl_oes_texture_float     gl_oes_texture_half_float     gl_oes_texture_half_float_linear     gl_oes_texture_npot     gl_oes_vertex_array_object     gl_oes_vertex_half_float     gl_oes_vertex_type_10_10_10_2     gl_qcom_alpha_test     gl_qcom_binning_control     gl_qcom_driver_control     gl_qcom_extended_get     gl_qcom_extended_get2     gl_qcom_perfmon_global_mode     gl_qcom_tiled_rendering     gl_qcom_writeonly_rendering    ===== egl information =====   vendor    : android   version   : 1.4 android meta-egl   client api: opengl_es   extensions:     egl_android_image_native_buffer     egl_ext_create_context_robustness     egl_khr_create_context     egl_khr_fence_sync     egl_khr_gl_renderbuffer_image     egl_khr_gl_texture_2d_image     egl_khr_gl_texture_cubemap_image     egl_khr_image     egl_khr_image_base     egl_khr_lock_surface     egl_khr_wait_sync    ===== system information =====   mfgr      : samsung   brand     : samsung   model     : gt-i9500   release   : 4.3   build     : jss15j.i9500zsuemj6 


Comments

Popular posts from this blog

javascript - Google App Script ContentService downloadAsFile not working -

javascript - Function overwritting -

php - Find a regex to take part of Email -