quiet_assets icon indicating copy to clipboard operation
quiet_assets copied to clipboard

Memory leak when adding quiet_assets to gemlise

Open PragmaticEd opened this issue 9 years ago • 1 comments

Basically, when this gem is added to development group and bundle install is ran, ram gets filled till its full. Then the task is killed by linux. I have even allocated 8gb of ram to virtualbox. So small ram is not the issue..

Ruby version ruby 2.3.0p0 (2015-12-25 revision 53290) [x86_64-linux] bundler version: bundler-1.16.0.pre.3 linux version: Linux version 3.13.0-129-generic (buildd@lgw01-05) (gcc version 4.8.4 (Ubuntu 4.8.4-2ubuntu1~14.04.3) ) #178-Ubuntu SMP Fri Aug 11 12:48:20 UTC 2017

Gemfile im using, that triggers this problem:

source 'https://rubygems.org'

git_source(:github) do |repo_name|
  repo_name = "#{repo_name}/#{repo_name}" unless repo_name.include?("/")
  "https://github.com/#{repo_name}.git"
end

gem 'rails', github: 'rails/rails', branch: '5-1-stable'
gem 'config' # yml configs
gem 'simple_form'
gem 'ruby_extend', github: 'PragmaticEd/ruby_extend'
gem 'enumerize'
gem 'key_path', github: 'nickcharlton/keypath-ruby' #  access ruby hashes using dotted string
gem 'gon' # js variables from controller
gem 'recursive-open-struct'
gem 'carrierwave' # file upload
gem 'mini_magick'

# DB
gem 'mysql2', '~> 0.3.18'
gem 'mongoid', '~> 6.1.0'
gem 'mongoid_fulltext' # mongoid easy full text search https://github.com/mongoid/mongoid_fulltext
gem 'kaminari-mongoid' # mongoid pagination
gem 'kaminari' # MySql pagination
gem 'ransack' # easy MySql search forms

# Auth
gem 'devise'

# assets
gem 'therubyracer', platforms: :ruby
gem 'jquery-rails'
gem 'jquery-turbolinks'
gem 'turbolinks', '~> 5'
gem 'coffee-rails', '~> 4.2'
gem 'uglifier', '>= 1.3.0'
gem 'sass-rails', '~> 5.0'
gem 'haml'
gem 'font-awesome-rails'
gem 'animate-rails'
gem 'bootstrap-sass'
gem 'toastr-rails'
gem 'ckeditor' # html editor
gem 'inspinia-admin-rails', git: '[email protected]:PragmaticEd/inspinia-admin-rails.git', branch: :develop
gem 'breadcrumbs_rails', git: '[email protected]:PragmaticEd/breadcrumbs_rails.git', branch: :develop
gem 'jbuilder', '~> 2.5'
gem 'underscore-rails'
gem 'data-confirm-modal'
gem 'faker'
gem 'textext-rails'
gem 'devise-bootstrap-views', github: 'hisea/devise-bootstrap-views'

# Globalize
gem 'rails-i18n'
gem 'devise-i18n'
gem 'globalize', github: 'globalize/globalize'

group :development do
  gem 'thin' # server
  gem 'letter_opener'
  gem 'letter_opener_web'
  gem 'pry'
  gem 'sassc-rails' # C implementation of Sass
  gem 'activerecord_sane_schema_dumper' # So scheme changes can be normally viewed in git diff
  gem 'web-console', '>= 3.3.0'
  gem 'listen', '>= 3.0.5', '< 3.2'
  gem 'spring'
  gem 'spring-watcher-listen', '~> 2.0.0'
  gem 'quiet_assets' # COSES MEMORY LEAK !!

  # Better Errors
  gem 'better_errors'
  gem 'binding_of_caller'

  # For windows
  if Gem.win_platform?
    gem 'tzinfo-data'
    gem 'bcrypt', github: 'codahale/bcrypt-ruby', :require => 'bcrypt'
    gem 'wdm', '>= 0.1.0'
  end
end

PragmaticEd avatar Oct 06 '17 08:10 PragmaticEd

This all left me in a wordless dumb state. Just brilliant.

route avatar Oct 06 '17 12:10 route