Comments (17)
I'm using the libsass.dll
supplied by the NuGet package designed to work with LibSassHost, so it should work. Nevertheless, I did a clean deployment, and the error went away, so I'm happy to consider this issue closed 🙂
from libsasshost.
Thanks for the quick response! I had used a library from my package manager (nix) and the build did not support this feature. I did a manual build, set the DYLD_LIBRARY_PATH
to the library location and everything worked like a charm. Again, thanks for the support, I know this library is deprecated and it is an extra headache for you. 😄
from libsasshost.
Hello!
Unable to find an entry point named 'libsass_version' in DLL 'libsass'.
A very strange error. There is a feeling, that loads a old version of the libsass.dll
file, in which the libsass_version
method has not yet been implemented. I recommend checking the bin
directory for unnecessary libsass.dll
files.
from libsasshost.
I only see the one in bin\x86
, which is what I'd expect given the packages I'm using. I'll keep an eye on it though, and see if that changes at any point.
from libsasshost.
The errors appear to have stopped, so I'm closing the issue.
from libsasshost.
Unfortunately, it appears this error has returned 🙁
from libsasshost.
We are encountering the exact same error, it appears randomly since about a week ago and for 2 builds minutes, or even seconds, apart the one fails but the other succeeds. We are using the .net libsass library (also in a Azure web app environment), so it would seem the common denominators are Azure and the libsass base libraries. For what it is worth, directly after switching the Azure app from x32 to x64 the problem seemed to be gone (for now). It might be related to file locking issue as reported here: sass/libsass-net#55
[EntryPointNotFoundException: Unable to find an entry point named 'libsass_version' in DLL 'libsass32'.] LibSass.Compiler.SassExterns32.libsass_version() +0 LibSass.Compiler.SassExterns.libsass_version() +7 LibSass.Compiler.Context.SassSafeContextHandle.LibsassVersion() +27 LibSass.Compiler.SassCompiler..cctor() +116 [TypeInitializationException: The type initializer for 'LibSass.Compiler.SassCompiler' threw an exception.] LibSass.Compiler.SassCompiler..ctor(ISassOptions sassOptions) +0
from libsasshost.
This is now starting to happen alarmingly often, despite no changes related to this package except updating to the latest version (1.2.1 at the time of posting, with v1.2.0 of the Native packages). I'm now having to restart affected websites almost daily to clear this error, and it's starting to risk us losing customers.
I understand this may not be an easy issue to solve, but surely there must be something that can be done? I'm going to continue investigating, but I can only do so much.
from libsasshost.
Give me a full description of the error. Since version 1.2.0, there should already be another stack trace.
from libsasshost.
This is the full stack trace from our ELMAH log:
During loading of Sass compiler error has occurred. See the original error message: “Unable to find an entry point named 'libsass_version' in DLL 'libsass'.”. ---> LibSassHost.SassCompilerLoadException: During loading of Sass compiler error has occurred. See the original error message: “Unable to find an entry point named 'libsass_version' in DLL 'libsass'.”. ---> System.EntryPointNotFoundException: Unable to find an entry point named 'libsass_version' in DLL 'libsass'.
at LibSassHost.Internal.Native.Sass_Api.libsass_version()
at LibSassHost.SassCompiler.Initialize()
--- End of inner exception stack trace ---
at LibSassHost.SassCompiler.Initialize()
at LibSassHost.SassCompiler.InnerCompile(String content, Boolean indentedSyntax, String inputPath, String outputPath, String sourceMapPath, CompilationOptions options)
at LibSassHost.SassCompiler.Compile(String content, String inputPath, String outputPath, String sourceMapPath, CompilationOptions options)
at BundleTransformer.SassAndScss.Translators.SassAndScssTranslator.InnerTranslate(IAsset asset, CompilationOptions sassOptions, Boolean enableNativeMinification)
--- End of inner exception stack trace ---
at BundleTransformer.SassAndScss.Translators.SassAndScssTranslator.InnerTranslate(IAsset asset, CompilationOptions sassOptions, Boolean enableNativeMinification)
at BundleTransformer.SassAndScss.Translators.SassAndScssTranslator.Translate(IList`1 assets)
at BundleTransformer.Core.Transformers.TransformerBase.Translate(IList`1 assets, Boolean isDebugMode)
at BundleTransformer.Core.Transformers.TransformerBase.Transform(IList`1 assets, BundleContext bundleContext, BundleResponse bundleResponse, VirtualPathProvider virtualPathProvider, Boolean isDebugMode)
at BundleTransformer.Core.Transformers.TransformerBase.Process(BundleContext bundleContext, BundleResponse bundleResponse, Boolean isDebugMode)
at BundleTransformer.Core.Transformers.TransformerBase.Process(BundleContext bundleContext, BundleResponse bundleResponse)
at System.Web.Optimization.Bundle.ApplyTransforms(BundleContext context, String bundleContent, IEnumerable`1 bundleFiles)
at System.Web.Optimization.Bundle.GenerateBundleResponse(BundleContext context)
at System.Web.Optimization.Bundle.GetBundleResponse(BundleContext context)
at System.Web.Optimization.BundleResolver.GetBundleContents(String virtualPath)
at System.Web.Optimization.AssetManager.EliminateDuplicatesAndResolveUrls(IEnumerable`1 refs)
at System.Web.Optimization.AssetManager.DeterminePathsToRender(IEnumerable`1 assets)
at System.Web.Optimization.AssetManager.RenderExplicit(String tagFormat, String[] paths)
at System.Web.Optimization.Styles.RenderFormat(String tagFormat, String[] paths)
at ASP._Page_Views_Shared__Layout_cshtml.Execute()
at System.Web.WebPages.WebPageBase.ExecutePageHierarchy()
at System.Web.Mvc.WebViewPage.ExecutePageHierarchy()
at System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext pageContext, TextWriter writer, WebPageRenderingBase startPage)
at System.Web.WebPages.WebPageBase.<>c__DisplayClass40_0.<RenderPageCore>b__0(TextWriter writer)
at System.Web.WebPages.HelperResult.WriteTo(TextWriter writer)
at System.Web.WebPages.WebPageBase.Write(HelperResult result)
at System.Web.WebPages.WebPageBase.RenderSurrounding(String partialViewName, Action`1 body)
at System.Web.WebPages.WebPageBase.PopContext()
at System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext pageContext, TextWriter writer, WebPageRenderingBase startPage)
at System.Web.Mvc.RazorView.RenderView(ViewContext viewContext, TextWriter writer, Object instance)
at System.Web.Mvc.BuildManagerCompiledView.Render(ViewContext viewContext, TextWriter writer)
at System.Web.Mvc.ViewResultBase.ExecuteResult(ControllerContext context)
at System.Web.Mvc.ControllerActionInvoker.InvokeActionResult(ControllerContext controllerContext, ActionResult actionResult)
at System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilterRecursive(IList`1 filters, Int32 filterIndex, ResultExecutingContext preContext, ControllerContext controllerContext, ActionResult actionResult)
at System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilterRecursive(IList`1 filters, Int32 filterIndex, ResultExecutingContext preContext, ControllerContext controllerContext, ActionResult actionResult)
at System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilterRecursive(IList`1 filters, Int32 filterIndex, ResultExecutingContext preContext, ControllerContext controllerContext, ActionResult actionResult)
at System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilterRecursive(IList`1 filters, Int32 filterIndex, ResultExecutingContext preContext, ControllerContext controllerContext, ActionResult actionResult)
at System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilterRecursive(IList`1 filters, Int32 filterIndex, ResultExecutingContext preContext, ControllerContext controllerContext, ActionResult actionResult)
at System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilterRecursive(IList`1 filters, Int32 filterIndex, ResultExecutingContext preContext, ControllerContext controllerContext, ActionResult actionResult)
at System.Web.Mvc.ControllerActionInvoker.InvokeActionResultWithFilters(ControllerContext controllerContext, IList`1 filters, ActionResult actionResult)
at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass3_6.<BeginInvokeAction>b__3()
at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass3_1.<BeginInvokeAction>b__5(IAsyncResult asyncResult)
from libsasshost.
Try to upgrade to version 1.2.2.
from libsasshost.
I've done the upgrade, and everything looks good so far. I'll keep an eye on it and report back in a week or so.
from libsasshost.
OK.
from libsasshost.
Good news: I'm no longer seeing errors regarding libsass_version
🙂
Unfortunately, I'm seeing the error on a different function now:
Unable to find an entry point named 'sass_file_manager_get_is_initialized' in DLL 'libsass'. ---> System.EntryPointNotFoundException: Unable to find an entry point named 'sass_file_manager_get_is_initialized' in DLL 'libsass'.
at LibSassHost.Internal.Native.Sass_Api.sass_file_manager_get_is_initialized()
at LibSassHost.Internal.FileManagerMarshaler.UnsetFileManager()
at LibSassHost.SassCompiler.InnerCompile(String content, Boolean indentedSyntax, String inputPath, String outputPath, String sourceMapPath, CompilationOptions options)
at LibSassHost.SassCompiler.Compile(String content, String inputPath, String outputPath, String sourceMapPath, CompilationOptions options)
at BundleTransformer.SassAndScss.Translators.SassAndScssTranslator.InnerTranslate(IAsset asset, CompilationOptions sassOptions, Boolean enableNativeMinification)
--- End of inner exception stack trace ---
at BundleTransformer.SassAndScss.Translators.SassAndScssTranslator.InnerTranslate(IAsset asset, CompilationOptions sassOptions, Boolean enableNativeMinification)
at BundleTransformer.SassAndScss.Translators.SassAndScssTranslator.Translate(IList`1 assets)
at BundleTransformer.Core.Transformers.TransformerBase.Translate(IList`1 assets, Boolean isDebugMode)
at BundleTransformer.Core.Transformers.TransformerBase.Transform(IList`1 assets, BundleContext bundleContext, BundleResponse bundleResponse, VirtualPathProvider virtualPathProvider, Boolean isDebugMode)
at BundleTransformer.Core.Transformers.TransformerBase.Process(BundleContext bundleContext, BundleResponse bundleResponse, Boolean isDebugMode)
at BundleTransformer.Core.Transformers.TransformerBase.Process(BundleContext bundleContext, BundleResponse bundleResponse)
at System.Web.Optimization.Bundle.ApplyTransforms(BundleContext context, String bundleContent, IEnumerable`1 bundleFiles)
The rest of the stack trace under ApplyTransforms
is the same as before.
Thankfully, this new error appears to be far less common than the previous error I was seeing, and I suspect the fix will be essentially the same, hence posting it here instead of opening a new issue.
from libsasshost.
Hello!
Apparently this is due to the fact, that in the process are periodically loaded the libsass.dll
assembly is not designed to work with the LibSass Host library. You need to find this assembly and remove it.
Start by checking the bin
directory. Then, check the web applications, that are running in the same process (application pool).
from libsasshost.
I'm hitting this error as well:
Sass compile files
Unhandled exception. System.EntryPointNotFoundException: Unable to find an entry point named 'sass_file_manager_get_is_initialized' in shared library 'libsass'.
at LibSassHost.Internal.Native.Sass_Api.sass_file_manager_get_is_initialized()
at LibSassHost.Internal.FileManagerMarshaler.UnsetFileManager()
at LibSassHost.SassCompiler.CompileFile(String inputPath, String outputPath, String sourceMapPath, CompilationOptions options)
at LibSassBuilder.Program.CompileFilesAsync(IEnumerable`1 sassFiles) in D:\a\LibSassBuilder\LibSassBuilder\src\LibSassBuilder\Program.cs:line 93
at LibSassBuilder.Program.<>c.<<Main>b__0_2>d.MoveNext() in D:\a\LibSassBuilder\LibSassBuilder\src\LibSassBuilder\Program.cs:line 44
Any idea how to fix it?
from libsasshost.
Hello, Hristo!
… Unable to find an entry point named 'sass_file_manager_get_is_initialized' in shared library 'libsass'.
It looks like you are using a native libsass
assembly without the virtual file system support.
Remove the native libsass
assembly and install one of the LibSassHost.Native.* packages. You can also build a native assembly yourself.
I also recommend that you consider switching to a more modern library - Dart Sass Host for .NET.
from libsasshost.
Related Issues (20)
- When used inside a Microsoft.Build.Framework.ITask, the whole process crashes if there's an SCSS error HOT 10
- request: non-static file manager HOT 6
- Unable to load DLL 'libsass' on Windows Server 2008 R2 HOT 2
- How to @import partials HOT 1
- SassСompilationException contains cyrillic character HOT 4
- [BUG] Upgrade to v1.3.1 adds `/c/` to paths HOT 7
- Combining a string of sass with an scss file HOT 5
- `@use` rule doesn't compile HOT 6
- application o virtual directory HOT 2
- On azure webapp getting "An attempt was made to load a program with an incorrect format" HOT 2
- Error: File to import not found or unreadable HOT 23
- LibSassBuilder HOT 2
- Support for Memory<char> as parameter and result CSS
- Sass Modules Support HOT 8
- .NET 6 on Apple Silicon HOT 7
- How to utilize with Blazor? HOT 2
- Updating System.Buffers in .Net Framework project breaks dll-mapping to libsasshost version HOT 2
- Calling from Powershell, cannot load dependent assemblies HOT 4
- Variables are not compiled when scss is compiled HOT 3
- The type initializer for 'LibSassHost.SassCompiler' threw an exception HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from libsasshost.