进程结束,退出代码-1073740791(0xC0000409)pycharm错误 [英] Process finished with exit code -1073740791 (0xC0000409) pycharm error

查看:10021
本文介绍了进程结束,退出代码-1073740791(0xC0000409)pycharm错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试将fastText与PyCharm结合使用.每当我运行以下代码时:

I am trying to use fastText with PyCharm. Whenever I run below code:

import fastText

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

model.save_model("model")

该过程退出并出现以下错误:

The process exits with this error:

Process finished with exit code -1073740791 (0xC0000409)

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

What causes this error and what can be done to avoid it?

推荐答案

您是否正在使用Windows系统? 0xC0000409表示堆栈缓冲区溢出,如

Are you using a windows system? 0xC0000409 means stack buffer overflow as seen in this windows help link.

以下是从此链接中获取的一些建议,以解决类似类型的问题.

Below is some advice that is taken from this link to solve similar type of issues.

STATUS_STACK_BUFFER_OVERRUN是/GS异常.当Windows检测到篡改"保护返回地址的安全cookie时,将抛出它们.您可能正在写一些超出缓冲区末尾的内容,或者正在将某些内容写到指向错误位置的指针上.但是,也可能是您的内存有些小巧,或者硬件有其他故障,导致验证代码跳闸.

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.

您可以尝试做的一件事是禁用/GS开关(项目属性,查找C/C ++->代码生成->缓冲区安全性检查)并重新编译.再次运行该代码很可能会导致您可以捕获和跟踪的错误.我认为/GS出于安全原因不会提供任何信息.

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.

您可以做的另一件事是在另一台PC上像以前一样运行代码,然后查看是否失败,这可能表示硬件问题.

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.

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

Other strategies are reduce the size of the training file by removing some text and reducing the size of the vocabulary by running some text normalisation. Hope that helps.

这篇关于进程结束,退出代码-1073740791(0xC0000409)pycharm错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