【问题标题】:Error: Application revitcoreconsole.exe exits with code -19088744 which indicates an error错误:应用程序 revitcoreconsole.exe 以代码 -19088744 退出,表示错误
【发布时间】:2020-11-17 13:51:39
【问题描述】:

我正在开发 Revit Design Automation 应用程序。我正在按照教程中提供的说明进行操作。当我提交我的工作项目时,作业会因“failedInstructions”错误而陷入困境。

错误:应用程序 revitcoreconsole.exe 退出,代码 -19088744 表示错误。

我做错了什么?

这是完整的报告:

[07/28/2020 06:34:10] Job information:
"CommandLine":[
  "[$(engine.path)\\\\revitcoreconsole.exe /i $(args[rvtFile].path) /al $(appbundles[AppliedVR4].path)]"
]
"Settings":{
  "dasreportfaileduploadoptional": {
    "value": "true",
    "isEnvironmentVariable": true
  }
}
"Id":"e72a71b50f194cc89fb4dd4fda928c67"
"ActivityId":"AppliedVR4.AppliedVR4Activity2+test"
"Engine.Id":"Autodesk.Revit!35"
"Apps": [
"App.Id":"AppliedVR4.AppliedVR4!31"
]
"BoundArguments":{
  "rvtFile": {
    "localName": "input.rvt",
    "url": "https://developer.api.autodesk.com/Masked:+lo4+1yZ0UHG78KXi8qaxkGWDuw="
  },
  "result": {
    "localName": "result.avr",
    "url": "https://developer.api.autodesk.com/Masked:D9DBQayMQvFwzTKzcVtWoD1ON8U=",
    "verb": "put"
  },
  "onProgress": {
    "ondemand": true,
    "url": "https://wlnr5sjl3a.execute-api.us-east-1.amazonaws.com/Masked:UK/Z3b5X3xUWxXiH6C9r9i9UlRU=",
    "headers": {
      "Content-Type": "application/json",
      "x-das-authorize": "awssigv4(us-east-1)",
      "x-ads-token-data": "{\"access_token\":{\"client_id\":\"4FyUuuVl4pVvukCOYHLNiPVnAaz7uJfk\"},\"scope\":\"code:all data:write data:read bucket:create bucket:delete\",\"expires_in\":3578,\"client_id\":\"4FyUuuVl4pVvukCOYHLNiPVnAaz7uJfk\"}"
    },
    "verb": "put"
  }
}
"Quotas":{
  "limitProcessingTimeSec": 10800,
  "limitTotalUncompressedAppsSizeInMB": 5000
}
[07/28/2020 06:34:10] Starting work item e72a71b50f194cc89fb4dd4fda928c67
[07/28/2020 06:34:10] Start download phase.
[07/28/2020 06:34:10] Start downloading input: verb - 'GET', url - 'https://developer.api.autodesk.com/oss/v2/signedresources/49f68e94-a25e-4606-8675-a7a088adfefa?region=US'
[07/28/2020 06:34:11] '17813504' bytes have been written to T:\Aces\Jobs\e72a71b50f194cc89fb4dd4fda928c67\input.rvt.
[07/28/2020 06:34:11] End downloading file 'https://developer.api.autodesk.com/oss/v2/signedresources/49f68e94-a25e-4606-8675-a7a088adfefa?region=US'.
[07/28/2020 06:34:11] End download phase successfully.
[07/28/2020 06:34:11] Start preparing script and command line parameters.
[07/28/2020 06:34:11] Command line: [ /i T:\Aces\Jobs\e72a71b50f194cc89fb4dd4fda928c67\input.rvt /al T:\Aces\Applications\5fc5cf84be5cde0ff6e5d6c44c1d0505.AppliedVR4.AppliedVR4[31].package]]
[07/28/2020 06:34:11] Identified standalone application at [T:\Aces\AcesRoot\20.0\coreEngine\Exe\\revitcoreconsole.exe.
[07/28/2020 06:34:11] End preparing script and command line parameters.
[07/28/2020 06:34:11] Start script phase.
[07/28/2020 06:34:11] ### Command line arguments: /isolate HKEY_CURRENT_USER\SOFTWARE\AppDataLow\Software\Autodesk\CoreUser\WorkItem_e72a71b50f194cc89fb4dd4fda928c67 "T:\Aces\Jobs\e72a71b50f194cc89fb4dd4fda928c67\userdata" /exe "[T:\Aces\AcesRoot\20.0\coreEngine\Exe\\revitcoreconsole.exe"  /i T:\Aces\Jobs\e72a71b50f194cc89fb4dd4fda928c67\input.rvt /al T:\Aces\Applications\5fc5cf84be5cde0ff6e5d6c44c1d0505.AppliedVR4.AppliedVR4[31].package].
[07/28/2020 06:34:11] Start application revitcoreconsole.exe standard output dump.
[07/28/2020 06:34:12] End application revitcoreconsole.exe standard output dump.
[07/28/2020 06:34:12] Error: Application revitcoreconsole.exe exits with code -19088744 which indicates an error.
[07/28/2020 06:34:12] End script phase.
[07/28/2020 06:34:12] Error: An unexpected error happened during phase CoreEngineExecution of job.
[07/28/2020 06:34:12] Job finished with result FailedExecution
[07/28/2020 06:34:12] Job Status:
{
  "status": "failedInstructions",
  "reportUrl": "https://dasprod-store.s3.amazonaws.com/workItem/AppliedVR4/e72a71b50f194cc89fb4dd4fda928c67/report.txt?AWSAccessKeyId=ASIATGVJZKM3PIAYPVMQ&Expires=1595932450&x-amz-security-token=IQoJb3JpZ2luX2VjEC8aCXVzLWVhc3QtMSJHMEUCIQDVcCLPyau%2Fbcq8MGD%2BLTdbN3mnKZXRQ5EOrW1k%2B%2BaLjgIgAIxbRh3l40SoodftgUv6j62hzfyuXPn6S5ElUAb%2Fck4q3gEI5%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2FARACGgwyMjA0NzMxNTIzMTAiDH%2F%2Bdc0eHW5n78VW4yqyAbcOas%2F0JxYHwV2HJzN5mtilja0P0vCveCfxRPo2mTE%2BoIpt%2Fu6X8KJPesmZEyb80lDmwh23slylXMKeDr2Sgd92psGERJWxNRy1crMXuO3l6nZ8QHE1UrA%2BPZJmcThaPiop9PkjEBdIHvzgInq1L%2Fhi0364EG2njpdYs%2FLbettxserXm5sJGw5BjFWoIzO9Vr9Sv8hN6tq%2FWaDEWZgTfjgpWY93im5jzHANVHJNTug8I%2BEwpYH%2F%2BAU64AEaJmd6uLAuGMu3xv8v3l8bo38Vzg9yjYlswcT9z482TDE4%2FrAakmfOh7P6wPOqA5Tw8sW020H6ojghuUTXWufsLm7FcJxTLQyKqYIThW79rkAyRUdPoaqf5SObhmxAhFmmdn%2BWqidzpz%2B6Y5w97C9sH5HRWrlPG89Ygq2StAADPZvy%2FFhpH1Fqayk4UtV74%2FRuwX0T32GT50AjdgkHUgz%2ByNVcBGtti5%2B%2B4i%2FKbHUecWK%2BTKpDhR16ctCkOr%2FIehf2rcaVzgYTxfTRbSsdvKLkm%2F%2F1pY%2BJFLwQo0EzQ7ltlw%3D%3D&Signature=U8uySOmxvoFgNdu32AoF2DuEmRk%3D",
  "stats": {
    "timeQueued": "2020-07-28T06:34:09.8535659Z",
    "timeDownloadStarted": "2020-07-28T06:34:10.0948438Z",
    "timeInstructionsStarted": "2020-07-28T06:34:11.1278192Z",
    "timeInstructionsEnded": "2020-07-28T06:34:12.3083113Z",
    "bytesDownloaded": 17813504
  },
  "id": "e72a71b50f194cc89fb4dd4fda928c67"
}

【问题讨论】:

  • 不幸的是,这并没有提供太多关于您的工作项可能失败的原因的信息。我首先按照answer 将一些调试日志添加到代码中
  • 我建议先在本地测试插件,使用tool。让我们知道应用程序是否在 Cloud 上一直失败
  • 我们可以在本地运行和调试 Forge 插件,它按预期工作。我们还添加了一些日志记录,但似乎根本没有调用 OnStartUp。此外,我们过去能够在 Forge 上运行插件而没有问题,但不确定 Forge 端是否存在内部更改导致此问题。

标签: autodesk-designautomation


【解决方案1】:

我们可以在本地运行和调试 Forge 插件,它按预期工作。我们还添加了一些日志记录,但似乎根本没有调用 OnStartUp。另外,我们以前可以在 Forge 上运行插件而没有问题,不确定 Forge 端是否有内部更改导致此问题

我先从为什么OnStartup 没有被调用。在这些可能性中:

  • 评论中有错字(我猜代码是正确的)。但是确认函数名是OnStartup()
  • 确认捆绑插件文件中提供的<FullClassName> 标记在assembly code 中正确解析。
  • 确认程序集文件中提供的<Assembly>标签对应于有效程序集dll的相对路径。
  • 确保程序集 dll 的所有依赖项也已捆绑 在应用程序包中。

查看示例appbundle。还可以在 answer 中查看围绕此类问题的一些常见解决方案。

**

更新

**

事实证明,这是在 Activity 定义中错误地设置了 commandLine 字段,并且服务无法正常处理此问题。 OP 的Activity 定义设置如下:

"commandLine": [
  "[$(engine.path)/revitcoreconsole.exe /i \"$(args[MyFile].path)\" /al \"$(appbundles[MyBundle].path)\"]"
],

正确的定义方式是:

"commandLine": [
  "$(engine.path)/revitcoreconsole.exe /i \"$(args[MyFile].path)\" /al \"$(appbundles[MyBundle].path)\""
],

commandLinestring 定义中多余的开始和结束方括号导致了问题。错误的命令行以 [$(engine.path)/revitcoreconsole.exe 开头,但应该是 $(engine.path)/revitcoreconsole.exe

Activity.commandLine 字段本身就是要在工作线程上运行的命令数组(又名集合)。这些命令行指令字符串中的每一个都需要在其中引用的变量被展开后是一个有效的命令。

也就是说,大多数 Revit 设计自动化可能只需要这两个定义中的一个,每个定义都有一个命令行指令。区别在于是否有要打开的输入文件。

选项1(打开与输入参数MyFile对应的文件)

"commandLine": [
  "$(engine.path)/revitcoreconsole.exe /i \"$(args[MyFile].path)\" /al \"$(appbundles[MyBundle].path)\""
],

选项 2(没有要打开的文档)

"commandLine": [
  "$(engine.path)/revitcoreconsole.exe /al \"$(appbundles[MyBundle].path)\""
],

【讨论】:

    猜你喜欢
    • 2021-03-11
    • 2017-11-20
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-11-14
    • 2014-04-25
    相关资源
    最近更新 更多