Fits image format MagickImageCollection constructor error
まだ誰も着手していません。
評価
調査の方向性
Start by comparing how MagickImage and MagickImageCollection read FITS data, focusing on the collection stream and file read paths named in the stack traces. Reproduce with the attached sample FITS image and check the collection constructor tests for existing format coverage. Done means the collection constructors load the FITS image successfully without throwing, while existing collection reads still pass.
索引モデルが issue の本文から書いたものです。
説明
Magick.NET version
15.0.0
Environment (Operating system, version and so on)
Linux x64, Windows 11 x64
Description
Images in the .fts (Fits) image format cannot be constructed using any of the MagickImageCollection constructor overloads, see exceptions below.
When using any of the MagickImage constructor overloads, the Fits images are correctly instantiated.
- From constructor MagickImageCollection(Stream stream, MagickFormat format):
ImageMagick.MagickCorruptImageErrorException: UnexpectedEndOfFile '': No such file or directory @ error/fits.c/ReadFITSImage/427
at ImageMagick.MagickImageCollection.NativeMagickImageCollection.ReadStream(IMagickSettings`1 settings, ReadWriteStreamDelegate reader, SeekStreamDelegate seeker, TellStreamDelegate teller, Void* data) in /_/src/Magick.NET/Generated/Magick.NET.SourceGenerator/ImageMagick.SourceGenerator.NativeInteropGenerator/MagickImageCollection.g.cs:line 673
at ImageMagick.MagickImageCollection.NativeMagickImageCollection.ReadStream(IMagickSettings`1 settings, ReadWriteStreamDelegate reader, SeekStreamDelegate seeker, TellStreamDelegate teller) in /_/src/Magick.NET/MagickImageCollection.cs:line 2185
at ImageMagick.MagickImageCollection.AddImages(Stream stream, IMagickReadSettings`1 readSettings, Boolean ping) in /_/src/Magick.NET/MagickImageCollection.cs:line 2056
at ImageMagick.MagickImageCollection.Read(Stream stream, IMagickReadSettings`1 readSettings) in /_/src/Magick.NET/MagickImageCollection.cs:line 1166
at ImageMagick.MagickImageCollection.Read(Stream stream, MagickFormat format) in /_/src/Magick.NET/MagickImageCollection.cs:line 1155
at ImageMagick.MagickImageCollection..ctor(Stream stream, MagickFormat format) in /_/src/Magick.NET/MagickImageCollection.cs:line 163
- From constructor MagickImageCollection(string fileName):
ImageMagick.MagickCorruptImageErrorException: UnexpectedEndOfFile 'sample_1920×1280.fts': No such file or directory @ error/fits.c/ReadFITSImage/427
at ImageMagick.MagickImageCollection.NativeMagickImageCollection.ReadFile(IMagickSettings`1 settings) in /_/src/Magick.NET/Generated/Magick.NET.SourceGenerator/ImageMagick.SourceGenerator.NativeInteropGenerator/MagickImageCollection.g.cs:line 657
at ImageMagick.MagickImageCollection.AddImages(String fileName, IMagickReadSettings`1 readSettings, Boolean ping) in /_/src/Magick.NET/MagickImageCollection.cs:line 2100
at ImageMagick.MagickImageCollection.Read(String fileName, IMagickReadSettings`1 readSettings) in /_/src/Magick.NET/MagickImageCollection.cs:line 1195
at ImageMagick.MagickImageCollection.Read(String fileName) in /_/src/Magick.NET/MagickImageCollection.cs:line 1175
at ImageMagick.MagickImageCollection..ctor(String fileName) in /_/src/Magick.NET/MagickImageCollection.cs:line 182
Steps to Reproduce
Actual behavior: Attempting to construct a MagickImageCollection instance using an image in the .fts (Fits) format throws an exception.
Expected behavior: Attempting to construct a MagickImageCollection instance using an image in the .fts (Fits) format works correctly, as it does when constructing a MagickImage instance, and does not throw an exception.
Images
- 主要言語
- C#
- スター
- 4k
- フォーク
- 453
- 平均マージ
- 12時間 54分
- マージ済み PR(30日)
- 3
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
dlemstra/Magick.NET のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
dlemstra/Magick.NET#2087 · コメント 2 件 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 45/100
dlemstra/Magick.NET#2098 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 48/100
dlemstra/Magick.NET#2042 · コメント 4 件 ·
-
GPU supportオープン
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
dlemstra/Magick.NET#1949 · コメント 5 件 ·
-
x3f image read errオープン
難易度 4/5 3〜5日 初心者へのやさしさ 25/100
dlemstra/Magick.NET#1936 · コメント 1 件 ·
dlemstra/Magick.NET の issue をすべて見る
似ている issue
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 86/100
メンテナーはふだん 1 日以内に返信
-
question
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
-
代理地址输入框的示例提示容易被误认为已配置代理対応中かも @jay23606 が今日担当しました。 オープンbug
難易度 1/5 1〜3時間 初心者へのやさしさ 78/100
kookxiang/jellyfin-plugin-bangumi#297 ·
メンテナーはふだん 1 日以内に返信
-
A numeric literal is parsed in the host's culture, so 1.5 is 15 in a made EXE on a comma-decimal OSオープンbug interpreter silently-wrong small
難易度 2/5 1〜3時間 初心者へのやさしさ 83/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
メンテナーはふだん 1 日以内に返信