Skip to content

[Bug?]: Windows下第一次运行时报错,没有生成任何配置文件 #798

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

Open
4 tasks done
chenxin03 opened this issue Apr 2, 2025 · 1 comment
Open
4 tasks done
Labels
bug? Maybe it's a bug

Comments

@chenxin03
Copy link

请确保您已阅读以上注意事项,并勾选下方的确认框。

  • 我已经仔细阅读上述内容
  • 我已经使用 最新构建 测试过,问题依旧存在。
  • 我已经在 Issue Tracker 中找过我要提出的问题,没有找到相同问题的ISSUE。
  • 我已知晓并同意,此处仅用于汇报程序中存在的问题。若这个 Issue 是关于其他非程序本身问题,则我的 Issue 可能会被无条件自动关闭或/并锁定。(其它疑问请考虑加入TG群询问或在discussions中提问)

Lagrange项目

Core

所使用/依赖的Lagrange项目对应的commit

15c66a9

运行环境

Windows

运行架构

x64

连接方式

None

重现步骤

我首先是下载Releases版本的程序运行出现了这个错误,然后下载了最新构建的程序,并下载了.Net SDK,同样出现这个问题。

双击运行exe和cmd中运行都出现错误:

D:\NoneBot\Lagrange.OneBot>Lagrange.OneBot.exe
CLR: Assert failure(PID 11304 [0x00002c28], Thread: 9300 [0x2454]): !AreShadowStacksEnabled() || UseSpecialUserModeApc()
    File: D:\a\_work\1\s\src\coreclr\vm\threads.cpp:7938 Image:
D:\NoneBot\Lagrange.OneBot\Lagrange.OneBot.exe

.net版本
Image

期望的结果是什么?

正常初始化配置文件

实际的结果是什么?

报错,没有配置生成

简单的复现代码/链接(可选)

Trace 级别日志记录(可选)

补充说明(可选)

No response

@chenxin03 chenxin03 added the bug? Maybe it's a bug label Apr 2, 2025
@CrackTC
Copy link
Collaborator

CrackTC commented Apr 24, 2025

dotnet/docs#42600

Use the Windows Security app, group policy etc. to opt out of the hardware supported stack enforcement for the specific .NET application as described in https://learn.microsoft.com/en-us/defender-endpoint/enable-exploit-protection for details.

试试这个能不能跑

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug? Maybe it's a bug
Projects
None yet
Development

No branches or pull requests

2 participants