I'm getting a similar error, here a partial stack trace:<br><br>20070108-20:17:45 (27597) can't convert Symbol into Hash - (TypeError)<br>20070108-20:17:45 (27597) /opt/lss/demo/0.4-06/vendor/plugins/backgroundrb/server/lib/backgroundrb/results.rb:40:in `merge!'
<br>20070108-20:17:45 (27597) /opt/lss/demo/0.4-06/vendor/plugins/backgroundrb/server/lib/backgroundrb/results.rb:40:in `[]='<br><br>The process will run fine for hours or days, but then will stop with this error. When it happens it takes now the entire BackgrounDRb server. (I'm addding some begin/rescue blocks to hopefully prevent that.)
<br><br>I've got Ruby 1.8.5p12 compiled with gcc 3.4.6 on RedHat Linux.<br><br>This also seems to occur with more than one process (running the same worker class) at the same tim<br><br>Any ideas?<br><br>Mason<br><br>
<div><span class="gmail_quote">On 1/7/07, <b class="gmail_sendername">Robert Bjarnason</b> <<a href="mailto:robert.bjarnason@gmail.com">robert.bjarnason@gmail.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi Bob,<br><br>Thanks for the pointer, I agree this is probably not a directly<br>backgroundrb related problem. I built Ruby 1.8.4 on a Debian Linux box<br>using gcc version 3.3.5.<br><br>Warm regards,<br>Robert Bjarnason
<br><br>Bob Hutchison wrote:<br>> Hi,<br>><br>> This sounds a bit like the trouble in OS X where you'd get a Fixednum<br>> to String error. This was caused by a bug in the gcc 4.0 compiler. The<br>> solution on OS X is to re-compile Ruby with -O1 optimisation level or
<br>> switch to the gcc 3.x compiler). As I understand it, with linux you<br>> have the additional option of installing a newer version of gcc 4.x<br>> and recompiling (I'm using 4.0.2 on one of my linux boxes and have
<br>> never seen the problem).<br>><br>> Cheers,<br>> Bob<br>><br>> On 4-Jan-07, at 11:44 AM, Robert Bjarnason wrote:<br>><br>>> Hi,<br>>><br>>> I'm using backgroundrb 0.2.1 in a production environment and for most
<br>>> parts I'm very happy. We are using it to do some heavy video editing on<br>>> the server side and it works great except that under, what seems heavy<br>>> load the below problem happens intermittently.
<br>>><br>>> The problem has only happened 5 times out of over 500 runs by our<br>>> backgroundrb worker.<br>>><br>>> This is the code in our worker:<br>>> logger.debug("info : progress: #{progress}")
<br>>> progress_percent = progress * 100<br>>> if progress_percent >= 100<br>>> results[:progress] = 99.99<br>>> else<br>>> results[:progress] = progress_percent <-- Line of the
<br>>> crash<br>>> end<br>>><br>>> Here is the error:<br>>> can't convert Float into Hash<br>>><br>>> And the beginning of the stack trace:<br>>> /.../ContentStore/vendor/plugins/backgroundrb/server/lib/backgroundrb/results.rb:40
<br>>><br>>> :in<br>>> `merge!'/.../ContentStore/vendor/plugins/backgroundrb/server/lib/backgroundrb/results.rb:40<br>>><br>>> :in `[]='/.../ContentStore/lib/workers/content_worker.rb:40
<br>>> :in `execute_mp4box'/.../ContentStore/lib/workers/content_worker.rb:22:<br>>> in `execute_mp4box'/.../ContentStore/lib/workers/content_worker.rb:21<br>>> :in `execute_mp4box'/.../ContentStore/lib/workers/content_worker.rb:181
<br>>> :in<br>>> `do_work'/.../ContentStore/vendor/plugins/backgroundrb/server/lib/backgroundrb/worker.rb:55:<br>>><br>>> ...<br>>><br>>> The problem seems to happen only under heavy load where more than 1
<br>>> worker process is active at the same time.<br>>><br>>> Any ideas or leads?<br>>><br>>> Thanks,<br>>> Robert Bjarnason<br>>><br>>> _______________________________________________
<br>>> Backgroundrb-devel mailing list<br>>> <a href="mailto:Backgroundrb-devel@rubyforge.org">Backgroundrb-devel@rubyforge.org</a><br>>> <a href="http://rubyforge.org/mailman/listinfo/backgroundrb-devel">
http://rubyforge.org/mailman/listinfo/backgroundrb-devel</a><br>><br>> ----<br>> Bob Hutchison -- blogs at<br>> <<a href="http://www.recursive.ca/hutch/">http://www.recursive.ca/hutch/</a>>
<br>> Recursive Design Inc. -- <<a href="http://www.recursive.ca/">http://www.recursive.ca/</a>><br>> Raconteur -- <<a href="http://www.raconteur.info/">http://www.raconteur.info/
</a>><br>> xampl for Ruby -- <<a href="http://rubyforge.org/projects/xampl/">http://rubyforge.org/projects/xampl/</a>><br>><br>><br>><br>><br><br>_______________________________________________
<br>Backgroundrb-devel mailing list<br><a href="mailto:Backgroundrb-devel@rubyforge.org">Backgroundrb-devel@rubyforge.org</a><br><a href="http://rubyforge.org/mailman/listinfo/backgroundrb-devel">http://rubyforge.org/mailman/listinfo/backgroundrb-devel
</a><br></blockquote></div><br>