WebOptimizer.Sass icon indicating copy to clipboard operation
WebOptimizer.Sass copied to clipboard

.net 6 Process finished with exit code 137.

Open ameza opened this issue 3 years ago • 3 comments

The application hangs with a 137 after I upgraded to .net 6 OSX arm

    <PackageReference Include="LigerShark.WebOptimizer.Core" Version="3.0.348" />
    <PackageReference Include="LigerShark.WebOptimizer.Sass" Version="3.0.82-beta" />

      services.AddWebOptimizer(pipeline =>
            {
                pipeline.AddScssBundle("/css/all.css", "/css/partials/*.scss", "/css/global.scss");
            });

ameza avatar Jan 26 '22 09:01 ameza

With lower versions, the error I get is file not found in this folder /css/partials/*.scss, this worked just fine in .net core 3.1 in windows, currently on mac arm, thanks

ameza avatar Jan 26 '22 09:01 ameza

Error detail:

TypeLoadException: Cannot load ClearScript V8 library. Load failure information for ClearScriptV8.osx-arm64.dylib:
/Users/omer/RiderProjects/companyweb/CompanyWeb/bin/Debug/net6.0/runtimes/osx-arm64/native/ClearScriptV8.osx-arm64.dylib: Unable to load shared library '/Users/omer/RiderProjects/companyweb/CompanyWeb/bin/Debug/net6.0/runtimes/osx-arm64/native/ClearScriptV8.osx-arm64.dylib' or one of its dependencies. In order to help diagnose loading problems, consider setting the DYLD_PRINT_LIBRARIES environment variable: dlopen(/Users/omer/RiderProjects/companyweb/CompanyWeb/bin/Debug/net6.0/runtimes/osx-arm64/native/ClearScriptV8.osx-arm64.dylib, 0x0001): tried: '/Users/omer/RiderProjects/companyweb/CompanyWeb/bin/Debug/net6.0/runtimes/osx-arm64/native/ClearScriptV8.osx-arm64.dylib' (no such file), '/usr/local/lib/ClearScriptV8.osx-arm64.dylib' (no such file), '/usr/lib/ClearScriptV8.osx-arm64.dylib' (no such file)
/Users/omer/RiderProjects/companyweb/CompanyWeb/bin/Debug/net6.0/ClearScriptV8.osx-arm64.dylib: Unable to load shared library '/Users/omer/RiderProjects/companyweb/CompanyWeb/bin/Debug/net6.0/ClearScriptV8.osx-arm64.dylib' or one of its dependencies. In order to help diagnose loading problems, consider setting the DYLD_PRINT_LIBRARIES environment variable: dlopen(/Users/omer/RiderProjects/companyweb/CompanyWeb/bin/Debug/net6.0/ClearScriptV8.osx-arm64.dylib, 0x0001): tried: '/Users/omer/RiderProjects/companyweb/CompanyWeb/bin/Debug/net6.0/ClearScriptV8.osx-arm64.dylib' (no such file), '/usr/local/lib/ClearScriptV8.osx-arm64.dylib' (no such file), '/usr/lib/ClearScriptV8.osx-arm64.dylib' (no such file)
/System/ClearScriptV8.osx-arm64.dylib: Unable to load shared library '/System/ClearScriptV8.osx-arm64.dylib' or one of its dependencies. In order to help diagnose loading problems, consider setting the DYLD_PRINT_LIBRARIES environment variable: dlopen(/System/ClearScriptV8.osx-arm64.dylib, 0x0001): tried: '/System/ClearScriptV8.osx-arm64.dylib' (no such file), '/usr/local/lib/ClearScriptV8.osx-arm64.dylib' (no such file), '/usr/lib/ClearScriptV8.osx-arm64.dylib' (no such file)
Microsoft.ClearScript.V8.V8Proxy.LoadNativeLibrary(string baseName, string platform, string architecture, string extension)

JsEngineLoadException: Failed to create instance of the V8JsEngine. Most likely it happened, because the 'ClearScriptV8.osx-arm64.dylib' assembly or one of its dependencies was not found. Try to install the Microsoft.ClearScript.V8.Native.osx-arm64 package via NuGet.
JavaScriptEngineSwitcher.V8.V8JsEngine..ctor(V8Settings settings)

SassCompilerLoadException: During loading of Sass compiler error has occurred. Failed to create instance of the V8JsEngine. Most likely it happened, because the 'ClearScriptV8.osx-arm64.dylib' assembly or one of its dependencies was not found. Try to install the Microsoft.ClearScript.V8.Native.osx-arm64 package via NuGet.
DartSassHost.SassCompiler.InitializeCompiler()

omerkoseoglu avatar Feb 14 '22 18:02 omerkoseoglu

Did anyone ever figure this out?

I'm having the issue with all versions above 3.0.77-beta, with both .net 6 and .net 7, on an Intel Mac.

petefox avatar Jan 24 '23 23:01 petefox