Giter Club home page Giter Club logo

Comments (3)

sriram-kakarala avatar sriram-kakarala commented on July 27, 2024

Is this observed on any other version?

from roottools.

Fusion avatar Fusion commented on July 27, 2024

Very disturbing. Typically I would fault an OOM error but a Nexus 10 has 2 GB RAM. Unless you are running some other app at the same time that's using up all your memory?
Would you mind adding the code below and call it before and after calling isRootAvailable()?

private void quickDirtyCheck() {
    MemoryInfo mInfo = new ActivityManager.MemoryInfo();
    ((ActivityManager)context.getSystemService(ACTIVITY_SERVICE)).getMemoryInfo(Info);
    RootTools.log("Available memory: " + mInfo.availMem +
            (mInfo.lowMemory ? " and that's too low!" : ""));
}

from roottools.

sriram-kakarala avatar sriram-kakarala commented on July 27, 2024

Hi,
Thanks for responding. Here are the logs,
D/ROOTTOOLS( 3290): Available memory: 704278528
D/ROOTTOOLS( 3290): Available memory: 650276864

Below are some of my findings,

  1. The seg fault happens mainly if I run the root check inside a Thread/AsyncTask. Running it on the main thread does not cause issues.
  2. The line that causes issue is in Shell.java when we try to create a new root shell with "su" command,
    this.proc = new ProcessBuilder("su").redirectErrorStream(true).start();
    once this line is executed the ddms logs show the crash dumps.
  3. When I do a "adh shell ps", I see a whole bunch of processes that are created because of ProcessBuilder which are never closed.
    It seems like it hits the zombie process issue as mentioned here,
    http://stackoverflow.com/a/15485210/987105

Let me know if I should copy/paste the code and/or logs?

from roottools.

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.