-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unhandled exceptions #31
Comments
Hello, Olaf! Thanks for information! In the near future I will research this problem. |
Hello, Olaf! I cannot reproduce this error. You are using a modified or original version of the LibSass? Show me the full error message with stack trace. |
at LibSassHost.Helpers.MarshallingHelpers.PtrToString(IntPtr ptr) LibSassHost.1.2.7 I'm trying to track down exactly where it fails. |
Hello, Dave! You have only given a stack trace. I don't see the error message itself. |
Hi
Same as the original poster:
Error:
An unhandled exception of type 'System.AccessViolationException' occurred
in Unknown Module.
Attempted to read or write protected memory. This is often an indication
that other memory is corrupt.
Thought I'd just hijack the thread seeing as it was the same issue and
there was no repro possible :)
|
@DaveEmmerson Is this error persistent? Apparently it occurs during processing of the Sass syntax error:
|
Yeah, if I exclude the files with syntax errors it is fine.
With a syntax error it fails like that quite often, but sometimes I can get
the actual syntax error exception first before it fails completely.
I'm trying to get a local build of the library running so I can debug, but
ran out of time for today.
… |
What version of .NET are you using? Implementation of the |
What version of .NET are you using? Implementation of the PtrToString
<https://github.com/Taritsyn/LibSassHost/blob/df7df2fa6b83d48a643a38b44088cf22fee5bbf0/src/LibSassHost/Helpers/MarshallingHelpers.cs#L102-L139>
method just depends on
I'm not at work now, but I believe the project is a. Net framework 4.6.2 one
I'll be able to double check on monday
Thanks
… |
Hi Yeah, it's framework and 4.6.2 on this project. Thanks |
@redcrayonn @DaveEmmerson In version 1.2.8 fixed this error. The error was at the LibSass level. |
@Taritsyn thanks! I've created some local nuget packages of the latest commit and updated my libsasshost/libsassnative/bundletransformer.sass references and it seems to be working (in my sample size of 1 error 😁 ) |
@DaveEmmerson Why create local nuget packages? Packages are in release. |
Ah, woops. Does https://github.com/Taritsyn/BundleTransformer/blob/64c05f32757e469edb3b2e3f7d7d63dd6c0f82d8/src/BundleTransformer.SassAndScss/BundleTransformer.SassAndScss.csproj#L31 need to be updated though? I'm very new to LibSass (like 2 days in), so I'm not 100% on how all the bits fit together yet. |
There were no changes in interface of the LibSassHost library, so you can just update the LibSassHost's packages. |
👍 thanks again - works fine after a good number of parse errors. |
We've started to use your extension in combination with our webapplications. So far we've managed to fix a lot of SCSS errors which we otherwise wouldn't have noticed.
But one thing seems odd to us; there's a lot of unhandled exceptions which prevent you from starting a debugging session with for example MVC .NET 4.7.1.
My questions is whether it is at all possible to catch these exceptions and pass / bubble them to the application. We already handle exceptions thrown by the sass compiler, but it seems some exceptions take place within your extension which we cannot handle. Is it at all possible to handle them one way or another?
Error:
An unhandled exception of type 'System.AccessViolationException' occurred in Unknown Module.
Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
Reproduction:
We'd love to hear your feedback!
The text was updated successfully, but these errors were encountered: