Skip to content
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

加载图标失败:参数无效 #3115

Closed
1 task done
kong-que-dnf123 opened this issue Jan 10, 2024 · 5 comments
Closed
1 task done

加载图标失败:参数无效 #3115

kong-que-dnf123 opened this issue Jan 10, 2024 · 5 comments
Labels
· Bug 拒绝 / 放弃 不会制作该功能,或无法修复该 Bug

Comments

@kong-que-dnf123
Copy link

kong-que-dnf123 commented Jan 10, 2024

检查项

描述

image
其实我是瞎键入的搜索也不知道这是一个还是多个mod的问题.......
不过翻了一下就这个mod没显示图标就是了
image

重现步骤

1、点击“下载→搜索”
2、在搜索框里键入”adads“ (没错当时键入的就是这么随意)
2(补)、根据自己的观察仅搜索”MidnightControls“好像就是了
3、等待调试界面弹出错误信息

日志与附件

Log1.txt
Log2.txt

@kong-que-dnf123 kong-que-dnf123 added · Bug 新反馈 需要社区初步确认其有效的新 Issue labels Jan 10, 2024
@JingHai-Lingyun
Copy link
Collaborator

Modrinth 的图片是正常的,Log1 提示

[14:01:20.727] 加载位图失败(C:\Users\admin\AppData\Local\Temp\PCL\CompLogo\12673158267540459614.png453):参数无效。
   在 System.Drawing.Bitmap..ctor(Stream stream)
   在 PCL.MyBitmap..ctor(String FilePathOrResourceName)
错误类型:System.ArgumentException
[14:01:20.728] 读取资源工程图标失败(C:\Users\admin\AppData\Local\Temp\PCL\CompLogo\12673158267540459614.png):参数无效。
   在 System.Drawing.Bitmap..ctor(Stream stream)
   在 PCL.MyBitmap..ctor(String FilePathOrResourceName)
   在 PCL.MyCompItem._Closure$__6-1._Lambda$__0()
错误类型:System.ArgumentException
[14:01:20.728] [Net] 直接下载文件:https://cdn.modrinth.com/data/bXX9h73M/icon.svg
[14:01:20.976] 加载位图失败(C:\Users\admin\AppData\Local\Temp\PCL\CompLogo\12673158267540459614.png453):参数无效。
   在 System.Drawing.Bitmap..ctor(Stream stream)
   在 PCL.MyBitmap..ctor(String FilePathOrResourceName)
错误类型:System.ArgumentException
[14:01:20.976] 读取资源工程图标失败(C:\Users\admin\AppData\Local\Temp\PCL\CompLogo\12673158267540459614.png):参数无效。
   在 System.Drawing.Bitmap..ctor(Stream stream)
   在 PCL.MyBitmap..ctor(String FilePathOrResourceName)
   在 PCL.MyCompItem._Closure$__6-1._Lambda$__0()
错误类型:System.ArgumentException
[14:01:20.977] 下载资源工程图标失败(https://cdn.modrinth.com/data/bXX9h73M/icon.svg):参数无效。
   在 PCL.MyCompItem.LogoLoader(String LocalFileAddress)
错误类型:System.ArgumentException

@kong-que-dnf123
Copy link
Author

就很奇怪
这俩像是同一个mod但没列一起去
image

@zkitefly
Copy link
Collaborator

难道 PCL 显示不了 svg?

@zkitefly zkitefly added 等待确认 已经过社区确认,等待开发者确认 and removed 新反馈 需要社区初步确认其有效的新 Issue labels Jan 10, 2024
@LTCatt LTCatt added 处理中 开发者正在调查或处理该项 and removed 等待确认 已经过社区确认,等待开发者确认 labels Jan 10, 2024
@kong-que-dnf123
Copy link
Author

就离谱 (麻烦看到最后阿巴阿巴)
现在我搜索“MidnightControls”时没有那个 当时报错的 来源于 Modrinth 的模组了(只剩下来源于 CurseForge 的那个正常的模组信息组了),然后也就没有 图标参数无效 的那个图标信息组了
image

但是我搜索“adads”的时候仍有这个报错的图标信息组是怎么回事啊???[知识增加]

image
image

@LTCatt
Copy link
Member

LTCatt commented Feb 19, 2024

PCL 无法加载 SVG 和其他格式的图片,WAI

@LTCatt LTCatt closed this as not planned Won't fix, can't repro, duplicate, stale Feb 19, 2024
@LTCatt LTCatt added 拒绝 / 放弃 不会制作该功能,或无法修复该 Bug and removed 处理中 开发者正在调查或处理该项 labels Feb 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
· Bug 拒绝 / 放弃 不会制作该功能,或无法修复该 Bug
Projects
None yet
Development

No branches or pull requests

4 participants