Comments (12)
We're having the same exact issue.
👍
from infer.
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.
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.
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.
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.
@mesanjeeb: Someone reported successful settings here.
Otherwise you may have some luck with trying java and javac version 1.7.
from infer.
@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.
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.
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.
@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.
@remagon you're right, I updated the maven-compiler-plugin
version and it started working!
from infer.
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)
- C Simple memory leak cannot be detected HOT 1
- [java] DEADLOCK: False Negative in Infer analysis results after converting anonymous classes to lambda expressions HOT 1
- [java] STARVATION: False Negative in Infer analysis results after converting anonymous classes to lambda expressions HOT 1
- False positive of Infer/Pulse when `std::unique_ptr` is used with no throw `new` HOT 2
- how to use --custom-symbols?
- How to check custom malloc and free functions for memory leak?
- can infer find out all suspecious bugs? HOT 2
- java: Infer injects outdated, buggy maven-compiler-plugin version 3.8.0
- False positive memory leak on loop HOT 4
- Dockerfile: US-ASCII locale causes crash on UTF-8 input
- How to add extra nullability condition to NULL_DEREFERENCE checking
- Is Adding a C++ Infer Port to the VSCode Plugin on the Roadmap? HOT 3
- [java] A false negative about the rule NULL_DEREFERENCE
- [java] A false positive about the rule THREAD_SAFETY_VIOLATION
- `--biabduction-unsafe-malloc` doesn't assume that `calloc()` and `realloc()` never return null HOT 1
- Error building the `Resource Leak analysis` lab in docker
- False positive Uninitialized Value in C code
- Need help when using infer run or capture during maven compilation HOT 1
- Query on --changed-files-index option HOT 3
- Meta leak HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from infer.