smartstore / Smartstore

A modular, scalable and ultra-fast open-source all-in-one eCommerce platform built on ASP.NET Core 7
http://www.smartstore.com/
GNU Affero General Public License v3.0
1.15k stars 427 forks source link

Unable to allocate memory: bad allocation while debugging #279

Open srht opened 3 years ago

srht commented 3 years ago

When I tried to debug the application firstly it required LibSassHost.Native.win-x86 package then after installed the package it gave error below after a long loading time:

BundleTransformer.Core.Translators.AssetTranslationException: 'During translation of SCSS code, readed from the file '/Administration/Content/theme.scss', to CSS code syntax error has occurred. See more details:

Internal Error: Unable to allocate memory: bad allocation

Error code: 2 Description: Unable to allocate memory: bad allocation'

Stack: This exception was originally thrown at this call stack: [External Code] SmartStore.Web.Framework.Theming.Assets.AssetTranslator.TranslateInternal(BundleTransformer.Core.Assets.IAsset) in AssetTranslator.cs SmartStore.Web.Framework.Theming.Assets.AssetTranslator.Translate(BundleTransformer.Core.Assets.IAsset) in AssetTranslator.cs [External Code] SmartStore.Web.Framework.Theming.SassCssHttpHandler.TranslateAssetCore(BundleTransformer.Core.Assets.IAsset, BundleTransformer.Core.Transformers.ITransformer, bool) in CssHttpHandler.cs SmartStore.Web.Framework.Theming.CssHttpHandlerBase.TranslateAsset(BundleTransformer.Core.Assets.IAsset, BundleTransformer.Core.Transformers.ITransformer, bool) in CssHttpHandler.cs [External Code]

Michael-Herzog commented 3 years ago

Hi, is the latest C++ Runtime installed? Regards, Michael

srht commented 3 years ago

Hi, Thank you. I installed the C++ runtime then nothing changed. After that i tried this solution: Tools -> Options -> search for IIS -> tick Use the 64 bit version of IIS Express for web sites and projects. (https://stackoverflow.com/a/42380972/547271)