# Help, Gruff is killing me

**URL:** <https://www.ruby-forum.com/t/help-gruff-is-killing-me/59310>\
**Category:** Rails\
**Created:** [May 3, 2006, 6:56pm UTC](https://www.ruby-forum.com/t/help-gruff-is-killing-me/59310 "2006-05-03T18:56:40Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![maunzinha](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/839c29/32.png) [@maunzinha](https://www.ruby-forum.com/u/maunzinha)\
**Post date:** [May 3, 2006, 6:56pm UTC](https://www.ruby-forum.com/t/help-gruff-is-killing-me/59310/1 "2006-05-03T18:56:40Z")

</div>

Hi all,

I hope somebody can help me out here, since the issue has been killing  
me for the last three days. Here is the issue:

It seems that gruff kills rails/webrick whenever it’s used on win32. I  
installed gruff per instructions and it seems to be working. The  
sample controller generates a nice grpah with send\_data and all. The  
issue started once I try to use any other controller/template. Once a  
gruff graph gets generated and sent to the browser any SUBSEQUENT  
requests to other controllers fail with weird compile errors. For  
instance:

Showing app/views/admin/show\_management/list\_shows.rhtml where line #5  
raised:

compile error  
./script/…/config/…/app/views/admin/show\_management/list\_shows.rhtml:5:  
Invalid char `\001’ in expression  
./script/…/config/…/app/views/admin/show\_management/list\_shows.rhtml:6:  
parse error, unexpected $, expecting kEND  
\_erbout.concat "

Show ID\n"  
^

Extracted source (around line #5):

2:  
3:

  
4:   
5:   
6:   
7:   
8: 

Trace of template inclusion:  
/app/views/admin/show\_management/list\_shows.rhtml

RAILS\_ROOT: ./script/…/config/…  
Application Trace | Framework Trace | Full Trace

#{RAILS\_ROOT}/app/views/admin/show\_management/list\_shows.rhtml:6:in  
`compile_template' #{RAILS_ROOT}/app/controllers/admin/show_management_controller.rb:12:in`index’

A quick restart of webrick fixes the issue until I generate another  
graph that is ☹

Thanks

Rafael

| Show Name | Show ID | Location | Action |
| --- | --- | --- | --- |

---

<div class="post-metadata">

**Author:** ![maunzinha](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/839c29/32.png) [@maunzinha](https://www.ruby-forum.com/u/maunzinha)\
**Post date:** [May 3, 2006, 6:56pm UTC](https://www.ruby-forum.com/t/help-gruff-is-killing-me/59310/2 "2006-05-03T18:56:44Z")

</div>

Hi Rafeal,

One thing you might try is renaming mysql.so (do a search to find out  
where  
is it on your system) to see if it’s a driver issue. MySQL will pick  
up  
the native Ruby drivers if it can’t find the compiled version (which is  
what  
mysql.so is). There’s a known issue with the compiled version and  
WEBrick  
that’s currently under investigation. Changing drivers might not help,  
but  
it’s cheap to try 😉

Best regards,  
Bill

----- Original Message -----  
From: “Rafael S.” [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
To: [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
Sent: Sunday, April 30, 2006 2:15 PM  
Subject: [Rails] Help, Gruff is killing me

Hi all,

I hope somebody can help me out here, since the issue has been killing  
me for the last three days. Here is the issue:

It seems that gruff kills rails/webrick whenever it’s used on win32. I  
installed gruff per instructions and it seems to be working. The  
sample controller generates a nice grpah with send\_data and all. The  
issue started once I try to use any other controller/template. Once a  
gruff graph gets generated and sent to the browser any SUBSEQUENT  
requests to other controllers fail with weird compile errors. For  
instance:

Showing app/views/admin/show\_management/list\_shows.rhtml where line #5  
raised:

compile error  
./script/…/config/…/app/views/admin/show\_management/list\_shows.rhtml:5:  
Invalid char `\001’ in expression  
./script/…/config/…/app/views/admin/show\_management/list\_shows.rhtml:6:  
parse error, unexpected $, expecting kEND  
\_erbout.concat " Show ID\n"  
^

Extracted source (around line #5):

2:  
3:

  
4:   
5:   
6:   
7:   
8: 

Trace of template inclusion:  
/app/views/admin/show\_management/list\_shows.rhtml

RAILS\_ROOT: ./script/…/config/…  
Application Trace | Framework Trace | Full Trace

#{RAILS\_ROOT}/app/views/admin/show\_management/list\_shows.rhtml:6:in  
`compile_template' #{RAILS_ROOT}/app/controllers/admin/show_management_controller.rb:12:in `index’

A quick restart of webrick fixes the issue until I generate another  
graph that is ☹

Thanks

Rafael

* * *

Rails mailing list  
removed\_email\_address@domain.invalid  
[http://lists.rubyonrails.org/mailman/listinfo/rails](http://lists.rubyonrails.org/mailman/listinfo/rails)

| Show Name | Show ID | Location | Action |
| --- | --- | --- | --- |

---

<div class="post-metadata">

**Author:** ![maunzinha](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/839c29/32.png) [@maunzinha](https://www.ruby-forum.com/u/maunzinha)\
**Post date:** [May 3, 2006, 6:56pm UTC](https://www.ruby-forum.com/t/help-gruff-is-killing-me/59310/3 "2006-05-03T18:56:47Z")

</div>

Hello Rafael,

> Showing app/views/admin/show\_management/list\_shows.rhtml where line #5 raised:
> 
> compile error  
> ./script/…/config/…/app/views/admin/show\_management/list\_shows.rhtml:5:  
> Invalid char `\001’ in expression  
> ./script/…/config/…/app/views/admin/show\_management/list\_shows.rhtml:6:  
> parse error, unexpected $, expecting kEND  
> \_erbout.concat "
> 
> Show ID\n"

Try to check whether it’s a tabulation pb.  
Suppress (or replace with spaces) any tabs in your list\_shows.rhtml  
file.

```
-- Jean-FranÃ§ois.
```

---

<div class="post-metadata">

**Author:** ![maunzinha](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/839c29/32.png) [@maunzinha](https://www.ruby-forum.com/u/maunzinha)\
**Post date:** [May 3, 2006, 6:56pm UTC](https://www.ruby-forum.com/t/help-gruff-is-killing-me/59310/4 "2006-05-03T18:56:48Z")

</div>

On Apr 30, 2006, at 1:26 PM, Jean-François wrote:

> > issue started once I try to use any other controller/template. Once a  
> > Invalid char `\001’ in expression
> 
> –

```
Yup that expecting kEND error on windows is a know issue. If you

```

have any tab chars in your view files they will cause this error.  
Make sure to only use spaces and you will be fine.

-Ezra\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_  
Rails mailing list  
removed\_email\_address@domain.invalid  
[http://lists.rubyonrails.org/mailman/listinfo/rails](http://lists.rubyonrails.org/mailman/listinfo/rails)

---

<div class="post-metadata">

**Author:** ![maunzinha](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/839c29/32.png) [@maunzinha](https://www.ruby-forum.com/u/maunzinha)\
**Post date:** [May 3, 2006, 6:56pm UTC](https://www.ruby-forum.com/t/help-gruff-is-killing-me/59310/5 "2006-05-03T18:56:49Z")

</div>

Is Gruff using RMagick and you use ruby 1.8.4 under windows ? If that is  
the  
case, then that is the reason for your problems …

---

<div class="post-metadata">

**Author:** ![maunzinha](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/839c29/32.png) [@maunzinha](https://www.ruby-forum.com/u/maunzinha)\
**Post date:** [May 3, 2006, 6:56pm UTC](https://www.ruby-forum.com/t/help-gruff-is-killing-me/59310/6 "2006-05-03T18:56:56Z")

</div>

yes, use minimagick (might require quite a lot of customization for  
gruff).  
If you do it, plese post it

---

<div class="post-metadata">

**Author:** ![maunzinha](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/839c29/32.png) [@maunzinha](https://www.ruby-forum.com/u/maunzinha)\
**Post date:** [May 3, 2006, 6:56pm UTC](https://www.ruby-forum.com/t/help-gruff-is-killing-me/59310/7 "2006-05-03T18:56:52Z")

</div>

yep, Ruby 1.8.4 + Rmagick installed from local gem  
(RMagick-win32-1.9.2-mswin32.gem)

I did some digging since the email, and it looks like it’s Rmagick  
issue. For instance in IRB require ‘rmagick’ errors out with:  
undefined method `assoc' for class`Magick::ImageList’

and require\_gem ‘rmagick’ complains about not being able to find the  
gem.

Any known resolutions to this issue?

Rafael
