agi icon indicating copy to clipboard operation
agi copied to clipboard

Device connect failed ——Samsung S20

Open chimppppp opened this issue 2 years ago • 7 comments

Environment information:

  • AGI version:3.0.1
  • Host OS: Win10 If tracing on Android:
  • Device model: Samsung S20
  • Android Version: Android12

Bug description I have successfully connected with Samsung S20 before. but now i cant connect again. it show no device connected that supports this trace type.

Screenshots impicture_20220622_144357

Additional debugging information ==========here is the log=========== 06:32:08.780 I: Adding new device 06:32:08.780 I: New trace scheduler for device: e3a0401e51258690cd224d772ff2bfc23cb62bd1 DESKTOP-P04479O 06:32:08.780 I: New scheduler for device: e3a0401e51258690cd224d772ff2bfc23cb62bd1 06:32:08.790 I: Starting grpc server 06:32:08.895 E: Couldn't scan devices: Cannot get device information 06:32:27.623 I: [Try ABI: arm64-v8a⇒gapidapk.EnsureInstalled] Examining gapid.apk on host... 06:32:27.627 I: [Try ABI: arm64-v8a⇒gapidapk.EnsureInstalled] Looking for gapid.apk... 06:32:27.828 I: [Try ABI: arm64-v8a⇒gapidapk.EnsureInstalled] Found gapid package... 06:32:28.049 I: No developer driver found, attempting to use GPU profiling libraries in system image. 06:32:28.831 I: [launch producer] I: Trying libgpudataproducer.so 06:32:28.840 I: [launch producer] I: Calling start at 0x72512b5c9c 06:32:28.841 I: [launch producer] QPerfettoCountersDataPro QProfilerInterface: Initializing (v2020.6, built Oct 7 2021@17:10:54)... 06:32:28.880 I: [launch producer] QPerfettoCountersDataPro gpu.counters: Starting tracing thread 06:32:28.882 I: [launch producer] perfetto.cc:39641 Producer connected 06:32:28.968 I: [launch producer] QPerfettoCountersDataPro Start counter trace returned 0 06:32:29.845 I: [startDevInfoService] Attempt to start service: com.google.android.gapid.DeviceInfoService 06:32:30.018 I: [startDevInfoService] Attempt to start service: com.google.android.gapid.DeviceInfoService 06:32:30.190 I: [startDevInfoService] Attempt to start service: com.google.android.gapid.DeviceInfoService 06:32:33.955 I: [Try ABI: arm64-v8a⇒gapidapk.EnsureInstalled] Examining gapid.apk on host... 06:32:33.959 I: [Try ABI: arm64-v8a⇒gapidapk.EnsureInstalled] Looking for gapid.apk... 06:32:34.142 I: [Try ABI: arm64-v8a⇒gapidapk.EnsureInstalled] Found gapid package... 06:32:34.380 I: No developer driver found, attempting to use GPU profiling libraries in system image. 06:32:34.772 I: [launch producer] Exit. 06:32:34.772 E: [EnsurePerfettoProducerLaunched] error: exit status 143 06:32:35.109 I: [launch producer] I: Trying libgpudataproducer.so 06:32:35.109 I: [launch producer] I: Calling start at 0x7ae4070c9c 06:32:35.109 I: [launch producer] QPerfettoCountersDataPro QProfilerInterface: Initializing (v2020.6, built Oct 7 2021@17:10:54)... 06:32:35.135 I: [launch producer] QPerfettoCountersDataPro gpu.counters: Starting tracing thread 06:32:35.138 I: [launch producer] perfetto.cc:39641 Producer connected 06:32:35.226 I: [launch producer] QPerfettoCountersDataPro Start counter trace returned 0 06:32:36.111 I: [startDevInfoService] Attempt to start service: com.google.android.gapid.DeviceInfoService 06:32:36.269 I: [startDevInfoService] Attempt to start service: com.google.android.gapid.DeviceInfoService 06:32:36.442 I: [startDevInfoService] Attempt to start service: com.google.android.gapid.DeviceInfoService 06:32:40.210 I: [Try ABI: arm64-v8a⇒gapidapk.EnsureInstalled] Examining gapid.apk on host... 06:32:40.215 I: [Try ABI: arm64-v8a⇒gapidapk.EnsureInstalled] Looking for gapid.apk... 06:32:40.445 I: [Try ABI: arm64-v8a⇒gapidapk.EnsureInstalled] Found gapid package... 06:32:40.709 I: No developer driver found, attempting to use GPU profiling libraries in system image. 06:32:41.102 I: [launch producer] Exit. 06:32:41.102 E: [EnsurePerfettoProducerLaunched] error: exit status 143

chimppppp avatar Jun 22 '22 06:06 chimppppp

Thanks for flagging this issue & attaching logs -- could you provide the full gapis.log file along with logs from adb logcat > logcat.txt? Also do you know which GPU you have on your device (i.e. if it's a Mali or Adreno GPU)?

ttanatb avatar Jun 22 '22 11:06 ttanatb

GPU is Adreno Here are something what I have done,maybe that make it hapen. I am going to testing FrameProfile - Vulkan, but it suck in capturing. impicture_20220622_194629 and I click cancel, after that it can not connect to my device any more. (That's what I remember,There may be other reasons) Samsung-S20.zip

chimppppp avatar Jun 22 '22 11:06 chimppppp

There's a known issue with Samsung devices with Adreno GPUs https://github.com/google/agi/issues/1113 -- likely it's the same issue, will investigate further

ttanatb avatar Jun 23 '22 13:06 ttanatb

OK.

chimppppp avatar Jun 23 '22 14:06 chimppppp

Could you try the workaround in https://github.com/google/agi/issues/1113#issuecomment-1165786744 and see if it fixes your problem?

ttanatb avatar Jun 24 '22 17:06 ttanatb

this file not exist on my device. If this is normal,but my device have no permission to create the file... /sys/class/kgsl/kgsl-3d0/perfcounter

chimppppp avatar Jun 25 '22 09:06 chimppppp

Sorry for the delay, but could you run adb shell getprop ro.build.product and see what gets returned?

ttanatb avatar Jul 13 '22 13:07 ttanatb

I fixed a similar issue in this dev release https://github.com/google/agi-dev-releases/releases/tag/v3.1.0-dev-20220811 let me know if the device is still not showing up on the drop down

ttanatb avatar Aug 16 '22 10:08 ttanatb