Closed ZhangYi19860922 closed 2 years ago
When you say "it doesn't work", what does that mean? AGI crashes? the replay doesn't look correct? the replay crashes? If you see crashes/errors in the log, please share them. What device are you using? Would you be willing to share the APK/trace files?
Hi Pascal, I captured a frame from an OpenGL ES game through ANGLE. After the capture, it triggered the replay both on PC and Android. The replay performed well on PC, but occurred black screen on Android device. My android device is Oppo find X3 based on Android version S (12). The mail attachments contain 3 log files, of which gapid-apk.log is the logcat file of the android device. In addition, I wonder how to replay a gfxtrace file only through the command line (GAPIT), without AGI/GAPIC. Thank you for your answer.
Kind regards, Henry
发件人: Pascal Muetschard @.> 发送时间: 2021年9月23日 2:15 收件人: google/agi @.> 抄送: 张一(henry) @.>; Author @.> 主题: Re: [google/agi] Cannot replay on an android device (#929)
When you say "it doesn't work", what does that mean? AGI crashes? the replay doesn't look correct? the replay crashes? If you see crashes/errors in the log, please share them. What device are you using? Would you be willing to share the APK/trace files?
― You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://apc01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fgoogle%2Fagi%2Fissues%2F929%23issuecomment-925168571&data=04%7C01%7Czhangyi123%40oppo.com%7Cb34f44e9ec5840ffeb8408d97df4f43e%7Cf1905eb1c35341c5951662b4a54b5ee6%7C0%7C0%7C637679313291419249%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=gfnXRkIoP%2BoAIY5G7qscSeTq6SlDxqWuOAmgSYjr%2BTY%3D&reserved=0, or unsubscribehttps://apc01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAUVO3TAASIYU2DRYUZPUDO3UDIMLZANCNFSM5EQJPNGQ&data=04%7C01%7Czhangyi123%40oppo.com%7Cb34f44e9ec5840ffeb8408d97df4f43e%7Cf1905eb1c35341c5951662b4a54b5ee6%7C0%7C0%7C637679313291429250%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=1ZoH6Z4m3gkL3kk9IVowinrJLJ6j3Aq3vttqEN%2BrYWs%3D&reserved=0. Triage notifications on the go with GitHub Mobile for iOShttps://apc01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fapps.apple.com%2Fapp%2Fapple-store%2Fid1477376905%3Fct%3Dnotification-email%26mt%3D8%26pt%3D524675&data=04%7C01%7Czhangyi123%40oppo.com%7Cb34f44e9ec5840ffeb8408d97df4f43e%7Cf1905eb1c35341c5951662b4a54b5ee6%7C0%7C0%7C637679313291429250%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=EqL90Xwgix5MNpexe56IxMnGF8NjcoPRPDpNXrMoMa4%3D&reserved=0 or Androidhttps://apc01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fplay.google.com%2Fstore%2Fapps%2Fdetails%3Fid%3Dcom.github.android%26referrer%3Dutm_campaign%253Dnotification-email%2526utm_medium%253Demail%2526utm_source%253Dgithub&data=04%7C01%7Czhangyi123%40oppo.com%7Cb34f44e9ec5840ffeb8408d97df4f43e%7Cf1905eb1c35341c5951662b4a54b5ee6%7C0%7C0%7C637679313291439240%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=eGBifHKbw6bo48g0ftwGH36lbccVQcbiwb2EnipKCYc%3D&reserved=0.
OPPO
本电子邮件及其附件含有OPPO公司的保密信息,仅限于邮件指明的收件人使用(包含个人及群组)。禁止任何人在未经授权的情况下以任何形式使用。如果您错收了本邮件,请立即以电子邮件通知发件人并删除本邮件及其附件。
This e-mail and its attachments contain confidential information from OPPO, which is intended only for the person or entity whose address is listed above. Any use of the information contained herein in any way (including, but not limited to, total or partial disclosure, reproduction, or dissemination) by persons other than the intended recipient(s) is prohibited. If you receive this e-mail in error, please notify the sender by phone or email immediately and delete it!
After the capture, it triggered the replay both on PC and Android. The replay performed well on PC, but occurred black screen on Android device.
AGI does not replay Android traces on the host. Android traces are replayed on the Android device. When you say it works on the PC, but you have a black screen on the device, do you mean you can see the framebuffer images correctly in the UI, but the Android device screen is black? If so, thats working as intended. The replays on the device are done off-screen.
The mail attachments contain 3 log files
Your attachments didn't make it through. You probably need to attach them to this report via the GitHub UI.
In addition, I wonder how to replay a gfxtrace file only through the command line (GAPIT)
gapit screenshot
does replays. Look at the help output for all the flags.
I replayed a trace file followed the CLI reference, the Android device still displayed a black screen.
E:\Projects\GraphicProfiler\bazel-bin\pkg>gapit.exe screenshot org.cocos2dx.cpp_tests_angle_20210924_1116.gfxtrace
06:27:07.948 I:
发件人: Pascal Muetschard @.> 发送时间: 2021年9月24日 1:33 收件人: google/agi @.> 抄送: 张一(henry) @.>; Author @.> 主题: Re: [google/agi] Cannot replay on an android device (#929)
After the capture, it triggered the replay both on PC and Android. The replay performed well on PC, but occurred black screen on Android device.
AGI does not replay Android traces on the host. Android traces are replayed on the Android device. When you say it works on the PC, but you have a black screen on the device, do you mean you can see the framebuffer images correctly in the UI, but the Android device screen is black? If so, thats working as intended. The replays on the device are done off-screen.
The mail attachments contain 3 log files
Your attachments didn't make it through. You probably need to attach them to this report via the GitHub UI.
In addition, I wonder how to replay a gfxtrace file only through the command line (GAPIT)
gapit screenshot does replays. Look at the help output for all the flags.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://apc01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fgoogle%2Fagi%2Fissues%2F929%23issuecomment-926016406&data=04%7C01%7Czhangyi123%40oppo.com%7Cb999e3c139ac4e53934708d97eb83464%7Cf1905eb1c35341c5951662b4a54b5ee6%7C0%7C0%7C637680151892334605%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=NNTzpwyzr3sSY8mayq1LkjjDAwLXAdcNZhC4jhGTuXU%3D&reserved=0, or unsubscribehttps://apc01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAUVO3TD7HE5KUBC6SXNCHHLUDNQFBANCNFSM5EQJPNGQ&data=04%7C01%7Czhangyi123%40oppo.com%7Cb999e3c139ac4e53934708d97eb83464%7Cf1905eb1c35341c5951662b4a54b5ee6%7C0%7C0%7C637680151892344600%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=Rv%2B3aLY7RJG5PLBHW%2FF3tRtR4ldjm6tuaLEfLccUEmI%3D&reserved=0. Triage notifications on the go with GitHub Mobile for iOShttps://apc01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fapps.apple.com%2Fapp%2Fapple-store%2Fid1477376905%3Fct%3Dnotification-email%26mt%3D8%26pt%3D524675&data=04%7C01%7Czhangyi123%40oppo.com%7Cb999e3c139ac4e53934708d97eb83464%7Cf1905eb1c35341c5951662b4a54b5ee6%7C0%7C0%7C637680151892354590%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=t9ySTrKrXVRLcw4RDotXTuW%2BGjvDoEN9eQxCTmbu%2F6k%3D&reserved=0 or Androidhttps://apc01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fplay.google.com%2Fstore%2Fapps%2Fdetails%3Fid%3Dcom.github.android%26referrer%3Dutm_campaign%253Dnotification-email%2526utm_medium%253Demail%2526utm_source%253Dgithub&data=04%7C01%7Czhangyi123%40oppo.com%7Cb999e3c139ac4e53934708d97eb83464%7Cf1905eb1c35341c5951662b4a54b5ee6%7C0%7C0%7C637680151892354590%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=VvNM5OswCXZODev7fHuNJ4oPwiWDAj4k18AVajly5tM%3D&reserved=0.
OPPO
本电子邮件及其附件含有OPPO公司的保密信息,仅限于邮件指明的收件人使用(包含个人及群组)。禁止任何人在未经授权的情况下以任何形式使用。如果您错收了本邮件,请立即以电子邮件通知发件人并删除本邮件及其附件。
This e-mail and its attachments contain confidential information from OPPO, which is intended only for the person or entity whose address is listed above. Any use of the information contained herein in any way (including, but not limited to, total or partial disclosure, reproduction, or dissemination) by persons other than the intended recipient(s) is prohibited. If you receive this e-mail in error, please notify the sender by phone or email immediately and delete it!
Closing this issue due to staleness -- please re-open if you're still running into issues with replaying.
Hi AGI team, Replay the draw calls on the host device is well worked, but the android device cannot replay normally either from an existing gfxtrace file or after a capturing. How to make it work when I want to replay the draw calls on the android devices, or replay on android devices only through the command-line so as to get rid of the GUI.