Ember jquery Out of Memory when typing response

On 2.7.0beta4 11f28e3eb3

Typing a response locks up the client browser, the Dev Console shows Out Of Memory in Ember-jquery.

I’ve disabled Presence, hid the preview, bootstrapped a new web_only image and brought up a new container. All still shows the same errors.

Using a CDN for both S3 uploads and static content. Have cleared the cache at the CDN.

I also see a flood of error.log messages for:

Feb 19 02:27:42 discourse error.log 2021/02/19 10:27:42 [alert] 677#677: 768 worker_connections are not enough

Does the issue occur if you try safe-mode?


Safe mode, all boxes checked gives me the Oops page:


The software powering this discussion forum encountered an unexpected problem. We apologize for the inconvenience.

Detailed information about the error was logged, and an automatic notification generated. We'll take a look at it.

No further action is necessary. However, if the error condition persists, you can provide additional detail, including steps to reproduce the error, by posting a discussion topic in the site's feedback category.

I’m slightly confused – this is pointing to a server problem, but the rest of your descriptions are about client side problems.
The safe-mode failure implies extra server side problems.

Can you take a screenshot of the “out of memory” error?

Try to visit /logs. Is there anything interesting there?

Anything unusual with your database setup?

The error.log messages may be from me dumping the CDN cache and it doing a pull.

Everything was working great hours earlier. I bootstrapped a new image when the beta was released, I had bootstrapped an image to pull in the fixes for the S3 CDN avatar flair fixes from Falco.

I’ve just bootstrapped a new image and put it up.

When you type a single char in the reply box it freezes up.


