View Issue Details [ Jump to Notes ] | [ Print ] | ||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | ||||
0005693 | VTK | (No Category) | public | 2007-09-13 07:03 | 2008-02-19 13:21 | ||||
Reporter | Henrik Westerberg | ||||||||
Assigned To | Jeff Baumes | ||||||||
Priority | normal | Severity | crash | Reproducibility | always | ||||
Status | closed | Resolution | fixed | ||||||
Platform | OS | OS Version | |||||||
Product Version | |||||||||
Target Version | Fixed in Version | ||||||||
Summary | 0005693: Removing actors from the scene creates threding problems with Java/VTK/X | ||||||||
Description | I am creating an interactive GUI for visualising multiple VTK files at one time, in addition different VTK files need to be loaded in and out of the scence. Whenever I use the VTK methods for removing actors (vtkRenderer.RemoveAllViewProps(), or vtkRenderer.RemoveActor()) on the renderer this will randomly cause a asynchorous crash with the X threading system. This can be achieved by using the "Clear" or "Add" button in the GUI. It may take one or two adds and clears but eventually a variation of the following message will appear: Xlib: unexpected async reply (sequence 0x34b1)! Interestingly when I tried to create a simplified version of the program (without the splash) I could not get this behaviour. So perhaps it is something to do with the splash image. I was able to resolve this issue by adding two methods to vtkPanel.java which put locks and unlocks around the problematic methods eg: public void removeProps() { Lock(); ren.RemoveAllViewProps(); UnLock(); } I am uploading my source and an image that is loaded when run. It also necessary to have some vtk polydata files in order bring them in and out of the scene. I am also using a slightly old version of X 6.8.2 vs 7.3 cheers, Henrik | ||||||||
Tags | No tags attached. | ||||||||
Project | |||||||||
Type | |||||||||
Attached Files | VTKViewer.tar.gz [^] (2,326 bytes) 2007-09-13 07:03 | ||||||||
Relationships | |
Relationships |
Notes | |
(0010590) Jeff Baumes (administrator) 2008-02-19 13:21 |
See bug 6292. Now that lock() and unlock() are public, you may use them around any code that causes a render. |
Notes |
Issue History | |||
Date Modified | Username | Field | Change |
2007-09-13 07:03 | Henrik Westerberg | New Issue | |
2007-09-13 07:03 | Henrik Westerberg | File Added: VTKViewer.tar.gz | |
2008-02-06 09:27 | Jeff Baumes | Status | backlog => tabled |
2008-02-06 09:27 | Jeff Baumes | Assigned To | => Jeff Baumes |
2008-02-19 13:21 | Jeff Baumes | Status | tabled => closed |
2008-02-19 13:21 | Jeff Baumes | Note Added: 0010590 | |
2008-02-19 13:21 | Jeff Baumes | Resolution | open => fixed |
2011-06-16 13:11 | Zack Galbreath | Category | => (No Category) |
Issue History |
Copyright © 2000 - 2018 MantisBT Team |