Git Product home page Git Product logo

Comments (11)

mark-lunarg avatar mark-lunarg commented on May 5, 2024

Crash occurs without AGI and appears to be an issue with ANGLE. Traces die after a vkCmdDispatch call. Also noted the following, possibly related, error in the log before the crash:

02-24 15:00:17.033 30091 30205 I ANGLE : ERROR: 0:2: 'GL_EXT_texture_buffer' : extension is not supported

Repro steps -- may need to go through tutorial first, but after that, start app, select 'MODES', then 'TEST MATCH', and then 'YES' when asked if you want to resume the game. Crash occurs within the next couple of frames.

from agi.

ianelliottus avatar ianelliottus commented on May 5, 2024

Per a suggestion from Cody, I tried Real Cricket 20 with the top-of-tree ANGLE. I got all the way into the "test match" without any crash. Can you update your ANGLE APK and try it again?

I just looked at the version of ANGLE that's available from the following web site (per our instructions), and see that it's a pretty old ANGLE: https://agi-angle.storage.googleapis.com/index.html

It may be best if you can build ANGLE. I can help you with that. There are instructions for GN args in the "DebuggingTips.md" file (under the ANGLE source tree.

from agi.

mark-lunarg avatar mark-lunarg commented on May 5, 2024

Retested with TOT ANGLE (6edba6416) and confirmed that this issue no longer manifests.

from agi.

ianelliottus avatar ianelliottus commented on May 5, 2024

Awesome! Sometime, please try to capture and replay an AGI frame trace. If that works fine then please close this bug. If not, please update the bug with the current status (or file a new bug). Thanks!

from agi.

mark-lunarg avatar mark-lunarg commented on May 5, 2024

AGI still crashes when attempting to capture a trace, at about the same place ANGLE was crashing previously:

  14257 03-03 10:29:34.097 23363 23363 F DEBUG   : pid: 22814, tid: 22935, name: UnityGfxDeviceW  >>> com.nautilus.RealCricket3D <<<
  14258 03-03 10:29:34.097 23363 23363 F DEBUG   : uid: 10293
  14259 03-03 10:29:34.097 23363 23363 F DEBUG   : signal 5 (SIGTRAP), code -6 (SI_TKILL), fault addr --------
  14260 03-03 10:29:34.097 23363 23363 F DEBUG   :     x0  0000000000000000  x1  0000000000005997  x2  0000000000000005  x3  0000006e579699d8
  14261 03-03 10:29:34.097 23363 23363 F DEBUG   :     x4  b400006f93ca4158  x5  b400006f93ca4158  x6  b400006f93ca4158  x7  b400006f93ca4158
  14262 03-03 10:29:34.097 23363 23363 F DEBUG   :     x8  0000000000000083  x9  0000000000000000  x10 a2dc282ae98d814c  x11 0000000000000004
  14263 03-03 10:29:34.097 23363 23363 F DEBUG   :     x12 0000000000000000  x13 b400006f93ca4004  x14 0000000000000001  x15 0000000001000000
  14264 03-03 10:29:34.097 23363 23363 F DEBUG   :     x16 00000071082f91d8  x17 00000071082da580  x18 0000000000000014  x19 000000000000000b
  14265 03-03 10:29:34.097 23363 23363 F DEBUG   :     x20 0000006e57969e20  x21 0000006e57969da0  x22 0000006e57969e48  x23 00000059493349a0
  14266 03-03 10:29:34.097 23363 23363 F DEBUG   :     x24 0000000000000040  x25 0000006d00cdc000  x26 000000000000000b  x27 00000059493345c0
  14267 03-03 10:29:34.097 23363 23363 F DEBUG   :     x28 0000000000000004  x29 0000006e57969d00
  14268 03-03 10:29:34.097 23363 23363 F DEBUG   :     lr  0000006d0648628c  sp  0000006e57969ce0  pc  00000071082da588  pst 0000000000001000
  14269 03-03 10:29:34.133 23363 23363 F DEBUG   : backtrace:
  14270 03-03 10:29:34.133 23363 23363 F DEBUG   :       #00 pc 000000000009a588  /apex/com.android.runtime/lib64/bionic/libc.so (tgkill+8) (BuildId: 47a9ba0d54d9614053e13adab1207062)
  14271 03-03 10:29:34.133 23363 23363 F DEBUG   :       #01 pc 000000000017c288  /data/app/~~stCa0LTkvVseuycR0IwPSQ==/com.google.android.gapid.arm64v8a-2QbpMms2wZx733tF51zFoQ==/lib/arm64/libgapii.so (gapii::track_memory::PosixMemoryTracker::SegfaultHandlerFunction(int, siginfo*, void*)+92)
  14272 03-03 10:29:34.133 23363 23363 F DEBUG   :       #02 pc 0000000000004db0  /system/bin/app_process64 (art::SignalChain::Handler(int, siginfo*, void*)+348) (BuildId: f29574c90f18e326732ac7656680df85)
  14273 03-03 10:29:34.133 23363 23363 F DEBUG   :       #03 pc 00000000000005c0  [vdso] (__kernel_rt_sigreturn)
  14274 03-03 10:29:34.133 23363 23363 F DEBUG   :       #04 pc 00000000000c91a4  /vendor/lib64/hw/vulkan.adreno.so (!!!0000!84c95bb772bf7dd08fc240b7dd7f78!35605c3!+116) (BuildId: 22cdcae0ae56ae8067db19ec58097087)
  14275 03-03 10:29:34.134 23363 23363 F DEBUG   :       #05 pc 000000000008ca64  /vendor/lib64/hw/vulkan.adreno.so (!!!0000!2a418ddbe06bac73e12cf0f41836dd!35605c3!+164) (BuildId: 22cdcae0ae56ae8067db19ec58097087)
  14276 03-03 10:29:34.134 23363 23363 F DEBUG   :       #06 pc 000000000038f920  /data/app/~~stCa0LTkvVseuycR0IwPSQ==/com.google.android.gapid.arm64v8a-2QbpMms2wZx733tF51zFoQ==/lib/arm64/libgapii.so (gapii::VulkanSpy::vkCmdDispatch(gapii::CallObserver*, unsigned long, unsigned int, unsigned int, unsigned int)::$_9::operator()() const+228)
  14277 03-03 10:29:34.134 23363 23363 F DEBUG   :       #07 pc 000000000038f02c  /data/app/~~stCa0LTkvVseuycR0IwPSQ==/com.google.android.gapid.arm64v8a-2QbpMms2wZx733tF51zFoQ==/lib/arm64/libgapii.so (gapii::VulkanSpy::vkCmdDispatch(gapii::CallObserver*, unsigned long, unsigned int, unsigned int, unsigned int)+1188)
  14278 03-03 10:29:34.134 23363 23363 F DEBUG   :       #08 pc 000000000057787c  /data/app/~~stCa0LTkvVseuycR0IwPSQ==/com.google.android.gapid.arm64v8a-2QbpMms2wZx733tF51zFoQ==/lib/arm64/libgapii.so (gapii::vkCmdDispatch(unsigned long, unsigned int, unsigned int, unsigned int)+156)
  14279 03-03 10:29:34.134 23363 23363 F DEBUG   :       #09 pc 000000000038da1c  /data/app/~~YVG4mGWijVPeHKGVJkGmGA==/org.chromium.angle-1apbtFmbfs6O7xv42Rh6IA==/base.apk!libGLESv2_angle.so (offset 0x63000) (rx::vk::priv::SecondaryCommandBuffer::executeCommands(VkCommandBuffer_T*)+488) (BuildId: f042f9b28891830b)

from agi.

mark-lunarg avatar mark-lunarg commented on May 5, 2024

@ianelliottus, using the 91.0.4434.0 from the AGI ANGLE APKs I still observe the crash in the RealCricket20 game. It appears to fine about 20% of the time but fails regularly when a testmatch game is resumed. This is outside of using AGI.

from agi.

hevrard avatar hevrard commented on May 5, 2024

@mark-lunarg thanks a lot for the investigation, and getting the stack trace with AGI debugging symbols. So it looks like we're getting a segfault inside the vulkan driver when processing vkCmdDispath() (when ANGLE is in SecondaryCommandBuffer::executeCommands).

Do you have the stacktrace of a crash when only ANGLE is used, to check if it's in a similar place?

from agi.

mark-lunarg avatar mark-lunarg commented on May 5, 2024

@hevrard, I was unable to get any useful stack info, even with a debug build, sorry. I did add a screencap video of my repro steps. In case it's not clear, for the final 'resume game' choice, hit 'yes'. On my Pixel 5 this fails about 2/3 of the time.

RealCricket3D_crash.repo.mp4

from agi.

ianelliottus avatar ianelliottus commented on May 5, 2024

I created an ANGLE bug to track the crash when resuming a testmatch: https://issuetracker.google.com/issues/182505429

I'll keep this bug open in case we still have a problem with AGI capture after we fix the ANGLE bug.

from agi.

hevrard avatar hevrard commented on May 5, 2024

Thanks @mark-lunarg for trying, much appreciated!

from agi.

ianelliottus avatar ianelliottus commented on May 5, 2024

Closing this bug out too (this was fixed a while ago)

from agi.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.