Forge查看器(SVF2)未接收所有数据
我有一个Web应用程序,该应用程序将Forge Viewer带有多个SVF2模型。在应用程序中,我需要对象树和几何形状,以便对模型加载后进行进一步的处理。客户经常遇到一个或多个模型,即几何或对象树未加载的情况(应用程序未接收事件,并且数据也无法从模型对象中获得)。大多数情况下,问题都不会发生,但是确实发生了足够频繁的问题,可以成为一个问题。
一旦将给定模型成功加载到给定用户的浏览器中,除非重新翻译模型,否则用户似乎不会再次与同一模型有问题。因此,似乎浏览器缓存有助于防止问题,这似乎指出了网络问题最初将数据至少是问题的一部分。
我创建了一个 repository 有助于重现该问题,其中包括简化版本的版本代码我的应用程序正在使用。
我试图找出下一步并需要一些指导:
- 给定快速,可靠的互联网连接,等待模型完全加载的时间是多少?
- 有没有办法确定模型是否仍在加载或遇到错误并应放弃? model.loader.loading 似乎很有希望,但是即使加载完成后,它也是正确的。
I have a web application that uses the Forge Viewer with multiple SVF2 models. In the application, I need both the object tree and geometry in order to do some further processing of the models once they are loaded. A customer is frequently running into the case where for one or more models, either the geometry or object tree is not loaded (the application is not receiving the events and the data is also not available from the model object). The majority of the time, the issue doesn't occur, but it does happen frequently enough to be a problem.
Once a given model has been successfully loaded in a given user's browser, the user doesn't seem to have issues with that same model again unless the model is re-translated. So, it seems like browser caching helps prevent the issue, which seems to point to network issues getting the data initially as being at least part of the problem.
I have created a repository to help reproduce the issue, which includes a simplified version of the code my application is using.
I'm trying to figure out next steps and need some guidance:
- What is a reasonable amount of time to wait for a model to fully load, given a fast, reliable internet connection?
- Is there a way to determine whether or not a model is still loading or has run into an error and should be abandoned? model.loader.loading seemed promising, but it looks like it is true even after loading is complete.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
不幸的是,我无法将您的测试用例在我这边复制SVF2加载问题。
您可以尝试通过添加额外的查询字符串
?disableIndexedDb = true
来清除查看器库,以检查它是否仍然可重复。例如http:// localhost:8080/?disableIndexedDb = true如果它持续存在,请在Web浏览器的DEV控制台中键入此行,以查看是否有任何加载任务正在待处理或停止,然后将其报告为
forge(dot)helps help (at)autodesk(dot)com
加上模型urn。我们将帮助您将其传递给我们的工程团队以获得见解。Unfortunately, I could not reproduce the svf2 loading issue with your test case on my side.
You could try to clear viewer caches by adding an extra query string
?disableIndexedDb=true
to your viewer app URL to check if it's still reproducible. e.g. http://localhost:8080/?disableIndexedDb=trueIf it persists, type this line in your Web Browser's dev console to see if any loading task is pending or stopped, and then report it to
forge (dot) help (at) autodesk (dot) com
plus your model URN. We will help you pass it to our engineering team for insights.