Odoo Help

1

How to solve lessc bad_alloc error 'St9bad_alloc'

By
Yannick Vaucher - Camptocamp
on 12/11/15, 3:15 AM 824 views

Even with lessc version 1.4.2, when installing enterprise and having the right order in you addons path (enterprise before community addons) you might encounter:

terminate called after throwing an instance of 'St9bad_alloc' what(): std::bad_alloc 
What to do to solve it?
2

Yannick Vaucher - Camptocamp

--Yannick Vaucher - Camptocamp--
1704
| 5 7 9
Lausanne, Switzerland
--Yannick Vaucher - Camptocamp--
Yannick Vaucher - Camptocamp
On 12/11/15, 3:20 AM

How to solve it is quite simple and it can happend in community version, it is a memory error, thus you can increase the following parameters eather in your config file or as passed parameters:


limit_memory_hard

limit_memory_soft


You were maybe setting a too low value for those parameters.


If you


Try first to restore the default values:

limit_memory_soft = 671088640

limit_memory_hard = 805306368


If you still experience it, increase them.


This is only for badst9_alloc error. For other lessc errors, ensure you have the right lessc version:

lessc --version │

lessc 1.4.2 (LESS Compiler) [JavaScript]


If you had a too early version, downgrade it, now you might need to remove (via psql) all assets in table ir_attachment to regenerate them.

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

Register

Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)

Stats

Asked: 12/11/15, 3:15 AM
Seen: 824 times
Last updated: 12/11/15, 3:42 AM