MantisBT - ParaView | |||||
| View Issue Details | |||||
| ID | Project | Category | View Status | Date Submitted | Last Update |
| 0013120 | ParaView | (No Category) | public | 2012-04-24 02:57 | 2012-10-29 17:04 |
| Reporter | Zhan | ||||
| Assigned To | Sebastien Jourdain | ||||
| Priority | high | Severity | minor | Reproducibility | have not tried |
| Status | closed | Resolution | fixed | ||
| Platform | OS | OS Version | |||
| Product Version | 3.14 | ||||
| Target Version | Fixed in Version | 3.98.0 | |||
| Project | Release | ||||
| Topic Name | 13120-fix-delete-macro | ||||
| Type | crash | ||||
| Summary | 0013120: Paraview crashed when deleting an added python macro from Macro Menu | ||||
| Description | I have compiled ParaView 3.10.1 and 3.14.0 as 32bit on Windows 7 with MS VS 2008, and I found it would crash when I tried to delete a macro I added. After debugging for some time, I found there's bug in the following codes: for ( ; itr != this ->Internal->DeleteActionMap.constEnd(); ++itr ) { if (itr.value() == action) { QString filename = itr.key(); pqPythonMacroSupervisor::removeStoredMacro(filename); pqPythonMacroSupervisor::removeMacro(filename); } } QMap's removing actions has different behavior on VS Compiler, and removing one element in this loop would cause dangling pointer problem. I have changed the codes to the following(do not increment in for clauses) to fix this bug: for ( ; itr != this->Internal->DeleteActionMap.constEnd();) { if (itr.value() == action) { QString filename = (itr++).key(); pqPythonMacroSupervisor::removeStoredMacro(filename); pqPythonMacroSupervisor::removeMacro(filename); } else { ++itr; } } | ||||
| Steps To Reproduce | |||||
| Additional Information | |||||
| Tags | No tags attached. | ||||
| Relationships | |||||
| Attached Files | |||||
| Issue History | |||||
| Date Modified | Username | Field | Change | ||
| 2012-04-24 02:57 | Zhan | New Issue | |||
| 2012-07-05 14:38 | Lawrence | Note Added: 0028744 | |||
| 2012-07-06 11:59 | Lawrence | Note Added: 0028754 | |||
| 2012-07-19 09:10 | Sebastien Jourdain | Assigned To | => Sebastiennn Jourdain | ||
| 2012-07-19 09:10 | Sebastien Jourdain | Topic Name | => 13120-fix-delete-macro | ||
| 2012-07-19 09:10 | Sebastien Jourdain | Status | backlog => gatekeeper review | ||
| 2012-07-19 09:10 | Sebastien Jourdain | Resolution | open => fixed | ||
| 2012-07-24 10:47 | Utkarsh Ayachit | Fixed in Version | => git-master | ||
| 2012-07-24 10:48 | Utkarsh Ayachit | Status | gatekeeper review => customer review | ||
| 2012-07-24 10:48 | Utkarsh Ayachit | Note Added: 0028898 | |||
| 2012-07-25 14:55 | Alan Scott | Note Added: 0028935 | |||
| 2012-07-25 14:55 | Alan Scott | Status | customer review => closed | ||
| 2012-10-29 17:04 | Utkarsh Ayachit | Fixed in Version | git-master => 3.98.0 | ||
| Notes | |||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||