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

Android demo app crash on a device with power vr gpu #7162

Closed
lukwsx opened this issue Sep 12, 2023 · 5 comments
Closed

Android demo app crash on a device with power vr gpu #7162

lukwsx opened this issue Sep 12, 2023 · 5 comments
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.

Comments

@lukwsx
Copy link

lukwsx commented Sep 12, 2023

Describe the bug
demo sample-gltf-viewer crash on a device with power vr gpu

To Reproduce

  • Device: OPPO A8 PDBM00
  • OS: Android Pie 9.0
  • Device Model: PDBM00
  • SOC: MT6765V/CB
  • GPU: IMG PowerVR GE8320
  • Backend: OPENGL
    filament version : 1.41.0
    the scene reproduce: start demo sample-gltf-viewer

Logs

---------------------------- PROCESS STARTED (2643) for package com.google.android.filament.gltf ----------------------------
2023-09-12 14:21:34.260  2643-2723  libMEOW                 com.google.android.filament.gltf     D  applied 1 plugins for [com.google.android.filament.gltf]:
2023-09-12 14:21:34.260  2643-2723  libMEOW                 com.google.android.filament.gltf     D    plugin 1: [libMEOW_gift.so]:
2023-09-12 14:21:34.280  2643-2643  libMEOW                 com.google.android.filament.gltf     D  applied 1 plugins for [com.google.android.filament.gltf]:
2023-09-12 14:21:34.280  2643-2643  libMEOW                 com.google.android.filament.gltf     D    plugin 1: [libMEOW_gift.so]:
2023-09-12 14:21:34.419  2643-2643  OpenGLRenderer          com.google.android.filament.gltf     D  Skia GL Pipeline
2023-09-12 14:21:34.420  2643-2643  MMListParser            com.google.android.filament.gltf     D  +++initMMListConfigFile gInitDone 0
2023-09-12 14:21:34.420  2643-2643  MMListParser            com.google.android.filament.gltf     D  onlineVersion -1 defaultVersion 20200714
2023-09-12 14:21:34.422  2643-2643  SurfaceFactory          com.google.android.filament.gltf     I  [static] sSurfaceFactory = com.mediatek.view.impl.SurfaceFactoryImpl@98d0bcd
2023-09-12 14:21:34.470  2643-2643  Filament                com.google.android.filament.gltf     I  FEngine (64 bits) created at 0x797fd95000 (threading is enabled)
2023-09-12 14:21:34.471  2643-2778  Filament                com.google.android.filament.gltf     D  Using ASurfaceTexture
2023-09-12 14:21:34.471  2643-2778  Filament                com.google.android.filament.gltf     I  FEngine resolved backend: OpenGL
2023-09-12 14:21:34.471  2643-2778  libMEOW                 com.google.android.filament.gltf     D  applied 1 plugins for [com.google.android.filament.gltf]:
2023-09-12 14:21:34.471  2643-2778  libMEOW                 com.google.android.filament.gltf     D    plugin 1: [libMEOW_gift.so]:
2023-09-12 14:21:34.490  2643-2778  libARC                  com.google.android.filament.gltf     I  try to register callback & init again
2023-09-12 14:21:34.492  2643-2778  sys-gift-manager        com.google.android.filament.gltf     D  getProcessName(2643, Unkonwn)
2023-09-12 14:21:34.492  2643-2778  sys-gift-manager        com.google.android.filament.gltf     D  giftBp start get GiftFeatureOn pid(2643), name(Unkonwn), isEnable(0), debug(0)
2023-09-12 14:21:34.493  2643-2778  sys-gift-manager        com.google.android.filament.gltf     D  giftBp end get GiftFeatureOn pid(2643), name(Unkonwn), isEnable(1), debug(1), ret(0)
2023-09-12 14:21:34.493  2643-2778  libARC                  com.google.android.filament.gltf     I  GiFT is Enabled from GetGiFTFeatureOn
2023-09-12 14:21:34.493  2643-2778  sys-gift-manager        com.google.android.filament.gltf     D  giftBp  getGiftPara start pkgName(com.google.android.filament.gltf), size(260), para() pid(2643)
2023-09-12 14:21:34.495  2643-2778  sys-gift-manager        com.google.android.filament.gltf     D  giftBp  getGiftPara end pkgName(com.google.android.filament.gltf), para(), pid(2643) ret(-22)
2023-09-12 14:21:34.495  2643-2778  sys-gift-manager        com.google.android.filament.gltf     D  getGiftPara pkg(com.google.android.filament.gltf,260,), ret=-22
2023-09-12 14:21:34.495  2643-2778  libARC                  com.google.android.filament.gltf     I  liboppogift.so::GetGiFTPara(...) = -22
2023-09-12 14:21:34.500  2643-2778  ConfigStore             com.google.android.filament.gltf     I  android::hardware::configstore::V1_0::ISurfaceFlingerConfigs::hasWideColorDisplay retrieved: 0
2023-09-12 14:21:34.501  2643-2778  ConfigStore             com.google.android.filament.gltf     I  android::hardware::configstore::V1_0::ISurfaceFlingerConfigs::hasHDRDisplay retrieved: 0
2023-09-12 14:21:34.519  2643-2778  libARC                  com.google.android.filament.gltf     I  gli_eglCreateContextRet() tid:2778, ctx: 0x7977e39d00, ARC not Enabled.
2023-09-12 14:21:34.520  2643-2778  Filament                com.google.android.filament.gltf     V  [Imagination Technologies], [PowerVR Rogue GE8320], [OpenGL ES 3.2 build 1.10@5130912], [OpenGL ES GLSL ES 3.20 build 1.10@5130912]
2023-09-12 14:21:34.521  2643-2778  Filament                com.google.android.filament.gltf     V  Feature level: 2
                                                                                                    Active workarounds: 
2023-09-12 14:21:34.521  2643-2778  Filament                com.google.android.filament.gltf     V  GL_MAX_DRAW_BUFFERS = 8
                                                                                                    GL_MAX_RENDERBUFFER_SIZE = 4096
                                                                                                    GL_MAX_SAMPLES = 4
                                                                                                    GL_MAX_TEXTURE_MAX_ANISOTROPY_EXT = 0
                                                                                                    GL_MAX_UNIFORM_BLOCK_SIZE = 134217728
                                                                                                    GL_MAX_TEXTURE_IMAGE_UNITS = 16
                                                                                                    GL_UNIFORM_BUFFER_OFFSET_ALIGNMENT = 64
