Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Shader link error on UBERARCHIVE_DEFAULT_DATA (Adreno Only) #6355

Closed
mejai1206 opened this issue Dec 7, 2022 · 3 comments · Fixed by #6383
Closed

Shader link error on UBERARCHIVE_DEFAULT_DATA (Adreno Only) #6355

mejai1206 opened this issue Dec 7, 2022 · 3 comments · Fixed by #6383
Assignees
Labels
android Issue/feature request for Android only bug Something isn't working gpu specific This bug occurs only with a single GPU vendor. opengl Issue/request specific to OpenGL

Comments

@mejai1206
Copy link

mejai1206 commented Dec 7, 2022

Describe the bug
This bug only occurs in Adreno.
Using uberarchive builded with disabling optimization about matc,
create material with below code.
gltfio::createUbershaderProvider(engine, UBERARCHIVE_DEFAULT_DATA, UBERARCHIVE_DEFAULT_SIZE)
then shader link error occur in OpenGLProgram::checkProgramStatus.

To Reproduce

  1. Open filament/CMakeList.txt and edit so that code:set(MATC_OPT_FLAGS -gd) always works. like below.
    # Disable optimizations and enable debug info (preserves names in SPIR-V) set(MATC_OPT_FLAGS -gd)

  2. Build android demo app with command: ./build.sh -p desktop,android -i release

  3. Run sample-gltf-viewer

  4. We can check this bug. object did not rendered, with shader-error.

Expected behavior
Object is rendered without shader-error on Adreno, with matc-option(-gd)

Logs
E KHR_debug ERROR: shader 0 is not a shader object E KHR_debug ERROR: program 58 is not a program object or shader 0 is not a shader object

Smartphone (please complete the following information):

  • Device: [Pixel 3]
  • OS: [Android 12]
  • Backend: [OpenGL]
  • GPU: [Adreno]

image

Additional context
If instanced option on base.mat is true, it works well.

@romainguy
Copy link
Collaborator

Please show the full logs. Looks like there should have been an earlier compilation error.

@mejai1206
Copy link
Author

mejai1206 commented Dec 9, 2022

@romainguy
full logs are here.

--------- beginning of system
2022-12-09 14:03:53.491 1897-2907/? I/ActivityManager: Force stopping com.google.android.filament.gltf appid=10053 user=0: from pid 16477
2022-12-09 14:03:53.500 2753-2753/? E/PhoneInterfaceManager: [PhoneIntfMgr] getCarrierPackageNamesForIntentAndPhone: No UICC
2022-12-09 14:03:53.500 2753-2753/? D/CarrierSvcBindHelper: No carrier app for: 0
2022-12-09 14:03:53.514 16336-16336/? E/studio.deploy: Could not remove dir '/data/data/com.google.android.filament.gltf/code_cache/.ll/': No such file or directory
2022-12-09 14:03:53.527 3578-3578/? D/RegisteredNfcFServicesCache: Service unchanged, not updating
2022-12-09 14:03:53.531 15905-15905/? I/EuiccGoogle: [2] EuiccServiceImpl.onCreate: onCreate Single-SIM mode: simCardState is 1
2022-12-09 14:03:53.539 15905-16486/? I/EuiccGoogle: [58] EuiccServiceImpl.onGetEuiccProfileInfoList: onGetEuiccProfileInfoList: slotId = -1
2022-12-09 14:03:53.541 15905-16486/? W/EuiccGoogle: [58] EuiccServiceImpl.onGetEuiccProfileInfoList: slotId=-1. No eUICC is active. Return null.
2022-12-09 14:03:53.559 16487-16487/? D/ProcessState: Binder ioctl to enable oneway spam detection failed: Invalid argument
2022-12-09 14:03:53.583 16492-16492/? D/ProcessState: Binder ioctl to enable oneway spam detection failed: Invalid argument
2022-12-09 14:03:53.587 1897-2907/? I/ActivityManager: Force stopping com.google.android.filament.gltf appid=10053 user=0: from pid 16492
2022-12-09 14:03:53.593 2753-2753/? E/PhoneInterfaceManager: [PhoneIntfMgr] getCarrierPackageNamesForIntentAndPhone: No UICC
2022-12-09 14:03:53.593 2753-2753/? D/CarrierSvcBindHelper: No carrier app for: 0
2022-12-09 14:03:53.596 3578-3578/? D/RegisteredNfcFServicesCache: Service unchanged, not updating
2022-12-09 14:03:53.668 1897-2374/? D/ConnectivityService: NetReassign [no changes] [c 1] [a 0] [i 2]
2022-12-09 14:03:53.687 16498-16498/? D/ProcessState: Binder ioctl to enable oneway spam detection failed: Invalid argument
2022-12-09 14:03:53.692 1897-2013/? I/ActivityManager: Force stopping com.google.android.filament.gltf appid=10053 user=-1: set debug app
2022-12-09 14:03:53.694 1897-3567/? I/ActivityTaskManager: START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10000000 cmp=com.google.android.filament.gltf/.MainActivity} from uid 2000
2022-12-09 14:03:53.696 1897-3567/? W/ActivityTaskManager: Can't find TaskDisplayArea to determine support for multi window. Task id=393 attached=false
2022-12-09 14:03:53.699 1897-3567/? D/CompatibilityChangeReporter: Compat change id reported: 174042980; UID 10053; state: DISABLED
2022-12-09 14:03:53.699 1897-3567/? D/CompatibilityChangeReporter: Compat change id reported: 184838306; UID 10053; state: DISABLED
2022-12-09 14:03:53.700 1897-3567/? D/CompatibilityChangeReporter: Compat change id reported: 185004937; UID 10053; state: DISABLED
2022-12-09 14:03:53.714 1897-2013/? D/CompatibilityChangeReporter: Compat change id reported: 135634846; UID 10053; state: DISABLED
2022-12-09 14:03:53.714 1897-2013/? D/CompatibilityChangeReporter: Compat change id reported: 177438394; UID 10053; state: DISABLED
2022-12-09 14:03:53.714 1897-2013/? D/CompatibilityChangeReporter: Compat change id reported: 135772972; UID 10053; state: DISABLED
2022-12-09 14:03:53.714 1897-2013/? D/CompatibilityChangeReporter: Compat change id reported: 135754954; UID 10053; state: ENABLED
2022-12-09 14:03:53.715 1897-2027/? D/CompatibilityChangeReporter: Compat change id reported: 143937733; UID 10053; state: ENABLED
2022-12-09 14:03:53.723 1253-1253/? D/Zygote: Forked child process 16502
2022-12-09 14:03:53.726 1897-2027/? I/ActivityManager: Start proc 16502:com.google.android.filament.gltf/u0a53 for pre-top-activity {com.google.android.filament.gltf/com.google.android.filament.gltf.MainActivity}
2022-12-09 14:03:53.729 16502-16502/? I/d.filament.glt: Late-enabling -Xcheck:jni
2022-12-09 14:03:53.779 1585-1673/? I/adbd: jdwp connection from 16502
2022-12-09 14:03:53.782 16502-16502/? D/ProcessState: Binder ioctl to enable oneway spam detection failed: Invalid argument
2022-12-09 14:03:53.790 16502-16502/com.google.android.filament.gltf W/re-initialized>: type=1400 audit(0.0:10802): avc: granted { execute } for path="/data/data/com.google.android.filament.gltf/code_cache/startup_agents/31c79e06-agent.so" dev="dm-8" ino=64510 scontext=u:r:untrusted_app:s0:c53,c256,c512,c768 tcontext=u:object_r:app_data_file:s0:c53,c256,c512,c768 tclass=file app=com.google.android.filament.gltf
2022-12-09 14:03:53.792 16502-16502/com.google.android.filament.gltf V/studio.deploy: Startup agent attached to VM
2022-12-09 14:03:53.793 16502-16502/com.google.android.filament.gltf V/studio.deploy: No existing instrumentation found. Loading instrumentation from instruments-dc04a095.jar
2022-12-09 14:03:53.798 16502-16502/com.google.android.filament.gltf W/d.filament.glt: DexFile /data/data/com.google.android.filament.gltf/code_cache/.studio/instruments-dc04a095.jar is in boot class path but is not in a known location
2022-12-09 14:03:53.799 16502-16502/com.google.android.filament.gltf V/studio.deploy: Applying transforms with cached classes
2022-12-09 14:03:53.806 16502-16502/com.google.android.filament.gltf W/d.filament.glt: Redefining intrinsic method java.lang.Thread java.lang.Thread.currentThread(). This may cause the unexpected use of the original definition of java.lang.Thread java.lang.Thread.currentThread()in methods that have already been compiled.
2022-12-09 14:03:53.806 16502-16502/com.google.android.filament.gltf W/d.filament.glt: Redefining intrinsic method boolean java.lang.Thread.interrupted(). This may cause the unexpected use of the original definition of boolean java.lang.Thread.interrupted()in methods that have already been compiled.
2022-12-09 14:03:53.808 16502-16502/com.google.android.filament.gltf D/CompatibilityChangeReporter: Compat change id reported: 171979766; UID 10053; state: ENABLED
2022-12-09 14:03:53.811 21086-21086/? I/GsaVoiceInteractionSrv: Handling ACTION_STOP_HOTWORD
2022-12-09 14:03:53.821 16502-16502/com.google.android.filament.gltf W/ActivityThread: Application com.google.android.filament.gltf is waiting for the debugger on port 8100...
2022-12-09 14:03:53.821 16502-16502/com.google.android.filament.gltf I/System.out: Sending WAIT chunk
2022-12-09 14:03:53.987 2560-2560/? I/WallpaperService: engine paused
2022-12-09 14:03:54.006 11593-11593/? I/A: (REDACTED) onApplyWindowInsets: systemWindowInsets=%s
2022-12-09 14:03:54.007 11593-11593/? I/A: (REDACTED) onApplyWindowInsets: systemWindowInsets=%s
2022-12-09 14:03:55.489 1585-1585/? E/adbd: failed to connect to socket 'localabstract:/com.google.android.filament.gltf-0/platform-1670562234533.sock': could not connect to localabstract address 'localabstract:/com.google.android.filament.gltf-0/platform-1670562234533.sock'
2022-12-09 14:03:55.510 16546-16546/? W/run-as: type=1400 audit(0.0:10803): avc: granted { execute } for name="start_lldb_server.sh" dev="dm-8" ino=72856 scontext=u:r:runas_app:s0:c53,c256,c512,c768 tcontext=u:object_r:app_data_file:s0:c53,c256,c512,c768 tclass=file app=com.google.android.filament.gltf
2022-12-09 14:03:55.550 16546-16546/? W/start_lldb_serv: type=1400 audit(0.0:10804): avc: granted { execute } for name="lldb-server" dev="dm-8" ino=66588 scontext=u:r:runas_app:s0:c53,c256,c512,c768 tcontext=u:object_r:app_data_file:s0:c53,c256,c512,c768 tclass=file app=com.google.android.filament.gltf
2022-12-09 14:03:55.550 16553-16553/? W/start_lldb_serv: type=1400 audit(0.0:10805): avc: granted { execute } for name="lldb-server" dev="dm-8" ino=66588 scontext=u:r:runas_app:s0:c53,c256,c512,c768 tcontext=u:object_r:app_data_file:s0:c53,c256,c512,c768 tclass=file app=com.google.android.filament.gltf
2022-12-09 14:03:55.550 16553-16553/? W/lldb-server: type=1400 audit(0.0:10806): avc: granted { execute } for path="/data/data/com.google.android.filament.gltf/lldb/bin/lldb-server" dev="dm-8" ino=66588 scontext=u:r:runas_app:s0:c53,c256,c512,c768 tcontext=u:object_r:app_data_file:s0:c53,c256,c512,c768 tclass=file app=com.google.android.filament.gltf
2022-12-09 14:03:56.020 16555-16555/? W/lldb-server: type=1400 audit(0.0:10807): avc: granted { execute } for name="lldb-server" dev="dm-8" ino=66588 scontext=u:r:runas_app:s0:c53,c256,c512,c768 tcontext=u:object_r:app_data_file:s0:c53,c256,c512,c768 tclass=file app=com.google.android.filament.gltf
2022-12-09 14:03:56.677 1897-2374/? D/ConnectivityService: NetReassign [no changes] [c 0] [a 0] [i 1]
2022-12-09 14:03:58.189 16502-16502/com.google.android.filament.gltf I/System.out: Debugger has connected
2022-12-09 14:03:58.189 16502-16502/com.google.android.filament.gltf I/System.out: waiting for debugger to settle...
2022-12-09 14:03:58.389 16502-16502/com.google.android.filament.gltf I/System.out: waiting for debugger to settle...
2022-12-09 14:03:58.589 16502-16502/com.google.android.filament.gltf I/System.out: waiting for debugger to settle...
2022-12-09 14:03:58.789 16502-16502/com.google.android.filament.gltf I/System.out: waiting for debugger to settle...
2022-12-09 14:03:58.816 16502-16513/com.google.android.filament.gltf W/System: A resource failed to call close.
2022-12-09 14:03:58.990 16502-16502/com.google.android.filament.gltf I/System.out: waiting for debugger to settle...
2022-12-09 14:03:59.190 16502-16502/com.google.android.filament.gltf I/System.out: waiting for debugger to settle...
2022-12-09 14:03:59.390 16502-16502/com.google.android.filament.gltf I/System.out: waiting for debugger to settle...
2022-12-09 14:03:59.590 16502-16502/com.google.android.filament.gltf I/System.out: debugger has settled (1401)
2022-12-09 14:03:59.603 1897-2011/? W/InputManager-JNI: Input channel object '451fbfd Waiting For Debugger: com.google.android.filament.gltf (client)' was disposed without first being removed with the input manager!
2022-12-09 14:03:59.611 16502-16502/com.google.android.filament.gltf W/ziparchive: Unable to open '/data/app/~~xm1wyBWuq2UWJropRbSBSQ==/com.google.android.filament.gltf-229UbX9UU7Y6aNUrw-4mLQ==/base.dm': No such file or directory
2022-12-09 14:03:59.611 16502-16502/com.google.android.filament.gltf W/ziparchive: Unable to open '/data/app/~~xm1wyBWuq2UWJropRbSBSQ==/com.google.android.filament.gltf-229UbX9UU7Y6aNUrw-4mLQ==/base.dm': No such file or directory
2022-12-09 14:03:59.665 16502-16502/com.google.android.filament.gltf D/nativeloader: Configuring classloader-namespace for other apk /data/app/~~xm1wyBWuq2UWJropRbSBSQ==/com.google.android.filament.gltf-229UbX9UU7Y6aNUrw-4mLQ==/base.apk. target_sdk_version=33, uses_libraries=, library_path=/data/app/~~xm1wyBWuq2UWJropRbSBSQ==/com.google.android.filament.gltf-229UbX9UU7Y6aNUrw-4mLQ==/lib/arm64:/data/app/~~xm1wyBWuq2UWJropRbSBSQ==/com.google.android.filament.gltf-229UbX9UU7Y6aNUrw-4mLQ==/base.apk!/lib/arm64-v8a, permitted_path=/data:/mnt/expand:/data/user/0/com.google.android.filament.gltf
2022-12-09 14:03:59.685 16502-16502/com.google.android.filament.gltf V/GraphicsEnvironment: ANGLE Developer option for 'com.google.android.filament.gltf' set to: 'default'
2022-12-09 14:03:59.685 16502-16502/com.google.android.filament.gltf V/GraphicsEnvironment: App is not on the allowlist for updatable production driver.
2022-12-09 14:03:59.688 16502-16502/com.google.android.filament.gltf D/NetworkSecurityConfig: No Network Security Config specified, using platform default
2022-12-09 14:03:59.688 16502-16502/com.google.android.filament.gltf D/NetworkSecurityConfig: No Network Security Config specified, using platform default
2022-12-09 14:03:59.690 1897-2374/? D/ConnectivityService: NetReassign [no changes] [c 0] [a 1] [i 1]
2022-12-09 14:03:59.692 11399-11465/? I/PhenotypeProcessReaper: Memory state is: 100
2022-12-09 14:04:00.015 3464-3825/? I/AiAiEcho: Predicting[7]: { Feature:1, creation:2022-12-09T04:30:58.515Z, expiry:2022-12-09T05:00:00Z, isExpired: true}, { Feature:1, creation:2022-12-09T05:00:00Z, expiry:2022-12-09T06:00:00Z, isExpired: false}, { Feature:1, creation:2022-12-09T06:00:00Z, expiry:2022-12-09T07:00:00Z, isExpired: true}, { Feature:1, creation:2022-12-09T07:00:00Z, expiry:2022-12-09T08:00:00Z, isExpired: true}, { Feature:1, creation:2022-12-09T08:00:00Z, expiry:2022-12-09T09:00:00Z, isExpired: true}, { Feature:1, creation:2022-12-09T09:00:00Z, expiry:2022-12-09T10:00:00Z, isExpired: true}, { Feature:1, creation:2022-12-09T10:00:00Z, expiry:2022-12-09T10:30:58.515Z, isExpired: true}
2022-12-09 14:04:00.016 3464-3825/? I/AiAiEcho: EchoTargets: Feature:1
Filtered by AiAi flag check:
2022-12-09 14:04:00.017 3464-3825/? I/AiAiEcho: Ranked targets strategy: WEIGHTED, count: 1, ranking metadata: { cardId: WEATHER-569377244, card type: 1, update time: 2022-12-09T05:00:00Z, expiration time: 2022-12-09T06:00:00Z, ranking metadata: RankingMetaData(urgency=0.992, priority=0.3, recency=1.0, rankScore=0.2976, importantTimePoints=# kbc@7bca4) }
2022-12-09 14:04:00.019 3464-3825/? I/AiAiEcho: #postPredictionTargets: Sending updates to UISurface lockscreen with targets# 1
2022-12-09 14:04:00.020 3464-3825/? I/AiAiEcho: #postPredictionTargets: Sending updates to UISurface home with targets# 1
2022-12-09 14:04:00.021 3464-3825/? I/AiAiEcho: #postPredictionTargets: Sending updates to UISurface media_data_manager with targets# 0
2022-12-09 14:04:00.024 2876-2876/? W/BcSmartspaceCard: No title view to update
2022-12-09 14:04:00.047 2448-2448/? W/BcSmartspaceCard: No title view to update
2022-12-09 14:04:00.176 16502-16502/com.google.android.filament.gltf I/Filament: FEngine (64 bits) created at 0x763682c210 (threading is enabled)
2022-12-09 14:04:00.178 16502-16581/com.google.android.filament.gltf D/Filament: Using ASurfaceTexture
2022-12-09 14:04:00.178 16502-16581/com.google.android.filament.gltf I/Filament: FEngine resolved backend: OpenGL
2022-12-09 14:04:00.178 16502-16581/com.google.android.filament.gltf I/AdrenoGLES-0: QUALCOMM build                   : 781e7d0, I46ff5fc46f
Build Date                       : 12/01/20
OpenGL ES Shader Compiler Version: EV031.31.04.01
Local Branch                     : QPR1
Remote Branch                    :
Remote Branch                    :
Reconstruct Branch               :
2022-12-09 14:04:00.178 16502-16581/com.google.android.filament.gltf I/AdrenoGLES-0: Build Config                     : C P 11.0.1 AArch64
2022-12-09 14:04:00.178 16502-16581/com.google.android.filament.gltf I/AdrenoGLES-0: Driver Path                      : /vendor/lib64/egl/libGLESv2_adreno.so
2022-12-09 14:04:00.301 16502-16581/com.google.android.filament.gltf I/AdrenoGLES-0: PFP: 0x016ee190, ME: 0x00000000
2022-12-09 14:04:00.304 16502-16581/com.google.android.filament.gltf W/AdrenoUtils: <ReadGpuID_from_sysfs:197>: Failed to open /sys/class/kgsl/kgsl-3d0/gpu_model
2022-12-09 14:04:00.305 16502-16581/com.google.android.filament.gltf W/AdrenoUtils: <ReadGpuID:221>: Failed to read chip ID from gpu_model. Fallback to use the GSL path
2022-12-09 14:04:00.313 16502-16581/com.google.android.filament.gltf V/Filament: [Qualcomm], [Adreno (TM) 630], [OpenGL ES 3.2 [email protected] (GIT@781e7d0, I46ff5fc46f, 1606819536) (Date:12/01/20)], [OpenGL ES GLSL ES 3.20]
2022-12-09 14:04:00.313 16502-16581/com.google.android.filament.gltf V/Filament: Feature level: 2
Active workarounds:
dont_use_timer_query
disable_sidecar_blit_into_texture_array
split_easu
invalidate_end_only_if_invalidate_start
allow_read_only_ancillary_feedback_loop
enable_initialize_non_used_uniform_array
2022-12-09 14:04:00.317 16502-16502/com.google.android.filament.gltf I/Filament: FEngine feature level: 2
2022-12-09 14:04:00.349 16502-16502/com.google.android.filament.gltf I/Filament: Texture Decoder has 6 background threads.
2022-12-09 14:04:00.464 16502-16502/com.google.android.filament.gltf D/CompatibilityChangeReporter: Compat change id reported: 147798919; UID 10053; state: ENABLED
2022-12-09 14:04:00.468 16502-16502/com.google.android.filament.gltf I/Filament: RemoteServer listening at ws://localhost:8082
2022-12-09 14:04:00.469 2448-2448/? W/ziparchive: Unable to open '/data/app/~~BYXdQqpukH5BwX9NLM-Scw==/com.google.android.filament.gltf-y9v8auSNirqTAqTb6AqFjw==/base.apk': No such file or directory
2022-12-09 14:04:00.469 2448-2448/? E/ndroid.systemu: Failed to open APK '/data/app/~~BYXdQqpukH5BwX9NLM-Scw==/com.google.android.filament.gltf-y9v8auSNirqTAqTb6AqFjw==/base.apk': I/O error
2022-12-09 14:04:00.470 2448-2448/? W/ResourcesManager: failed to preload asset path '/data/app/~~BYXdQqpukH5BwX9NLM-Scw==/com.google.android.filament.gltf-y9v8auSNirqTAqTb6AqFjw==/base.apk'
java.io.IOException: Failed to load asset path /data/app/~~BYXdQqpukH5BwX9NLM-Scw==/com.google.android.filament.gltf-y9v8auSNirqTAqTb6AqFjw==/base.apk
    at android.content.res.ApkAssets.nativeLoad(Native Method)
    at android.content.res.ApkAssets.<init>(ApkAssets.java:295)
    at android.content.res.ApkAssets.loadFromPath(ApkAssets.java:144)
    at android.app.ResourcesManager.loadApkAssets(ResourcesManager.java:454)
    at android.app.ResourcesManager.access$000(ResourcesManager.java:72)
    at android.app.ResourcesManager$ApkAssetsSupplier.load(ResourcesManager.java:168)
    at android.app.ResourcesManager.createApkAssetsSupplierNotLocked(ResourcesManager.java:980)
    at android.app.ResourcesManager.getResources(ResourcesManager.java:1101)
    at android.app.ActivityThread.getTopLevelResources(ActivityThread.java:2376)
    at android.app.ApplicationPackageManager.getResourcesForApplication(ApplicationPackageManager.java:1751)
    at android.app.ApplicationPackageManager.getResourcesForApplication(ApplicationPackageManager.java:1737)
    at android.app.ApplicationPackageManager.getDrawable(ApplicationPackageManager.java:1506)
    at android.app.ApplicationPackageManager.loadUnbadgedItemIcon(ApplicationPackageManager.java:3029)
    at android.content.pm.PackageItemInfo.loadUnbadgedIcon(PackageItemInfo.java:290)
    at com.android.systemui.toast.SystemUIToast.getBadgedIcon(SystemUIToast.java:284)
    at com.android.systemui.toast.SystemUIToast.inflateToastView(SystemUIToast.java:198)
    at com.android.systemui.toast.SystemUIToast.<init>(SystemUIToast.java:90)
    at com.android.systemui.toast.SystemUIToast.<init>(SystemUIToast.java:77)
    at com.android.systemui.toast.ToastFactory.createToast(ToastFactory.java:78)
    at com.android.systemui.toast.ToastUI.lambda$showToast$0(ToastUI.java:113)
    at com.android.systemui.toast.ToastUI.$r8$lambda$w_gPCh3F8Xxn1jN4lkQZoUci71c(Unknown Source:0)
    at com.android.systemui.toast.ToastUI$$ExternalSyntheticLambda0.run(Unknown Source:16)
    at com.android.systemui.toast.ToastUI.showToast(ToastUI.java:140)
    at com.android.systemui.statusbar.CommandQueue$H.handleMessage(CommandQueue.java:1431)
    at android.os.Handler.dispatchMessage(Handler.java:106)
    at android.os.Looper.loopOnce(Looper.java:201)
    at android.os.Looper.loop(Looper.java:288)
    at android.app.ActivityThread.main(ActivityThread.java:7842)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1003)
2022-12-09 14:04:00.470 2448-2448/? W/ziparchive: Unable to open '/data/app/~~BYXdQqpukH5BwX9NLM-Scw==/com.google.android.filament.gltf-y9v8auSNirqTAqTb6AqFjw==/base.apk': No such file or directory
2022-12-09 14:04:00.470 2448-2448/? E/ndroid.systemu: Failed to open APK '/data/app/~~BYXdQqpukH5BwX9NLM-Scw==/com.google.android.filament.gltf-y9v8auSNirqTAqTb6AqFjw==/base.apk': I/O error
2022-12-09 14:04:00.471 2448-2448/? E/ResourcesManager: failed to add asset path '/data/app/~~BYXdQqpukH5BwX9NLM-Scw==/com.google.android.filament.gltf-y9v8auSNirqTAqTb6AqFjw==/base.apk'
java.io.IOException: Failed to load asset path /data/app/~~BYXdQqpukH5BwX9NLM-Scw==/com.google.android.filament.gltf-y9v8auSNirqTAqTb6AqFjw==/base.apk
    at android.content.res.ApkAssets.nativeLoad(Native Method)
    at android.content.res.ApkAssets.<init>(ApkAssets.java:295)
    at android.content.res.ApkAssets.loadFromPath(ApkAssets.java:144)
    at android.app.ResourcesManager.loadApkAssets(ResourcesManager.java:454)
    at android.app.ResourcesManager.access$000(ResourcesManager.java:72)
    at android.app.ResourcesManager$ApkAssetsSupplier.load(ResourcesManager.java:168)
    at android.app.ResourcesManager.createAssetManager(ResourcesManager.java:530)
    at android.app.ResourcesManager.createResourcesImpl(ResourcesManager.java:612)
    at android.app.ResourcesManager.findOrCreateResourcesImplForKeyLocked(ResourcesManager.java:664)
    at android.app.ResourcesManager.createResources(ResourcesManager.java:1011)
    at android.app.ResourcesManager.getResources(ResourcesManager.java:1114)
    at android.app.ActivityThread.getTopLevelResources(ActivityThread.java:2376)
    at android.app.ApplicationPackageManager.getResourcesForApplication(ApplicationPackageManager.java:1751)
    at android.app.ApplicationPackageManager.getResourcesForApplication(ApplicationPackageManager.java:1737)
    at android.app.ApplicationPackageManager.getDrawable(ApplicationPackageManager.java:1506)
    at android.app.ApplicationPackageManager.loadUnbadgedItemIcon(ApplicationPackageManager.java:3029)
    at android.content.pm.PackageItemInfo.loadUnbadgedIcon(PackageItemInfo.java:290)
    at com.android.systemui.toast.SystemUIToast.getBadgedIcon(SystemUIToast.java:284)
    at com.android.systemui.toast.SystemUIToast.inflateToastView(SystemUIToast.java:198)
    at com.android.systemui.toast.SystemUIToast.<init>(SystemUIToast.java:90)
    at com.android.systemui.toast.SystemUIToast.<init>(SystemUIToast.java:77)
    at com.android.systemui.toast.ToastFactory.createToast(ToastFactory.java:78)
    at com.android.systemui.toast.ToastUI.lambda$showToast$0(ToastUI.java:113)
    at com.android.systemui.toast.ToastUI.$r8$lambda$w_gPCh3F8Xxn1jN4lkQZoUci71c(Unknown Source:0)
    at com.android.systemui.toast.ToastUI$$ExternalSyntheticLambda0.run(Unknown Source:16)
    at com.android.systemui.toast.ToastUI.showToast(ToastUI.java:140)
    at com.android.systemui.statusbar.CommandQueue$H.handleMessage(CommandQueue.java:1431)
    at android.os.Handler.dispatchMessage(Handler.java:106)
    at android.os.Looper.loopOnce(Looper.java:201)
    at android.os.Looper.loop(Looper.java:288)
    at android.app.ActivityThread.main(ActivityThread.java:7842)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1003)
