Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bundle install fails with jruby-head with a Java::JavaLang::ArrayIndexOutOfBoundsException on travis #3102

Closed
pxlpnk opened this issue Jul 2, 2015 · 14 comments

Comments

@pxlpnk
Copy link

@pxlpnk pxlpnk commented Jul 2, 2015

When trying to install the bundle for lograge we run into a weird exception:
https://travis-ci.org/roidrage/lograge/jobs/69340155#L190

I tried running bundle install with --verbose here https://travis-ci.org/pxlpnk/lograge/jobs/69359540 but it didn't yield any further pointers.
Any idea where I can start with my investigation?

@pxlpnk
Copy link
Author

@pxlpnk pxlpnk commented Jul 2, 2015

I disabled the logstash Gem and the installation works then. https://travis-ci.org/pxlpnk/lograge/jobs/69362086
Could the problem be in fetching the Gem or something in the gemspec?

@headius
Copy link
Member

@headius headius commented Jul 3, 2015

Hmm...I'm trying to reproduce it by bundle installing from that PR and it's not blowing up for me. Are you able to reproduce the exception locally? We need more information.

@cheald
Copy link
Contributor

@cheald cheald commented Jul 3, 2015

I had the same issue with a jruby-head build (via RVM) this afternoon.

https://gist.github.com/cheald/5417ab577218766c474f

@pxlpnk
Copy link
Author

@pxlpnk pxlpnk commented Jul 3, 2015

@headius I am currently struggling with setting up a vm that is like the travis ci one.
What would you need on information and how do I get it?

@headius
Copy link
Member

@headius headius commented Jul 3, 2015

@pxlpnk You can request SSH access to an instance for 24 hours by emailing Travis CI support. Once in there you can run the same sequence of commands, but for the bundle install we can try a few flags to get more information:

  • --verbose or other bundle flags that would make it print out the exceptions
  • with and without jruby flag -Xbacktrace.style=full which includes normally-omitted Java backtrace lines

I'll be on IRC today if you want to work together on this.

@headius
Copy link
Member

@headius headius commented Jul 3, 2015

@cheald If that is indeed the same error, it may be related to a fix we made to prevent this error. What rev is that build?

@headius headius added this to the JRuby 9.0.0.0.rc2 milestone Jul 3, 2015
@pxlpnk
Copy link
Author

@pxlpnk pxlpnk commented Jul 3, 2015

Unfortunately I won't get to this today. I will ping their support and see if I can get SSH access and run it with -Xbacktrace.style=full

Using --verbose didn't yield any result as it can be seen here: https://travis-ci.org/pxlpnk/lograge/jobs/69359540#L181

@cheald
Copy link
Contributor

@cheald cheald commented Jul 3, 2015

$ jruby -v
jruby 9.0.0.0-SNAPSHOT (2.2.2) 2015-07-02 10be3bb OpenJDK 64-Bit Server VM 25.25-b02 on 1.8.0_25-b18 +jit [linux-amd64]

@cheald
Copy link
Contributor

@cheald cheald commented Jul 3, 2015

FWIW, this is failing when I try to run rake from my Manticore project - https://github.com/cheald/manticore - you can probably clone it and bundle install/rake to repro it. I'm working on rebuilding jruby-head right now to re-test.

@cheald
Copy link
Contributor

@cheald cheald commented Jul 3, 2015

benlovell added a commit to roidrage/lograge that referenced this issue Jul 6, 2015
This is temporary while jruby/jruby#3102 is being resolved.
@headius
Copy link
Member

@headius headius commented Jul 6, 2015

@cheald Great, thank you!

@headius
Copy link
Member

@headius headius commented Jul 6, 2015

I was unable to reproduce with my working copy of JRuby, but I'll try against RVM now.

@headius headius closed this in d0659d1 Jul 6, 2015
@headius
Copy link
Member

@headius headius commented Jul 6, 2015

The fix is in! Please confirm with latest JRuby head.

@pxlpnk
Copy link
Author

@pxlpnk pxlpnk commented Jul 7, 2015

Still breaks on travis. Do you know how often the jruby head builds get updated from their side? /cc @rkh
https://travis-ci.org/roidrage/lograge/jobs/69846080#L153

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants