GithubHelp home page GithubHelp logo

Comments (12)

yusuferisen avatar yusuferisen commented on April 27, 2024

We're having the same exact issue.
👍

from infer.

ericdcobb avatar ericdcobb commented on April 27, 2024

I see the same thing, but I do get some activity when I run:

infer -- mvn install

However I get an exception, I'm not sure if I should put this in a different issue.

I tried to clean up this error message to not include anything private to our project...

Fatal error: exception Sys_error("/Users/ericcobb/.m2/repository/com/google/http-client/google-http-client-jackson2/1.20.0/google-http-client-jackson2-1.20.0.jar: Too many open files")
[ERROR] Failure during frontend, original command was
.....(Very large original command here)

Traceback (most recent call last):
  File "/Users/ericcobb/Develop/tools/infer-osx-v0.1.0/infer/infer/bin/infer", line 142, in <module>
    main()
  File "/Users/ericcobb/Develop/tools/infer-osx-v0.1.0/infer/infer/bin/infer", line 119, in main
    capture_exitcode = imported_module.gen_instance(args, cmd).capture()
  File "/Users/ericcobb/Develop/tools/infer-osx-v0.1.0/infer/infer/bin/../lib/capture/mvn.py", line 59, in capture
    return util.run_commands(cmds)
  File "/Users/ericcobb/Develop/tools/infer-osx-v0.1.0/infer/infer/bin/../lib/capture/util.py", line 34, in run_commands
    if not cmd.start():
  File "/Users/ericcobb/Develop/tools/infer-osx-v0.1.0/infer/infer/bin/inferlib.py", line 632, in start
    if self.capture() == os.EX_OK:
  File "/Users/ericcobb/Develop/tools/infer-osx-v0.1.0/infer/infer/bin/inferlib.py", line 400, in capture
    return self.run_infer_frontend()
  File "/Users/ericcobb/Develop/tools/infer-osx-v0.1.0/infer/infer/bin/inferlib.py", line 391, in run_infer_frontend
    self.args.analyzer
  File "/Users/ericcobb/Develop/tools/infer-osx-v0.1.0/infer/infer/bin/inferlib.py", line 318, in run_command
    raise e
subprocess.CalledProcessError: Command '[u'/Users/ericcobb/Develop/tools/infer-osx-v0.1.0/infer/infer/bin/InferJava', u'-results_dir', u'/Users/ericcobb/Develop/project-name/infer-out', u'-verbose_out', '/var/folders/w1/0zldbv1x0x514z0nr7z9j1dh0000gn/T/javac_EXhHos.out', u'-models', u'/Users/ericcobb/Develop/tools/infer-osx-v0.1.0/infer/infer/bin/../lib/java/models.jar', u'-no-static_final']' returned non-zero exit status 2

java -version
java version "1.8.0_20"
Java(TM) SE Runtime Environment (build 1.8.0_20-b26)
Java HotSpot(TM) 64-Bit Server VM (build 25.20-b23, mixed mode)

javac -version
javac 1.8.0_20

from infer.

MrThiago avatar MrThiago commented on April 27, 2024

I am also having the same problem, Is does anyone knows how to run android project build on Eclipse and not gradlew ?

java version "1.8.0_31"
Java(TM) SE Runtime Environment (build 1.8.0_31-b13)
Java HotSpot(TM) 64-Bit Server VM (build 25.31-b07, mixed mode)

infer --version
Infer version v0.1.0
Copyright 2009 - present Facebook. All Rights Reserved.

from infer.

clinejj avatar clinejj commented on April 27, 2024

The too many open files problem appears to be an issue with OSX and Linux, not anything with infer. See this stack overflow: http://superuser.com/questions/827984/open-files-limit-does-not-work-as-before-in-osx-yosemite

We had the same issue with our projects, and after adjusting the files as described here for OSX we didn't get the issue anymore.

from infer.

sans-github avatar sans-github commented on April 27, 2024

I changed the settings from
kern.maxfiles: 12288
kern.maxfilesperproc: 10240
to
kern.maxfiles: 30000
kern.maxfilesperproc: 25000

Still nothing.

Mind sharing your configuration?

from infer.

jvillard avatar jvillard commented on April 27, 2024

@mesanjeeb: Someone reported successful settings here.

Otherwise you may have some luck with trying java and javac version 1.7.

from infer.

sans-github avatar sans-github commented on April 27, 2024

@jvillard I'm probably going to wait(or possibly contribute) until kinks are cleared out. Java 7 may not be an option for us at the moment.

Thanks for the conversation.

from infer.

remagon avatar remagon commented on April 27, 2024

same issue
got no output after run the commands
infer -- mvn clean
infer -- mvn package

java -version
java version "1.7.0_79"
Java(TM) SE Runtime Environment (build 1.7.0_79-b15)
Java HotSpot(TM) 64-Bit Server VM (build 24.79-b02, mixed mode)

infer --version
Infer version v0.1.1
Copyright 2009 - present Facebook. All Rights Reserved.

from infer.

adagios avatar adagios commented on April 27, 2024

I'm having the same issue, but only on some projects. Some projects work correctly and on others I get no output whatsoever.

from infer.

remagon avatar remagon commented on April 27, 2024

@adagios
you are right
I tried to delete some maven plugin, It works

I think it's about this plugin and it's version is too low, with a new version it works also.

<plugin>  
    <groupId>org.apache.maven.plugins</groupId>  
    <artifactId>maven-compiler-plugin</artifactId>  
    <version>2.0.2</version>  
    <configuration>  
        <source>1.7</source>  
        <target>1.7</target>  
    </configuration>  
</plugin> 

from infer.

adagios avatar adagios commented on April 27, 2024

@remagon you're right, I updated the maven-compiler-plugin version and it started working!

from infer.

jvillard avatar jvillard commented on April 27, 2024

Feel free to re-open if the issue is still there with the latest version of Infer and if @remagon's suggestion is not enough.

from infer.

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.