SoloX icon indicating copy to clipboard operation
SoloX copied to clipboard

Unable to obtain FPS value for Android devices

Open cooltaby opened this issue 2 years ago • 3 comments

[BUG]. Unable to get FPS values on Android devices Tested on Android devices, google pixel 6, Samsung fold and other android devices with different OS, and mobile games. Errors log:

`[E 231028 20:53:05 fps:327] an exception hanpend in fps _collector_thread , reason unkown! [D 231028 20:53:05 fps:329] Traceback (most recent call last): File "C:\Users\EVM\AppData\Local\Programs\Python\Python311\Lib\site-packages\solox\public\fps.py", line 302, in _collector_thread refresh_period, new_timestamps = self._get_surfaceflinger_frame_data() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\EVM\AppData\Local\Programs\Python\Python311\Lib\site-packages\solox\public\fps.py", line 411, in _get_surfaceflinger_frame_data refresh_period = (int(results[0].split('=')[1].strip()) - nanoseconds_per_second) / nanoseconds_per_second ^^^^^^^^^^^^^^^ ValueError: invalid literal for int() with base 10: 'now = 666332703981869'

[E 231028 20:53:05 fps:327] an exception hanpend in fps _collector_thread , reason unkown! [D 231028 20:53:05 fps:329] Traceback (most recent call last): File "C:\Users\EVM\AppData\Local\Programs\Python\Python311\Lib\site-packages\solox\public\fps.py", line 302, in _collector_thread refresh_period, new_timestamps = self._get_surfaceflinger_frame_data() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\EVM\AppData\Local\Programs\Python\Python311\Lib\site-packages\solox\public\fps.py", line 411, in _get_surfaceflinger_frame_data refresh_period = (int(results[0].split('=')[1].strip()) - nanoseconds_per_second) / nanoseconds_per_second ^^^^^^^^^^^^^^^ ValueError: invalid literal for int() with base 10: 'now = 666332807100869'

[E 231028 20:53:05 fps:327] an exception hanpend in fps _collector_thread , reason unkown!`

Note: Also tried: Step1 : You can turn off the 'SurfaceView' switch Step2 : Set the following settings on your phone: (Developer - GPU rendering mode - adb shell dumpsys gfxinfo)

But still not able to get FPS value.

@rafa0128

cooltaby avatar Oct 28 '23 15:10 cooltaby

It looks like old code, show me the version of solox

rafa0128 avatar Oct 30 '23 00:10 rafa0128

solox version

cooltaby avatar Oct 30 '23 14:10 cooltaby

it's weird, please reinstall solox and try again,the error code was in old version

rafa0128 avatar Oct 31 '23 00:10 rafa0128