You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
During the execution, the following exception gets thrown during Tiffsave: System.NullReferenceException: 'Object reference not set to an instance of an object.'
An ExecutionEngineException also gets thrown sometimes instead of the NullReferenceException.
These exceptions never occur at the first iteration of the while loop, always at the 2nd or later. They also do not occur if I do not use SetProgress
The tiff image I've been using for this test is of dimensions 25000x5000 with page height 5000 (ushort).
This post #31 mentions a similar issue with codes very similar to the one above. I tried the different codes from this post and did not have any issue, however replacing Dzsave with Tiffsave suffices to create the crash in my case.
Am I doing something wrong?
The text was updated successfully, but these errors were encountered:
The operation cache of libvips could reuse the image after
subsequent use, so we need to free the recorded delegates
until we are sure that the reference count reaches zero.
Uncommenting Cache.Max = 0 makes it work without problems. The reason is that libvips reuses the image from the operation cache after subsequent use, but the connected Enums.Signals.Eval callback handler is released too early causing ExecutionEngineException (or NullReferenceException) to be thrown:
Process terminated. A callback was made on a garbage collected delegate of type 'NetVips!NetVips.Internal.VipsImage+EvalSignal::Invoke'.
Commit 8682c66 should fix this. If you want to test this, you can use the nightly version of NetVips. Add the https://ci.appveyor.com/nuget/net-vips feed in the <packageSources> section of your NuGet.config:
Hey there,
First of all, thanks for your work on libvips. Its performance is quite remarkable and it has been most useful :)
I'm running into a recurrent issue when using Tiffsave repeatedly. I created a very simplified version of my code to reproduce the crash:
During the execution, the following exception gets thrown during Tiffsave:
System.NullReferenceException: 'Object reference not set to an instance of an object.'
An
ExecutionEngineException
also gets thrown sometimes instead of theNullReferenceException
.These exceptions never occur at the first iteration of the
while
loop, always at the 2nd or later. They also do not occur if I do not useSetProgress
The tiff image I've been using for this test is of dimensions 25000x5000 with page height 5000 (ushort).
This post #31 mentions a similar issue with codes very similar to the one above. I tried the different codes from this post and did not have any issue, however replacing
Dzsave
withTiffsave
suffices to create the crash in my case.Am I doing something wrong?
The text was updated successfully, but these errors were encountered: