Ticket #3616 (closed: fixed)
Fix on exit crash in VatesSimpleGui
Reported by: | Michael Reuter | Owned by: | Michael Reuter |
---|---|---|---|
Priority: | major | Milestone: | Iteration 30 |
Component: | VATES | Keywords: | |
Cc: | Blocked By: | ||
Blocking: | Tester: | Owen Arnold |
Description
The VatesSimpleGui has a nasty problem of crashing when the program exits. This needs to be fixed.
Change History
comment:3 Changed 9 years ago by Michael Reuter
To test, fire up VatesSimpleGui, load some data (any will do) and exit the program. It should no longer complain about program aborting or terminating abnormally. This is probably best seen on Linux as I don't know if this behavior was ever seen on Windows.
comment:4 Changed 9 years ago by Michael Reuter
- Status changed from accepted to verify
- Resolution set to fixed
comment:5 Changed 9 years ago by Owen Arnold
- Status changed from verify to verifying
- Tester set to Owen Arnold
Note: See
TracTickets for help on using
tickets.
This has been traced to the code used to destroy all of the sources and the view before the view is switched from one to another. There is an issue that the view is made NULL by ParaView (for reasons I don't understand) before the other sources are destroyed. The crash happens when the view is accessed for information about the other sources. It seems that for on exit behavior, the view class destructor should just do nothing and leave well enough alone. However, the view switching still requires this code or else the old view tries to perform the same operations as the current view. A new function call will be created to handle the mode switch destruction.