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

[BUG] win7已安装java并正确配置,无法使用打开就提示错误 #985

Open
7 of 19 tasks
renchengxian opened this issue Feb 18, 2025 · 6 comments
Open
7 of 19 tasks
Assignees
Labels
backend This is a backend related bug 程序错误,有什么东西无法正常工作 priority: medium 中优先级

Comments

@renchengxian
Copy link

版本号 - Version

v7.4

操作系统平台和系统架构 - OS and CPU Arch

win7 X64

部署方式 - Deploy methods

  • Windows .exe 安装程序 (Windows .exe Installer)
  • Windows .zip 绿色部署包 (Windows .zip Portable)
  • Docker
  • JAR 包直接启动 (Start via .JAR directly)
  • 群晖 DSM 套件 (Synology .spk package)
  • Debian 软件包 (Debian .deb package)
  • RedHat/Fedora 软件包 (RedHat/Fedora .rpm package)
  • FreeBSD 软件包(FreeBSD .pkg package)

添加的下载器 - Added Downloaders

  • qBittorrent
  • BiglyBT/Azureus/Vuze
  • Deluge
  • Transmission
  • BitComet

问题描述 - Issue Description

安装完成打开。startup error提示java.lang.RuntimeException: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'windowsEcoQosAPI' defined in URL [jar:file:/D:/PeerBanHelper/PeerBanHelper.jar!/com/ghostchu/peerbanhelper/platform/WindowsEcoQosAPI.class]: Failed to instantiate [com.ghostchu.peerbanhelper.platform.WindowsEcoQosAPI]: Constructor threw exception

主窗口显示也是如此和windowsEcoQosAPI有关,安装旧版虽然不是这个提示,依然用不了,什么null之类的

复现步骤 - Reproduce steps

安装完成打开

截图/日志文件 - Screenshot / Logs

额外信息 - Addition Information

No response

检查清单 - Check list

  • PeerBanHelper 已更新到最新版本,非最新版本不接受任何错误反馈,任何非最新版本的 Issue 将被 立 刻 关 闭,不会有人给您提供任何支持 (I'm running the latest version of PBH that can be found in Github Relases, non-latest release won't receive any support)
  • 所添加的下载器已满足 README 中的前置要求(如版本号和插件)(The downloaders that I've added already satisfied the requirements (E.g install plugins/adapters))
  • 我已检查过 PBH 文档(特别是常见问题),且即使使用了搜索也没有找到与此有关的内容 (This not a question/or the question that not listed in README's FAQ or PBH WIKI)
  • 我没有检查这个检查清单,只是闭眼选中了所有的复选框,请关闭这个 Issue (I have not read these checkboxes and therefore I just ticked them all, Please close this issue)
  • 这不是一个安全漏洞,它可以被安全的公开报告。若需要报告安全漏洞,请在此报告 (This not a security related issue, can be safe report in public. If you want report a security exploit, please report it here)
  • 我同意遵守 PBH-BTN 包容性条约,不发布 “嘲讽、骂战、引战、开盒(有时也称为人肉搜索)、人身攻击、仇恨、暴力、侮辱性言辞、违法违规、黑灰产、危害国家安全、实施或帮助他人实施电信犯罪” 等内容。并已知晓如果仍旧发布了这些内容,我的账号将立刻从包括但不限于 PBH-BTN 组织、社交软件中封禁。所有主题、内容都将被立刻删除或折叠,撤销、删除和收回您所做出的一切贡献,并封禁 BTN 网络的中账号权限、排除您所提交的所有数据。在您违反相关规则时,PBH-BTN 将会将您的注册、登录、和最近访问的 IP 地址、电子邮件地址、以及其它可能追踪您或将您去匿名化的信息从定期删除转为永不删除,并在任何国家或地区的政府、公安机关或有关部门需要时无通知的提供这些数据。 (I agree to abide by the PBH-BTN Inclusivity Pact by not posting content such as “taunting, name-calling, war-mongering, open-boxing (sometimes referred to as mansplaining), personal attacks, hatred, violence, insulting language, illegal activities, black and grey business, endangering national security, and committing or assisting others in committing telecommunication crimes”. I am aware that if I continue to post such content, my account will be immediately banned from organizations including but not limited to PBH-BTN, social software. All topics and content will be immediately deleted or collapsed, all contributions will be revoked, deleted and retracted, and you will be banned from the BTN network and all data you have submitted will be excluded. In the event of a violation of these rules, PBH-BTN will delete your registration, login, and most recent IP address, email address, and any other information that may be used to track you or de-anonymize you from regular to permanent deletion, and will make this data available to the government, public security, or other relevant authorities without notice if they request it, no matter what country or region.)
@Ghost-chu Ghost-chu added bug 程序错误,有什么东西无法正常工作 priority: medium 中优先级 backend This is a backend related labels Feb 18, 2025
@renchengxian
Copy link
Author

Image
Image
@Ghost-chu

@renchengxian
Copy link
Author

这是啥原因,新版老版都如此,机内有无java都一样,难道win7用不了,这俩都有windowsEcoQosAPI这个东西,这个引起的 @Ghost-chu

@Ghost-chu
Copy link
Collaborator

这是啥原因,新版老版都如此,机内有无java都一样,难道win7用不了,这俩都有windowsEcoQosAPI这个东西,这个引起的 @Ghost-chu

由于某些原因 依赖库文件释放失败了。
你可以在配置文件里临时关闭这个功能,看看能否得到缓解。

https://docs.pbh-btn.com/docs/platform/Windows

@renchengxian
Copy link
Author

文件夹里没有config.yml这个文件 @Ghost-chu

@Gaojianli
Copy link
Member

这是啥原因,新版老版都如此,机内有无java都一样,难道win7用不了,这俩都有windowsEcoQosAPI这个东西,这个引起的 @Ghost-chu

由于某些原因 依赖库文件释放失败了。 你可以在配置文件里临时关闭这个功能,看看能否得到缓解。

https://docs.pbh-btn.com/docs/platform/Windows

https://github.com/PBH-BTN/PeerBanHelper/blob/master/src/main/java/com/ghostchu/lib/jni/EcoMode.java#L18
不能只判断WIn,还得判断os版本,22H1以下的就别去尝试了 @Ghost-chu

@Ghost-chu
Copy link
Collaborator

这是啥原因,新版老版都如此,机内有无java都一样,难道win7用不了,这俩都有windowsEcoQosAPI这个东西,这个引起的 @Ghost-chu

由于某些原因 依赖库文件释放失败了。 你可以在配置文件里临时关闭这个功能,看看能否得到缓解。
https://docs.pbh-btn.com/docs/platform/Windows

https://github.com/PBH-BTN/PeerBanHelper/blob/master/src/main/java/com/ghostchu/lib/jni/EcoMode.java#L18 不能只判断WIn,还得判断os版本,22H1以下的就别去尝试了 @Ghost-chu

这玩意儿报错内容是没找着文件,我用 VC2015 编译的,理论上 Win7 也能跑,但是只有调整优先级的效果。

我不清楚为什么文件找不到,后面考虑改改文件位置

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend This is a backend related bug 程序错误,有什么东西无法正常工作 priority: medium 中优先级
Projects
None yet
Development

No branches or pull requests

3 participants