Menu

SVN archive Commit Log


Commit Date  
[r27454] by bugman

Modified the GUI test suite _execute_uf() method.

This user function execution method now calls the user function GUI object Destroy() method to clean
up all GUI objects. This should save memory for GUI objects in the GUI test suite.

2015-02-03 11:17:11 Tree
[r27453] by bugman

Created the gui.uf_objects.Uf_object.Destroy() method.

This will be used to cleanly destroy the user function object.

2015-02-03 11:11:34 Tree
[r27452] by bugman

More memory saving improvements for the GUI test suite tearDown() method.

The clean_up_windows() method now loops through all top level windows (frames, dialogs, panels,
etc.) and calls their Destroy() method.

2015-02-03 09:48:10 Tree
[r27451] by bugman

Simplification of the Dead_uf_pages.test_mol_create GUI test.

The RelaxError cannot be caught from the GUI user function window, therefore the try statement has
been eliminated.

2015-02-03 09:26:56 Tree
[r27450] by bugman

Fix for the GUI test clean_up_windows() method called from tearDown().

The user function window (Wiz_window) must be closed before the user function page (Uf_page), so
that the Wiz_window._handler_close() can still operate the methods of the Uf_page. This avoids a
huge quantity of these errors:

Traceback (most recent call last):
File "/data/relax/relax-trunk/gui/wizards/wiz_objects.py", line 723, in _handler_close
self._pages[self._current_page].on_next()
File "/usr/lib64/python2.7/site-packages/wx-2.8-gtk2-unicode/wx/_core.py", line 14615, in
__getattr__
raise PyDeadObjectError(self.attrStr % self._name)
wx._core.PyDeadObjectError: The C++ part of the Uf_page object has been deleted, attribute access no
longer allowed.

2015-02-03 09:14:45 Tree
[r27449] by bugman

Created a special Destroy() method for the spin viewer window.

This is for greater control of the spin viewer window destruction. First the methods registered
with the observer objects are unregistered, then the children of the spin viewer window are
destroyed, and finally the main spin viewer window is destroyed. This change saves a lot of GUI
resources in the GUI tests (there is a large reduction in 'User Objects' and 'GDI Objects' used on
MS Windows systems, hence an equivalent resource reduction on other operating systems).

2015-02-03 09:07:09 Tree
[r27448] by bugman

Reverted r27325, the General.test_bug_23187_residue_delete_gui GUI test is no longer disabled.

The command was:
svn merge -r27325:r27324 .

The 'Bus Error' on Mac OS X due to this test is no longer an issue, as the spin viewer window is now
destroyed after each GUI test.

.....
r27325 | bugman | 2015-01-27 11:35:39 +0100 (Tue, 27 Jan 2015) | 6 lines
Changed paths:
M /trunk/test_suite/gui_tests/general.py

Disabled the General.test_bug_23187_residue_delete_gui GUI test.

This is essential as a wxPython bug in Mac OS X systems causes this test to trigger a 'Bus Error'
every time the GUI tests are run, killing relax.
.....

2015-02-03 08:46:40 Tree
[r27447] by bugman

Reverted r27243, the skipping of the GUI tests on wxPython 2.8.

The command used was:
svn merge -r27243:r27242 .

This was discussed at http://thread.gmane.org/gmane.science.nmr.relax.devel/7502/focus=7512.

.....
r27243 | bugman | 2015-01-20 15:13:19 +0100 (Tue, 20 Jan 2015) | 6 lines
Changed paths:
M /trunk/test_suite/test_suite_runner.py

The GUI tests are now skipped for wxPython version <= 2.8 due to bugs causing fatal segfaults.

This follows from http://thread.gmane.org/gmane.science.nmr.relax.devel/7502. These wxPython
versions are simply too buggy.
.....

2015-02-03 08:41:12 Tree
[r27446] by bugman

Reverted r27241, the wxPython 2.8 warning.

The command used was:
svn merge -r27241:r27240 .

This was discussed at http://thread.gmane.org/gmane.science.nmr.relax.devel/7502/focus=7512.

.....
r27241 | bugman | 2015-01-20 15:04:18 +0100 (Tue, 20 Jan 2015) | 6 lines
Changed paths:
M /trunk/dep_check.py

Added a RelaxWarning printout to the dep_check module if wxPython 2.8 or less is encountered.

This follows from http://thread.gmane.org/gmane.science.nmr.relax.devel/7502. The warning text is
simply written to STDERR as relax starts.
.....

2015-02-03 08:37:34 Tree
[r27445] by bugman

Large improvement for the GUI test tearDown() clean up method, fixing the tests on wxPython 2.8.

The user function window destruction has been shifted into a new clean_up_windows() method which is
executed via wx.CallAfter() to avoid racing conditions. In addition, the spin viewer window is
destroyed between tests.

The spin viewer window change allows the GUI tests to pass on wxPython 2.8 again. This also allows
the GUI tests to progress much further on Mac OS X systems before they crash again for some other
reason. This could simply be hiding a problem in the spin viewer window. However it is likely to
be a racing problem only triggered by the super fast speed of the GUI tests and a normal user would
never be able to operate the GUI on the millisecond timescale and hence may never see it.

2015-02-03 08:20:10 Tree
Older >
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.