The assert seems to crash the wx-thread