Hi,
I have issues with .Net Aspose.Imaging 24.2 when loading a tiff file.
The code is simple:
Aspose.Imaging.Image.Load(stream);
But this results in a hard process crash, i can not even catch it.
The active test run was aborted. Reason: Test host process crashed : Stack overflow.
at #=zZ5A4lQNAc9oQU9Kva3tk1UpPZW9h.get_Disposed()
at #=zZ5A4lQNAc9oQU9Kva3tk1UpPZW9h.#=zsL7Z9Gd4tw04()
at #=zZ5A4lQNAc9oQU9Kva3tk1UpPZW9h.get_Position()
at .get_Position()
at .()
at .(Int64, )
at .(Byte[], Int32, Int64, Int64)
at .(Int64, Int64)
at .(Int64, Int64)
at .(Int64)
at .(, Int64)
at .(, , Int64)
at .(, , )
at .(, )
at .(, )
at .(System.IO.Stream, )
at .(System.IO.Stream)
at .(System.IO.Stream, )
at .(System.IO.Stream, )
at System.Drawing.Bitmap..ctor(System.IO.Stream, Boolean)
at System.Drawing.Bitmap..ctor(System.IO.Stream)
at .(, , )
at .(, )
at .(, )
at .(System.IO.Stream, )
at .(System.IO.Stream)
at .(System.IO.Stream, )
at .(System.IO.Stream, )
at System.Drawing.Bitmap..ctor(System.IO.Stream, Boolean)
at System.Drawing.Bitmap..ctor(System.IO.Stream)
at .(, , )
at .(, )
at .(, )
at .(System.IO.Stream, )
at .(System.IO.Stream)
at .(System.IO.Stream, )
at .(System.IO.Stream, )
at System.Drawing.Bitmap..ctor(System.IO.Stream, Boolean)
at System.Drawing.Bitmap..ctor(System.IO.Stream)
at .(, , )
at .(, )
at .(, )
at .(System.IO.Stream, )
at .(System.IO.Stream)
at .(System.IO.Stream, )
at .(System.IO.Stream, )
at System.Drawing.Bitmap..ctor(System.IO.Stream, Boolean)
at System.Drawing.Bitmap..ctor(System.IO.Stream)
at .(, , )
at .(, )
at .(, )
at .(System.IO.Stream, )
at .(System.IO.Stream)
at .(System.IO.Stream, )
at .(System.IO.Stream, )
at System.Drawing.Bitmap..ctor(System.IO.Stream, Boolean)
at System.Drawing.Bitmap..ctor(System.IO.Stream)
at .(, , )
at .(, )
at .(, )
at .(System.IO.Stream, )
at .(System.IO.Stream)
at .(System.IO.Stream, )
at .(System.IO.Stream, )
at System.Drawing.Bitmap..ctor(System.IO.Stream, Boolean)
at System.Drawing.Bitmap..ctor(System.IO.Stream)
at .(, , )
at .(, )
at .(, )
at .(System.IO.Stream, )
at .(System.IO.Stream)
at .(System.IO.Stream, )
at .(System.IO.Stream, )
at System.Drawing.Bitmap..ctor(System.IO.Stream, Boolean)
at System.Drawing.Bitmap..ctor(System.IO.Stream)
at .(, , )
at .(, )
at .(, )
at .(System.IO.Stream, )
at .(System.IO.Stream)
at .(System.IO.Stream, )
at .(System.IO.Stream, )
at System.Drawing.Bitmap..ctor(System.IO.Stream, Boolean)
at System.Drawing.Bitmap..ctor(System.IO.Stream)
at .(, , )
at .(, )
at .(, )
at .(System.IO.Stream, )
at .(System.IO.Stream)
at .(System.IO.Stream, )
at .(System.IO.Stream, )
at System.Drawing.Bitmap..ctor(System.IO.Stream, Boolean)
at System.Drawing.Bitmap..ctor(System.IO.Stream)
at .(, , )
at .(, )
at .(, )
at .(System.IO.Stream, )
at .(System.IO.Stream)
at .(System.IO.Stream, )
at .(System.IO.Stream, )
at System.Drawing.Bitmap..ctor(System.IO.Stream, Boolean)
at System.Drawing.Bitmap..ctor(System.IO.Stream)
at .(, , )
at .(, )
at .(, )
at .(System.IO.Stream, )
at .(System.IO.Stream)
at .(System.IO.Stream, )
at .(System.IO.Stream, )
at System.Drawing.Bitmap..ctor(System.IO.Stream, Boolean)
at System.Drawing.Bitmap..ctor(System.IO.Stream)
at .(, , )
at .(, )
at .(, )
at .(System.IO.Stream, )
at .(System.IO.Stream)
at .(System.IO.Stream, )
at .(System.IO.Stream, )
at System.Drawing.Bitmap..ctor(System.IO.Stream, Boolean)
at System.Drawing.Bitmap..ctor(System.IO.Stream)
at .(, , )
at .(, )
at .(, )
at .(System.IO.Stream, )
at .(System.IO.Stream)
at .(System.IO.Stream, )
at .(System.IO.Stream, )
at System.Drawing.Bitmap..ctor(System.IO.Stream, Boolean)
at System.Drawing.Bitmap..ctor(System.IO.Stream)
at .(, , )
at .(, )
at .(, )
at .(System.IO.Stream, )
at .(System.IO.Stream)
at .(System.IO.Stream, )
at .(System.IO.Stream, )
at System.Drawing.Bitmap..ctor(System.IO.Stream, Boolean)
at System.Drawing.Bitmap..ctor(System.IO.Stream)
at .(, , )
at .(, )
at .(, )
at .(System.IO.Stream, )
at .(System.IO.Stream)
at .(System.IO.Stream, )
at .(System.IO.Stream, )
at System.Drawing.Bitmap..ctor(System.IO.Stream, Boolean)
at System.Drawing.Bitmap..ctor(System.IO.Stream)
at .(, , )
at .(, )
at .(, )
at .(System.IO.Stream, )
at .(System.IO.Stream)
at .(System.IO.Stream, )
at .(System.IO.Stream, )
at System.Drawing.Bitmap..ctor(System.IO.Stream, Boolean)
at System.Drawing.Bitmap..ctor(System.IO.Stream)
at .(, , )
at .(, )
at .(, )
at .(System.IO.Stream, )
at .(System.IO.Stream)
at .(System.IO.Stream, )
at .(System.IO.Stream, )
at System.Drawing.Bitmap..ctor(System.IO.Stream, Boolean)
at System.Drawing.Bitmap..ctor(System.IO.Stream)
at .(, , )
at .(, )
at .(, )
at .(System.IO.Stream, )
at .(System.IO.Stream)
at .(System.IO.Stream, )
at .(System.IO.Stream, )
at System.Drawing.Bitmap..ctor(System.IO.Stream, Boolean)
at System.Drawing.Bitmap..ctor(System.IO.Stream)
at .(, , )
at .(, )
at .(, )
at .(System.IO.Stream, )
at .(System.IO.Stream)
at .(System.IO.Stream, )
at .(System.IO.Stream, )
at System.Drawing.Bitmap..ctor(System.IO.Stream, Boolean)
at System.Drawing.Bitmap..ctor(System.IO.Stream)
at .(, , )
at .(, )
at .(, )
at .(System.IO.Stream, )
at .(System.IO.Stream)
at .(System.IO.Stream, )
at .(System.IO.Stream, )
at System.Drawing.Bitmap..ctor(System.IO.Stream, Boolean)
at System.Drawing.Bitmap..ctor(System.IO.Stream)
at .(, , )
at .(, )
at .(, )
at .(System.IO.Stream, )
at .(System.IO.Stream)
at .(System.IO.Stream, )
at .(System.IO.Stream, )
at System.Drawing.Bitmap..ctor(System.IO.Stream, Boolean)
at System.Drawing.Bitmap..ctor(System.IO.Stream)
at .(, , )
at .(, )
at .(, )
at .(System.IO.Stream, )
at .(System.IO.Stream)
========== Test run aborted: 0 Tests (0 Passed, 0 Failed, 0 Skipped) run in < 1 ms ==========
When running on Net6 there is no issue. When switching to Net7 or Net8 this errors occurs. Also on Windows, Linux or Docker.
- I checked that the tiff file is valid. I can open it in a viewer and “tiffinfo” reports a valid tiff file.
- I can provide the tiff file if needed. Its only 472kb big.
Regards