2023-09-12 14:21:34.525  2643-2778  Filament                com.google.android.filament.gltf     I  OS version: 28
2023-09-12 14:21:34.525  2643-2643  Filament                com.google.android.filament.gltf     I  Backend feature level: 2
2023-09-12 14:21:34.525  2643-2643  Filament                com.google.android.filament.gltf     I  FEngine feature level: 1
2023-09-12 14:21:34.642  2643-2643  Filament                com.google.android.filament.gltf     I  Texture Decoder has 6 background threads.
2023-09-12 14:21:35.403  2643-2643  Filament                com.google.android.filament.gltf     W  Requested linear format but KTX contains a sRGB format. 
2023-09-12 14:21:35.477  2643-2643  Filament                com.google.android.filament.gltf     W  Requested linear format but KTX contains a sRGB format. 
2023-09-12 14:21:35.523  2643-2643  Filament                com.google.android.filament.gltf     I  RemoteServer listening at ws://localhost:8082
2023-09-12 14:21:35.552  2643-2643  WindowClient            com.google.android.filament.gltf     D  Add to mViews: DecorView@795dd8a[MainActivity], this = android.view.WindowManagerGlobal@70b8ffb, pkg = com.google.android.filament.gltf
2023-09-12 14:21:35.565  2643-2643  ViewRootIm...nActivity] com.google.android.filament.gltf     D  hardware acceleration = true , fakeHwAccelerated = false, sRendererDisabled = false, forceHwAccelerated = false, sSystemRendererDisabled = false
2023-09-12 14:21:35.575  2643-2868  libARC                  com.google.android.filament.gltf     D  etEventThreadFunc()::thread Begin. eventRefCnt: 1
2023-09-12 14:21:35.577  2643-2643  PhoneWindow             com.google.android.filament.gltf     V  DecorView setVisiblity: visibility = 0, Parent = android.view.ViewRootImpl@cecf818, this = DecorView@795dd8a[MainActivity]
2023-09-12 14:21:38.236  2643-2643  ANR_LOG                 com.google.android.filament.gltf     E  >>> msg's executing time is too long
2023-09-12 14:21:38.236  2643-2643  ANR_LOG                 com.google.android.filament.gltf     E  Blocked msg = { when=-2s886ms what=0 target=android.os.Handler callback=kotlinx.coroutines.internal.DispatchedContinuation } , cost  = 2654 ms
2023-09-12 14:21:38.237  2643-2643  ANR_LOG                 com.google.android.filament.gltf     E  >>>Current msg List is:
2023-09-12 14:21:38.237  2643-2643  ANR_LOG                 com.google.android.filament.gltf     E  Current msg <1>  = { when=-2s717ms what=0 target=android.widget.Toast$TN$1 obj=android.os.BinderProxy@f0d2271 }
2023-09-12 14:21:38.237  2643-2643  ANR_LOG                 com.google.android.filament.gltf     E  Current msg <2>  = { when=-2s690ms what=0 target=android.view.ViewRootImpl$ViewRootHandler callback=android.view.ViewRootImpl$4 }
2023-09-12 14:21:38.237  2643-2643  ANR_LOG                 com.google.android.filament.gltf     E  Current msg <3>  = { when=-2s670ms barrier=0 }
2023-09-12 14:21:38.237  2643-2643  ANR_LOG                 com.google.android.filament.gltf     E  Current msg <4>  = { when=-2s663ms what=0 target=android.view.Choreographer$FrameHandler callback=android.view.Choreographer$FrameDisplayEventReceiver }
2023-09-12 14:21:38.237  2643-2643  ANR_LOG                 com.google.android.filament.gltf     E  Current msg <5>  = { when=-715ms what=1 target=android.widget.Toast$TN$1 }
2023-09-12 14:21:38.237  2643-2643  ANR_LOG                 com.google.android.filament.gltf     E  >>>CURRENT MSG DUMP OVER<<<
2023-09-12 14:21:38.243  2643-2643  Choreographer           com.google.android.filament.gltf     I  Skipped 160 frames!  The application may be doing too much work on its main thread.
2023-09-12 14:21:38.306  2643-2867  libMEOW                 com.google.android.filament.gltf     D  applied 1 plugins for [com.google.android.filament.gltf]:
2023-09-12 14:21:38.306  2643-2867  libMEOW                 com.google.android.filament.gltf     D    plugin 1: [libMEOW_gift.so]:
2023-09-12 14:21:38.307  2643-2867  OpenGLRenderer          com.google.android.filament.gltf     I  Initialized EGL, version 1.4
2023-09-12 14:21:38.307  2643-2867  OpenGLRenderer          com.google.android.filament.gltf     D  Swap behavior 2
2023-09-12 14:21:38.316  2643-2867  libARC                  com.google.android.filament.gltf     I  gli_eglCreateContextRet() tid:2867, ctx: 0x79629e9600, ARC not Enabled.
2023-09-12 14:21:38.319  2643-2867  mmscene                 com.google.android.filament.gltf     D  open config fail
2023-09-12 14:21:38.319  2643-2867  mmscene                 com.google.android.filament.gltf     D  config version remote=, local=20180911
2023-09-12 14:21:38.319  2643-2867  mmscene                 com.google.android.filament.gltf     D  use local config: r=, l=20180911
2023-09-12 14:21:38.321  2643-2867  mmscene                 com.google.android.filament.gltf     D  getHint applicationScene=com.google.android.filament.gltf,idx=0 none
2023-09-12 14:21:38.326  2643-2867  Surface                 com.google.android.filament.gltf     D  Surface::connect(this=0x79627ff000,api=1)
2023-09-12 14:21:38.327  2643-2867  IMGSRV                  com.google.android.filament.gltf     E  :0: ObtainWindowParams: *piMaxBufCount is 0
2023-09-12 14:21:38.524  2643-2778  IMGSRV                  com.google.android.filament.gltf     E  :0: DoCompileShader: Failed to compile shader
2023-09-12 14:21:38.699  2643-2778  IMGSRV                  com.google.android.filament.gltf     E  :0: DoCompileShader: Failed to compile shader
2023-09-12 14:21:38.916  2643-2778  IMGSRV                  com.google.android.filament.gltf     E  :0: DoCompileShader: Failed to compile shader
2023-09-12 14:21:39.127  2643-2778  IMGSRV                  com.google.android.filament.gltf     E  :0: DoCompileShader: Failed to compile shader
2023-09-12 14:21:39.454  2643-2778  IMGSRV                  com.google.android.filament.gltf     E  :0: DoCompileShader: Failed to compile shader
2023-09-12 14:21:39.763  2643-2778  IMGSRV                  com.google.android.filament.gltf     E  :0: DoCompileShader: Failed to compile shader
2023-09-12 14:21:40.080  2643-2778  IMGSRV                  com.google.android.filament.gltf     E  :0: DoCompileShader: Failed to compile shader
2023-09-12 14:21:40.130  2643-2778  IMGSRV                  com.google.android.filament.gltf     E  :0: DoCompileShader: Failed to compile shader
2023-09-12 14:21:40.181  2643-2778  IMGSRV                  com.google.android.filament.gltf     E  :0: DoCompileShader: Failed to compile shader
2023-09-12 14:21:40.328  2643-2778  IMGSRV                  com.google.android.filament.gltf     E  :0: DoCompileShader: Failed to compile shader
2023-09-12 14:21:40.482  2643-2778  IMGSRV                  com.google.android.filament.gltf     E  :0: DoCompileShader: Failed to compile shader
2023-09-12 14:21:40.644  2643-2778  chatty                  com.google.android.filament.gltf     I  uid=10183(com.google.android.filament.gltf) FEngine::loop identical 1 line
2023-09-12 14:21:40.813  2643-2778  IMGSRV                  com.google.android.filament.gltf     E  :0: DoCompileShader: Failed to compile shader
2023-09-12 14:21:41.087  2643-2778  IMGSRV                  com.google.android.filament.gltf     E  :0: DoCompileShader: Failed to compile shader
2023-09-12 14:21:41.366  2643-2778  IMGSRV                  com.google.android.filament.gltf     E  :0: DoCompileShader: Failed to compile shader
2023-09-12 14:21:41.658  2643-2778  IMGSRV                  com.google.android.filament.gltf     E  :0: DoCompileShader: Failed to compile shader
2023-09-12 14:21:42.179  2643-2778  chatty                  com.google.android.filament.gltf     I  uid=10183(com.google.android.filament.gltf) FEngine::loop identical 4 lines
2023-09-12 14:21:42.348  2643-2778  IMGSRV                  com.google.android.filament.gltf     E  :0: DoCompileShader: Failed to compile shader
2023-09-12 14:21:42.616  2643-2778  IMGSRV                  com.google.android.filament.gltf     E  :0: DoCompileShader: Failed to compile shader
2023-09-12 14:21:42.898  2643-2778  IMGSRV                  com.google.android.filament.gltf     E  :0: DoCompileShader: Failed to compile shader
2023-09-12 14:21:43.193  2643-2778  chatty                  com.google.android.filament.gltf     I  uid=10183(com.google.android.filament.gltf) FEngine::loop identical 1 line
2023-09-12 14:21:43.347  2643-2778  IMGSRV                  com.google.android.filament.gltf     E  :0: DoCompileShader: Failed to compile shader
2023-09-12 14:21:43.503  2643-2778  IMGSRV                  com.google.android.filament.gltf     E  :0: DoCompileShader: Failed to compile shader
2023-09-12 14:21:43.672  2643-2778  chatty                  com.google.android.filament.gltf     I  uid=10183(com.google.android.filament.gltf) FEngine::loop identical 1 line
2023-09-12 14:21:43.845  2643-2778  IMGSRV                  com.google.android.filament.gltf     E  :0: DoCompileShader: Failed to compile shader
2023-09-12 14:21:44.111  2643-2778  IMGSRV                  com.google.android.filament.gltf     E  :0: DoCompileShader: Failed to compile shader
2023-09-12 14:21:44.403  2643-2778  IMGSRV                  com.google.android.filament.gltf     E  :0: DoCompileShader: Failed to compile shader
2023-09-12 14:21:44.702  2643-2778  chatty                  com.google.android.filament.gltf     I  uid=10183(com.google.android.filament.gltf) FEngine::loop identical 1 line
2023-09-12 14:21:44.754  2643-2778  IMGSRV                  com.google.android.filament.gltf     E  :0: DoCompileShader: Failed to compile shader
2023-09-12 14:21:44.834  2643-2778  IMGSRV                  com.google.android.filament.gltf     E  :0: DoCompileShader: Failed to compile shader
2023-09-12 14:21:45.092  2643-2778  IMGSRV                  com.google.android.filament.gltf     E  :0: DoCompileShader: Failed to compile shader
2023-09-12 14:21:45.377  2643-2778  IMGSRV                  com.google.android.filament.gltf     E  :0: DoCompileShader: Failed to compile shader
2023-09-12 14:21:45.670  2643-2778  IMGSRV                  com.google.android.filament.gltf     E  :0: DoCompileShader: Failed to compile shader
2023-09-12 14:21:45.753  2643-2778  IMGSRV                  com.google.android.filament.gltf     E  :0: DoCompileShader: Failed to compile shader
2023-09-12 14:21:46.012  2643-2778  IMGSRV                  com.google.android.filament.gltf     E  :0: DoCompileShader: Failed to compile shader
2023-09-12 14:21:46.288  2643-2778  IMGSRV                  com.google.android.filament.gltf     E  :0: DoCompileShader: Failed to compile shader
2023-09-12 14:21:46.581  2643-2778  IMGSRV                  com.google.android.filament.gltf     E  :0: DoCompileShader: Failed to compile shader
2023-09-12 14:21:46.631  2643-2778  chatty                  com.google.android.filament.gltf     I  uid=10183(com.google.android.filament.gltf) FEngine::loop identical 1 line
2023-09-12 14:21:46.681  2643-2778  IMGSRV                  com.google.android.filament.gltf     E  :0: DoCompileShader: Failed to compile shader
2023-09-12 14:21:46.946  2643-2778  IMGSRV                  com.google.android.filament.gltf     E  :0: DoCompileShader: Failed to compile shader
2023-09-12 14:21:47.226  2643-2778  IMGSRV                  com.google.android.filament.gltf     E  :0: DoCompileShader: Failed to compile shader
2023-09-12 14:21:47.522  2643-2778  IMGSRV                  com.google.android.filament.gltf     E  :0: DoCompileShader: Failed to compile shader
2023-09-12 14:21:47.787  2643-2778  IMGSRV                  com.google.android.filament.gltf     E  :0: DoCompileShader: Failed to compile shader
2023-09-12 14:21:48.068  2643-2778  chatty                  com.google.android.filament.gltf     I  uid=10183(com.google.android.filament.gltf) FEngine::loop identical 1 line
2023-09-12 14:21:48.363  2643-2778  IMGSRV                  com.google.android.filament.gltf     E  :0: DoCompileShader: Failed to compile shader
2023-09-12 14:21:49.025  2643-2778  Surface                 com.google.android.filament.gltf     D  Surface::connect(this=0x79629bf000,api=1)
2023-09-12 14:21:49.027  2643-2778  IMGSRV                  com.google.android.filament.gltf     E  :0: ObtainWindowParams: *piMaxBufCount is 0
2023-09-12 14:21:49.030  2643-2643  ANR_LOG                 com.google.android.filament.gltf     E  >>> msg's executing time is too long
2023-09-12 14:21:49.030  2643-2643  ANR_LOG                 com.google.android.filament.gltf     E  Blocked msg = { when=-13s456ms what=0 target=android.view.Choreographer$FrameHandler callback=android.view.Choreographer$FrameDisplayEventReceiver } , cost  = 10787 ms
2023-09-12 14:21:49.030  2643-2643  ANR_LOG                 com.google.android.filament.gltf     E  >>>Current msg List is:
2023-09-12 14:21:49.030  2643-2643  ANR_LOG                 com.google.android.filament.gltf     E  Current msg <1>  = { when=-11s508ms what=1 target=android.widget.Toast$TN$1 }
2023-09-12 14:21:49.030  2643-2643  ANR_LOG                 com.google.android.filament.gltf     E  Current msg <2>  = { when=-10s767ms barrier=1 }
2023-09-12 14:21:49.030  2643-2643  ANR_LOG                 com.google.android.filament.gltf     E  Current msg <3>  = { when=-10s732ms what=6 target=android.view.ViewRootImpl$ViewRootHandler }
2023-09-12 14:21:49.030  2643-2643  ANR_LOG                 com.google.android.filament.gltf     E  >>>CURRENT MSG DUMP OVER<<<
2023-09-12 14:21:49.034  2643-2643  Choreographer           com.google.android.filament.gltf     I  Skipped 648 frames!  The application may be doing too much work on its main thread.
2023-09-12 14:21:49.390  2643-2867  IMGSRV                  com.google.android.filament.gltf     E  :0: ObtainWindowParams: *piMaxBufCount is 64
2023-09-12 14:21:49.390  2643-2867  IMGSRV                  com.google.android.filament.gltf     E  :0: ObtainWindowParams: *piMaxBufCount is 64
2023-09-12 14:21:49.400  2643-2867  ion                     com.google.android.filament.gltf     E  ioctl c0044901 failed with code -1: Invalid argument
2023-09-12 14:21:49.576  2643-2867  OpenGLRenderer          com.google.android.filament.gltf     I  Davey! duration=11317ms; Flags=1, IntendedVsync=12196605017803, Vsync=12207378084547, OldestInputEvent=9223372036854775807, NewestInputEvent=0, HandleInputStart=12207392579265, AnimationStart=12207392793342, PerformTraversalsStart=12207717305188, DrawStart=12207739483419, SyncQueued=12207747795496, SyncStart=12207759497342, IssueDrawCommandsStart=12207761114496, SwapBuffers=12207926338957, FrameCompleted=12207933821803, DequeueBufferDuration=0, QueueBufferDuration=1080000, 
2023-09-12 14:21:49.594  2643-2643  Choreographer           com.google.android.filament.gltf     I  Skipped 33 frames!  The application may be doing too much work on its main thread.
2023-09-12 14:21:49.614  2643-2643  Choreographer           com.google.android.filament.gltf     I  Skipped 1 frames!  The application may be doing too much work on its main thread.
2023-09-12 14:21:49.717  2643-2643  Choreographer           com.google.android.filament.gltf     I  Skipped 5 frames!  The application may be doing too much work on its main thread.
2023-09-12 14:21:50.028  2643-2778  IMGSRV                  com.google.android.filament.gltf     E  :0: ObtainWindowParams: *piMaxBufCount is 64
2023-09-12 14:21:50.028  2643-2778  IMGSRV                  com.google.android.filament.gltf     E  :0: ObtainWindowParams: *piMaxBufCount is 64
2023-09-12 14:21:50.038  2643-2785  libMEOW                 com.google.android.filament.gltf     D  applied 1 plugins for [com.google.android.filament.gltf]:
2023-09-12 14:21:50.038  2643-2785  libMEOW                 com.google.android.filament.gltf     D    plugin 1: [libMEOW_gift.so]:
2023-09-12 14:21:50.208  2643-2778  Filament                com.google.android.filament.gltf     E  Compilation error in fragment shader "base_lit_opaque":
                                                                                                    "Compile failed.
                                                                                                    WARNING: 0:3: Extension GL_GOOGLE_cpp_style_line_directive not supported
                                                                                                    1 compilation warnings.
                                                                                                    
                                                                                                    "
