Code Monkey home page Code Monkey logo

mai's Issues

Crashes on Mac with 32GB of RAM

Running MAI on a Mac with 32GB or RAM crashes with error:

thread '<unnamed>' panicked at 'called `Option::unwrap()` on a `None` value', src/activity/ram.rs:24:36

This is probably due to the different top output for RAM usage:

PhysMem: 32G used (3684M wired), 437M unused.

It might be worth swapping over to the vm_stat command instead of top.


Also the app doesn't quit when this occurs, it stays open as an empty icon:
Screenshot 2022-04-25 at 12 12 32
The app should handle this more gracefully and display an icon or something.

Swift rewrite

Since this is a mac native app it's probably a better idea to write it in Swift.

Rust has been handy for the basic v0.x.x releases but limitations are showing in the cocoa bindings that is just going to create more effort to work around going forward.

v1.0.0 will be the target for the rewrite. It should have all the same basic functionality as v0.1.1 and run with similar performance (0.1% cpu usage, 8-10MB RAM) if possible

Improve error handling

Error handling throughout app is pretty weak, most things are just unwrapped.

Better error handling should be implemented, maybe not to show to the user but at least to improve debugging.

Create build script

Create build script to bundle project into .dmg file for macos.

Also:

  • Create app icon.
  • Update README.md

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.