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

Unable to get GPU data on Pixel devices #286

Open
TrungDq1813 opened this issue Jun 26, 2024 · 1 comment
Open

Unable to get GPU data on Pixel devices #286

TrungDq1813 opened this issue Jun 26, 2024 · 1 comment

Comments

@TrungDq1813
Copy link

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

@rafa0128
Copy link
Member

only supports some Adreno GPU phones

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants