简体   繁体   English

进程以退出代码 -1073741515 (0xC0000135) 结束

[英]Process finished with exit code -1073741515 (0xC0000135)

I'm running a python script and it used to work (it even does on my other laptop right now) but not on my current computer - I just get the error code:我正在运行一个 python 脚本,它曾经可以工作(它现在甚至可以在我的另一台笔记本电脑上工作)但不在我当前的计算机上 - 我只是得到错误代码:

Process finished with exit code -1073741515 (0xC0000135)

I don't get any other results - not even from "print" commands at the beginning of the file.我没有得到任何其他结果——甚至从文件开头的“打印”命令中也没有。

I haven't found anything specific to that.我还没有找到任何具体的东西。 I re-installed python (2.7.9), pygame (1.9.1) and even pycharm (tried 4.5 first, now with 5.0 - same result)我重新安装了 python (2.7.9)、pygame (1.9.1) 甚至 pycharm (首先尝试了 4.5,现在是 5.0 - 结果相同)

Does anyone know what that error code means?有谁知道那个错误代码是什么意思? I couldn't find anything about it.我找不到任何关于它的信息。

reinstall python – you don't have python33.dll in c:\WINDOWS\system32\重新安装 python - 你在 c:\WINDOWS\system32\ 中没有 python33.dll

Maybe you have different python versions – look at folders in root of c:也许你有不同的 python 版本——查看 c 根目录下的文件夹:

If yes, then point to your version of python.exe in pyCharm > Settings > Project Interpreter如果是,则在 pyCharm > Settings > Project Interpreter 中指向您的 python.exe 版本

This may be due to another program locking that memory location.这可能是由于另一个程序锁定了该内存位置。 Before you try more drastic measures, know that restarting the computer fixed the problem for me.在您尝试更严厉的措施之前,请知道重新启动计算机已为我解决了问题。

The error seems to be related to issues in native code (eg C/C++) and might be related to issues in loading some dll file.该错误似乎与本机代码(例如 C/C++)中的问题有关,并且可能与加载某些 dll 文件的问题有关。 To know which file, the Windows "Event Viewer" is your friend.要知道哪个文件,Windows 的“事件查看器”是您的朋友。

The "Event Viewer" -> "Windows Logs" -> "Application" feed usually shows one or more rows for each crashed application and one of them should list the problematic filename. “事件查看器”->“Windows 日志”->“应用程序”提要通常为每个崩溃的应用程序显示一行或多行,其中之一应列出有问题的文件名。

Personally I observed similar issue with matplotlib on Python 3.9 (installed using Anaconda on Windows 10).就我个人而言,我在 Python 3.9 上观察到 matplotlib 的类似问题(在 Windows 10 上使用 Anaconda 安装)。 I could see this kind of error when the code was executed using PyCharm.当使用 PyCharm 执行代码时,我可以看到这种错误。 The same code just crashed with no visible errors when starting from Anaconda console.从 Anaconda 控制台启动时,相同的代码刚刚崩溃,没有明显的错误。

The Event viewer then showed issue with freetype.dll.事件查看器随后显示 freetype.dll 的问题。 In this case, the problem was fixed by downgrading the packege from 2.11.0 to 2.10.4:在这种情况下,通过将包从 2.11.0 降级到 2.10.4 来解决问题:

conda install freetype=2.10.4

Depending on the exact issue, I could imagine that removing pycache folder might help (like mentioned in other answers).根据确切的问题,我可以想象删除 pycache 文件夹可能会有所帮助(如其他答案中所述)。 Also, sometimes it might make sense to look at the PATH environment variable to actually understand why certain dll file is loaded from such a location.此外,有时查看 PATH 环境变量以实际了解为什么从这样的位置加载某些 dll 文件可能是有意义的。

I got this error in PyCharm after upgrading pyarrow to the most recent version -- 0.16 --- using pip, running the same code I had ran before this update which used pandas read_parquet specifying the engine="pyarrow" triggering use of this library.在使用 pip 将 pyarrow 升级到最新版本 0.16 后,我在 PyCharm 中遇到了这个错误,运行我在此更新之前运行的相同代码,它使用 pandas read_parquet 指定 engine="pyarrow" 触发使用这个库。 After uninstalling and installing the previous version with卸载并安装以前的版本后

pip install pyarrow=="0.15" pip install pyarrow=="0.15"

the problem resolved.问题解决了。

I encountered the same error when running .py in PyCharm on Windows.我在 Windows 上的 PyCharm 中运行 .py 时遇到了同样的错误。 Inspired by https://thenewboston.com/forum/topic.php?id=10088 , I uninstalled and reinstalled Python.https://thenewboston.com/forum/topic.php?id=10088的启发,我卸载并重新安装了 Python。 When reinstalling, I checked the ADD PYTHON TO THE PATH Option.重新安装时,我检查了ADD PYTHON TO THE PATH选项。 After recreating the virtual environment in PyCharm, the error was gone.在 PyCharm 中重新创建虚拟环境后,错误消失了。

