Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
8629 มุมมอง

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?
อวตาร
ละทิ้ง
ผู้เขียน คำตอบที่ดีที่สุด

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.

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
2
เม.ย. 22
3250
1
ก.พ. 25
5508
0
เม.ย. 23
2580
1
ธ.ค. 22
2507
7
ธ.ค. 23
25479