android / tuningfork

Android Performance Tuner is a library to help developers measure frame rendering time across different devices and game stages. This plugin will help developers integrate Android Performance Tuner into their game.
https://developer.android.com/games/sdk/performance-tuner/unity
Other
53 stars 30 forks source link

TuningFork:Web: java.io.FileNotFoundException: #32

Open skrmaxim opened 1 year ago

skrmaxim commented 1 year ago

Hello! Im trying to use Android Performance Tuner in Unity, but on sending data have this error

01-18 09:03:54.184 27895 28078 I TuningFork:Web: Response code: 403 01-18 09:03:54.184 27895 28078 I TuningFork:Web: Response message: Forbidden 01-18 09:03:54.185 27895 28078 W TuningFork:Web: java.io.FileNotFoundException: https://performanceparameters.googleapis.com/v1/applications/com.company.name/apks/30:uploadTelemetry 01-18 09:03:54.185 27895 28078 W TuningFork.GE: Error 15 when sending UPLOAD request

Also on initialition step i have this

01-18 09:03:53.836 27895 27964 I UnityTuningfork: libunity.so is found 01-18 09:03:53.836 27895 27964 I UnityTuningfork: UnitySwappy_injectTracer is found 01-18 09:03:53.836 27895 27964 I UnityTuningfork: libunity.so is found 01-18 09:03:53.836 27895 27964 I UnityTuningfork: UnitySwappy_version is found 01-18 09:03:53.836 27895 27964 I UnityTuningfork: Unity Swappy version: [65543] 01-18 09:03:53.836 27895 27964 I TuningFork: Got settings from tuningfork/tuningfork_settings.bin 01-18 09:03:53.836 27895 27964 I TuningFork: Using local file cache at /data/user/0/com.war.no/cache/tuningfork 01-18 09:03:53.838 27895 27964 I TuningForkUtils: OpenGL version 3.2 01-18 09:03:53.838 27895 27964 I TuningFork: TuningFork.GoogleEndpoint: OK 01-18 09:03:53.839 27895 27964 E TuningFork: Could not open /proc/0/status 01-18 09:03:53.839 27895 27964 I TuningFork: TuningFork Settings: 01-18 09:03:53.839 27895 27964 I TuningFork: method: 1 01-18 09:03:53.839 27895 27964 I TuningFork: interval: 30000 01-18 09:03:53.839 27895 27964 I TuningFork: n_ikeys: 4 01-18 09:03:53.839 27895 27964 I TuningFork: n_annotations: 1 01-18 09:03:53.839 27895 27964 I TuningFork: n_histograms: 4 01-18 09:03:53.839 27895 27964 I TuningFork: base_uri: https://performanceparameters.googleapis.com/v1/ 01-18 09:03:53.839 27895 27964 I TuningFork: api_key: AIzaSyBAR95TgOerOeUXsR8DjlhxM0GabWWGIzQ 01-18 09:03:53.839 27895 27964 I TuningFork: fp filename: dev_tuningfork_fidelityparams_1.bin 01-18 09:03:53.839 27895 27964 I TuningFork: itimeout: 1000 01-18 09:03:53.839 27895 27964 I TuningFork: utimeout: 100000 01-18 09:03:53.839 27895 27964 I TuningFork: Settings::Histograms 01-18 09:03:53.839 27895 27964 I TuningFork: ikey: 64000 min: 6.540000 max: 60.000000 nbkts: 200 01-18 09:03:53.839 27895 27964 I TuningFork: ikey: 64001 min: 10.000000 max: 40.000000 nbkts: 30 01-18 09:03:53.839 27895 27964 I TuningFork: ikey: 64003 min: 0.000000 max: 20.000000 nbkts: 30 01-18 09:03:53.839 27895 27964 I TuningFork: ikey: 64002 min: 0.000000 max: 20.000000 nbkts: 30 01-18 09:03:53.839 27895 27964 I TFCrashHandler: CrashHandler initialized 01-18 09:03:53.839 27895 27964 I TuningFork: Got PAUSED histograms: {"name": "applications/com.war.no/apks/30", "session_context": {"device": {"brand": "motorola", "build_version": "30", "cpu_core_freqs_hz": [2000000000, 2000000000, 2000000000, 2000000000, 2000000000, 2000000000, 2000000000, 2000000000], "device": "kyoto", "fingerprint": "motorola/kyoto_retaile/kyoto:11/RRKS31.Q3-19-97-12/f2fd37:user/release-keys", "gles_version": {"major": 3, "minor": 2}, "model": "motorola edge 20 lite", "product": "kyoto_retaile", "soc_manufacturer": "", "soc_model": "", "swap_total_bytes": 6015520768, "total_memory_bytes": 8020701184}, "game_sdk_info": {"session_id": "f2659c25-35b9-45da-b7f9-358a6151a3e5", "swappy_version": "1.7.0", "version": "1.5.0"}, "time_period": {"end_time": "2023-01-18T13:57:07.250035Z", "start_time": "2023-01-18T13:56:37.253468Z"}}, "telemetry": [{"context": {"annotations": "CAI=", "duration": "29.99656654s", "tuning_parameters": {"experiment_id": "", "serialized_fidelity_parameters": ""}}, "report": {"memory": {"memory_event": [{"avail_mem 01-18 09:03:53.839 27895 28078 I TuningFork:Web: Connecting to: https://performanceparameters.googleapis.com/v1/applications/com.war.no/apks/30:uploadTelemetry 01-18 09:03:53.839 27895 27964 I TuningFork: Deserializing saved session 01-18 09:03:53.839 27895 27964 I TuningFork: TuningFork initialized 01-18 09:03:53.839 27895 27964 I UnityTuningfork: Swappy backend: 2 01-18 09:03:53.844 27895 28079 E TuningFork: Could not open /proc/0/oom_score

I have INTERNET ACCESS and WIFI ACCESS in my manifest

My be you can say what could be wrong ?

ifraud commented 1 year ago

Hi, it looks like your application package name and the URI you are trying to make uploadTelemetry seem to be different.

https://performanceparameters.googleapis.com/v1/applications/com.company.name/apks/30:uploadTelemetry

vs

https://performanceparameters.googleapis.com/v1/applications/com.war.no/apks/30:uploadTelemetry

skrmaxim commented 1 year ago

Thanks, I'll check it out!

On Tue, 18 Jul 2023 at 4:34 PM, Vamsidhar Gaddam @.***> wrote:

Hi, it looks like your application package name and the URI you are trying to make uploadTelemetry seem to be different.

https://performanceparameters.googleapis.com/v1/applications/com.company.name/apks/30:uploadTelemetry

vs

https://performanceparameters.googleapis.com/v1/applications/com.war.no/apks/30:uploadTelemetry

— Reply to this email directly, view it on GitHub https://github.com/android/tuningfork/issues/32#issuecomment-1640240377, or unsubscribe https://github.com/notifications/unsubscribe-auth/AXPHLSTE4XIXYQKJYSRBKALXQ2GG7ANCNFSM6AAAAAAT7FJTFQ . You are receiving this because you authored the thread.Message ID: @.***>

victorocs commented 6 months ago

Hi, i have the same error, but im not using that library. Do you find a solution?

xavierarpa commented 6 months ago

same err

davidnoorgames commented 1 month ago

In my case, app's keystore and Google Play Console's keystore were different.

And because of that their SHA-1 certificate fingerprints were also different.

Using SHA-1 from Google Play Console -> App Signing here has solved this error.

img