Search Unity

Bug Analytics cache not flushing and growing larger each run

Discussion in 'Unity Analytics' started by rayD8, Sep 16, 2022.

  1. rayD8

    rayD8

    Joined:
    Mar 7, 2018
    Posts:
    32
    The Analytics cache in my project is not flushing.
    "Flushed up to token index 1162, cache file is 31568B" Cache keeps growing after each run, even if editor is closed and restarted.
    Also tried AnalyticsService.Instance.Flush to no avail either.
    I did have a bug in which I tried to send something that had a null-value... suspect that was when it started.

    Any ideas??
     
  2. PeachyPixels

    PeachyPixels

    Joined:
    Feb 17, 2018
    Posts:
    713
  3. Julian-Unity3D

    Julian-Unity3D

    Unity Technologies

    Joined:
    Apr 28, 2022
    Posts:
    192
    Yes, a single malformed event will stop analytics completely.

    We are very keen to see a broken payload if it's been caught out in the wild. If it's possible to remove personally identifiable data/etc then feel free to post here, otherwise DM me and I'll share it with the team of engineers.

    We have actually fixed this issue internally, but the fix is currently blocked due to ongoing issue shipping version 4.2.0.
    Be sure to keep an eye out for an update sometime soon. No ETA currently.