2023-09-12 14:21:50.215  2643-2778  Filament                com.google.android.filament.gltf     E  1:   #version 300 es
                                                                                                    2:   
                                                                                                    3:   #extension GL_GOOGLE_cpp_style_line_directive : enable
                                                                                                    4:   
                                                                                                    5:   #define TARGET_MOBILE
                                                                                                    6:   #define TARGET_GLES_ENVIRONMENT
                                                                                                    7:   #define FILAMENT_OPENGL_SEMANTICS
                                                                                                    8:   #define FILAMENT_HAS_FEATURE_INSTANCING
                                                                                                    9:   #define VARYING in
                                                                                                    10:   #define SHADING_MODEL_LIT
                                                                                                    11:   #define FILAMENT_QUALITY_LOW    0
                                                                                                    12:   #define FILAMENT_QUALITY_NORMAL 1
                                                                                                    13:   #define FILAMENT_QUALITY_HIGH   2
                                                                                                    14:   #define FILAMENT_QUALITY FILAMENT_QUALITY_LOW
                                                                                                    15:   
                                                                                                    16:   precision mediump float;
                                                                                                    17:   precision mediump int;
                                                                                                    18:   precision lowp sampler2DArray;
                                                                                                    19:   precision lowp sampler3D;
                                                                                                    20:   
                                                                                                    21:   #ifndef SPIRV_CROSS_CONSTANT_ID_0
                                                                                                    22:   #define SPIRV_CROSS_CONSTANT_ID_0 1
                                                                                                    23:   #endif
                                                                                                    24:   const int BACKEND_FEATURE_LEVEL = SPIRV_CROSS_CONSTANT_ID_0;
                                                                                                    25:   
                                                                                                    26:   #ifndef SPIRV_CROSS_CONSTANT_ID_1
                                                                                                    27:   #define SPIRV_CROSS_CONSTANT_ID_1 64
                                                                                                    28:   #endif
                                                                                                    29:   const int CONFIG_MAX_INSTANCES = SPIRV_CROSS_CONSTANT_ID_1;
                                                                                                    30:   
                                                                                                    31:   #ifndef SPIRV_CROSS_CONSTANT_ID_4
                                                                                                    32:   #define SPIRV_CROSS_CONSTANT_ID_4 1024
                                                                                                    33:   #endif
                                                                                                    34:   const int CONFIG_FROXEL_BUFFER_HEIGHT = SPIRV_CROSS_CONSTANT_ID_4;
                                                                                                    35:   
                                                                                                    36:   #ifndef SPIRV_CROSS_CONSTANT_ID_2
                                                                                                    37:   #define SPIRV_CROSS_CONSTANT_ID_2 false
                                                                                                    38:   #endif
                                                                                                    39:   const bool CONFIG_STATIC_TEXTURE_TARGET_WORKAROUND = SPIRV_CROSS_CONSTANT_ID_2;
                                                                                                    40:   
                                                                                                    41:   
                                                                                                    42:   #if defined(GL_GOOGLE_cpp_style_line_directive)
                                                                                                    43:   #line 0                      
                                                                                                    44:   #endif
                                                                                                    45:   #if defined(FILAMENT_VULKAN_SEMANTICS)
                                                                                                    46:   #define LAYOUT_LOCATION(x) layout(location = x)
                                                                                                    47:   #else
                                                                                                    48:   #define LAYOUT_LOCATION(x)
                                                                                                    49:   #endif
                                                                                                    50:   
                                                                                                    51:   #define bool2    bvec2
                                                                                                    52:   #define bool3    bvec3
                                                                                                    53:   #define bool4    bvec4
                                                                                                    54:   
                                                                                                    55:   #define int2     ivec2
                                                                                                    56:   #define int3     ivec3
                                                                                                    57:   #define int4     ivec4
                                                                                                    58:   
                                                                                                    59:   #define uint2    uvec2
                                                                                                    60:   #define uint3    uvec3
                                                                                                    61:   #define uint4    uvec4
                                                                                                    62:   
                                                                                                    63:   #define float2   vec2
                                                                                                    64:   #define float3   vec3
                                                                                                    65:   #define float4   vec4
                                                                                                    66:   
                                                                                                    67:   #define float3x3 mat3
                                                                                                    68:   #define float4x4 mat4
                                                                                                    69:   
                                                                                                    70:   // To workaround an adreno crash (#5294), we need ensure that a method with
                                                                                                    71:   // parameter 'const mat4' does not call another method also with a 'const mat4'
                                                                                                    72:   // parameter (i.e. mulMat4x4Float3). So we remove the const modifier for
                                                                                                    73:   // materials compiled for vulkan+mobile.
                                                                                                    74:   #if defined(TARGET_VULKAN_ENVIRONMENT) && defined(TARGET_MOBILE)
                                                                                                    75:      #define highp_mat4 highp mat4
                                                                                                    76:   #else
                                                                                                    77:      #define highp_mat4 const highp mat4
                                                                                                    78:   #endif
                                                                                                    79:   
                                                                                                    80:   
                                                                                                    81:   #define MATERIAL_FEATURE_LEVEL 1
                                                                                                    82:   #define MATERIAL_HAS_REFLECTIONS
                                                                                                    83:   #define MATERIAL_HAS_DOUBLE_SIDED_CAPABILITY
                                                                                                    84:   
                                                                                                    85:   #define BLEND_MODE_OPAQUE
                                                                                                    86:   #define POST_LIGHTING_BLEND_MODE_TRANSPARENT
                                                                                                    87:   
                                                                                                    88:   #define GEOMETRIC_SPECULAR_AA
                                                                                                    89:   #define SPECULAR_AMBIENT_OCCLUSION 1
                                                                                                    90:   #define MULTI_BOUNCE_AMBIENT_OCCLUSION 0
                                                                                                    91:   #define MATERIAL_HAS_BASE_COLOR
                                                                                                    92:   #define MATERIAL_HAS_ROUGHNESS
                                                                                                    93:   #define MATERIAL_HAS_METALLIC
                                                                                                    94:   #define MATERIAL_HAS_REFLECTANCE
                                                                                                    95:   #define MATERIAL_HAS_AMBIENT_OCCLUSION
                                                                                                    96:   #define MATERIAL_HAS_CLEAR_COAT
                                                                                                    97:   #define MATERIAL_HAS_CLEAR_COAT_ROUGHNESS
                                                                                                    98:   #define MATERIAL_HAS_CLEAR_COAT_NORMAL
                                                                                                    99:   #define MATERIAL_HAS_EMISSIVE
                                                                                                    100:   #define MATERIAL_HAS_NORMAL
                                                                                                    101:   #define MATERIAL_NEEDS_TBN
                                                                                                    102:   #define SHADING_INTERPOLATION 
                                                                                                    103:   
                                                                                                    104:   #define HAS_ATTRIBUTE_POSITION
                                                                                                    105:   #define HAS_ATTRIBUTE_TANGENTS
                                                                                                    106:   #define HAS_ATTRIBUTE_COLOR
                                                                                                    107:   #define HAS_ATTRIBUTE_UV0
                                                                                                    108:   #define HAS_ATTRIBUTE_UV1
                                                                                                    109:   
                                                                                                    110:   #if defined(GL_GOOGLE_cpp_style_line_directive)
                                                                                                    111:   #line 0                
                                                                                                    112:   #endif
                                                                                                    113:   //------------------------------------------------------------------------------
                                                                                                    114:   // Varyings
                                                                                                    115:   //------------------------------------------------------------------------------
                                                                                                    116:   
                                                                                                    117:   LAYOUT_LOCATION(4) VARYING highp vec4 vertex_worldPosition;
                                                                                                    118:   
                                                                                                    119:   #if defined(HAS_ATTRIBUTE_TANGENTS)
                                                                                                    120:   LAYOUT_LOCATION(5) SHADING_INTERPOLATION VARYING mediump vec3 vertex_worldNormal;
                                                                                                    121:   #if defi
