URL: <http://gna.org/bugs/?23189> Summary: Failure of the relax GUI tests with a segmentation fault - a wxPython 2.8 bug. Project: relax Submitted by: bugman Submitted on: Thu 15 Jan 2015 02:04:19 PM UTC Category: Test suite Specific analysis category: All analyses Priority: 1 - Later Severity: 2 - Minor Status: None Assigned to: None Originator Name: Originator Email: Open/Closed: Open Release: 3.3.4 Discussion Lock: Any Operating System: All systems _______________________________________________________ Details: Due to a bug in wxPython 2.8, triggered by code for the spin viewer GUI window, the GUI tests will sometimes terminate with a 'Segmentation fault'. This only happens when using wxPython 2.8, using 2.9 or higher does not result in segfaults. The following bash command will show the problem: $ rm -f gui_tests.log; for i in {1..10}; do echo Round $i; relax --gui-tests --time -d >> gui_tests.log 2>&1 || echo -e "\n\nCrash with" $? "\n\n\n" >> gui_tests.log; done With wxPython 2.9, I see: Round 1 Round 2 Round 3 Round 4 Round 5 Round 6 Round 7 Round 8 Round 9 Round 10 With wxPython 2.8, I see: Round 1 Round 2 Segmentation fault Round 3 Round 4 Segmentation fault Round 5 Segmentation fault Round 6 Round 7 Segmentation fault Round 8 Segmentation fault Round 9 Segmentation fault Round 10 This can be isolated to a few GUI tests with: $ rm -f gui_tests.log; for i in {1..10}; do echo Round $i; ./relax --gui-tests --time -d General Noe >> gui_tests.log 2>&1 || echo -e "\n\nCrash with" $? "\n\n\n" >> gui_tests.log; done Round 1 Segmentation fault Round 2 Segmentation fault Round 3 Segmentation fault Round 4 Segmentation fault Round 5 Segmentation fault Round 6 Segmentation fault Round 7 Segmentation fault Round 8 Segmentation fault Round 9 Round 10 Segmentation fault After deleting the contents of the update() method in gui/spin_viewer/tree.py: $ rm -f gui_tests.log; for i in {1..10}; do echo Round $i; ./relax --gui-tests --time -d General Noe >> gui_tests.log 2>&1 || echo -e "\n\nCrash with" $? "\n\n\n" >> gui_tests.log; done Round 1 Round 2 Round 3 Round 4 Round 5 Round 6 Round 7 Round 8 Round 9 Round 10 _______________________________________________________ Reply to this item at: <http://gna.org/bugs/?23189> _______________________________________________ Message sent via/by Gna! http://gna.org/