Coder Social home page Coder Social logo

Comments (16)

danmayer avatar danmayer commented on July 25, 2024

Hmmm interesting. I feel like I recently saw one of those in our system as well. I will see if I can get someone from the rearview team to take a look. Thanks for reporting and good to hear from you @tarcieri ;)

from rearview.

talbright avatar talbright commented on July 25, 2024

Hey there @tarcieri! I didn't see this before, I guess my notification settings are wrong. Are you still having this problem?

from rearview.

tarcieri avatar tarcieri commented on July 25, 2024

I am indeed! Still trying to figure it out too o_O

I'll be taking another look at it today and can get you more info then. I was hoping there would be some other associated exception, but I'm not seeing it in the logs.

from rearview.

talbright avatar talbright commented on July 25, 2024

Ok. Double check your config/initializers/rearview.rb as well, I think I saw something like this a long time ago and it ended up being configuration related.

from rearview.

tarcieri avatar tarcieri commented on July 25, 2024

It quite likely is, I'm just not sure what exactly is misconfigured

from rearview.

talbright avatar talbright commented on July 25, 2024

This might catch the problem:

$ rake RAILS_ENV=production rearview:config:verify

from rearview.

tarcieri avatar tarcieri commented on July 25, 2024

Will give that a try, thanks!

from rearview.

tarcieri avatar tarcieri commented on July 25, 2024

Well, that found a few things wrong, but now I get:

validating...PASSED

And it's still crashing with the same error.

from rearview.

talbright avatar talbright commented on July 25, 2024

Is your jdk and jruby version on the build matrix:

https://travis-ci.org/livingsocial/rearview-engine

from rearview.

tarcieri avatar tarcieri commented on July 25, 2024

We're using this:

jruby 1.7.3 (1.9.3p385) 2013-02-21 dac429b on Java HotSpot(TM) 64-Bit Server VM 1.7.0_17-b02 [linux-amd64]

I can try upgrading JRuby. In the meantime I can provide another pointer... things seem to be going amiss here:

https://github.com/livingsocial/rearview-engine/blob/master/lib/rearview/monitor_service.rb#L25

Here, @jobs.values is []

It seems that even trying to reference (i.e. print out or call) @supervisor crashes the program. If I comment out L25 and try to start the supervisor from the console:

irb(main):001:0> Rearview::MonitorSupervisor.run!
=> #<Celluloid::ActorProxy(Rearview::MonitorSupervisor:0x2cc0) @registry=#<Celluloid::Registry:0x7d26297b @registry_lock=#<Mutex:0x546d8a6d>, @registry={}> @members=[]>

Very strange...

from rearview.

talbright avatar talbright commented on July 25, 2024

Very strange! I seem to be guarding against nil and an empty [] correctly in the MonitorSupervisor. Which JDK (oracle, openjdk,etc)?

from rearview.

talbright avatar talbright commented on July 25, 2024

@tarcieri it does look like the build fails with jruby-1.7.2 (with openjdk{6,7}). It could be coincidence -- I'll have to dig more into it later

https://travis-ci.org/livingsocial/rearview-engine/builds/27228811

from rearview.

tarcieri avatar tarcieri commented on July 25, 2024

I seem to recall numerous bugs in earlier versions of JRuby and Celluloid ;). I'll try updating JRuby.

from rearview.

talbright avatar talbright commented on July 25, 2024

Cool...let me know how it goes. If its still busted I'll keep working with you on it until we figure it out.

from rearview.

tarcieri avatar tarcieri commented on July 25, 2024

Quick update: looks like upgrading JRuby fixed the problem.

We're still having some issues but they're unrelated to this.

from rearview.

talbright avatar talbright commented on July 25, 2024

👍

I'm working on a vagrant setup, which will make it at least easier for people to test drive rearview.

from rearview.

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.