Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Join us on March 30, 2023, between 5 am & 1 pm EST, in the Performance Profiling Dev Blitz Day 2023 - Q&A forum and Discord where you can connect with our teams behind the Memory and CPU Profilers.
    Dismiss Notice

Bug Analytics cache not flushing and growing larger each run

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

  1. rayD8


    Mar 7, 2018
    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


    Feb 17, 2018
  3. Julian-Unity3D


    Unity Technologies

    Apr 28, 2022
    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.