Giter Site home page Giter Site logo

Crash when reading old cache about sobriety HOT 6 CLOSED

kiarc avatar kiarc commented on June 22, 2024
Crash when reading old cache

from sobriety.

Comments (6)

KiARC avatar KiARC commented on June 22, 2024

Oh this one is my bad actually because Addiction was modified in the new version and I need to update the readLegacyCache function to use the AddictionOld class instead iirc. Maybe I already did and am just tired since it's the morning but I'm fairly sure that's what's wrong.

from sobriety.

KiARC avatar KiARC commented on June 22, 2024

Wait... No that isn't it, that class was scrapped

from sobriety.

KiARC avatar KiARC commented on June 22, 2024

Ahhhh that is it, and I made a mistake scrapping it. Essentially, the 5.1.4 Addiction class isn't the same as the 4.0.1 Addiction class, so I need a legacy one in there to facilitate cache reads. On top of that, readLegacyCache() is still set up to read 3.x.x caches 🤦‍♀️

from sobriety.

KiARC avatar KiARC commented on June 22, 2024

So yeah I'll fix that later today

from sobriety.

KiARC avatar KiARC commented on June 22, 2024

Ah. Bigger issue. Because of how JVM serialization works, you can't rename a class and still deserialize things properly, so I need to see what I can do, but it may be that 4.x.x caches will not work with 5.x.x and I'll need to start designing a more long-term-stable cache format.

from sobriety.

KiARC avatar KiARC commented on June 22, 2024

Technically solved, and the new cache format is WIP now.

from sobriety.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.