[ruote:2256] Get error message after ruote fresh install

11 views
Skip to first unread message

Christophe Malaurie

unread,
May 10, 2010, 5:00:45 AM5/10/10
to ruote
Hi John
just installed ruote-2.1.9 (looks great that's why I give it a try),
running the ruote_quickstart.rb and bang...does no display the pretty
message about Alice but instead ....nothing. So far I identified a
kind of error message (see below) when inputing the file into an irb
session.
Tried to increase stack size on the system (ulimit -s xxxx), no effect
except harming the system if I define a stack too high...
I'm running ruby ------ > 1.8.7 (2008-08-11 patchlevel 72) [x86_64-
linux].
and downloaded the soft using rubygems, no problem.

Any idea might save my day.
Many thanks in advance
Cheers
Christophe


Message from
irb-----------------------------------------------------------------------------
engine.wait_for(wfid)
{"msg"=>{"_rev"=>0, "put_at"=>"2010-05-10 08:47:16.085451 UTC",
"variables"=>{"test"=>["0", ["define", {"name"=>"test"}, [["sequence",
{}, [["participant", {"alpha"=>nil}, []], ["participant",
{"bravo"=>nil}, []]]]]]]}, "wfid"=>"20100510-yanezane", "_id"=>"443!
70332100309420!2010-05-10!1273481236.085388!002", "action"=>"launch",
"workitem"=>{"fields"=>{}, "fei"=>{"sub_wfid"=>nil, "wfid"=>"20100510-
yanezane", "engine_id"=>"engine", "expid"=>"0"}}, "type"=>"msgs",
"tree"=>["define", {"name"=>"test"}, [["sequence", {},
[["participant", {"alpha"=>nil}, []], ["participant", {"bravo"=>nil},
[]]]]]]}, "_rev"=>0, "put_at"=>"2010-05-10 08:47:16.098740 UTC",
"wfid"=>"20100510-yanezane", "_id"=>"443!70332078343080!2010-05-10!
1273481236.098641!003", "action"=>"error_intercepted", "type"=>"msgs",
"message"=>"#<SystemStackError: stack level too deep>"}
# blocks current thread until our process instance terminates

# => 'I received a message from Alice'

nil
Message from
irb-----------------------------------------------------------------------------

--
you received this message because you are subscribed to the "ruote users" group.
to post : send email to openwfe...@googlegroups.com
to unsubscribe : send email to openwferu-use...@googlegroups.com
more options : http://groups.google.com/group/openwferu-users?hl=en

John Mettraux

unread,
May 10, 2010, 5:11:25 AM5/10/10
to openwfe...@googlegroups.com
On Mon, May 10, 2010 at 6:00 PM, Christophe Malaurie
<christoph...@gmail.com> wrote:
> Hi John
> just installed ruote-2.1.9 (looks great that's why I give it a try),
> running the ruote_quickstart.rb and bang...does no display the pretty
> message about Alice but instead ....nothing. So far I identified a
> kind of error message (see below) when inputing the file into an irb
> session.
> Tried to increase stack size on the system (ulimit -s xxxx), no effect
> except harming the system if I define a stack too high...
> I'm running ruby ------ > 1.8.7 (2008-08-11 patchlevel 72) [x86_64-
> linux].
> and downloaded the soft using rubygems, no problem.

Hello Christophe,

I just tried with ruby 1.8.7 (2008-08-11 patchlevel 72)
[i686-darwin10.2.0] and couldn't reproduce the error (works for me).

The "stack level too deep" message is a symptom of an infinite
recursion, ulimit will not help.

Could you please run with

ruby ruote_quickstart.rb -d

and paste the resulting stack trace here ?


Thanks in advance,

--
John Mettraux - http://jmettraux.wordpress.com

Christophe Malaurie

unread,
May 10, 2010, 5:18:46 AM5/10/10
to openwfe...@googlegroups.com
tx for that quick reply, here is the -d result

lemulet:/var/lib/gems/1.8/gems/ruote-2.1.9/examples# ruby ruote_quickstart.rb -d

== worker intercepted error ==


#<SystemStackError: stack level too deep>
/var/lib/gems/1.8/gems/rufus-json-0.2.1/lib/rufus/json.rb:34:in `to_json'
/var/lib/gems/1.8/gems/rufus-json-0.2.1/lib/rufus/json.rb:34
/var/lib/gems/1.8/gems/rufus-json-0.2.1/lib/rufus/json.rb:106:in `call'
/var/lib/gems/1.8/gems/rufus-json-0.2.1/lib/rufus/json.rb:106:in `encode'
/var/lib/gems/1.8/gems/rufus-cloche-0.1.17/lib/rufus/cloche.rb:111:in `put'
/var/lib/gems/1.8/gems/rufus-cloche-0.1.17/lib/rufus/cloche.rb:111:in `open'
/var/lib/gems/1.8/gems/rufus-cloche-0.1.17/lib/rufus/cloche.rb:111:in `put'
/var/lib/gems/1.8/gems/rufus-cloche-0.1.17/lib/rufus/cloche.rb:291:in `call'
/var/lib/gems/1.8/gems/rufus-cloche-0.1.17/lib/rufus/cloche.rb:291:in `lock'
/var/lib/gems/1.8/gems/rufus-cloche-0.1.17/lib/rufus/cloche.rb:275:in `synchronize'
...

-- msg --
    "_id" =>
"699!70069949938100!2010-05-10!1273483025.027072!002"
    "_rev" =>
0
    "action" =>
"launch"
    "put_at" =>
"2010-05-10 09:17:05.027095 UTC"

    "tree" =>
["define", {"name"=>"test"}, [["sequence", {}, [["participant", {"alpha"=>nil}, []], ["participant", {"bravo"=>nil}, []]]]]]
    "type" =>
"msgs"

    "variables" =>
{"test"=>["0", ["define", {"name"=>"test"}, [["sequence", {}, [["participant", {"alpha"=>nil}, []], ["participant", {"bravo"=>nil}, []]]]]]]}
    "wfid" =>
"20100510-jedigeto"
    "workitem" =>
{"fields"=>{}, "fei"=>{"sub_wfid"=>nil, "wfid"=>"20100510-jedigeto", "engine_id"=>"engine", "expid"=>"0"}}
-- . --

John Mettraux

unread,
May 10, 2010, 5:20:32 AM5/10/10
to openwfe...@googlegroups.com
On Mon, May 10, 2010 at 6:18 PM, Christophe Malaurie
<christoph...@gmail.com> wrote:
> tx for that quick reply, here is the -d result
>
> lemulet:/var/lib/gems/1.8/gems/ruote-2.1.9/examples# ruby
> ruote_quickstart.rb -d
>
> == worker intercepted error ==
>
> #<SystemStackError: stack level too deep>
> /var/lib/gems/1.8/gems/rufus-json-0.2.1/lib/rufus/json.rb:34:in `to_json'

Hello,

could you please install the gem "yajl-ruby" and try again ?

John Mettraux

unread,
May 10, 2010, 5:25:25 AM5/10/10
to openwfe...@googlegroups.com
On Mon, May 10, 2010 at 6:20 PM, John Mettraux <jmet...@openwfe.org> wrote:
> On Mon, May 10, 2010 at 6:18 PM, Christophe Malaurie
> <christoph...@gmail.com> wrote:
>> tx for that quick reply, here is the -d result
>>
>> lemulet:/var/lib/gems/1.8/gems/ruote-2.1.9/examples# ruby
>> ruote_quickstart.rb -d
>>
>> == worker intercepted error ==
>>
>> #<SystemStackError: stack level too deep>
>> /var/lib/gems/1.8/gems/rufus-json-0.2.1/lib/rufus/json.rb:34:in `to_json'
>
> Hello,
>
> could you please install the gem "yajl-ruby" and try again ?

I tried with :

- "json" : same error as you
- "json_pure" : works
- "yajl-ruby": works

I will now try with a more recent ruby and those 3 gems...

Christophe Malaurie

unread,
May 10, 2010, 5:27:11 AM5/10/10
to openwfe...@googlegroups.com
oops working. Saw the line about yajl-ruby in the "ruote quickstart" web page but did not pay attention to it, except for the JSON gem that I had to install apart.


Cheers and many thanks
Christophe

John Mettraux

unread,
May 10, 2010, 5:32:00 AM5/10/10
to openwfe...@googlegroups.com
On Mon, May 10, 2010 at 6:27 PM, Christophe Malaurie
<christoph...@gmail.com> wrote:
> oops working. Saw the line about yajl-ruby in the "ruote quickstart" web
> page but did not pay attention to it, except for the JSON gem that I had to
> install apart.

Great.

it's interesting, json 1.4.3 exposes the issue, but json 1.2.4
(previous generation) works fine. I will try to fill a bug report for
the json gem people.

Thanks,

Christophe Malaurie

unread,
May 10, 2010, 5:35:43 AM5/10/10
to openwfe...@googlegroups.com
Yep, kind of thing that could stop people using ruote when it is clearly not a ruote issue.
Is there a way I can get all ruote classes definition (methods and attributes) ? I red with a lot of interest the Guide pages, which contain a lot of information already, but probably not exhaustive.
Many ty again for quick intervention
Cheers

John Mettraux

unread,
May 10, 2010, 5:41:07 AM5/10/10
to openwfe...@googlegroups.com

On Mon, May 10, 2010 at 11:35:43AM +0200, Christophe Malaurie wrote:
>
> Is there a way I can get all ruote classes definition (methods and
> attributes) ? I red with a lot of interest the Guide pages, which contain a
> lot of information already, but probably not exhaustive.

http://ruote.rubyforge.org/rdoc/


Best regards,
Reply all
Reply to author
Forward
0 new messages