method `method_missing' called on terminated object #176
Comments
If I had to guess I'd say that this http://bugs.ruby-lang.org/issues/4168 Under my stress tests, the stlib WeakRef implementation was very unreliable. It didn't take long at all for this exact issue to manifest all over the place. We now use https://github.com/bdurand/ref to mitigate. Let me see if I can get your test suite running on master. |
I'm running into this problem off of 0.11.0beta8. Was it fixed in any commit after that release? |
Unfortunately this is a bug in YARV that I've been unsuccessful at working around completely. Using the ref gem helps, but it does not catch all of the cases. It's one of those nasty ones that requires a lot of time to track down. Perhaps it's time to appeal to an internals guru. |
Seeing the same issue. |
Also see this from time to time. I am using 0.11.0beta8 on ruby 1.9.3p194. Is there a way to skip using weak references at all? I prefer consuming more memory over a failing program. |
ha ... just got this on p392 |
I will self reply here, current thinking is that to fully resolve you need to be running Ruby 2.0 , see comment https://github.com/cowboyd/therubyracer/blob/master/lib/v8/weak.rb |
@SamSaffron Rubinius also has a functioning weakref implementation. |
I'm seeing this on 0.10.1 with Ruby 1.9.3p392. Can anyone confirm that it's happening on with version 0.11.4? Edit: I updated to 0.11.4 and was still seeing this issue intermittently. Here my stack trace:
|
@jfirebaugh sadly, there is no easy fix due to fundamental defects in the There may be a more solid workaround, than what the I wish I had a better answer than that of course, but there you have it. |
wild thought, could we have switch that in test disables the weakref stuff On Fri, Jun 28, 2013 at 4:59 AM, Charles Lowell notifications@github.comwrote:
|
It is possbile, and I've been toying with the idea of adding an explicit |
@cowboyd that would be awesome, mainly looking for a workaround for our test suite |
Any updates? We're seeing this randomly as well. |
We're also seeing this randomly - a workaround for tests would be amazing. |
I would say best thing to do would be to upgrade to ruby 2.0 ... 1.9.3 had On Thu, Feb 6, 2014 at 11:56 AM, Jordan Harband notifications@github.comwrote:
|
That's an unreasonable thing to expect businesses to do quickly. We'd certainly like to move to Ruby 2, but it's going to be quite awhile - so if therubyracer won't let us run tests, we'd have to find something that did, and we'd be unlikely to switch back. Hopefully someone can help come up with a workaround so there's an upgrade path for therubyracer users :-) |
We're running into this too and have significant ops hurdles for deploying with ruby 2.0. I just finished putting a blanket rescue-retry with max 20 retries around a migration we're running, which makes me extremely sad - especially since the errors are often "no such method for nil", which is super-general. |
When running the Handlebars tests on some machines, I routinely get:
The text was updated successfully, but these errors were encountered: