GithubHelp home page GithubHelp logo

Error while editing a file about xi-mac HOT 9 CLOSED

xi-editor avatar xi-editor commented on September 26, 2024
Error while editing a file

from xi-mac.

Comments (9)

cmyr avatar cmyr commented on September 26, 2024

Hmm that's interesting. I haven't seen this crash before. Were any plugins activated, besides the syntax coloring? Have you seen it more than once? @trishume might have a better idea of what's going on here, he rewrote this recently.

from xi-mac.

trishume avatar trishume commented on September 26, 2024

This is probably my fault, but I don't know why yet. I'll try to remember to debug this on Monday.

from xi-mac.

dsego avatar dsego commented on September 26, 2024

@cmyr Only syntax coloring is active. It predictably crashes after a minute or two, every time. So far it hasn't crashed on new buffers, only when editing an existing file.

from xi-mac.

trishume avatar trishume commented on September 26, 2024

Okay I figured out the cause of this bug, the Engine::gc method doesn't handle collecting revisions that aren't the oldest ones properly, which produces an invalid history which is caught by the dynamic checking on the next GC.

I'm not sure whether to fix the GC or just delete it, since I'm not sure if we need it anymore. I'll talk to @raphlinus about it later.

from xi-mac.

cmyr avatar cmyr commented on September 26, 2024

@trishume sounds good, thanks for looking into this.

from xi-mac.

trishume avatar trishume commented on September 26, 2024

For now if you need a workaround you can set MAX_UNDOS to 1_000_000 in editor.rs to effectively disable the GC.

from xi-mac.

cmyr avatar cmyr commented on September 26, 2024

@dsego Would you like to confirm that this has resolved your crash?

from xi-mac.

dsego avatar dsego commented on September 26, 2024

@cmyr Looking good 👍

from xi-mac.

cmyr avatar cmyr commented on September 26, 2024

@dsego great, thanks! 😄

from xi-mac.

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.