JSON is too deeply nested (64 bits) #50

Closed
fcsonline opened this Issue Dec 3, 2012 · 12 comments

Comments

Projects
None yet
3 participants

I have an issue loading JSON object with Oj in a set of machines. Some examples:

1.9.3p0 :016 > res=Oj.dump({:a=>'b'})
 => "{\":a\":\"b\"}"
1.9.3p0 :015 > Oj.load(res)
SystemStackError: JSON is too deeply nested
1.9.3p0 :015 > Oj.load('{}')
SystemStackError: JSON is too deeply nested

I'm have the same Ruby version 1.9.3p0 in both machines. The working machines are 32 bits (Ubuntu 10.04) and the failing machines are 64 bits (12.10 and 12.04).

Some suggestion?

Owner

ohler55 commented Dec 3, 2012

Have you tried the latests version of Ruby 1.9.3?

I checked by Ubuntu box which is running 12.10 but I just realized is 32 bit. It works fine there with 1.9.3-p286. I will have to do a re-install to test 64 bit. I will try to do that tonight or tomorrow but if I don't it will be a month before I can recreate here.

Does Ruby work as expected?

Owner

ohler55 commented Dec 4, 2012

Tested on Ubuntu 12.10 with Ruby 1.9.3-p0 and 1.9.3-p286. Both work fine. Can you tell me more about your setup and Oj settings?

I'll setup these Ruby versions and investigate a little more... thank you

Owner

ohler55 commented Dec 18, 2012

Whats the latests status?

I have tried Oj (1.4.0) with ruby-1.9.3-p194, ruby-1.9.3-p194 and ruby-1.9.3-p286, with same results. I upgraded to 1.4.7 and fails too.

I will investigate a little more.

Owner

ohler55 commented Dec 18, 2012

I will leave the issue open until we get it sorted. I will not be able to test on my ubuntu box for a little longer. We can compare notes on the environment then and see what is different.

Ok, I will notify you ASAP

Owner

ohler55 commented Feb 1, 2013

Is there any reason not to close this issue?

Sorry, I close the issue. If I have news, I'll open it again. Thanks.

fcsonline closed this Feb 2, 2013

Owner

ohler55 commented Feb 2, 2013

Thanks

boof commented Feb 12, 2015

I noticed this behaviour when my Gemfile uses oj and oj_mimic_json but also requires another lib that requires these libraries.

Owner

ohler55 commented Feb 12, 2015

If you can describe the problem and how to get it to show up, please open a new issue. This one is 2 years old and really unrelated to the current code base. If it is a problem I would like to get it fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment