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

Build fails on Travis, but not locally #14

Closed
wasnotrice opened this issue May 25, 2012 · 3 comments
Closed

Build fails on Travis, but not locally #14

wasnotrice opened this issue May 25, 2012 · 3 comments

Comments

@wasnotrice
Copy link
Member

There are 24 failures, all with the same error. Here's an example:

Failures:

1) SwtShoes::App Shoes::App shell receives open
Failure/Error: subject { Shoes::App.new }
NativeException:
  org.eclipse.swt.SWTError: No more handles [gtk_init_check() failed]
# org.eclipse.swt.SWT:-1:in `error'
# org.eclipse.swt.widgets.Display:-1:in `createDisplay'
# org.eclipse.swt.widgets.Display:-1:in `create'
# org.eclipse.swt.graphics.Device:-1:in `<init>'
# org.eclipse.swt.widgets.Display:-1:in `<init>'
# org.eclipse.swt.widgets.Display:-1:in `<init>'
# sun/reflect/NativeConstructorAccessorImpl.java:-2:in `newInstance0'
# sun/reflect/NativeConstructorAccessorImpl.java:57:in `newInstance'
# sun/reflect/DelegatingConstructorAccessorImpl.java:45:in `newInstance'
# java/lang/reflect/Constructor.java:532:in `newInstance'
# org/jruby/javasupport/JavaConstructor.java:259:in `newInstanceDirect'
# ./lib/swt_shoes/app.rb:13:in `gui_init'
# ./lib/shoes/app.rb:39:in `initialize'
# ./spec/swt_shoes/app_spec.rb:15:in `(root)'
# org/jruby/RubyBasicObject.java:1730:in `instance_eval'
# ./spec/swt_shoes/app_spec.rb:20:in `(root)'
# org/jruby/RubyBasicObject.java:1730:in `instance_eval'
# org/jruby/RubyArray.java:2331:in `collect'
# org/jruby/RubyArray.java:2339:in `collect'
# org/jruby/RubyArray.java:2331:in `collect'
# org/jruby/RubyArray.java:2339:in `collect'
# org/jruby/RubyArray.java:2331:in `collect'
# org/jruby/RubyArray.java:2339:in `collect'
# org/jruby/RubyArray.java:2331:in `collect'
# org/jruby/RubyArray.java:2339:in `collect'

I think this might have to do with the TravisCI build VM not having DISPLAY. See https://bugs.eclipse.org/bugs/show_bug.cgi?id=119156#c1

@mpapis
Copy link
Member

mpapis commented May 25, 2012

@pjfitzgibbons
Copy link
Member

We need to figure out how to use a headless display in travis.

SWT will fail if the window methods can't connect to a display device

Peter Fitzgibbons
(847) 859-9550
Email: peter.fitzgibbons@gmail.com
IM GTalk: peter.fitzgibbons
IM AOL: peter.fitzgibbons@gmail.com

On Fri, May 25, 2012 at 3:19 PM, Eric Watson <
reply@reply.github.com

wrote:

There are 24 failures, all with the same error. Here's an example:

Failures:

1) SwtShoes::App Shoes::App shell receives open
Failure/Error: subject { Shoes::App.new }
NativeException:
 org.eclipse.swt.SWTError: No more handles [gtk_init_check() failed]
# org.eclipse.swt.SWT:-1:in `error'
# org.eclipse.swt.widgets.Display:-1:in `createDisplay'
# org.eclipse.swt.widgets.Display:-1:in `create'
# org.eclipse.swt.graphics.Device:-1:in `<init>'
# org.eclipse.swt.widgets.Display:-1:in `<init>'
# org.eclipse.swt.widgets.Display:-1:in `<init>'
# sun/reflect/NativeConstructorAccessorImpl.java:-2:in `newInstance0'
# sun/reflect/NativeConstructorAccessorImpl.java:57:in `newInstance'
# sun/reflect/DelegatingConstructorAccessorImpl.java:45:in `newInstance'
# java/lang/reflect/Constructor.java:532:in `newInstance'
# org/jruby/javasupport/JavaConstructor.java:259:in `newInstanceDirect'
# ./lib/swt_shoes/app.rb:13:in `gui_init'
# ./lib/shoes/app.rb:39:in `initialize'
# ./spec/swt_shoes/app_spec.rb:15:in `(root)'
# org/jruby/RubyBasicObject.java:1730:in `instance_eval'
# ./spec/swt_shoes/app_spec.rb:20:in `(root)'
# org/jruby/RubyBasicObject.java:1730:in `instance_eval'
# org/jruby/RubyArray.java:2331:in `collect'
# org/jruby/RubyArray.java:2339:in `collect'
# org/jruby/RubyArray.java:2331:in `collect'
# org/jruby/RubyArray.java:2339:in `collect'
# org/jruby/RubyArray.java:2331:in `collect'
# org/jruby/RubyArray.java:2339:in `collect'
# org/jruby/RubyArray.java:2331:in `collect'
# org/jruby/RubyArray.java:2339:in `collect'

I think this might have to do with the TravisCI build VM not having
DISPLAY. See https://bugs.eclipse.org/bugs/show_bug.cgi?id=119156#c1


Reply to this email directly or view it on GitHub:
#14

@wasnotrice
Copy link
Member Author

Fixed by cd041ba

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

No branches or pull requests

3 participants