2022-12-09 14:04:00.471 2448-2448/? W/PackageManager: Failure retrieving resources for com.google.android.filament.gltf
2022-12-09 14:04:00.688 733-733/? I/SDM: HWCDisplay::GetColorModeCount: Supported color mode count = 5
2022-12-09 14:04:00.688 731-2431/? E/HWComposer: getSupportedContentTypes: getSupportedContentTypes failed for display 0: Unsupported (8)
2022-12-09 14:04:00.689 16502-16572/com.google.android.filament.gltf D/hw-ProcessState: Binder ioctl to enable oneway spam detection failed: Invalid argument
2022-12-09 14:04:00.694 683-683/? I/hwservicemanager: getTransport: Cannot find entry [email protected]::IMapper/default in either framework or device VINTF manifest.
2022-12-09 14:04:00.695 16502-16572/com.google.android.filament.gltf I/Gralloc4: mapper 4.x is not supported
2022-12-09 14:04:00.695 683-683/? I/hwservicemanager: getTransport: Cannot find entry [email protected]::IMapper/default in either framework or device VINTF manifest.
2022-12-09 14:04:00.695 16502-16572/com.google.android.filament.gltf W/Gralloc3: mapper 3.x is not supported
2022-12-09 14:04:00.697 683-683/? I/hwservicemanager: getTransport: Cannot find entry [email protected]::IAllocator/default in either framework or device VINTF manifest.
2022-12-09 14:04:00.697 16502-16572/com.google.android.filament.gltf W/Gralloc4: allocator 4.x is not supported
2022-12-09 14:04:00.697 683-683/? I/hwservicemanager: getTransport: Cannot find entry [email protected]::IAllocator/default in either framework or device VINTF manifest.
2022-12-09 14:04:00.697 16502-16572/com.google.android.filament.gltf W/Gralloc3: allocator 3.x is not supported
2022-12-09 14:04:00.713 1897-2010/? W/ziparchive: Unable to open '/data/app/~~xm1wyBWuq2UWJropRbSBSQ==/com.google.android.filament.gltf-229UbX9UU7Y6aNUrw-4mLQ==/base.dm': No such file or directory
2022-12-09 14:04:00.714 1897-2010/? I/ActivityTaskManager: Displayed com.google.android.filament.gltf/.MainActivity: +7s20ms
2022-12-09 14:04:00.839 12064-12064/? I/GoogleInputMethodService: GoogleInputMethodService.onFinishInput():3220
2022-12-09 14:04:00.841 12064-12064/? I/GoogleInputMethodService: GoogleInputMethodService.updateDeviceLockedStatus():2085 repeatCheckTimes = 0, unlocked = true
2022-12-09 14:04:00.842 12064-12064/? I/GoogleInputMethodService: GoogleInputMethodService.onStartInput():1876 onStartInput(EditorInfo{inputType=0x0(NULL) imeOptions=0x0 privateImeOptions=null actionName=UNSPECIFIED actionLabel=null actionId=0 initialSelStart=-1 initialSelEnd=-1 initialCapsMode=0x0 hintText=null label=null packageName=com.google.android.filament.gltf fieldId=-1 fieldName=null extras=null}, false)
2022-12-09 14:04:00.842 12064-12064/? I/GoogleInputMethodService: GoogleInputMethodService.shouldHideHeaderOnInitialState():3985 ShouldHideHeaderOnInitialState = false
2022-12-09 14:04:00.842 12064-12064/? I/GoogleInputMethodService: GoogleInputMethodService.updateDeviceLockedStatus():2085 repeatCheckTimes = 2, unlocked = true
2022-12-09 14:04:00.952 16502-16581/com.google.android.filament.gltf I/AdrenoGLES-0: Assertion failed: false && "Unknown named pointer type or missing metadata"
2022-12-09 14:04:00.968 16502-16581/com.google.android.filament.gltf I/AdrenoGLES-0: Assertion failed: false && "Unknown named pointer type or missing metadata"
2022-12-09 14:04:00.984 16502-16581/com.google.android.filament.gltf I/AdrenoGLES-0: Assertion failed: false && "Unknown named pointer type or missing metadata"
2022-12-09 14:04:00.995 16502-16581/com.google.android.filament.gltf I/AdrenoGLES-0: Assertion failed: false && "Unknown named pointer type or missing metadata"
2022-12-09 14:04:01.003 1897-2907/? W/InputManager-JNI: Input channel object '17285c7 Splash Screen com.google.android.filament.gltf (client)' was disposed without first being removed with the input manager!
2022-12-09 14:04:01.006 16502-16581/com.google.android.filament.gltf E/Filament: Link error in "base_lit_opaque":
"Assertion failed: false && "Unknown named pointer type or missing metadata""
2022-12-09 14:04:01.007 16502-16581/com.google.android.filament.gltf E/Filament: Link error in "base_lit_opaque":
"Assertion failed: false && "Unknown named pointer type or missing metadata""
2022-12-09 14:04:01.047 16502-16581/com.google.android.filament.gltf I/AdrenoGLES-0: Assertion failed: false && "Unknown named pointer type or missing metadata"
2022-12-09 14:04:01.053 16502-16581/com.google.android.filament.gltf I/AdrenoGLES-0: Assertion failed: false && "Unknown named pointer type or missing metadata"
2022-12-09 14:04:01.058 16502-16581/com.google.android.filament.gltf I/AdrenoGLES-0: Assertion failed: false && "Unknown named pointer type or missing metadata"
2022-12-09 14:04:01.063 16502-16581/com.google.android.filament.gltf I/AdrenoGLES-0: Assertion failed: false && "Unknown named pointer type or missing metadata"
2022-12-09 14:04:01.073 16502-16581/com.google.android.filament.gltf I/AdrenoGLES-0: Assertion failed: false && "Unknown named pointer type or missing metadata"
2022-12-09 14:04:01.079 16502-16581/com.google.android.filament.gltf I/AdrenoGLES-0: Assertion failed: false && "Unknown named pointer type or missing metadata"
2022-12-09 14:04:01.096 16502-16581/com.google.android.filament.gltf E/Filament: Link error in "base_lit_opaque":
"Assertion failed: false && "Unknown named pointer type or missing metadata""
2022-12-09 14:04:01.098 16502-16581/com.google.android.filament.gltf E/Filament: Link error in "base_lit_opaque":
"Assertion failed: false && "Unknown named pointer type or missing metadata""

