librelist archives

« back to archive

Issue with json_pure: stack level too deep (resque + resque-status)

Issue with json_pure: stack level too deep (resque + resque-status)

From:
Thibaut Barrère
Date:
2010-08-13 @ 09:54
Hi guys,

I'm using the latest resque and resque-status.

When using 'json_pure' (1.4.6), I'll get a SystemStackError (
http://gist.github.com/522628) each time the worker tries to reserve the
job.

Switching to 'json' solves the issue apparently.

Is it a known issue ? Should I file a bug ?

-- Thibaut

Re: Issue with json_pure: stack level too deep (resque + resque-status)

From:
Thibaut Barrère
Date:
2010-08-13 @ 09:58
This seems related to resque-status issue
http://github.com/quirkey/resque-status/issues#issue/4 (but it has
apparently been fixed, so maybe a regression or a different bug).

-- Thibaut

On Fri, Aug 13, 2010 at 11:54 AM, Thibaut Barrère <thibaut.barrere@gmail.com
> wrote:

> Hi guys,
>
> I'm using the latest resque and resque-status.
>
> When using 'json_pure' (1.4.6), I'll get a SystemStackError (
> http://gist.github.com/522628) each time the worker tries to reserve the
> job.
>
> Switching to 'json' solves the issue apparently.
>
> Is it a known issue ? Should I file a bug ?
>
> -- Thibaut
>
>
>

Re: [resque] Issue with json_pure: stack level too deep (resque + resque-status)

From:
Adam Fields
Date:
2010-08-13 @ 16:16
On Fri, Aug 13, 2010 at 11:54:21AM +0200, Thibaut Barrère wrote:
[...]
> Switching to 'json' solves the issue apparently.
> 
> Is it a known issue ? Should I file a bug ?

I've seen this problem elsewhere in rails when trying to serialize
objects to json. I've been using yajl-ruby recently - it also doesn't
have this problem and it's much faster.

-- 
				- Adam
----------
If you liked this email, you might also like:
"Converting Pages files to HTML" 
-- http://workstuff.tumblr.com/post/894147557
"Sous Vide Black Beans" 
-- http://www.aquick.org/blog/2010/07/28/sous-vide-black-beans/
"Sous Vide Potatoes" 
-- http://www.flickr.com/photos/fields/4884146682/
"fields: @kevinowocki This is a longer discussion than 140 characters will
allo..." 
-- http://twitter.com/fields/statuses/21031851110
----------
** I design intricate-yet-elegant processes for user and machine problems.
** Custom development project broken? Contact me, I can help.
** Some of what I do: http://workstuff.tumblr.com/post/70505118/aboutworkstuff

