TangoService_updateTexture 恢复应用程序后定期 returns 旧帧
TangoService_updateTexture periodically returns old frames after resuming an app
当 运行从 tango-c-samples 中获取 rgb_depth_sync 示例,或通过 tango OpenGL ES 2.0 TangoService_updateTexture 接口检索原始纹理的任何自定义代码时,我恢复已经 运行ning 的应用程序时遇到错误。
在缓冲区中定期找到的纹理是应用程序上一个 运行 暂停前的最后一帧。看起来好像来自先前上下文的 OpenGL 纹理缓冲区正在存储并偶尔错误地返回,但是我已经确认所有这些示例中的 glTextures 在应用程序暂停时被删除:
ColorImage::~ColorImage() { glDeleteTextures(1, &texture_id_); }
应用程序本身也成功地与 TangoService 断开连接:
TangoService_disconnect();
有人遇到类似问题吗?它似乎是 Tango API 中的一个错误。我发现的唯一(不是真的)解决方法是完全重启应用程序。有没有人在他们的应用程序中找到解决这个问题的方法,或者 Tango 团队是否意识到这是一个问题?
请注意:我已经知道生命周期 known issue:
The current version of the Project Tango APIs are designed for a single app using Tango Service in the foreground. Multi-app usage is undefined so do not plan on users switching between multiple active Project Tango apps at this time.
但是我不确定暂停后在前台恢复单个应用程序是否再次 运行 是否包含在该问题中,因为应用程序本身不是
解决此特定问题的方法是从 Play 商店更新设备 BSP 和 TangoCore。
当 运行从 tango-c-samples 中获取 rgb_depth_sync 示例,或通过 tango OpenGL ES 2.0 TangoService_updateTexture 接口检索原始纹理的任何自定义代码时,我恢复已经 运行ning 的应用程序时遇到错误。
在缓冲区中定期找到的纹理是应用程序上一个 运行 暂停前的最后一帧。看起来好像来自先前上下文的 OpenGL 纹理缓冲区正在存储并偶尔错误地返回,但是我已经确认所有这些示例中的 glTextures 在应用程序暂停时被删除:
ColorImage::~ColorImage() { glDeleteTextures(1, &texture_id_); }
应用程序本身也成功地与 TangoService 断开连接:
TangoService_disconnect();
有人遇到类似问题吗?它似乎是 Tango API 中的一个错误。我发现的唯一(不是真的)解决方法是完全重启应用程序。有没有人在他们的应用程序中找到解决这个问题的方法,或者 Tango 团队是否意识到这是一个问题?
请注意:我已经知道生命周期 known issue:
The current version of the Project Tango APIs are designed for a single app using Tango Service in the foreground. Multi-app usage is undefined so do not plan on users switching between multiple active Project Tango apps at this time.
但是我不确定暂停后在前台恢复单个应用程序是否再次 运行 是否包含在该问题中,因为应用程序本身不是
解决此特定问题的方法是从 Play 商店更新设备 BSP 和 TangoCore。