@pixelflinger pixelflinger self-assigned this Dec 14, 2022
@pixelflinger pixelflinger added android Issue/feature request for Android only opengl Issue/request specific to OpenGL gpu specific This bug occurs only with a single GPU vendor. bug Something isn't working labels Dec 14, 2022
@pixelflinger
Copy link
Collaborator

I can reproduce on my Pixel4.

pixelflinger added a commit that referenced this issue Dec 14, 2022
At least some adreno compilers don't like returning an element of a
UBO array that is a structure in the vertex shader.
To work this around we have to copy the each of the structure fields.

Fixes #6355
pixelflinger added a commit that referenced this issue Dec 14, 2022
At least some adreno compilers don't like returning an element of a
UBO array that is a structure in the vertex shader.
To work this around we have to copy the each of the structure fields.

Fixes #6355
pixelflinger added a commit that referenced this issue Dec 14, 2022
At least some adreno compilers don't like returning an element of a
UBO array that is a structure in the vertex shader.
To work this around we have to copy the each of the structure fields.

Fixes #6355
plepers pushed a commit to plepers/filament that referenced this issue Dec 9, 2023
At least some adreno compilers don't like returning an element of a
UBO array that is a structure in the vertex shader.
To work this around we have to copy the each of the structure fields.

Fixes google#6355
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
android Issue/feature request for Android only bug Something isn't working gpu specific This bug occurs only with a single GPU vendor. opengl Issue/request specific to OpenGL
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants