Odoo bug related to GC for memory allocation.

Blow issue raise on odoo framework and odoo don’t manage automated to resolve this.

 

<— Last few GCs —>\n\n[27134:0x3a37a60] 5072 ms: Scavenge 200.8 (223.3) -> 186.2 (223.3) MB, 5.9 / 0.0 ms (average mu = 0.931, current mu = 0.924) allocation failure \n[27134:0x3a37a60] 5112 ms: Scavenge 200.9 (223.3) -> 186.3 (223.3) MB, 5.9 / 0.0 ms (average mu = 0.931, current mu = 0.924) allocation failure \n[27134:0x3a37a60] 5150 ms: Scavenge 200.9 (223.3) -> 186.2 (223.3) MB, 5.5 / 0.0 ms (average mu = 0.931, current mu = 0.924) allocation failure \n\n\n<— JS stacktrace —>\nCannot get stack trace in GC.\n’, b’The “–no-js” argument is deprecated, as inline JavaScript is disabled by default. Use “–js” to enable inline JavaScript (not recommended).\nFATAL ERROR: NewSpace::Rebalance Allocation failed – JavaScript heap out of memory\n 1: 0x9dab70 node::Abort() [node]\n 2: 0x9dbd26 node::OnFatalError(char const*, char const*) [node]\n 3: 0xb3b18e v8::Utils::ReportOOMFailure(v8::internal::Isolate*, char const*, bool) [node]\n 4: 0xb3b509 v8::internal::V8::FatalProcessOutOfMemory(v8::internal::Isolate*, char const*, bool) [node]\n 5: 0xce68a5 [node]\n 6: 0xd2dc5e [node]\n 7: 0xd319d7 v8::internal::MarkCompactCollector::CollectGarbage() [node]\n 8: 0xcf23f9 v8::internal::Heap::MarkCompact() [node]\n 9: 0xcf3163 v8::internal::Heap::PerformGarbageCollection(v8::internal::GarbageCollector, v8::GCCallbackFlags) [node]\n10: 0xcf3cd5 v8::internal::Heap::CollectGarbage(v8::internal::AllocationSpace, v8::internal::GarbageCollectionReason, v8::GCCallbackFlags) [node]\n11: 0xcf66e8 v8::internal::Heap::AllocateRawWithRetryOrFail(int, v8::internal::AllocationType, v8::internal::AllocationAlignment) [node]\n12: 0xcc2b7b v8::internal::Factory::NewTransitionArray(int, int) [node]\n13: 0xf03877 v8::internal::TransitionsAccessor::Insert(v8::internal::Handle<v8::internal::Name>, v8::internal::Handle<v8::internal::Map>, v8::internal::SimpleTransitionFlag) [node]\n14: 0xeb0ed7 v8::internal::Map::ConnectTransition(v8::internal::Isolate*, v8::internal::Handle<v8::internal::Map>, v8::internal::Handle<v8::internal::Map>, v8::internal::Handle<v8::internal::Name>, v8::internal::SimpleTransitionFlag) [node]\n15: 0xeb358e v8::internal::Map::CopyReplaceDescriptors(v8::internal::Isolate*, v8::internal::Handle<v8::internal::Map>, v8::internal::Handle<v8::internal::DescriptorArray>, v8::internal::Handle<v8::internal::LayoutDescriptor>, v8::internal::TransitionFlag, v8::internal::MaybeHandle<v8::internal::Name>, char const*, v8::internal::SimpleTransitionFlag) [node]\n16: 0xeb3b9a v8::internal::Map::CopyAddDescriptor(v8::internal::Isolate*, v8::internal::Handle<v8::internal::Map>, v8::internal::Descriptor*, v8::internal::TransitionFlag) [node]\n17: 0xeb3dd9 v8::internal::Map::CopyWithField(v8::internal::Isolate*, v8::internal::Handle<v8::internal::Map>, v8::internal::Handle<v8::internal::Name>, v8::internal::Handle<v8::internal::FieldType>, v8::internal::PropertyAttributes, v8::internal::PropertyConstness, v8::internal::Representation, v8::internal::TransitionFlag) [node]\n18: 0xeb55a2 v8::internal::Map::TransitionToDataProperty(v8::internal::Isolate*, v8::internal::Handle<v8::internal::Map>, v8::internal::Handle<v8::internal::Name>, v8::internal::Handle<v8::internal::Object>, v8::internal::PropertyAttributes, v8::internal::PropertyConstness, v8::internal::StoreOrigin) [node]\n19: 0xea5c7f v8::internal::LookupIterator::PrepareTransitionToDataProperty(v8::internal::Handle<v8::internal::JSReceiver>, v8::internal::Handle<v8::internal::Object>, v8::internal::PropertyAttributes, v8::internal::StoreOrigin) [node]\n20: 0xeda0d6 v8::internal::Object::AddDataProperty(v8::internal::LookupIterator*, v8::internal::Handle<v8::internal::Object>, v8::internal::PropertyAttributes, v8::Maybe<v8::internal::ShouldThrow>, v8::internal::StoreOrigin) [node]\n21: 0xedacc7 v8::internal::Object::SetProperty(v8::internal::LookupIterator*, v8::internal::Handle<v8::internal::Object>, v8::internal::StoreOrigin, v8::Maybe<v8::internal::ShouldThrow>) [node]\n22: 0x100af54 v8::internal::Runtime::SetObjectProperty(v8::internal::Isolate*, v8::internal::Handle<v8::internal::Object>, v8::internal::Handle<v8::internal::Object>, v8::internal::Handle<v8::internal::Object>, v8::internal::StoreOrigin, v8::Maybe<v8::internal::ShouldThrow>) [node]\n23: 0x100c67a v8::internal::Runtime_SetKeyedProperty(int, unsigned long*, v8::internal::Isolate*) [node]\n24: 0x1376259 [node]\n’)This error occured while compiling the bundle ‘web.assets_backend’ containing:

