gpt4 book ai didi

python - 进程结束,退出代码为 -1073740791 (0xC0000409) pycharm 错误

转载 作者:行者123 更新时间:2023-11-28 20:59:01 29 4
gpt4 key购买 nike

我正在尝试将 fastText 与 PyCharm 一起使用。每当我运行以下代码时:

import fastText

model=fastText.train_unsupervised("data_parsed.txt")

model.save_model("model")

进程退出并出现此错误:

Process finished with exit code -1073740791 (0xC0000409)

导致此错误的原因是什么?如何避免?

最佳答案

你用的是windows系统吗? 0xC0000409 表示堆栈缓冲区溢出,如 this windows help link 中所示.

以下是摘自 this link 的一些建议解决类似类型的问题。

STATUS_STACK_BUFFER_OVERRUN is a /GS exception. They are thrown when Windows detects 'tampering' of a security cookie protecting a return address. It is probable that you are writing something past the end of a buffer, or writing something to a pointer that is pointing to the wrong place. However it is also possible that you have some dodgy memory or otherwise faulty hardware that is tripping validation code.

One thing that you could try is to disable the /GS switch (project properties, look for C/C++ -> Code Generation -> Buffer Security Check) and recompile. Running the code again may well cause an error that you can trap and trace. I think /GS is designed not to give you any info for security reasons.

Another thing you could do is run the code as is on a different PC and see if that fails, this may point to a hardware problem if it doesn't.

其他策略是通过删除一些文本来减少训练文件的大小,并通过运行一些文本规范化来减少词汇表的大小。

关于python - 进程结束,退出代码为 -1073740791 (0xC0000409) pycharm 错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50562192/

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com