SoloX icon indicating copy to clipboard operation
SoloX copied to clipboard

Unable to get GPU data on Pixel devices

Open TrungDq1813 opened this issue 1 year ago • 1 comments

I'm unable to measure GPU data for Pixel devices. The other stats work fine. Testing with:

  • Pixel 3XL (Android 12)
  • Pixel 6XL (Android 14) Here's the error logs:
[E 240626 11:35:04 apis:449] invalid literal for int() with base 10: ''
    Traceback (most recent call last):
      File "C:\Python311\Lib\site-packages\solox\view\apis.py", line 446, in getGpu
        value = gpu.getGPU()
                ^^^^^^^^^^^^
      File "C:\Python311\Lib\site-packages\solox\public\apm.py", line 486, in getGPU
        gpu = self.getAndroidGpuRate() if self.platform == Platform.Android else self.getiOSGpuRate()
              ^^^^^^^^^^^^^^^^^^^^^^^^
      File "C:\Python311\Lib\site-packages\solox\public\apm.py", line 477, in getAndroidGpuRate
        gpu = round(float(int(result.split(' ')[0]) / int(result.split(' ')[1])) * 100, 2)
                          ^^^^^^^^^^^^^^^^^^^^^^^^^
    ValueError: invalid literal for int() with base 10: ''
10.0.144.113 - - [26/Jun/2024 11:35:04] "GET /apm/gpu?platform=Android&pkgname=com.immutable.guildofguardians&device=8B6Y0UPN8(Pixel%203%20XL)&_=1719376432325 HTTP/1.1" 200 -
10.0.144.113 - - [26/Jun/2024 11:35:04] "GET /apm/mem?model=normal&platform=Android&pkgname=com.immutable.guildofguardians&device=8B6Y0UPN8(Pixel%203%20XL)&process=26412%3Acom.immutable.guildofguardians&_=1719376432327 HTTP/1.1" 200 -
10.0.144.113 - - [26/Jun/2024 11:35:04] "GET /apm/battery?platform=Android&device=8B6Y0UPN8(Pixel%203%20XL)&_=1719376432328 HTTP/1.1" 200 -

image image

TrungDq1813 avatar Jun 26 '24 04:06 TrungDq1813

only supports some Adreno GPU phones

rafa0128 avatar Jun 27 '24 02:06 rafa0128