– /web/static/lib/bootstrap/less/variables.less
– /web/static/lib/bootstrap/less/mixins/vendor-prefixes.less
– /web/static/lib/bootstrap/less/mixins/buttons.less
– /web/static/lib/bootstrap/less/mixins/clearfix.less
– /web/static/lib/bootstrap/less/mixins/size.less
– /web/static/src/less/variables.less
– /web/static/src/less/utils.less
– /web_editor/static/src/less/web_editor.variables.less
– /web/static/src/less/import_bootstrap.less
– /web/static/src/less/bootstrap_overridden.less
– /web/static/src/less/webclient_extra.less
– /web/static/src/less/webclient_layout.less
– /web/static/src/less/webclient.less
– /web/static/src/less/domain_selector.less
– /web/static/src/less/model_field_selector.less
– /web/static/src/less/progress_bar.less
– /web/static/src/less/dropdown.less
– /web/static/src/less/dropdown_extra.less
– /web/static/src/less/tooltip.less
– /web/static/src/less/debug_manager.less
– /web/static/src/less/control_panel.less
– /web/static/src/less/fields.less
– /web/static/src/less/fields_extra.less
– /web/static/src/less/views.less
– /web/static/src/less/views_extra.less
– /web/static/src/less/pivot_view.less
– /web/static/src/less/graph_view.less
– /web/static/src/less/form_view.less
– /web/static/src/less/form_view_extra.less
– /web/static/src/less/list_view.less
– /web/static/src/less/list_view_extra.less
– /web/static/src/less/kanban_dashboard.less
– /web/static/src/less/kanban_column_progressbar.less
– /web/static/src/less/kanban_view.less
– /web/static/src/less/kanban_view_mobile.less
– /web/static/src/less/web_calendar.less
– /web/static/src/less/search_view.less
– /web/static/src/less/search_view_extra.less
– /web/static/src/less/data_export.less
– /web/static/src/less/base_settings.less
– /web/static/src/less/report_backend.less
– /base_import/static/src/less/base_import.less
– /web_diagram/static/src/less/diagram_view.less
– /web_editor/static/src/less/web_editor.common.less
– /web_editor/static/src/less/web_editor.backend.less
– /mail/static/src/less/announcement.less
– /mail/static/src/less/client_action.less
– /mail/static/src/less/chat_window.less
– /mail/static/src/less/extended_chat_window.less
– /mail/static/src/less/composer.less
– /mail/static/src/less/chatter.less
– /mail/static/src/less/followers.less
– /mail/static/src/less/thread.less
– /mail/static/src/less/systray.less
– /mail/static/src/less/mail_activity.less
– /website/static/src/less/website.backendDashboard.less
– /website_theme_install/static/src/less/website_theme_install.less
– /gamification/static/src/less/gamification.less
– /event/static/src/less/event.less
– /calendar/static/src/less/calendar.less
– /google_calendar/static/src/less/google_calendar.less
– /hr/static/src/less/hr.less
– /account/static/src/less/account_reconciliation.less
– /account/static/src/less/account_journal_dashboard.less
– /account/static/src/less/account_dashboard.less
– /stock/static/src/less/stock_traceability_report.less
– /payment/static/src/less/payment_acquirer.less
– /sb_pnb_analytics/static/src/css/web_editor.css
– /hr_attendance/static/src/less/hr_attendance.less
– /sales_team/static/src/less/sales_team_dashboard.less
– /web_settings_dashboard/static/src/less/dashboard.less

 

Solution, in config file of odoo change memory allocation

Old code as below

limit_memory_hard: 805306368
limit_memory_soft: 671088640

replace new code

limit_memory_hard: 2684354560
limit_memory_soft: 2147483648

Than restart odoo server either odoo 11, 12 or 13.

It resolve issue permement of memory stuff. in case you need more you case increase based on better server configuration you have.

SnippetBucket Technologies. INDIA