I&#39;m getting a similar error, here a partial stack trace:<br><br>20070108-20:17:45 (27597) can&#39;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!&#39;
<br>20070108-20:17:45 (27597) /opt/lss/demo/0.4-06/vendor/plugins/backgroundrb/server/lib/backgroundrb/results.rb:40:in `[]=&#39;<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&#39;m addding some begin/rescue blocks to hopefully prevent that.)
<br><br>I&#39;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> &lt;<a href="mailto:robert.bjarnason@gmail.com">robert.bjarnason@gmail.com</a>&gt; 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.&nbsp;&nbsp;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>&gt; Hi,<br>&gt;<br>&gt; This sounds a bit like the trouble in OS X where you&#39;d get a Fixednum<br>&gt; to String error. This was caused by a bug in the gcc 4.0 compiler. The<br>&gt; solution on OS X is to re-compile Ruby with -O1 optimisation level or
<br>&gt; switch to the gcc 3.x compiler). As I understand it, with linux you<br>&gt; have the additional option of installing a newer version of gcc 4.x<br>&gt; and recompiling (I&#39;m using 4.0.2 on one of my linux boxes and have
<br>&gt; never seen the problem).<br>&gt;<br>&gt; Cheers,<br>&gt; Bob<br>&gt;<br>&gt; On 4-Jan-07, at 11:44 AM, Robert Bjarnason wrote:<br>&gt;<br>&gt;&gt; Hi,<br>&gt;&gt;<br>&gt;&gt; I&#39;m using backgroundrb 0.2.1 in a production environment and for most
<br>&gt;&gt; parts I&#39;m very happy.&nbsp;&nbsp;We are using it to do some heavy video editing on<br>&gt;&gt; the server side and it works great except that under, what seems heavy<br>&gt;&gt; load the below problem happens intermittently.
<br>&gt;&gt;<br>&gt;&gt; The problem has only happened 5 times out of over 500 runs by our<br>&gt;&gt; backgroundrb worker.<br>&gt;&gt;<br>&gt;&gt; This is the code in our worker:<br>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; logger.debug(&quot;info : progress: #{progress}&quot;)
<br>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; progress_percent = progress * 100<br>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if progress_percent &gt;= 100<br>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; results[:progress] = 99.99<br>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; else<br>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; results[:progress] = progress_percent &lt;-- Line of the
<br>&gt;&gt; crash<br>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; end<br>&gt;&gt;<br>&gt;&gt; Here is the error:<br>&gt;&gt; can&#39;t convert Float into Hash<br>&gt;&gt;<br>&gt;&gt; And the beginning of the stack trace:<br>&gt;&gt; /.../ContentStore/vendor/plugins/backgroundrb/server/lib/backgroundrb/results.rb:40
<br>&gt;&gt;<br>&gt;&gt; :in<br>&gt;&gt; `merge!&#39;/.../ContentStore/vendor/plugins/backgroundrb/server/lib/backgroundrb/results.rb:40<br>&gt;&gt;<br>&gt;&gt; :in `[]=&#39;/.../ContentStore/lib/workers/content_worker.rb:40
<br>&gt;&gt; :in `execute_mp4box&#39;/.../ContentStore/lib/workers/content_worker.rb:22:<br>&gt;&gt; in `execute_mp4box&#39;/.../ContentStore/lib/workers/content_worker.rb:21<br>&gt;&gt; :in `execute_mp4box&#39;/.../ContentStore/lib/workers/content_worker.rb:181
<br>&gt;&gt; :in<br>&gt;&gt; `do_work&#39;/.../ContentStore/vendor/plugins/backgroundrb/server/lib/backgroundrb/worker.rb:55:<br>&gt;&gt;<br>&gt;&gt; ...<br>&gt;&gt;<br>&gt;&gt; The problem seems to happen only under heavy load where more than 1
<br>&gt;&gt; worker process is active at the same time.<br>&gt;&gt;<br>&gt;&gt; Any ideas or leads?<br>&gt;&gt;<br>&gt;&gt; Thanks,<br>&gt;&gt; Robert Bjarnason<br>&gt;&gt;<br>&gt;&gt; _______________________________________________
<br>&gt;&gt; Backgroundrb-devel mailing list<br>&gt;&gt; <a href="mailto:Backgroundrb-devel@rubyforge.org">Backgroundrb-devel@rubyforge.org</a><br>&gt;&gt; <a href="http://rubyforge.org/mailman/listinfo/backgroundrb-devel">
http://rubyforge.org/mailman/listinfo/backgroundrb-devel</a><br>&gt;<br>&gt; ----<br>&gt; Bob Hutchison&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-- blogs at<br>&gt; &lt;<a href="http://www.recursive.ca/hutch/">http://www.recursive.ca/hutch/</a>&gt;
<br>&gt; Recursive Design Inc.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-- &lt;<a href="http://www.recursive.ca/">http://www.recursive.ca/</a>&gt;<br>&gt; Raconteur&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-- &lt;<a href="http://www.raconteur.info/">http://www.raconteur.info/
</a>&gt;<br>&gt; xampl for Ruby&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -- &lt;<a href="http://rubyforge.org/projects/xampl/">http://rubyforge.org/projects/xampl/</a>&gt;<br>&gt;<br>&gt;<br>&gt;<br>&gt;<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>