Update : On another Windows PC (64-bit), I encountered the same error where reinstalling Python was not enough.更新:在另一台 Windows PC(64 位)上,我遇到了同样的错误,即重新安装 Python 还不够。 I tried two things.我尝试了两件事。

  1. Uninstalling 32-bit Python and installing 64-bit Python.卸载 32 位 Python 并安装 64 位 Python。 Namely downloading python-3.6.4-amd64.exe instead of python-3.6.4.exe即下载python-3.6.4-amd64.exe而不是python-3.6.4.exe
  2. Recreating the Pycharm project from github.从 github 重新创建 Pycharm 项目。

Between the two actions, the error was gone.在这两个动作之间,错误消失了。

taskkill /F /IM python.exe

如果它刚刚发生并在该错误发生之前正常工作,请尝试此操作。

I solved it by disabling " PyQt compatible " checkbox in the Settings under Build, Execution, Deployment --> Python Debugger .我通过在Build, Execution, Deployment --> Python Debugger下的 Settings 中禁用“ PyQt compatible ”复选框来解决它。

After that, it should debug properly.之后,它应该正确调试。

Here is caused it and solution:这是造成它和解决方案:

The computer had two physical processors.该计算机有两个物理处理器。 The code uses Numba for parallel computations.该代码使用 Numba 进行并行计算。 Upon disabling and re-enabling hyperthreading this issue started.在禁用和重新启用超线程后,这个问题就开始了。 To solve it clear pycache folder and run the program.要解决它,请清除pycache文件夹并运行程序。

我在我的代码中也遇到了这个错误,在我的情况下,问题是共享在 Unix 机器上生成的pickle和 Windows 机器。

**I faced the same situation and the malfunction stems from trying to run both terminal processor and graphical user interfaces. **我遇到了同样的情况,故障源于尝试同时运行终端处理器和图形用户界面。 When I clicked the button program stopped running ** Solution: I disabled terminal inputs and work with graphics.当我单击按钮时程序停止运行** 解决方案:我禁用了终端输入并使用图形。

For example: if you do this例如:如果你这样做

entry1=Entry(root,width=10).pack()
variable= str(input("Whats your name?"))

You will see the error.你会看到错误。

if you delete either entry1 or variable, you will not see the problem.如果您删除 entry1 或变量,您将看不到问题。

If you're trying create a .svm use dlib probably the problem is in .xml, some image that you use is cause the problem.如果您尝试创建 .svm 使用 dlib,则问题可能出在 .xml 中,您使用的某些图像会导致问题。 Try to create a new .xml putting out a image(any image) or remove that your .xml and test, try this even you find out the image problem.尝试创建一个新的 .xml 输出图像(任何图像)或删除您的 .xml 并进行测试,即使您发现图像问题也可以尝试。

For exemple, the image "treinamento3.jpg" was the problem.例如,图像“treinamento3.jpg”就是问题所在。 I removed this command line:我删除了这个命令行:

< image file='delirium\treinamento3.jpg'>
    < box top='213' left='86' width='46' height='49'/ >
    < box top='531' left='47' width='125' height='123'/ >
  < /image >

from my .xml for solve my problem.从我的 .xml 解决我的问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 python sqlalchemy 代码中的错误代码 0xc0000135 - Error code 0xc0000135 in python sqlalchemy code 进程在 Pycharm 中以退出代码 -1073741819 (0xC0000005) 完成 - Process finished with exit code -1073741819 (0xC0000005) in Pycharm 使用XGBoost在PyCharm上以退出代码-1073740791(0xC0000409)退出的过程完成 - Process finished with exit code -1073740791 (0xC0000409) on PyCharm with XGBoost 进程以退出代码 -1073741571 (0xC00000FD) Tensorflow 结束 - Process finished with exit code -1073741571 (0xC00000FD) Tensorflow 进程以退出代码 -1073741819 (0xC0000005) Pycharm 结束 - Process finished with exit code -1073741819 (0xC0000005) Pycharm 进程结束,退出代码为 -107341571 (0xC00000FD) - Process finished with exit code -107341571 (0xC00000FD) 进程完成,退出代码 -1073740791 (0xC0000409) pycharm 错误 - Process finished with exit code -1073740791 (0xC0000409) pycharm error Pycharm 错误“进程以退出代码 -1073740791 (0xC0000409) 完成” - Pycharm error "Process finished with exit code -1073740791 (0xC0000409)" 进程完成,退出代码 -1073741819 (0xC0000005) - Rpy2 - Process finished with exit code -1073741819 (0xC0000005) - Rpy2 进程以退出代码 -1073740940 (0xC0000374) 结束 - Process finished with exit code -1073740940 (0xC0000374)
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM