Phoenix Crashing with "GC Object already tracked"

Hi,

I can have an error in my program which hangs the complete application with a “GC Object already tracked” error.
Maybe someone can verify the issue and run some tests as well.

You will notice the error when the window becomes unresponsive, doesn’t update any more and Windows tells you Python doesnt respond any more when trying to close it.

In my application the error occurs within about 2-3 minutes when running 3-4 instances at the same time (so I guess its about once in 10 minutes).
I created a small example which also crashes, allthough this one not as often. I had to run about 10 instances for about 20-30 minutes to get the crash - but could take longer as well.

All it does is update an UltimateListCtrl every 0.2 seconds from various threads using wx.CallAfter to synchronize the events to the gui thread.

In my main application I also tried using ListCtrl and DataViewCtrl. The error is always there.
Classic Version of the wx Library works fine, so it seems to be a Phoenix issue only.

I also used another PC to verify the issue with my main application. I also reinstalled Python and all libraries, which didn’t solve the problem as well.
Furthermore I decorated all my functions with a check to verify the function is running in Mainthread - all seems to be fine there.

Currently I am running:
Windows 7
Python 2.7.9
wxPython Phoenix 3.0.3-dev1820 (but also used older Phoenix versions - same result)

Gald about any input on this issue.

Michael

issue.py (4.72 KB)