当我尝试从WingIDE设置中运行我的python测试时,它总是会崩溃并显示以下消息
Fatal Python error: GC object already tracked
This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.
Fatal Python erDeviceFind: Failed scanning the PCI bus.
Error: 0x2000000f - Device not found
但是当我从命令提示符(python环境设置)运行相同的脚本时,脚本运行正常,没有任何崩溃! 任何可能指出可能出错的建议?
[编辑]:当我尝试使用WinDbg来调查可能出现的问题时,我得到了以下堆栈跟踪:
0:000> ~*kb
. 0 Id: 14e0.1708 Suspend: 0 Teb: 7ffdf000 Unfrozen
ChildEBP RetAddr Args to Child
0021e78c 77106914 7711e1a7 ffffffff 00000003 ntdll!KiFastSystemCallRet
0021e790 7711e1a7 ffffffff 00000003 00000000 ntdll!ZwTerminateProcess+0xc
0021e7ac 75e4bbf6 00000000 77e8f3b0 ffffffff ntdll!RtlExitUserProcess+0x85
0021e7c0 7c348d03 00000003 7c3476c9 00000003 kernel32!ExitProcessStub+0x12
0021e7c8 7c3476c8 00000003 00000000 7c391300 MSVCR71!__crtExitProcess+0x2e [f:\vs70builds\3052\vc\crtbld\crt\src\crt0dat.c @ 463]
0021e7f8 7c348d22 00000003 00000001 00000000 MSVCR71!doexit+0xab [f:\vs70builds\3052\vc\crtbld\crt\src\crt0dat.c @ 414]
0021e808 7c34d2b1 00000003 1e164d28 75e2f138 MSVCR71!_exit+0xd [f:\vs70builds\3052\vc\crtbld\crt\src\crt0dat.c @ 311]
0021e850 7c34cf8a 00000016 00000095 06cbf3e0 MSVCR71!raise+0xae [f:\vs70builds\3052\vc\crtbld\crt\src\winsig.c @ 508]
*** WARNING: Unable to verify checksum for C:\Windows\system32\python24.dll
*** ERROR: Symbol file could not be found. Defaulted to export symbols for C:\Windows\system32\python24.dll -
0021e864 1e0a9c6d 1e164d28 06dec458 020671d2 MSVCR71!abort+0xe [f:\vs70builds\3052\vc\crtbld\crt\src\abort.c @ 48]
WARNING: Stack unwind information not available. Following frames may be wrong.
0021e878 1e0290a4 00000002 021146cc 00000002 python24!PyTuple_New+0x9d
0021e8e0 1e029e29 1e02a49c 01aead28 02109540 python24!PyEval_EvalFrame+0x1764
0021e8e4 1e02a49c 01aead28 02109540 00000002 python24!PyEval_EvalCodeEx+0x49
0021e918 1e026576 021102a0 00000002 00000000 python24!PyEval_EvalCodeEx+0x6bc
0021e954 1e027736 0021e9bc 00000002 00000000 python24!PyEval_GetFuncDesc+0x176
0021e980 1e029477 0021e9bc 00000000 00000002 python24!PyEval_CallObject+0x326
0021e9c0 7c3496a2 0210b160 02223384 00000002 python24!PyEval_EvalFrame+0x1b37
0021e9ec 1e02651b 02223218 00000000 00000002 MSVCR71!_getptd+0x6c [f:\vs70builds\3052\vc\crtbld\crt\src\tidtable.c @ 319]
0021ea04 1e027736 0021ea6c 00000002 00000000 python24!PyEval_GetFuncDesc+0x11b
0021ea30 1e029477 0021ea6c 00000000 00000003 python24!PyEval_CallObject+0x326
0021ea70 1e05e499 0210b1e0 021d9490 00000003 python24!PyEval_EvalFrame+0x1b37
0021ea9c 1e02651b 021d9330 00000000 00000003 python24!PyFrame_New+0xb9
00000000 00000000 00000000 00000000 00000000 python24!PyEval_GetFuncDesc+0x11b
我可以在网上找到一些相关/类似的崩溃(从另一个进程启动的解释器),但这也没有多大帮助。 希望堆栈跟踪可能指向一些有用的东西,我可能会遗漏