plugins/discourse-feature-voting/plugin.rb:165:in `reached_voting_limit?'
plugins/discourse-feature-voting/plugin.rb:178:in `votes_exceeded'
(eval):58:in `_fast_attributes'
active_model_serializers (0.8.4) lib/active_model/serializer.rb:468:in `rescue in attributes'
active_model_serializers (0.8.4) lib/active_model/serializer.rb:455:in `attributes'
active_model_serializers (0.8.4) lib/active_model/serializer.rb:480:in `_serializable_hash'
active_model_serializers (0.8.4) lib/active_model/serializer.rb:359:in `serializable_hash'
active_model_serializers (0.8.4) lib/active_model/serializer.rb:347:in `as_json'
activesupport ( lib/active_support/json/encoding.rb:22:in `encode'
activesupport ( lib/active_support/json/encoding.rb:22:in `encode'
activesupport ( lib/active_support/core_ext/object/json.rb:42:in `to_json'
active_model_serializers (0.8.4) lib/active_model/serializer.rb:331:in `to_json'
multi_json (1.15.0) lib/multi_json/adapters/oj.rb:56:in `dump'
multi_json (1.15.0) lib/multi_json/adapters/oj.rb:56:in `dump'
multi_json (1.15.0) lib/multi_json/adapter.rb:25:in `dump'
multi_json (1.15.0) lib/multi_json.rb:139:in `dump'
app/controllers/application_controller.rb:571:in `preload_current_user_data'
app/controllers/application_controller.rb:382:in `preload_json'
activesupport ( lib/active_support/callbacks.rb:428:in `block in make_lambda'
activesupport ( lib/active_support/callbacks.rb:200:in `block (2 levels) in halting'
actionpack ( lib/abstract_controller/callbacks.rb:34:in `block (2 levels) in <module:Callbacks>'
activesupport ( lib/active_support/callbacks.rb:201:in `block in halting'
activesupport ( lib/active_support/callbacks.rb:513:in `block in invoke_before'
activesupport ( lib/active_support/callbacks.rb:513:in `each'
activesupport ( lib/active_support/callbacks.rb:513:in `invoke_before'
activesupport ( lib/active_support/callbacks.rb:110:in `block in run_callbacks'
app/controllers/application_controller.rb:358:in `block in with_resolved_locale'
i18n (1.8.9) lib/i18n.rb:314:in `with_locale'
app/controllers/application_controller.rb:358:in `with_resolved_locale'
activesupport ( lib/active_support/callbacks.rb:121:in `block in run_callbacks'
activesupport ( lib/active_support/callbacks.rb:139:in `run_callbacks'
actionpack ( lib/abstract_controller/callbacks.rb:41:in `process_action'
actionpack ( lib/action_controller/metal/rescue.rb:22:in `process_action'
actionpack ( lib/action_controller/metal/instrumentation.rb:33:in `block in process_action'
activesupport ( lib/active_support/notifications.rb:180:in `block in instrument'
activesupport ( lib/active_support/notifications/instrumenter.rb:24:in `instrument'
activesupport ( lib/active_support/notifications.rb:180:in `instrument'
actionpack ( lib/action_controller/metal/instrumentation.rb:32:in `process_action'
actionpack ( lib/action_controller/metal/params_wrapper.rb:245:in `process_action'
activerecord ( lib/active_record/railties/controller_runtime.rb:27:in `process_action'
actionpack ( lib/abstract_controller/base.rb:136:in `process'
actionview ( lib/action_view/rendering.rb:39:in `process'
rack-mini-profiler (2.3.1) lib/mini_profiler/profiling_methods.rb:111:in `block in profile_method'

actionpack ( lib/action_controller/metal.rb:190:in `dispatch'
actionpack ( lib/action_controller/metal.rb:254:in `dispatch'
actionpack ( lib/action_dispatch/routing/route_set.rb:50:in `dispatch'
actionpack ( lib/action_dispatch/routing/route_set.rb:33:in `serve'
actionpack ( lib/action_dispatch/routing/mapper.rb:18:in `block in <class:Constraints>'
actionpack ( lib/action_dispatch/routing/mapper.rb:48:in `serve'
actionpack ( lib/action_dispatch/journey/router.rb:49:in `block in serve'
actionpack ( lib/action_dispatch/journey/router.rb:32:in `each'
actionpack ( lib/action_dispatch/journey/router.rb:32:in `serve'
actionpack ( lib/action_dispatch/routing/route_set.rb:834:in `call'
lib/middleware/omniauth_bypass_middleware.rb:68:in `call'
rack (2.2.3) lib/rack/tempfile_reaper.rb:15:in `call'
rack (2.2.3) lib/rack/conditional_get.rb:27:in `call'
rack (2.2.3) lib/rack/head.rb:12:in `call'
lib/content_security_policy/middleware.rb:12:in `call'
lib/middleware/anonymous_cache.rb:355:in `call'
config/initializers/008-rack-cors.rb:25:in `call'
rack (2.2.3) lib/rack/session/abstract/id.rb:266:in `context'
rack (2.2.3) lib/rack/session/abstract/id.rb:260:in `call'
actionpack ( lib/action_dispatch/middleware/cookies.rb:648:in `call'
actionpack ( lib/action_dispatch/middleware/callbacks.rb:27:in `block in call'
activesupport ( lib/active_support/callbacks.rb:101:in `run_callbacks'
actionpack ( lib/action_dispatch/middleware/callbacks.rb:26:in `call'
actionpack ( lib/action_dispatch/middleware/actionable_exceptions.rb:17:in `call'
actionpack ( lib/action_dispatch/middleware/debug_exceptions.rb:32:in `call'
actionpack ( lib/action_dispatch/middleware/show_exceptions.rb:33:in `call'
logster (2.9.5) lib/logster/middleware/reporter.rb:43:in `call'
railties ( lib/rails/rack/logger.rb:37:in `call_app'
railties ( lib/rails/rack/logger.rb:28:in `call'
config/initializers/100-quiet_logger.rb:23:in `call'
config/initializers/100-silence_logger.rb:31:in `call'
actionpack ( lib/action_dispatch/middleware/remote_ip.rb:81:in `call'
actionpack ( lib/action_dispatch/middleware/request_id.rb:27:in `call'
lib/middleware/enforce_hostname.rb:23:in `call'
rack (2.2.3) lib/rack/method_override.rb:24:in `call'
actionpack ( lib/action_dispatch/middleware/executor.rb:14:in `call'
rack (2.2.3) lib/rack/sendfile.rb:110:in `call'
actionpack ( lib/action_dispatch/middleware/host_authorization.rb:76:in `call'
rack-mini-profiler (2.3.1) lib/mini_profiler/profiler.rb:373:in `call'

message_bus (3.3.4) lib/message_bus/rack/middleware.rb:61:in `call'
lib/middleware/request_tracker.rb:177:in `call'
railties ( lib/rails/engine.rb:527:in `call'
railties ( lib/rails/railtie.rb:190:in `public_send'
railties ( lib/rails/railtie.rb:190:in `method_missing'
rack (2.2.3) lib/rack/urlmap.rb:74:in `block in call'
rack (2.2.3) lib/rack/urlmap.rb:58:in `each'
rack (2.2.3) lib/rack/urlmap.rb:58:in `call'
unicorn (5.8.0) lib/unicorn/http_server.rb:634:in `process_client'
unicorn (5.8.0) lib/unicorn/http_server.rb:732:in `worker_loop'
unicorn (5.8.0) lib/unicorn/http_server.rb:548:in `spawn_missing_workers'
unicorn (5.8.0) lib/unicorn/http_server.rb:144:in `start'
unicorn (5.8.0) bin/unicorn:128:in `<top (required)>'
vendor/bundle/ruby/2.7.0/bin/unicorn:23:in `load'
vendor/bundle/ruby/2.7.0/bin/unicorn:23:in `<main>'
1 Like

Safe mode does seem to work now.

Okay, think I found it.

There’s a theme component that appears to be the cause.


Removed that component and it’s working as it should now.


Have you considered moving to our hosting? Then we could take some of this effort off your plate and you would get a private support channel :slight_smile:


We’ve considered it but I don’t think the costs for hosted are offset by the costs of self-hosting and self-supporting.

The number of pageviews per month and the number of admin/mods we have would put us in the “Ask for a Quote” category, versus what we pay now for Bunny.net (CDN), Backblaze B2 and the no-cost (after credits) from DO for the droplet. Discourse really isn’t painful to maintain, it’s just been neglected for a long time as it was set up by someone that’s not part of the team anymore and there was no real explanation of why and what was done. Probably due for a complete redo of the whole setup now that we have things in buckets.


This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.