using Aspose.Drawing;
using Aspose.Drawing.Imaging;
using var stream = File.Open("sample.tiff", FileMode.Open, FileAccess.Read);
using var image = Image.FromStream(stream);
image.SelectActiveFrame(FrameDimension.Page, 1);
The code uses Aspose.Drawing.Common package, and is built for .Net 8.
The code hangs when SelectActiveFrame is called on a specific TIFF. This is reproducible on 24.9.0 as well as many older versions. Image attached.
sample.zip (183.2 KB)
@seanmomsen,
I tested your scenario/case in Visual Studio .NET 2022 by creating a sample console .NET 8.0 application. I pasted your exact code (I just changed the TIFF file path accordingly) in the program. I installed and used Aspose.Drawing.Common v24.9 from the NuGet repositories. I finally ran the program on my PC (Windows 11), and it works just fine. Please see the screenshot for your reference.
sc_shot1.png (142.1 KB)
Could you please provide a sample console application (as a zipped project) and share your environment details? We will review your issue soon.
@amjad.sahi
Thank you for taking the time to test this. I have seen the behavior in two separate environments.
Windows 10 Enterprise 10.0.19044, running in VMware
Visual Studio Professional (64-bit) 17.10.6
Windows 11 Home 10.0.22631, no VMware
Visual Studio Community (64-bit) 2022 17.11.2
I have attached the project.
AsposeTiff_Current.zip (245.7 KB)
@seanmomsen,
Thanks for the sample project.
I am able to reproduce the issue as you mentioned by using your sample app. I found SelectActiveFrame causes code to hang on specific TIFF file. Please note and you already know, if I use your code snippet in a new project in VS.NET, it works fine on my end.
Anyways, we need to investigate why it hanged using your sample project. We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.
Issue ID(s): DRAWINGNET-1596
You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.