armory3d / armory3d/armory

Legacy Shaders not working on Android

Open
#1,445 3 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
C++
Stars
3.3k
Forks
353
Avg merge
3d 16h
Merged PRs (30d)
1

Description

ZTE BLADE A5 PRO (Android 5.0.1, opengl es 2.0)

10/25 20:12:43: Launching 'app' on ZTE ZTE BLADE A5 PRO.
$ adb shell am start -n "tech.kode.kore/tech.kode.kore.KoreActivity" -a android.intent.action.MAIN -c android.intent.category.LAUNCHER
Connected to process 29721 on device 'zte-zte_blade_a5_pro-900501921622'.
Capturing and displaying logcat messages from application. This behavior can be disabled in the "Logcat output" section of the "Debugger" settings page.
V/Activity: calling onCraete for activity: tech.kode.kore
W/ContextImpl: Failed to ensure directory: /storage/sdcard0/Android/obb/tech.kode.kore
W/ContextImpl: Failed to ensure directory: /storage/sdcard0/Android/data/tech.kode.kore/files
V/threaded_app: Creating: 0xadc48d40
V/threaded_app: Config: mcc=0 mnc=0 lang=ru cnt=RU orien=1 touch=3 dens=240 keys=1 nav=1 keysHid=3 navHid=0 sdk=21 size=2 long=2 modetype=1 modenight=1
V/threaded_app: Start: 0xadc48d40
I/: JNIHelper has not been initialized. Call init() to initialize the helper
V/threaded_app: activityState=10
V/Activity: calling onResume for activity: tech.kode.kore
V/threaded_app: Resume: 0xadc48d40
V/threaded_app: activityState=11
V/threaded_app: InputQueueCreated: 0xadc48d40 -- 0xadc39d40
V/threaded_app: APP_CMD_INPUT_CHANGED
Attaching input queue to looper
V/threaded_app: NativeWindowCreated: 0xadc48d40 -- 0xb0248f08
V/threaded_app: APP_CMD_INIT_WINDOW
V/threaded_app: WindowFocusChanged: 0xadc48d40 -- 1
I/Kinc: Starting KoreHL
E/Kinc: GL Error 1282 D:\SOFT\DEV\Armory3d\ArmorySDK\Kha\Kinc\Backends\Graphics4\OpenGL\Sources\Kore\PipelineStateImpl.c 392
W/Kinc: Uniform projectionMatrix not found.
E/Kinc: GL Error 1282 D:\SOFT\DEV\Armory3d\ArmorySDK\Kha\Kinc\Backends\Graphics4\OpenGL\Sources\Kore\PipelineStateImpl.c 410
E/Kinc: GL Error 1282 D:\SOFT\DEV\Armory3d\ArmorySDK\Kha\Kinc\Backends\Graphics4\OpenGL\Sources\Kore\PipelineStateImpl.c 392
W/Kinc: Uniform projectionMatrix not found.
E/Kinc: GL Error 1282 D:\SOFT\DEV\Armory3d\ArmorySDK\Kha\Kinc\Backends\Graphics4\OpenGL\Sources\Kore\PipelineStateImpl.c 410
GL Error 1282 D:\SOFT\DEV\Armory3d\ArmorySDK\Kha\Kinc\Backends\Graphics4\OpenGL\Sources\Kore\PipelineStateImpl.c 392
W/Kinc: Uniform projectionMatrix not found.
E/Kinc: GL Error 1282 D:\SOFT\DEV\Armory3d\ArmorySDK\Kha\Kinc\Backends\Graphics4\OpenGL\Sources\Kore\PipelineStateImpl.c 410
W/libOpenSLES: class OutputMix interface 0 requested but unavailable MPH=43
E/Kinc: GL Error 1282 D:\SOFT\DEV\Armory3d\ArmorySDK\Kha\Kinc\Backends\Graphics4\OpenGL\Sources\Kore\PipelineStateImpl.c 392
W/Kinc: Uniform N not found.
E/Kinc: GL Error 1282 D:\SOFT\DEV\Armory3d\ArmorySDK\Kha\Kinc\Backends\Graphics4\OpenGL\Sources\Kore\PipelineStateImpl.c 392
W/Kinc: Uniform WVP not found.
E/Kinc: GL Error 1282 D:\SOFT\DEV\Armory3d\ArmorySDK\Kha\Kinc\Backends\Graphics4\OpenGL\Sources\Kore\PipelineStateImpl.c 392
W/Kinc: Uniform sunCol not found.
E/Kinc: GL Error 1282 D:\SOFT\DEV\Armory3d\ArmorySDK\Kha\Kinc\Backends\Graphics4\OpenGL\Sources\Kore\PipelineStateImpl.c 392
W/Kinc: Uniform sunDir not found.
E/Kinc: GL Error 1282 D:\SOFT\DEV\Armory3d\ArmorySDK\Kha\Kinc\Backends\Graphics4\OpenGL\Sources\Kore\PipelineStateImpl.c 392
W/Kinc: Uniform LWVP not found.
E/Kinc: GL Error 1282 D:\SOFT\DEV\Armory3d\ArmorySDK\Kha\Kinc\Backends\Graphics4\OpenGL\Sources\Kore\PipelineStateImpl.c 392
W/Kinc: Uniform shadowsBias not found.
E/Kinc: GL Error 1282 D:\SOFT\DEV\Armory3d\ArmorySDK\Kha\Kinc\Backends\Graphics4\OpenGL\Sources\Kore\PipelineStateImpl.c 392
W/Kinc: Uniform shirr not found.
E/Kinc: GL Error 1282 D:\SOFT\DEV\Armory3d\ArmorySDK\Kha\Kinc\Backends\Graphics4\OpenGL\Sources\Kore\PipelineStateImpl.c 392
W/Kinc: Uniform envmapStrength not found.
E/Kinc: GL Error 1282 D:\SOFT\DEV\Armory3d\ArmorySDK\Kha\Kinc\Backends\Graphics4\OpenGL\Sources\Kore\PipelineStateImpl.c 410
GL Error 1282 D:\SOFT\DEV\Armory3d\ArmorySDK\Kha\Kinc\Backends\Graphics4\OpenGL\Sources\Kore\PipelineStateImpl.c 392
W/Kinc: Uniform LWVP not found.
E/Kinc: GL Error 1281 D:\SOFT\DEV\Armory3d\ArmorySDK\Kha\Kinc\Backends\Graphics4\OpenGL\Sources\Kore\RenderTargetImpl.c 219
E/Kinc: GL Error 1286 D:\SOFT\DEV\Armory3d\ArmorySDK\Kha\Kinc\Backends\Graphics4\OpenGL\Sources\Kore\OpenGL.cpp 455
E/Kinc: GL Error 1282 D:\SOFT\DEV\Armory3d\ArmorySDK\Kha\Kinc\Backends\Graphics4\OpenGL\Sources\Kore\PipelineStateImpl.c 209
GL Error 1282 D:\SOFT\DEV\Armory3d\ArmorySDK\Kha\Kinc\Backends\Graphics4\OpenGL\Sources\Kore\PipelineStateImpl.c 209
E/Kinc: GL Error 1282 D:\SOFT\DEV\Armory3d\ArmorySDK\Kha\Kinc\Backends\Graphics4\OpenGL\Sources\Kore\PipelineStateImpl.c 209
E/Kinc: GL Error 1286 D:\SOFT\DEV\Armory3d\ArmorySDK\Kha\Kinc\Backends\Graphics4\OpenGL\Sources\Kore\OpenGL.cpp 455
GL Error 1282 D:\SOFT\DEV\Armory3d\ArmorySDK\Kha\Kinc\Backends\Graphics4\OpenGL\Sources\Kore\PipelineStateImpl.c 209
GL Error 1282 D:\SOFT\DEV\Armory3d\ArmorySDK\Kha\Kinc\Backends\Graphics4\OpenGL\Sources\Kore\PipelineStateImpl.c 209

...

HUAWEI MediaPad T3 10 (Android 7.0, opengl es 3.0)

10/25 20:10:10: Launching 'app' on HUAWEI AGS-W09.
$ adb shell am start -n "tech.kode.kore/tech.kode.kore.KoreActivity" -a android.intent.action.MAIN -c android.intent.category.LAUNCHER
Waiting for process to come online...
Connected to process 26123 on device 'huawei-ags_w09-4JPNU18119107785'.
Capturing and displaying logcat messages from application. This behavior can be disabled in the "Logcat output" section of the "Debugger" settings page.
I/: power log dlsym ok
I/art: Late-enabling -Xcheck:jni
I/HwCust: Constructor found for class android.app.HwCustActivityImpl
I/HwSecImmHelper: mSecurityInputMethodService is null
I/: JNIHelper has not been initialized. Call init() to initialize the helper
I/HwPointEventFilter: do not support AFT because of no config
I/Adreno-EGL: : EGL 1.4 QUALCOMM build: AU_LINUX_ANDROID_LA.UM.5.5.R1.07.01.01.269.023_msm8937_64_refs/tags/AU_LINUX_ANDROID_LA.UM.5.5.R1.07.01.01.269.023__release_AU (Ib1167d03fb)
OpenGL ES Shader Compiler Version: XE031.09.00.04
Build Date: 07/10/17 Mon
Local Branch:
Remote Branch: refs/tags/AU_LINUX_ANDROID_LA.UM.5.5.R1.07.01.01.269.023
Local Patches: NONE
Reconstruct Branch: NOTHING
W/Adreno-ES20: : open failed: errno 13
I/Kinc: Starting KoreHL
E/Adreno-SC: : GLSL line 1: Error: #version number unsupported
: GLSL line 1: Error: #version is followed by spurious tokens
E/Adreno-SC: : GLSL line 1: Error: #version number unsupported
: GLSL line 1: Error: #version is followed by spurious tokens
W/Adreno-ES20: : GL_INVALID_OPERATION
E/Kinc: GL Error 1282 D:\SOFT\DEV\Armory3d\ArmorySDK\Kha\Kinc\Backends\Graphics4\OpenGL\Sources\Kore\PipelineStateImpl.c 392
W/Kinc: Uniform projectionMatrix not found.
W/Adreno-ES20: : GL_INVALID_OPERATION
E/Kinc: GL Error 1282 D:\SOFT\DEV\Armory3d\ArmorySDK\Kha\Kinc\Backends\Graphics4\OpenGL\Sources\Kore\PipelineStateImpl.c 410
E/Adreno-SC: : GLSL line 1: Error: #version number unsupported
: GLSL line 1: Error: #version is followed by spurious tokens
E/Adreno-SC: : GLSL line 1: Error: #version number unsupported
: GLSL line 1: Error: #version is followed by spurious tokens

Armory: Latest Version
renderpath: Mobile
scene: cube and light
NDK 20

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the Android launch on the ZTE Blade A5 Pro and Huawei MediaPad T3 10, then inspect the shader-related failures around PipelineStateImpl.c, RenderTargetImpl.c, and OpenGL.cpp. Start with the reported GLSL version errors and GL error locations; done means legacy shaders initialize and render on the affected Android OpenGL ES devices without these failures.

Written by the indexing model from the issue text.

Assessment

Tech stack
android
Domain
computer-graphics, mobile-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.