Python 进程以退出代码 134 结束(被信号 6 中断:SIGABRT)

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/48290403/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-19 18:38:06  来源:igfitidea点击:

Process finished with exit code 134 (interrupted by signal 6: SIGABRT)

pythonpycharmword2vecgensim

提问by Mr Brohi

I am working on node2vec. When I am using small dataset the code works well. But as soon as I try to run the same code on large dataset, the code crashes.

我正在研究 node2vec。当我使用小数据集时,代码运行良好。但是一旦我尝试在大型数据集上运行相同的代码,代码就会崩溃。

Error: Process finished with exit code 134 (interrupted by signal 6: SIGABRT).

错误:进程已完成,退出代码为 134(被信号 6:SIGABRT 中断)。

The line which is giving error is

给出错误的行是

model = Word2Vec(walks, size=args.dimensions, window=args.window_size, min_count=0, sg=1, workers=args.workers,
                 iter=args.iter)

I am using pycharm and python 3.5.

我正在使用 pycharm 和 python 3.5。

Any idea what is happening? I could not found any post which could solve my problem.

知道发生了什么吗?我找不到任何可以解决我的问题的帖子。

采纳答案by gojomo

You are probably running out of memory. Watch a readout of the Python process size during your attempts, and optimize your walksiterable to not compose a large in-memory list.

您可能内存不足。在您尝试期间观察 Python 进程大小的读数,并优化您的walks可迭代对象,以免组成一个大的内存列表。

回答by ziyi liu

I have the same issue, and finally, I figured it out. The reason for me is my Keras version 2.2.0is too high. After, I change the version to 2.0.1, it worked. Hope this version issue can help you!

我有同样的问题,最后,我想通了。我的原因是我的Kerasversion 2.2.0太高了。之后,我将版本更改为2.0.1,它起作用了。希望这个版本问题可以帮到你!