TuneUp bar is Empty

Subscribe to TuneUp bar is Empty 15 post(s), 11 voice(s)

 
Avatar jbritten 3 post(s)

I’ve installed TuneUp for a Rails 2.1 app. Upon restart of the app I see the black TuneUp bar across the top of the page. However, it only contains the FiveRuns logo and the words FiveRuns TuneUp on the left. I have seen a demo of TuneUp and expected to see an area on the right which details how much time was spent in M/V/C, but this data is missing. There’s no text or anything on the right. I’ve looked in tuneup.log and see no errors—I do see a bunch of hits to TuneupController actions, but still no errors. I’m using Firefox 3.0.1 and MacOS X Leopard. The only thing non standard about my Rails app is that it does not use Prototype. I only use jQuery and do not have a noConflict() statement present.
Thanks for your help,
Justin

 
Avatar Rachel G Administator 50 post(s)

Hi Justin,
This could be related to Prototype not being in use. We will take a look at this and let you know. Thanks for bringing this to our attention.
Thanks,
Rachel

 
Avatar senihele 2 post(s)

I’m having the same problem, though my application does use prototype. The progress indicator on the right seems to work, but nothing displays thereafter. I have a ton of different javascript and css going on, but even after removing all of it except for the standard default rails stuff (proto + scriptaculous), I have the same issue.
I’ve tested it in both FF 3 and Safari 3 (and Opera 9.5). My application is running 2.1 on Lightspeed WS & MySQL 5. The development server is on my LAN.

 
Avatar senihele 2 post(s)

anyone?

 
Avatar Eric Falcao 3 post(s)

senihele and jbritten,
I’d like to take a look at the issues you are having. If at all possible, email a zip file of the rails app that is giving you issues to eric@fiveruns.com.
Thanks,
-Eric

 
Avatar jbritten 3 post(s)

Hey Eric,
Thanks for the offer, but my app’s a commercial app and I can’t just give out the source. I’m happy to help you troubleshoot though …
Justin

 
Avatar raydog153 6 post(s)

Look at your server log for your rails app, any exceptions may be logged there. I have this same issue, and my rails app log showed exceptions when it tried to get the tuneup data for display. My issue is that I am using jruby and there are current issues with jruby and tuneup. I do have it working after modifications which I will try to get up on GitHub.

 
Avatar jbritten 3 post(s)

No exceptions logged. I’m not using jRuby. I just updated to TuneUp v. 0.8.13 and still no luck.

 
Avatar wildtangent 3 post(s)

I initially had this problem – i had to do 2 things
1. I was using ActionWebService as a gem – i edited the line in tuneup_controller.rb line 19 to say ::ActionController::Base.silence do
2. I was using Globalize which doesn’t seem to be compatible (see This Post). I don’t actually use the view extensions so i commented them all out. You can see if the page that the tuneup bar requests is loading correctly by visiting localhost:3000/tuneup
After that tuneup works great and looks like it will be incredibly useful, if likely to make me a little performance obsessive!

 
Avatar zef 1 post(s)

I am also getting an empty bar, however, it is system-wide. I have tried it on many applications including some that don’t use any plugins or other gems. Also, I have tried using both the plugin and the gem with the same results.
I am on OSX 10.5.5, running under Passenger, but it doesn’t work when I start the server with mongrel or webrick, so that shouldn’t be the issue.
Any help would be appreciated!
I am getting this error message each time
(I changed the code a bit so it wouldn’t get deleted from the post):
ActionView::TemplateError (You have a nil object when you didn’t expect it!
You might have expected an instance of Array.
The error occurred while evaluating nil.+) on line #5 of Library/Ruby/Gems/1.8/gems/fiveruns_tuneup-0.8.16/views/tuneup/_data.html.erb:
2: div id=’tuneup-top’
3: div id=’tuneup-summary’
4: <= tuneup_bar(tuneup_data.children.first, :id => ‘tuneup-root-bar’) %>
5: <
= link_to trend + tuneup_data.time.to_i, ’#’ > ms
6: /div
7: <
= link_to_upload %>
8: /div
/Library/Ruby/Gems/1.8/gems/fiveruns_tuneup-0.8.16/views/tuneup/_data.html.erb:5:in `_run_erb_47Library47Ruby47Gems47146847gems47fiveruns_tuneup450468461647views47tuneup47_data46html46erb’
etc….
Thanks.

 
Avatar Tim K. 2 post(s)

I’ve got the same thing going on with a recent install as zef. Tried it out with a blank app only using a single welcome controller and my error message is identical to zef’s above.

 
Avatar smeade 2 post(s)

I got a similar error:
TypeError (can’t convert Fixnum into String):
/vendor/plugins/fiveruns_tuneup/rails/../views/tuneup/_data.html.erb:5:in `+’
I changed the line 5 of _data.html.erb to:
<%= link_to trend + tuneup_data.time.to_i.to_s, ’#’ %> ms
(adding the ”.to_s”) and all seems fine now.

 
Avatar Tim K. 2 post(s)

smeade, that worked for me too (thanks so much!) – I edited the file in the gem directory and all seems to be working just fine. Perhaps an update to the gem is in order guys?

 
Avatar Calvin 4 post(s)

Yep, smeade’s fix worked for me as well. I running on ruby v1.8.7 and Rails 2.1
-Calvin

 
Avatar aaronchi 2 post(s)

I can’t believe this hasn’t been patched yet…
Here’s the fix:
<%= link_to (trend || 0) + tuneup_data.time.to_i, ’#’ %> ms