-
Notifications
You must be signed in to change notification settings - Fork 407
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Not showing in Rails 4 #70
Comments
I have not seen this reported anywhere else. Are you seeing JS errors in chrome dev tools? |
I removed |
hmmmm I also lost rack mini profiler (in production only) when I swapped from unicorn to puma. I'm not sure what else I changed, but nothing else comes to mind. |
Same here with Rails 4 rails 4.0.0 and ruby 2.0.0p353 As suggested here, doesn't work either http://stackoverflow.com/questions/17025563/how-to-get-mini-profiler-to-start-in-rails |
I think I've tracked my issue down to a log permissions error. I haven't bothered to fix it yet though. |
+1 |
I'm having the same issue. Doesn't work in rails 4 for me |
I have the same issue, have tracked it down to having oj_mimic_json in my Gemfile. Anyone else with this issue using the same gem? |
@lnovsak same here. oj_mimic_json breaks it. |
I have same issue. I have oj_mimic_json in my Gemfile. But then i removed it, problem wasn't resolved. |
Same problem here. No error found in Firebug |
For me, removing Deflater from |
+1, removing oj_mimic_json and following what is mentioned about Rack::Deflater in the README solved the problem. The request for /rack-mini-profiler/result would hang the ruby process, also see my comment in #112 regarding SystemStackError |
+1, removing oj_mimic_json works. I don't get hanging of the ruby process though. Hopefully this can be fixed. |
this is all very strange can someone write a test case that fails here, somehow ojs json implementation is lacking and its hurting us here. |
|
Oj.default_options = { This works for me for circular references |
before any of this can someone help isolate the circular ref, so we can remove it, we don't really need it in our persistence structure. |
I also had to both remove Deflator and oj_mimic_json to get this to work. Ruby 2.2, Rails 4.2.1 |
+1 for removing |
Just wanted to chime in that I encountered the same issue. I had to remove the The solution that @pencilcheck suggested didn't work for me. |
I didn't have the |
We were missing the badge, and it turned out it was because we were using The problems seem to occur around
|
This still happens for me unless I remove |
Same issue for me. Described more at #134 (comment) Btw, I do not use |
@SamSaffron Here is a fresh Rails app (4.2.6 / 2.3.1) where this has been reproduced. https://github.com/steverob/miniprofiler-production-test |
@steverob I ran your test app and was not able to reproduce the problem. The mini profiler showed up just fine on the second request. |
Really? :( let me check again. Regards
|
@dgynn yes you're right. Upon second request it shows up. No such luck for my app though. Same environment. Any ideas? |
@dgynn sorry my bad. I did not restart server after adding the Thanks. |
Here is a way to get around minprofile in development mode. If you are using the oj gem and not the oj_mimic_json which really is just a small bit of code. oj-mimic-json-1.0.1 (lib/oj_mimic_json.rb)require 'oj'
Oj.mimic_JSON()
# Requiring json here seems to stop conflicts when requiring json in other files.
begin
require 'json'
rescue Exception
# ignore
end config/initializers/oj.rbrequire 'oj'
Oj.default_options = {
mode: :compat
}
# Should be able to remove this(Rails.env.development?) once a update comes out
# https://github.com/MiniProfiler/rack-mini-profiler/pull/250
Oj.mimic_JSON unless Rails.env.development? Basically I am turning off the OJ system in development as it is the only time we are using to try and backtrace slow queries. |
Disabling Rack::Deflater in development fixed things for me.
Commenting that out and restarting |
Closing as stale. Linking #16. |
When I include the gem in my rails app the profiler is not shown. However, the javascript is included and the div is created for the widget, but the final content is empty.
I tried adding
Rack::MiniProfiler.authorize_request
in a before_filter in my application controller: no dice.I tried creating an initializer and add
require: false
in the gem file as described in the README: no profiler.I am using puma, rails 4.0.1, and ruby ruby 2.0.0p247
Any tips?
The text was updated successfully, but these errors were encountered: