【问题标题】:An unexpected error happened during phase CoreEngineExecution of job在作业的 CoreEngineExecution 阶段发生意外错误
【发布时间】:2021-05-23 15:18:36
【问题描述】:

我一直在开发 Inventor 插件。我一直在针对多个 STEP 程序集进行测试。对我的本地 Inventor 运行插件适用于所有情况。在 forge 平台上运行我的插件适用于所有情况,但只有一个。它在 1:40 分钟后失败,因此不会超时。但是报告确实显示“Inventor Core Engine Core Console 由于超时而关闭”

我正在寻找有关如何解决上面报告的错误和“在作业的 CoreEngineExecution 阶段发生意外错误”的提示

脚本的摘录如下所示

[02/20/2021 23:38:14] 启动 Inventor Core Engine 标准输出转储。 [02/20/2021 23:38:14] InventorCoreConsole.exe 信息:0:InventorCoreConsole.exe:25.0.18300.0 [02/20/2021 23:38:14] InventorCoreConsole.exe 信息:0:正在启动 Inventor Server。 [02/20/2021 23:38:15] InventorCoreConsole.exe 信息:0:已启动 Inventor Server 2021.1(内部版本 251245000、245)(25、10、24500、0000) [02/20/2021 23:38:15] InventorCoreConsole.exe 信息:0:加载插件:iLogic Plugin [02/20/2021 23:38:15] InventorCoreConsole.exe 信息:0:激活插件:iLogic Plugin [02/20/2021 23:38:15] iLogic 插件:正在初始化... [02/20/2021 23:38:15] InventorCoreConsole.exe 信息:0:打开文档:T:\Aces\Jobs\xxxxxx\xxxxxx.stp 不可见模式:False [02/20/2021 23:38:31] InventorCoreConsole.exe 信息:0:已打开 [02/20/2021 23:38:31] InventorCoreConsole.exe 信息:0:获取 Inventor 插件。 [02/20/2021 23:38:31] InventorCoreConsole.exe 信息:0:插件:UnfoldAddin [02/20/2021 23:38:31] InventorCoreConsole.exe 信息:0:激活插件:UnfoldAddin [02/20/2021 23:38:31] InventorCoreConsole.exe 信息:0 :: ipPlugin (1.0.0.0):正在初始化... [02/20/2021 23:38:31] InventorCoreConsole.exe 信息:0:在自动化对象上执行“运行”方法。 [02/20/2021 23:39:51] 错误:Inventor Core Engine 核心控制台因超时而关闭。 [02/20/2021 23:39:51] 结束脚本阶段。 [02/20/2021 23:39:51] 错误:在作业的 CoreEngineExecution 阶段发生意外错误。 [02/20/2021 23:39:51] 作业完成,结果为 FailedExecution [02/20/2021 23:39:51] 工作状态:

任何方向都将不胜感激

【问题讨论】:

    标签: autodesk-forge autodesk-designautomation


    【解决方案1】:

    好的,通过消除过程(这需要很长时间),我已经隔离了我的插件中导致此问题的代码。下面的块遍历作为 SheetMetalComponentDefinition 的 scd 的面。如果我取消注释“if (f.Geometry is Plane)”块,我会在 Forge 上收到错误(但不是针对本地发明者)

    不幸的是,我不知道为什么会导致这个问题,但希望这将在未来对某人有所帮助

    foreach (Face f in scd.SurfaceBodies[1].Faces)
            {
                double a = f.Evaluator.Area;
                //PROBLEM
                //if (f.Geometry is Plane)
                //{
                if (a >= maxArea - 0.001)
                {
                    maxArea = a;
                    maxFace2 = maxFace1;
                    maxFace1 = f;
                }
                //}
            }
    

    【讨论】:

      【解决方案2】:

      如果一个进程超过一分钟没有向命令行打印任何内容(以表明它仍然运行良好),它可能会被关闭。

      我认为您的问题是访问 f.Geometry 可能会触发文档的完整加载,这需要一分钟以上,这就是如果您不使用它会超时的原因HeartBeat 对象 - 请参阅 https://forge.autodesk.com/blog/design-automation-inventor-vs-template

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 2013-07-13
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2015-10-04
        相关资源
        最近更新 更多