Bug located in start API after running add_dataset

未关闭
#238 0 条评论 0 个 reaction 已指派 1 人 在 GitHub 查看

维护者通常 6 天内回复

@LKasianAnsys 已经在做这个了。

开始于 2026年11月20日。

  • #239 来自 @LKasianAnsys —— 未关闭

评估

这个 Issue 还没有评估数据。

描述

🐞 Description of the bug

When I run the start API with an input, after running add_dataset first, the new dataset does not appear in the viewer canvas.

📝 Steps to reproduce

In VISOR, in both CLIENT and SERVER mode I see the following behaviour.

  • initialize instance on a port
  • visor-cli instance add tests/files/many_blocks/many_blocks.vtm
  • visor-cli instance start examples/assets/vtk_scene_sphere_l2_b3_r32_v3_c1_z0.vtm

What should happen: the 'start' API is should clear the scene, add the new dataset, then start the viewer/trame server.
What I see: No datasets are rendered in the canvas. The examples/assets/vtk_scene_sphere_l2_b3_r32_v3_c1_z0.vtm dataset correctly shows up in the tree view panel. But no rendered dataset in the canvas.

📦 Installed packages and configuration

Windows, dev environment within the visor repo

🚦 Defines the severity of the bug. In the case of class-3, specific information must be added.

Class 1 - Crash/Major data loss

📦 Support ticket ID

No response

🐞 Found in

No response

🩹 Fixed in

No response

Root cause

Root cause: Because there was already a dataset in the scene before the start API was called, the cross section widget got reset to the origin when the scene is cleared. And when the new dataset was added to the scene, the 'reset' was treated as a deliberately set plane position, rather than adjusting it at the correct edge of bounds for the new dataset, so that it would be visible.

Third Party
  • This bug is introduced by a third party
Released Bug
  • This bug is in a released product
主要语言
Python
星标
3
派生
1
平均合并
5 天 9 小时
30 天内合并 PR
23

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

ansys/Visual-Interactive-Simulation-Object-Renderer 的其他 Issue

查看 ansys/Visual-Interactive-Simulation-Object-Renderer 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。