Bug located in load state on linux
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 52/100
Hướng nghiên cứu
Reproduce with visor-cli instance start, visor-cli instance load saved1, or deploy/docker/dev/docker-compose.yml, using the saved visor.json and cached dataset. Compare the isolated load_state path with the working add_dataset case; done means loading into an empty Linux or dev-container scene displays the dataset in the canvas without the std::bad_alloc exception.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
🐞 Description of the bug
When loading a state from an empty scene in a Linux environment, the visualizer gets into a broken state, not fixable by a refresh or a new API call.
The viewer does not display the new dataset in the canvas, though the UI elements are responsive and seem to contain the correct info (e.g. the tree view hierarchy and the part properties panel). A refresh does not restore the dataset in the canvas.
The uncaught exception message reads Exception {message: Array(2), stack: 'Error: std::bad_alloc,std::bad_alloc\n at ___thr…tkWebAssembly.wasm:wasm-function[37703]:0x1c82765'}
Notes:
- This behaviour works as expected on Windows. It shows the error behaviour on a Linux system, and on a Docker container on a Windows system.
- Was exposed when a regression test started failing, but upon further investigation that test seems to have been passing despite the canvas being empty on linux.
- The described behaviour on linux has been reproduced on linux tracing back to Mar 2026 (or further) in the old internal repo: e.g. on c34ebb92dbca1cb876612686194be22a92d848b2.
- The bug was found when running
load_stateinto an empty scene, which also loads a dataset. To make sure this doesn't also affectadd_dataset, tested runningadd_datasetfrom an empty scene on the VISOR main branch, in the python3.11 dev docker container. It succeeded. The bug is isolated toload_state.
📝 Steps to reproduce
Two options: Linux environment, or use the dev docker container (on any environment, e.g. Windows). The reproduction for both is the same, except that the way the service is run is different. The two options for running the service are outlined here; the reproduction is in the next section and is the same for both.
1. Running the VISOR service
a. Linux environment
> visor-cli server start
b. VISOR dev docker container
docker compose -f deploy/docker/dev/docker-compose.yml up --build
This will run the VISOR service on the same default port as the CLI command above.
2. Reproduction
a. Prerequisite: save a state from a VISOR scene.
> visor-cli instance start examples/assets/vtk_scene_sphere_l2_b3_r32_v3_c1_z0.vtm
# adjust camera/part properties etc>
> visor-cli instance save saved1
# directory saved1 contains the `visor.json` file and the cached dataset
b. Start a VISOR visualizer with an empty scene, and load the saved state
* visor-cli instance start
* visor-cli instance load saved1
📦 Installed packages and configuration
Tested on the following configurations:
- Windows with docker container
- Linux
🚦 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
No response
Third Party
- This bug is introduced by a third party
Released Bug
- This bug is in a released product
- Ngôn ngữ chính
- Python
- Star
- 1
- Fork
- 0
- Merge trung bình
- 1 ngày 21 giờ
- Pull request đã merge (30 ngày)
- 46
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của ansys/Visual-Interactive-Simulation-Object-Renderer
-
Library updates Đang mởtechnical
ansys/Visual-Interactive-Simulation-Object-Renderer#136 · 1 người được giao ·
-
[User Story]: Fix workflows Đang mởmaintenance
ansys/Visual-Interactive-Simulation-Object-Renderer#131 · 1 người được giao ·
-
Release 1.0.2 Đang mởmaintenance
ansys/Visual-Interactive-Simulation-Object-Renderer#130 · 1 người được giao ·
-
enhancement
ansys/Visual-Interactive-Simulation-Object-Renderer#126 · 1 người được giao ·
-
Documentation Feature Đang mở
ansys/Visual-Interactive-Simulation-Object-Renderer#112 · 1 người được giao ·
Tất cả issue của ansys/Visual-Interactive-Simulation-Object-Renderer
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
anthropics/skills#1811 · 1 bình luận ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
speaches-ai/speaches#678 ·
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
datalayer/mcp-compose#42 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
conda-forge/spacy-feedstock#177 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
UKGovernmentBEIS/inspect_evals#2523 ·