2023-09-12 14:21:50.215  2643-2778  Filament                com.google.android.filament.gltf     E  Link error in "base_lit_opaque":
                                                                                                    "Link Error: Fragment shader was not successfully compiled.
                                                                                                    "
2023-09-12 14:21:50.215  2643-2778  Filament                com.google.android.filament.gltf     E  
                                                                                                    in void utils::panic(const char *, const char *, int, const char *):32
                                                                                                    in file /Volumes/Project/github/filament2/libs/utils/src/debug.cpp
                                                                                                    reason: /Volumes/Project/github/filament2/filament/backend/src/opengl/ShaderCompilerService.cpp:462: failed assertion `program'
2023-09-12 14:21:50.215  2643-2778  Filament                com.google.android.filament.gltf     E  
2023-09-12 14:21:50.215  2643-2778  apitrace                com.google.android.filament.gltf     D  apitrace: warning: caught signal 6
2023-09-12 14:21:50.215  2643-2778  apitrace                com.google.android.filament.gltf     D  call flush from exceptionCallback
2023-09-12 14:21:50.216  2643-2778  libc                    com.google.android.filament.gltf     A  Fatal signal 6 (SIGABRT), code -6 (SI_TKILL) in tid 2778 (FEngine::loop), pid 2643 (d.filament.gltf)
2023-09-12 14:21:50.245  2643-2643  Choreographer           com.google.android.filament.gltf     I  Skipped 1 frames!  The application may be doing too much work on its main thread.
2023-09-12 14:21:50.254  2643-2643  Choreographer           com.google.android.filament.gltf     W  Frame time is 5.031197 ms in the future!  Check that graphics HAL is generating vsync timestamps using the correct timebase.
2023-09-12 14:21:50.368  2643-2643  Choreographer           com.google.android.filament.gltf     I  Skipped 3 frames!  The application may be doing too much work on its main thread.
2023-09-12 14:21:50.402  3127-3127  DEBUG                   pid-3127                             A  pid: 2643, tid: 2778, name: FEngine::loop  >>> com.google.android.filament.gltf <<<
2023-09-12 14:21:50.414  3127-3127  DEBUG                   pid-3127                             A      #01 pc 00000000006ee7e8  /data/app/com.google.android.filament.gltf-t2P-3IkhsHcVTyyQXmEQbw==/lib/arm64/libfilament-jni.so
2023-09-12 14:21:50.414  3127-3127  DEBUG                   pid-3127                             A      #02 pc 00000000006ee848  /data/app/com.google.android.filament.gltf-t2P-3IkhsHcVTyyQXmEQbw==/lib/arm64/libfilament-jni.so
2023-09-12 14:21:50.414  3127-3127  DEBUG                   pid-3127                             A      #03 pc 00000000005cacdc  /data/app/com.google.android.filament.gltf-t2P-3IkhsHcVTyyQXmEQbw==/lib/arm64/libfilament-jni.so
2023-09-12 14:21:50.414  3127-3127  DEBUG                   pid-3127                             A      #04 pc 00000000005f88e8  /data/app/com.google.android.filament.gltf-t2P-3IkhsHcVTyyQXmEQbw==/lib/arm64/libfilament-jni.so
2023-09-12 14:21:50.414  3127-3127  DEBUG                   pid-3127                             A      #05 pc 00000000005b8464  /data/app/com.google.android.filament.gltf-t2P-3IkhsHcVTyyQXmEQbw==/lib/arm64/libfilament-jni.so
2023-09-12 14:21:50.414  3127-3127  DEBUG                   pid-3127                             A      #06 pc 00000000005b82a8  /data/app/com.google.android.filament.gltf-t2P-3IkhsHcVTyyQXmEQbw==/lib/arm64/libfilament-jni.so
2023-09-12 14:21:50.414  3127-3127  DEBUG                   pid-3127                             A      #07 pc 00000000005a020c  /data/app/com.google.android.filament.gltf-t2P-3IkhsHcVTyyQXmEQbw==/lib/arm64/libfilament-jni.so
2023-09-12 14:21:50.414  3127-3127  DEBUG                   pid-3127                             A      #08 pc 00000000005c93c4  /data/app/com.google.android.filament.gltf-t2P-3IkhsHcVTyyQXmEQbw==/lib/arm64/libfilament-jni.so
2023-09-12 14:21:50.414  3127-3127  DEBUG                   pid-3127                             A      #09 pc 00000000005c92d4  /data/app/com.google.android.filament.gltf-t2P-3IkhsHcVTyyQXmEQbw==/lib/arm64/libfilament-jni.so
2023-09-12 14:21:50.414  3127-3127  DEBUG                   pid-3127                             A      #10 pc 00000000005c9208  /data/app/com.google.android.filament.gltf-t2P-3IkhsHcVTyyQXmEQbw==/lib/arm64/libfilament-jni.so
2023-09-12 14:21:50.414  3127-3127  DEBUG                   pid-3127                             A      #11 pc 00000000005a0194  /data/app/com.google.android.filament.gltf-t2P-3IkhsHcVTyyQXmEQbw==/lib/arm64/libfilament-jni.so
2023-09-12 14:21:50.414  3127-3127  DEBUG                   pid-3127                             A      #12 pc 0000000000597f50  /data/app/com.google.android.filament.gltf-t2P-3IkhsHcVTyyQXmEQbw==/lib/arm64/libfilament-jni.so
2023-09-12 14:21:50.414  3127-3127  DEBUG                   pid-3127                             A      #13 pc 000000000056ca98  /data/app/com.google.android.filament.gltf-t2P-3IkhsHcVTyyQXmEQbw==/lib/arm64/libfilament-jni.so
2023-09-12 14:21:50.414  3127-3127  DEBUG                   pid-3127                             A      #14 pc 000000000056c870  /data/app/com.google.android.filament.gltf-t2P-3IkhsHcVTyyQXmEQbw==/lib/arm64/libfilament-jni.so
2023-09-12 14:21:50.414  3127-3127  DEBUG                   pid-3127                             A      #15 pc 000000000056c7f8  /data/app/com.google.android.filament.gltf-t2P-3IkhsHcVTyyQXmEQbw==/lib/arm64/libfilament-jni.so
2023-09-12 14:21:50.414  3127-3127  DEBUG                   pid-3127                             A      #16 pc 000000000056c798  /data/app/com.google.android.filament.gltf-t2P-3IkhsHcVTyyQXmEQbw==/lib/arm64/libfilament-jni.so
2023-09-12 14:21:50.414  3127-3127  DEBUG                   pid-3127                             A      #17 pc 000000000056c768  /data/app/com.google.android.filament.gltf-t2P-3IkhsHcVTyyQXmEQbw==/lib/arm64/libfilament-jni.so
2023-09-12 14:21:50.414  3127-3127  DEBUG                   pid-3127                             A      #18 pc 000000000056b518  /data/app/com.google.android.filament.gltf-t2P-3IkhsHcVTyyQXmEQbw==/lib/arm64/libfilament-jni.so
2023-09-12 14:21:50.414  3127-3127  DEBUG                   pid-3127                             A      #19 pc 00000000004a93a8  /data/app/com.google.android.filament.gltf-t2P-3IkhsHcVTyyQXmEQbw==/lib/arm64/libfilament-jni.so
2023-09-12 14:21:50.414  3127-3127  DEBUG                   pid-3127                             A      #20 pc 00000000004a36a4  /data/app/com.google.android.filament.gltf-t2P-3IkhsHcVTyyQXmEQbw==/lib/arm64/libfilament-jni.so
2023-09-12 14:21:50.414  3127-3127  DEBUG                   pid-3127                             A      #21 pc 000000000056d628  /data/app/com.google.android.filament.gltf-t2P-3IkhsHcVTyyQXmEQbw==/lib/arm64/libfilament-jni.so
2023-09-12 14:21:50.414  3127-3127  DEBUG                   pid-3127                             A      #22 pc 000000000056acd8  /data/app/com.google.android.filament.gltf-t2P-3IkhsHcVTyyQXmEQbw==/lib/arm64/libfilament-jni.so
2023-09-12 14:21:50.414  3127-3127  DEBUG                   pid-3127                             A      #23 pc 0000000000460520  /data/app/com.google.android.filament.gltf-t2P-3IkhsHcVTyyQXmEQbw==/lib/arm64/libfilament-jni.so
2023-09-12 14:21:50.415  3127-3127  DEBUG                   pid-3127                             A      #24 pc 000000000045d33c  /data/app/com.google.android.filament.gltf-t2P-3IkhsHcVTyyQXmEQbw==/lib/arm64/libfilament-jni.so
2023-09-12 14:21:50.415  3127-3127  DEBUG                   pid-3127                             A      #25 pc 0000000000469c9c  /data/app/com.google.android.filament.gltf-t2P-3IkhsHcVTyyQXmEQbw==/lib/arm64/libfilament-jni.so
2023-09-12 14:21:50.415  3127-3127  DEBUG                   pid-3127                             A      #26 pc 0000000000469b78  /data/app/com.google.android.filament.gltf-t2P-3IkhsHcVTyyQXmEQbw==/lib/arm64/libfilament-jni.so
2023-09-12 14:21:50.415  3127-3127  DEBUG                   pid-3127                             A      #27 pc 000000000046938c  /data/app/com.google.android.filament.gltf-t2P-3IkhsHcVTyyQXmEQbw==/lib/arm64/libfilament-jni.so
---------------------------- PROCESS STARTED (3134) for package com.google.android.filament.gltf ----------------------------
2023-09-12 14:21:51.306  2643-2643  Choreographer           com.google.android.filament.gltf     W  Frame time is 2.980402 ms in the future!  Check that graphics HAL is generating vsync timestamps using the correct timebase.
---------------------------- PROCESS ENDED (2643) for package com.google.android.filament.gltf ----------------------------
2023-09-12 14:21:51.375  1337-1500  InputDispatcher         system_server                        E  channel 'c6b0761 com.google.android.filament.gltf/com.google.android.filament.gltf.MainActivity (server)' ~ Channel is unrecoverably broken and will be disposed!

Smartphone (please complete the following information):

  • Device: OPPO A8 PDBM00
  • OS: Android Pie 9.0
  • Device Model: PDBM00
  • SOC: MT6765V/CB
  • GPU: IMG PowerVR GE8320
@pixelflinger
Copy link
Collaborator

This is a known bug on some PowerVR GPU. It should only happen in DEBUG builds. Try a release build.

@pixelflinger pixelflinger self-assigned this Sep 12, 2023
@pixelflinger pixelflinger added bug Something isn't working android Issue/feature request for Android only gpu specific This bug occurs only with a single GPU vendor. labels Sep 12, 2023
@romainguy
Copy link
Collaborator

@pixelflinger is this caused by the use of GL_GOOGLE_cpp_style_line_directive? If so, can we remove it before runtime compilation on PVR?

@pixelflinger
Copy link
Collaborator

@pixelflinger is this caused by the use of GL_GOOGLE_cpp_style_line_directive? If so, can we remove it before runtime compilation on PVR?

No that's just a warning. It's not the cause of the failure. The failure is due to the const issue.

@lukwsx
Copy link
Author

lukwsx commented Sep 15, 2023

This is a known bug on some PowerVR GPU. It should only happen in DEBUG builds. Try a release build.

I tried using the release build 1.41.0, and indeed it no longer crashes. However, the initial startup takes a long time to successfully load the model, approximately 2 minutes.

15:36:37.614 16805-16805 libMEOW               D  applied 1 plugins for [com.google.android.filament.gltf]:
15:36:37.614 16805-16805 libMEOW               D    plugin 1: [libMEOW_gift.so]:
15:36:37.631 16805-16887 libMEOW               D  applied 1 plugins for [com.google.android.filament.gltf]:
15:36:37.638 16805-16887 libMEOW               D    plugin 1: [libMEOW_gift.so]:
15:36:37.815 16805-16805 OpenGLRenderer        D  Skia GL Pipeline
15:36:37.815 16805-16805 MMListParser          D  +++initMMListConfigFile gInitDone 0
15:36:37.815 16805-16805 MMListParser          D  onlineVersion -1 defaultVersion 20200714
15:36:37.818 16805-16805 SurfaceFactory        I  [static] sSurfaceFactory = com.mediatek.view.impl.SurfaceFactoryImpl@c22b395
15:36:37.861 16805-16805 Filament              I  FEngine (64 bits) created at 0x7df7591000 (threading is enabled)
15:36:37.870 16805-16928 Filament              D  Using ASurfaceTexture
15:36:37.871 16805-16928 Filament              I  FEngine resolved backend: OpenGL
15:36:37.871 16805-16928 libMEOW               D  applied 1 plugins for [com.google.android.filament.gltf]:
15:36:37.871 16805-16928 libMEOW               D    plugin 1: [libMEOW_gift.so]:
15:36:37.890 16805-16928 libARC                I  try to register callback & init again
15:36:37.908 16805-16928 sys-gift-manager      D  getProcessName(16805, Unkonwn)
15:36:37.908 16805-16928 sys-gift-manager      D  giftBp start get GiftFeatureOn pid(16805), name(Unkonwn), isEnable(0), debug(0)
15:36:37.919 16805-16928 sys-gift-manager      D  giftBp end get GiftFeatureOn pid(16805), name(Unkonwn), isEnable(1), debug(1), ret(0)
15:36:37.919 16805-16928 libARC                I  GiFT is Enabled from GetGiFTFeatureOn
15:36:37.920 16805-16928 sys-gift-manager      D  giftBp  getGiftPara start pkgName(com.google.android.filament.gltf), size(260), para() pid(16805)
15:36:37.921 16805-16928 sys-gift-manager      D  giftBp  getGiftPara end pkgName(com.google.android.filament.gltf), para(), pid(16805) ret(-22)
15:36:37.921 16805-16928 sys-gift-manager      D  getGiftPara pkg(com.google.android.filament.gltf,260,), ret=-22
15:36:37.921 16805-16928 libARC                I  liboppogift.so::GetGiFTPara(...) = -22
15:36:37.938 16805-16928 ConfigStore           I  android::hardware::configstore::V1_0::ISurfaceFlingerConfigs::hasWideColorDisplay retrieved: 0
15:36:37.938 16805-16928 ConfigStore           I  android::hardware::configstore::V1_0::ISurfaceFlingerConfigs::hasHDRDisplay retrieved: 0
15:36:37.949 16805-16928 libARC                I  gli_eglCreateContextRet() tid:16928, ctx: 0x7def622d80, ARC not Enabled.
15:36:37.950 16805-16928 Filament              V  [Imagination Technologies], [PowerVR Rogue GE8320], [OpenGL ES 3.2 build 1.10@5130912], [OpenGL ES GLSL ES 3.20 build 1.10@5130912]
15:36:37.950 16805-16928 Filament              V  Feature level: 2
                                                  Active workarounds: 
15:36:37.954 16805-16805 Filament              I  Backend feature level: 2
15:36:37.954 16805-16805 Filament              I  FEngine feature level: 1
15:36:38.041 16805-16805 Filament              I  Texture Decoder has 6 background threads.
15:36:38.418 16805-16805 Filament              I  RemoteServer listening at ws://localhost:8082
15:36:38.454 16805-16805 WindowClient          D  Add to mViews: DecorView@811b4b2[MainActivity], this = android.view.WindowManagerGlobal@8445c03, pkg = com.google.android.filament.gltf
15:36:38.529 16805-16805 ViewRootI...ctivity]  D  hardware acceleration = true , fakeHwAccelerated = false, sRendererDisabled = false, forceHwAccelerated = false, sSystemRendererDisabled = false
15:36:38.546 16805-16805 PhoneWindow           V  DecorView setVisiblity: visibility = 0, Parent = android.view.ViewRootImpl@6764780, this = DecorView@811b4b2[MainActivity]
15:36:38.554 16805-17100 libARC                D  etEventThreadFunc()::thread Begin. eventRefCnt: 1
15:36:38.575 16805-16805 WindowClient          D  Add to mViews: com.color.internal.widget.ColorToastLayout{ea6b55f V.E...... ......I. 0,0-0,0 #c0204f9 oppo:id/color_toast_layout}, this = android.view.WindowManagerGlobal@8445c03, pkg = com.google.android.filament.gltf
15:36:38.579 16805-16805 ViewRootImpl[Toast]   D  hardware acceleration = true , fakeHwAccelerated = false, sRendererDisabled = false, forceHwAccelerated = false, sSystemRendererDisabled = false
15:36:38.592 16805-16805 Choreographer         I  Skipped 9 frames!  The application may be doing too much work on its main thread.
15:36:38.658 16805-17086 libMEOW               D  applied 1 plugins for [com.google.android.filament.gltf]:
15:36:38.659 16805-17086 libMEOW               D    plugin 1: [libMEOW_gift.so]:
15:36:38.659 16805-17086 OpenGLRenderer        I  Initialized EGL, version 1.4
15:36:38.659 16805-17086 OpenGLRenderer        D  Swap behavior 2
15:36:38.667 16805-17086 libARC                I  gli_eglCreateContextRet() tid:17086, ctx: 0x7ddbe7e480, ARC not Enabled.
15:36:38.670 16805-17086 mmscene               D  open config fail
15:36:38.670 16805-17086 mmscene               D  config version remote=, local=20180911
15:36:38.670 16805-17086 mmscene               D  use local config: r=, l=20180911
15:36:38.672 16805-17086 mmscene               D  getHint applicationScene=com.google.android.filament.gltf,idx=0 none
15:36:38.675 16805-17086 Surface               D  Surface::connect(this=0x7ddadd7000,api=1)
15:36:38.677 16805-17086 IMGSRV                E  :0: ObtainWindowParams: *piMaxBufCount is 0
15:36:40.097 17001-17001 ANR_LOG               E  Current msg <1>  = { when=-1s791ms what=113 target=android.app.ActivityThread$H obj=ReceiverData{intent=Intent { act=oppo.intent.action.PACKAGE_ADDED dat=package:com.google.android.filament.gltf flg=0x5000010 cmp=com.nearme.gamecenter/com.heytap.cdo.client.domain.receiver.PackageReceiver (has extras) } packageName=com.nearme.gamecenter resultCode=0 resultData=null resultExtras=null} }
15:36:42.548 16805-16876 d.filament.glt        I  ProcessProfilingInfo new_methods=722 is saved saved_to_disk=1 resolve_classes_delay=5000
15:36:43.192 11136-16748 ChromeSync            E  [Sync,SyncIntentOperation] Error handling the intent: Intent { act=android.intent.action.PACKAGE_ADDED dat=package:com.google.android.filament.gltf flg=0x4000010 cmp=com.google.android.gms/.chimera.GmsIntentOperationService (has extras) }.
15:38:35.832 16805-16928 Surface               D  Surface::connect(this=0x7ddbf57000,api=1)
15:38:35.834 16805-16928 IMGSRV                E  :0: ObtainWindowParams: *piMaxBufCount is 0
15:38:35.876 16805-17086 Surface               D  Surface::connect(this=0x7dd70f1000,api=1)
15:38:35.876 16805-16805 Surface               D  Surface::allocateBuffers(this=0x7dd70f1000)
15:38:35.879 16805-17086 IMGSRV                E  :0: ObtainWindowParams: *piMaxBufCount is 0
15:38:35.888 16805-16805 ANR_LOG               E  >>> msg's executing time is too long
15:38:35.888 16805-16805 ANR_LOG               E  Blocked msg = { when=-1m57s458ms what=0 target=android.view.Choreographer$FrameHandler callback=android.view.Choreographer$FrameDisplayEventReceiver } , cost  = 117296 ms
15:38:35.888 16805-16805 ANR_LOG               E  >>>Current msg List is:
15:38:35.888 16805-16805 ANR_LOG               E  Current msg <1>  = { when=-1m57s439ms what=0 target=android.view.ViewRootImpl$ViewRootHandler callback=android.view.ViewRootImpl$4 }
15:38:35.889 16805-16805 ANR_LOG               E  Current msg <2>  = { when=-1m57s438ms what=0 target=android.os.Handler callback=kotlinx.coroutines.internal.DispatchedContinuation }
15:38:35.889 16805-16805 ANR_LOG               E  Current msg <3>  = { when=-1m57s318ms what=0 target=android.view.ViewRootImpl$ViewRootHandler callback=android.view.ViewRootImpl$4 }
15:38:35.889 16805-16805 ANR_LOG               E  Current msg <4>  = { when=-1m57s279ms barrier=2 }
15:38:35.889 16805-16805 ANR_LOG               E  Current msg <5>  = { when=-1m57s220ms what=6 target=android.view.ViewRootImpl$ViewRootHandler }
15:38:35.890 16805-16805 ANR_LOG               E  Current msg <6>  = { when=-1m56s968ms what=5 target=android.view.ViewRootImpl$ViewRootHandler obj=com.android.internal.os.SomeArgs@5d3c5c8 }
15:38:35.890 16805-16805 ANR_LOG               E  Current msg <7>  = { when=-1m55s472ms what=1 target=android.widget.Toast$TN$1 }
15:38:35.890 16805-16805 ANR_LOG               E  Current msg <8>  = { when=-1m53s268ms what=25 target=android.view.ViewRootImpl$ViewRootHandler }
15:38:35.890 16805-16805 ANR_LOG               E  Current msg <9>  = { when=0 barrier=3 }
15:38:35.890 16805-16805 ANR_LOG               E  >>>CURRENT MSG DUMP OVER<<<
15:38:36.344 16805-16805 Choreographer         I  Skipped 7082 frames!  The application may be doing too much work on its main thread.
15:38:36.671 16805-17086 IMGSRV                E  :0: ObtainWindowParams: *piMaxBufCount is 64
15:38:36.671 16805-17086 IMGSRV                E  :0: ObtainWindowParams: *piMaxBufCount is 64
15:38:36.694 16805-17086 ion                   E  ioctl c0044901 failed with code -1: Invalid argument
15:38:36.836 16805-17086 OpenGLRenderer        I  Davey! duration=118215ms; Flags=1, IntendedVsync=5795785895960, Vsync=5913524875406, OldestInputEvent=9223372036854775807, NewestInputEvent=0, HandleInputStart=5913535173736, AnimationStart=5913535447274, PerformTraversalsStart=5913834466274, DrawStart=5913850495582, SyncQueued=5913860687120, SyncStart=5913884983890, IssueDrawCommandsStart=5913886312736, SwapBuffers=5914006906274, FrameCompleted=5914025731659, DequeueBufferDuration=0, QueueBufferDuration=1677000, 
15:38:36.841 16805-17086 IMGSRV                E  :0: ObtainWindowParams: *piMaxBufCount is 64
15:38:36.842 16805-17086 IMGSRV                E  :0: ObtainWindowParams: *piMaxBufCount is 64
15:38:36.873 16805-17086 OpenGLRenderer        I  Davey! duration=118274ms; Flags=1, IntendedVsync=5795785895960, Vsync=5913524875406, OldestInputEvent=9223372036854775807, NewestInputEvent=0, HandleInputStart=5913535173736, AnimationStart=5913535447274, PerformTraversalsStart=5913834466274, DrawStart=5914027926044, SyncQueued=5914031470659, SyncStart=5914034764736, IssueDrawCommandsStart=5914034926044, SwapBuffers=5914061190967, FrameCompleted=5914063288890, DequeueBufferDuration=0, QueueBufferDuration=1228000, 
15:38:36.909 16805-16805 WindowManager         D  removeViewLocked root=android.view.ViewRootImpl@b88f79d view=com.color.internal.widget.ColorToastLayout{ea6b55f V.E...... ........ 0,0-624,110 #c0204f9 oppo:id/color_toast_layout}
15:38:36.920 16805-17086 Surface               D  Surface::disconnect(this=0x7dd70f1000,api=1)
15:38:36.922 16805-16805 View                  D  [Warning] assignParent to null: this = com.color.internal.widget.ColorToastLayout{ea6b55f V.E...... ......ID 0,0-624,110 #c0204f9 oppo:id/color_toast_layout}
15:38:36.951 16805-16805 Choreographer         I  Skipped 36 frames!  The application may be doing too much work on its main thread.
15:38:36.983 16805-17086 IMGSRV                E  :0: ObtainWindowParams: *piMaxBufCount is 64
15:38:36.983 16805-17086 IMGSRV                E  :0: ObtainWindowParams: *piMaxBufCount is 64
15:38:36.996 16805-16805 Choreographer         I  Skipped 2 frames!  The application may be doing too much work on its main thread.
15:38:37.669 16805-16928 IMGSRV                E  :0: ObtainWindowParams: *piMaxBufCount is 64
15:38:37.670 16805-16928 IMGSRV                E  :0: ObtainWindowParams: *piMaxBufCount is 64
15:38:37.717 16805-16805 Choreographer         I  Skipped 1 frames!  The application may be doing too much work on its main thread.
15:38:39.734 16805-16805 Choreographer         W  Frame time is 7.856717 ms in the future!  Check that graphics HAL is generating vsync timestamps using the correct timebase.
15:38:39.751 16805-16805 Choreographer         W  Frame time is 6.969757 ms in the future!  Check that graphics HAL is generating vsync timestamps using the correct timebase.
15:38:39.759 16805-16805 Choreographer         W  Frame time is 15.934237 ms in the future!  Check that graphics HAL is generating vsync timestamps using the correct timebase.
15:38:41.111 16805-16959 libMEOW               D  applied 1 plugins for [com.google.android.filament.gltf]:
15:38:41.111 16805-16959 libMEOW               D    plugin 1: [libMEOW_gift.so]:
15:38:43.233 16805-16805 Choreographer         W  Frame time is 0.752598 ms in the future!  Check that graphics HAL is generating vsync timestamps using the correct timebase.
15:38:44.597 16805-16805 Choreographer         W  Frame time is 16.19199 ms in the future!  Check that graphics HAL is generating vsync timestamps using the correct timebase.
15:38:45.229 16805-16805 Choreographer         W  Frame time is 16.330723 ms in the future!  Check that graphics HAL is generating vsync timestamps using the correct timebase.
15:38:45.246 16805-16805 Choreographer         W  Frame time is 23.93507 ms in the future!  Check that graphics HAL is generating vsync timestamps using the correct timebase.
15:38:46.277 16805-16805 Choreographer         W  Frame time is 15.62663 ms in the future!  Check that graphics HAL is generating vsync timestamps using the correct timebase.
15:38:46.979 16805-16805 Choreographer         I  Skipped 1 frames!  The application may be doing too much work on its main thread.
15:38:48.058 16805-16805 Choreographer         I  Skipped 3 frames!  The application may be doing too much work on its main thread.
15:38:49.178 16805-16805 Choreographer         W  Frame time is 6.858757 ms in the future!  Check that graphics HAL is generating vsync timestamps using the correct timebase.
15:38:49.193 16805-16805 Choreographer         W  Frame time is 7.093908 ms in the future!  Check that graphics HAL is generating vsync timestamps using the correct timebase.
15:38:49.200 16805-16805 Choreographer         W  Frame time is 16.250635 ms in the future!  Check that graphics HAL is generating vsync timestamps using the correct timebase.
15:38:49.725 16805-16805 Choreographer         W  Frame time is 7.972447 ms in the future!  Check that graphics HAL is generating vsync timestamps using the correct timebase.

@lukwsx
Copy link
Author

lukwsx commented Sep 19, 2023

I tried using the release build 1.43.0 and it worked fine. close this issue

@lukwsx lukwsx closed this as completed Sep 19, 2023
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.
Projects
None yet
Development

No branches or pull requests

3 participants