Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice
  3. Dismiss Notice

Bug Unable to read event cache file: corrupt

Discussion in 'Unity Analytics' started by Orcolom_, Sep 19, 2023.

  1. Orcolom_


    Jun 28, 2013
    Package: - 4.4.0

    What is happening?

    the class DiskCache in DiskCache.cs reads a file called "C:\Users\YOUR_USERNAME_HERE\AppData\LocalLow\COMPANY\PROJECT\eventcache"

    If this file is corrupted or unreadable it should be deleted.
    But the package opens the file using "k_SystemCalls.OpenFileForReading" and this keeps ownership of the file. So any deleting will fail. keeping the corrupted file present.

    How to test
    You can test this by having an empty "eventcache" file on the expected location as that is considered a corrupted file.

    What it is affecting.
    This is affecting all services initialization and thus also breaks other services including Vivox.
  2. A_Savvidis


    Jul 21, 2016
    I bumped into this "Unable to read event cache file: corrupt" error

    I fixed this by deleting a folder that I got on an error shown a bit close to this one. If I remember correct that error was `IOException` and it showed a folder named from that project

    So in my case I removed the whole folder and not just the eventcache and it worked.