Blender调试因错误而崩溃

时间:2017-03-28 11:41:32

标签: c++ debugging visual-studio-2012 build blender

现在我尝试构建完整版的Blender。在步骤构建和安装DLL我没有问题,但现在当我尝试调试Blender我收到:

'blender.exe' (Win32): Loaded 'C:\Windows\System32\rsaenh.dll'. Symbols loaded.
Debug Assertion Failed!

Program: D:\BLENDERBUILD4\bin\Debug\blender.exe
File: D:\Program Files\Microsoft Visual Studio 12.0\VC\include\xstring
Line: 1168

Expression: invalid null pointer
For information on how your program can cause an assertion failure, see the Visual C++ documentation on asserts.
(Press Retry to debug the application)
blender.exe has triggered a breakpoint.

调试停止:

_STD_BEGIN
#ifdef _DEBUG
_CRTIMP2_PURE void __CLRCALL_PURE_OR_CDECL _Debug_message(const wchar_t     *message, const wchar_t *file, unsigned int line)
{   // report error and die
    if(::_CrtDbgReportW(_CRT_ASSERT, file, line, NULL, L"%s", message)==1)
    {
        ::_CrtDbgBreak();
    }
}
_CRTIMP2_PURE void __CLRCALL_PURE_OR_CDECL _Debug_message(const unsigned short *message, const unsigned short *file, unsigned int line)
{   // report error and die
    _Debug_message((wchar_t *) message, (wchar_t *) file, line);
}
#endif

什么问题?可能是我丢失了一些DLL或其他东西?如果我启动blender.exe它也会崩溃。抱歉没有问题,在编码中我是新人。

1 个答案:

答案 0 :(得分:0)

好的,我解决了。 只需使用多个Python脚本从安装路径中添加blender.exe和2.XX(在我的情况下为2.78)文件夹中的Debug文件夹。而已!