[ http://www.adamfields.com/resume.html ].. Experience
[ http://www.morningside-analytics.com ] .. Latest Venture
[ http://www.confabb.com ] ................ Founder

Re: [resque] Issue with json_pure: stack level too deep (resque + resque-status)

From:
Tony Arcieri
Date:
2010-08-13 @ 16:30
On Fri, Aug 13, 2010 at 10:16 AM, Adam Fields <resque534355@aquick.org>wrote:

> I've seen this problem elsewhere in rails when trying to serialize
> objects to json. I've been using yajl-ruby recently - it also doesn't
> have this problem and it's much faster.


YAJL has a nice API, unfortunately it doesn't work on JRuby.

My vote goes to the "json" gem, which is fast, doesn't have this problem,
and has a cross-platform support commitment now from both JRuby and
Rubinius.

-- 
Tony Arcieri
Medioh! A Kudelski Brand

Re: [resque] Issue with json_pure: stack level too deep (resque + resque-status)

From:
Kunal Shah
Date:
2010-08-13 @ 16:34
just some fyi
We found and tried out the same solution, unfortunately we also use Mongo 
/ MongoMapper which didn't work cleanly with yajl-ruby. I could get the 
details for you on that if you need.

iirc json 1.4.2 had all sorts of problems, so we've been sticking with the
1.2.x branch, but really need a newer, consistent and compatible JSON 
library throughout our stack.

K

On Aug 13, 2010, at 12:16 PM, Adam Fields wrote:

> On Fri, Aug 13, 2010 at 11:54:21AM +0200, Thibaut Barrère wrote:
> [...]
>> Switching to 'json' solves the issue apparently.
>> 
>> Is it a known issue ? Should I file a bug ?
> 
> I've seen this problem elsewhere in rails when trying to serialize
> objects to json. I've been using yajl-ruby recently - it also doesn't
> have this problem and it's much faster.
> 
> -- 
> 				- Adam
> ----------
> If you liked this email, you might also like:
> "Converting Pages files to HTML" 
> -- http://workstuff.tumblr.com/post/894147557
> "Sous Vide Black Beans" 
> -- http://www.aquick.org/blog/2010/07/28/sous-vide-black-beans/
> "Sous Vide Potatoes" 
> -- http://www.flickr.com/photos/fields/4884146682/
> "fields: @kevinowocki This is a longer discussion than 140 characters 
will allo..." 
> -- http://twitter.com/fields/statuses/21031851110
> ----------
> ** I design intricate-yet-elegant processes for user and machine problems.
> ** Custom development project broken? Contact me, I can help.
> ** Some of what I do: http://workstuff.tumblr.com/post/70505118/aboutworkstuff
> 
> [ http://www.adamfields.com/resume.html ].. Experience
> [ http://www.morningside-analytics.com ] .. Latest Venture
> [ http://www.confabb.com ] ................ Founder

Re: [resque] Issue with json_pure: stack level too deep (resque + resque-status)

From:
Thibaut Barrère
Date:
2010-08-13 @ 17:53
@Kunal - thanks; I'm using Mongo and MongoMapper, precisely, so your advice
is very useful to me.

-- Thibaut

On Fri, Aug 13, 2010 at 6:34 PM, Kunal Shah <kunal@dropio.com> wrote:

> just some fyi
> We found and tried out the same solution, unfortunately we also use Mongo /
> MongoMapper which didn't work cleanly with yajl-ruby. I could get the
> details for you on that if you need.
>
> iirc json 1.4.2 had all sorts of problems, so we've been sticking with the
> 1.2.x branch, but really need a newer, consistent and compatible JSON
> library throughout our stack.
>
> K
>
> On Aug 13, 2010, at 12:16 PM, Adam Fields wrote:
>
> > On Fri, Aug 13, 2010 at 11:54:21AM +0200, Thibaut Barrère wrote:
> > [...]
> >> Switching to 'json' solves the issue apparently.
> >>
> >> Is it a known issue ? Should I file a bug ?
> >
> > I've seen this problem elsewhere in rails when trying to serialize
> > objects to json. I've been using yajl-ruby recently - it also doesn't
> > have this problem and it's much faster.
> >
> > --
> >                               - Adam
> > ----------
> > If you liked this email, you might also like:
> > "Converting Pages files to HTML"
> > -- http://workstuff.tumblr.com/post/894147557
> > "Sous Vide Black Beans"
> > -- http://www.aquick.org/blog/2010/07/28/sous-vide-black-beans/
> > "Sous Vide Potatoes"
> > -- http://www.flickr.com/photos/fields/4884146682/
> > "fields: @kevinowocki This is a longer discussion than 140 characters
> will allo..."
> > -- http://twitter.com/fields/statuses/21031851110
> > ----------
> > ** I design intricate-yet-elegant processes for user and machine
> problems.
> > ** Custom development project broken? Contact me, I can help.
> > ** Some of what I do:
> http://workstuff.tumblr.com/post/70505118/aboutworkstuff
> >
> > [ http://www.adamfields.com/resume.html ].. Experience
> > [ http://www.morningside-analytics.com ] .. Latest Venture
> > [ http://www.confabb.com ] ................ Founder
>
>

Re: [resque] Issue with json_pure: stack level too deep (resque + resque-status)

From:
Adam Fields
Date:
2010-08-13 @ 19:24
On Fri, Aug 13, 2010 at 12:34:19PM -0400, Kunal Shah wrote:
> just some fyi
> We found and tried out the same solution, unfortunately we also use
> Mongo / MongoMapper which didn't work cleanly with yajl-ruby. I
> could get the details for you on that if you need.  I' m using
> mongoid in some places, though I don't think we've tried to
> serialize those objects.

What problems did you have with yajl-ruby? Were you using the json gem
emulation mode?

> iirc json 1.4.2 had all sorts of problems, so we've been sticking
> with the 1.2.x branch, but really need a newer, consistent and
> compatible JSON library throughout our stack.

I'm somewhat astonished at the level of variation in the different
json implementations. Yajl-ruby seems to be pretty stable and properly
compatible with other platform implementations.

There does seem to be a jruby-compatible branch in progress, though
it's not ready yet.

--
				- Adam
----------
If you liked this email, you might also like:
"Converting Pages files to HTML" 
-- http://workstuff.tumblr.com/post/894147557
"Sous Vide Black Beans" 
-- http://www.aquick.org/blog/2010/07/28/sous-vide-black-beans/
"Sous Vide Potatoes" 
-- http://www.flickr.com/photos/fields/4884146682/
"fields: @kevinowocki This is a longer discussion than 140 characters will
allo..." 
-- http://twitter.com/fields/statuses/21031851110
----------
** I design intricate-yet-elegant processes for user and machine problems.
** Custom development project broken? Contact me, I can help.
** Some of what I do: http://workstuff.tumblr.com/post/70505118/aboutworkstuff

[ http://www.adamfields.com/resume.html ].. Experience
[ http://www.morningside-analytics.com ] .. Latest Venture
[ http://www.confabb.com ] ................ Founder

--