oliexdev / openScale

Open-source weight and body metrics tracker, with support for Bluetooth scales
GNU General Public License v3.0
1.66k stars 290 forks source link

Crash on Google Fit Sync #1032

Open carlesm opened 4 months ago

carlesm commented 4 months ago

Describe the bug A clear and concise description of what the bug is.

To Reproduce Steps to reproduce the behavior:

  1. Go to Google Fit
  2. Click on Manual Sync
  3. See error

Expected behavior Manual sync with google fit.

Additional context Build version: 0.3.5 Build date: 1981-01-01 01:01:02 Current date: 2024-04-15 08:16:05 Device: Xiaomi 2201117PG OS version: Android 13 (SDK 33)

Stack trace:
java.lang.IllegalArgumentException: Data point does not have the timestamp set: DataPoint{[86.5]@[0, 0,raw=0](r:weight:com.health.openscale.sync: N/A)} at t1.o.c(Unknown Source:9) at com.google.android.gms.fitness.data.DataSet$a.a(:12) at com.health.openscale.sync.core.sync.a.d(:11) at e4.a$c.onClick(:12) at android.view.View.performClick(View.java:7575) at android.view.View.performClickInternal(View.java:7548) at android.view.View.-$$Nest$mperformClickInternal(Unknown Source:0) at android.view.View$PerformClick.run(View.java:29848) at android.os.Handler.handleCallback(Handler.java:942) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loopOnce(Looper.java:211) at android.os.Looper.loop(Looper.java:300) at android.app.ActivityThread.main(ActivityThread.java:8294) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:580) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1028)