抱歉,这与此类似,但我无法发表评论:Translate nwd to svf - Internal Failure -1073741829
我有很多从Tekla Structures导出的.IFC文件,我正在尝试上传到Forge,并按照“为查看器准备文件”中的说明进行处理。
大约20%的IFC到SVF云转换失败。这些模型可以使用Navisworks Simulate 2017等其他软件查看。更大的文件大小似乎更有可能失败,但我对18 MB(.IFC)小型号的失败。
第一个POST工作:
***** Response for Translating File to SVF: {
"result": "created",
"urn": "dXJuOmFkc2sub2JqZWN0czpvcy5vYmplY3Q6c3RhdGlzdGljczQtcmFrLTRqbGV2NW8xa3p1OXlhd2ViY3FiYnBuamloZnhueDd1L1RTLU5FVy5kYjFfNTgyODMzRTAtMDAwMi5pZmM",
"registerKeys": [
"29751cb5-6661-4b34-97dc-93554d637d31"
],
"acceptedJobs": {
"output": {
"formats": [
{
"type": "svf",
"views": [
"3d"
]
}
]
}
}
}
在查询GET:urn / manifest端点一段时间后,作业已完成状态失败:
{
"type": "manifest",
"hasThumbnail": "false",
"status": "failed",
"progress": "complete",
"region": "US",
"urn": "dXJuOmFkc2sub2JqZWN0czpvcy5vYmplY3Q6c3RhdGlzdGljczQtcmFrLTRqbGV2NW8xa3p1OXlhd2ViY3FiYnBuamloZnhueDd1L1RTLU5FVy5kYjFfNTgyODMzRTAtMDAwMi5pZmM",
"version": "1.0",
"derivatives": {
"0": {
"name": "LMV Bubble",
"hasThumbnail": "false",
"status": "failed",
"progress": "complete",
"messages": {
"0": {
"type": "error",
"message": "Unrecoverable exit code from extractor: -1073741829",
"code": "TranslationWorker-InternalFailure"
}
},
"outputType": "svf"
}
}
}
问:找出失败原因的最佳方法是什么?它是在这里提供来自POST和GET请求的所有可能的HTTP头垃圾,还是直接与某个样本文件联系?或其他?
编辑:为什么我最后写这个问题可能是由于编程错误造成的。这就是我相信并帮助他人的原因:
- using (FileStream streamReader = new FileStream(path, FileMode.Open))
+ using (BinaryReader reader = new BinaryReader(new FileStream(path, FileMode.Open)))
...
+ reader.BaseStream.Seek((int)start, SeekOrigin.Begin);
- int nb = streamReader.Read(buffer, 0, (int)length);
+ int nb = reader.Read(buffer, 0, (int)length);
我能够成功转换。国际金融公司不是一种二元格式,所以无法弄清楚什么是错的,也许找零,它就逃脱了。