Does Sentis require Valkan on Android device?

Does Sentis require Valkan on Android device?
I don’t see any output with OpenGLES3.1.
Valkan is crushing all the time so I was hoping to be able to run it with OpenGL.

Yeah Sentis works with OpenGL no worries there.
If there is a bug and your model doesn’t work on a given device/platform let us know we’ll debug it

Thank you for your reply!
I’m basically trying the model and code posted in the other thread
https://discussions.unity.com/t/onnx-model-giving-rank-3-output-how-can-i-convert-it-to-rank-4/296816
as well as a couple of more models (Fastdepth, SINet backgroupd subtruction).

So far I haven’t been able to get any output using OpenGLES3.1.
It drops FPS significantly so I’m sure its calculating something but the output is always empty.
When I use Valkan, it either runs ok or immediately crash.
In PC + webcam all the models run fine.


Valkan

OpenGLES3.1

I use Unity2022.3.4f1 + Sentis 1.2.0.
The build was tested on Pixel5a phone.
Here is Logcat result for OpenGL build

Do you have any suggestion to try?

Sorry red text in logcat image is compressed upon upload.
Here is the text copy of the logcat.

0001/01/01 00:00:00.000 -1 -1 Info  --------- beginning of main
2023/09/30 15:32:20.621 21670 21670 Info Yabusaka.PinArt Using CollectorTypeCC GC.
2023/09/30 15:32:20.648 21670 21670 Error Yabusaka.PinArt Not starting debugger since process cannot load the jdwp agent.
2023/09/30 15:32:20.707 21670 21670 Debug CompatibilityChangeReporter Compat change id reported: 171979766; UID 10308; state: ENABLED
2023/09/30 15:32:20.779 21670 21670 Info Yabusaka.PinArt Failed to add image file: Failed to find OatDexFile for DexFile /data/app/~~cYiVgQDQIYb_4kZef1K-Lg==/com.Yabusaka.PinArt-B87jMNlGx9Z5VyctXdmSQQ==/base.apk (canonical path /data/app/~~cYiVgQDQIYb_4kZef1K-Lg==/com.Yabusaka.PinArt-B87jMNlGx9Z5VyctXdmSQQ==/base.apk) in OatFile /data/app/~~8qy8SexZRTKUzdbgqUG9Hw==/com.Yabusaka.PinArt-oayC4b2716P5HS7Qe82gPA==/oat/arm/base.odex
2023/09/30 15:32:20.785 21670 21670 Debug nativeloader Configuring clns-4 for other apk /data/app/~~8qy8SexZRTKUzdbgqUG9Hw==/com.Yabusaka.PinArt-oayC4b2716P5HS7Qe82gPA==/base.apk. target_sdk_version=32, uses_libraries=, library_path=/data/app/~~8qy8SexZRTKUzdbgqUG9Hw==/com.Yabusaka.PinArt-oayC4b2716P5HS7Qe82gPA==/lib/arm:/data/app/~~8qy8SexZRTKUzdbgqUG9Hw==/com.Yabusaka.PinArt-oayC4b2716P5HS7Qe82gPA==/base.apk!/lib/armeabi-v7a, permitted_path=/data:/mnt/expand:/data/user/0/com.Yabusaka.PinArt
2023/09/30 15:32:20.799 21670 21670 Verbose GraphicsEnvironment ANGLE Developer option for 'com.Yabusaka.PinArt' set to: 'default'
2023/09/30 15:32:20.799 21670 21670 Verbose GraphicsEnvironment ANGLE GameManagerService for com.Yabusaka.PinArt: false
2023/09/30 15:32:20.799 21670 21670 Verbose GraphicsEnvironment Updatable production driver is not supported on the device.
2023/09/30 15:32:20.801 21670 21670 Debug NetworkSecurityConfig No Network Security Config specified, using platform default
2023/09/30 15:32:20.804 21670 21670 Debug NetworkSecurityConfig No Network Security Config specified, using platform default
2023/09/30 15:32:20.852 21670 21670 Info IL2CPP JNI_OnLoad
2023/09/30 15:32:20.879 21670 21670 Debug CompatibilityChangeReporter Compat change id reported: 237531167; UID 10308; state: DISABLED
2023/09/30 15:32:20.902 21670 21670 Error SurfaceSyncer Failed to find sync for id=0
2023/09/30 15:32:20.922 21670 21670 Warn AdrenoUtils <ReadGpuID_from_sysfs:197>: Failed to open /sys/class/kgsl/kgsl-3d0/gpu_model
2023/09/30 15:32:20.922 21670 21670 Warn AdrenoUtils <ReadGpuID:221>: Failed to read chip ID from gpu_model. Fallback to use the GSL path
2023/09/30 15:32:20.945 21670 21670 Error SurfaceSyncer Failed to find sync for id=0
2023/09/30 15:32:20.968 21670 21700 Info Unity MemoryManager: Using 'Dynamic Heap' Allocator.
2023/09/30 15:32:20.983 21670 21700 Info Unity SystemInfo CPU = ARM64 FP ASIMD AES, Cores = 8, Memory = 5462mb
2023/09/30 15:32:20.983 21670 21700 Info Unity SystemInfo ARM big.LITTLE configuration: 2 big (mask: 0xc0), 6 little (mask: 0x3f)
2023/09/30 15:32:20.983 21670 21700 Info Unity ApplicationInfo com.Yabusaka.PinArt version 0.1.0
2023/09/30 15:32:20.983 21670 21700 Info Unity Built from '2022.3/staging' branch, Version '2022.3.4f1 (35713cd46cd7)', Build type 'Release', Scripting Backend 'il2cpp', CPU 'armeabi-v7a', Stripping 'Enabled'
2023/09/30 15:32:21.182 21670 21700 Info Unity Company Name: Yabusaka
2023/09/30 15:32:21.182 21670 21700 Info Unity Product Name: PinArt
2023/09/30 15:32:21.196 21670 21700 Info AdrenoGLES-0 QUALCOMM build                   : 4783c89, I46ff5fc46f
2023/09/30 15:32:21.196 21670 21700 Info AdrenoGLES-0 Build Date                       : 11/30/20
2023/09/30 15:32:21.196 21670 21700 Info AdrenoGLES-0 OpenGL ES Shader Compiler Version: EV031.31.04.01
2023/09/30 15:32:21.196 21670 21700 Info AdrenoGLES-0 Local Branch                     : QPR2
2023/09/30 15:32:21.196 21670 21700 Info AdrenoGLES-0 Remote Branch                    : 
2023/09/30 15:32:21.196 21670 21700 Info AdrenoGLES-0 Remote Branch                    : 
2023/09/30 15:32:21.196 21670 21700 Info AdrenoGLES-0 Reconstruct Branch               : 
2023/09/30 15:32:21.196 21670 21700 Info AdrenoGLES-0 Build Config                     : S P 10.0.4 AArch32
2023/09/30 15:32:21.196 21670 21700 Info AdrenoGLES-0 Driver Path                      : /vendor/lib/egl/libGLESv2_adreno.so
2023/09/30 15:32:21.211 21670 21700 Info AdrenoGLES-0 PFP: 0x016dd093, ME: 0x00000000
2023/09/30 15:32:21.260 21670 21700 Debug Unity  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_variables GL_EXT_texture_b
2023/09/30 15:32:21.260 21670 21700 Debug Unity order_clamp GL_EXT_EGL_image_external_wrap_modes GL_EXT_multisampled_render_to_texture GL_EXT_multisampled_render_to_texture2 GL_OES_shader_multisample_interpolation GL_EXT_texture_cube_map_array GL_EXT_draw_buffers_indexed GL_EXT_gpu_shader5 GL_EXT_robustness GL_EXT_texture_buffer GL_EXT_shader_framebuffer_fetch GL_ARM_shader_framebuffer_fetch_depth_stencil GL_OES_texture_storage_multisample_2d_array GL_OES_sample_shading GL_OES_get_program_binary GL_EXT_debug_label GL_KHR_blend_equation_advanced GL_KHR_blend_equation_advanced_coherent GL_QCOM_tiled_rendering GL_ANDROID_extension_pack_es31a GL_EXT_primitive_bounding_box GL_OES_standard_derivatives GL_OES_vertex_array_object GL_EXT_disjoint_timer_query GL_KHR_debug GL_EXT_YUV_target GL_EXT_sRGB_write_control GL_EXT_texture_norm16 GL_EXT_discard_framebuffer GL_OES_surfaceless_context GL_OVR_multiview GL_OVR_multiview2 GL_EXT_texture_sRGB_R8 GL_KHR_no_error GL_EXT_debug_marker GL_OES_EGL_image_external_essl3 GL_OVR_multiview_multisampled_render_to_texture GL_E
2023/09/30 15:32:21.260 21670 21700 Debug Unity XT_buffer_storage GL_EXT_external_buffer GL_EXT_blit_framebuffer_params GL_EXT_clip_cull_distance GL_EXT_protected_textures GL_EXT_shader_non_constant_global_initializers GL_QCOM_texture_foveated GL_QCOM_texture_foveated_subsampled_layout GL_QCOM_shader_framebuffer_fetch_noncoherent GL_QCOM_shader_framebuffer_fetch_rate GL_EXT_memory_object GL_EXT_memory_object_fd GL_EXT_EGL_image_array GL_NV_shader_noperspective_interpolation GL_KHR_robust_buffer_access_behavior GL_EXT_EGL_image_storage GL_EXT_blend_func_extended GL_EXT_clip_control GL_OES_texture_view GL_EXT_fragment_invocation_density GL_QCOM_motion_estimation GL_QCOM_validate_shader_binary GL_QCOM_YUV_texture_gather
2023/09/30 15:32:21.265 21670 21700 Error libEGL eglGetFrameTimestampSupportedANDROIDImpl:2382 error 300d (EGL_BAD_SURFACE)
2023/09/30 15:32:21.281 21670 21700 Debug Yabusaka.PinArt PlayerBase::PlayerBase()
2023/09/30 15:32:21.281 21670 21700 Debug Yabusaka.PinArt TrackPlayerBase::TrackPlayerBase()
2023/09/30 15:32:21.281 21670 21700 Info libOpenSLES Emulating old channel mask behavior (ignoring positional mask 0x3, using default mask 0x3 based on channel count of 2)
2023/09/30 15:32:21.281 21670 21700 Warn AudioTrack set(): notificationFrames=-21 clamped to the range -1 to -8
2023/09/30 15:32:21.290 21670 21700 Info AudioTrack createTrack_l(0): AUDIO_OUTPUT_FLAG_FAST successful; frameCount 0 -> 768
2023/09/30 15:32:21.413 21670 21700 Warn Unity The referenced script (Unknown) on this Behaviour is missing!
2023/09/30 15:32:21.414 21670 21700 Warn Unity The referenced script on this Behaviour (Game Object '<null>') is missing!
2023/09/30 15:32:21.438 21670 21700 Info IL2CPP Locale ja-JP
2023/09/30 15:32:21.505 21670 21700 Verbose MediaRouter Selecting route: RouteInfo{ name=モバイル デバイス, description=null, status=null, category=RouteCategory{ name=システム types=ROUTE_TYPE_LIVE_AUDIO ROUTE_TYPE_LIVE_VIDEO  groupable=false }, supportedTypes=ROUTE_TYPE_LIVE_AUDIO ROUTE_TYPE_LIVE_VIDEO , presentationDisplay=null }
2023/09/30 15:32:21.505 21670 21700 Info MediaRouter Skip setBluetoothA2dpOn(): types=8388615, isPlaybackActive()=true, BT route=null
2023/09/30 15:32:21.614 21670 21700 Info CameraManagerGlobal Connecting to camera service

Ah I think I might see what the issue is.
We probably can’t do a async gpu readback on a old version of android…
I’ll do some tests

1 Like

Awesome thank you for looking into it.

1 Like

Any update on this?
Do you have any suggestion on which ver. of Android to use?

Hey sorry, haven’t had time to look into this.
To speed things up, it would help us a lot if you submit a bug report with the test project and the repro setps + hardware you are using…