Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!us.feeder.erje.net!newsfeed.xs4all.nl!newsfeed1a.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.017 X-Spam-Evidence: '*H*': 0.97; '*S*': 0.00; 'subject:ANN': 0.07; 'friday,': 0.09; 'cc:addr:python-list': 0.11; 'python': 0.11; '24,': 0.16; 'code?': 0.16; 'handlers': 0.16; 'marco': 0.16; 'subject:issue': 0.16; 'wxpython': 0.16; 'pushed': 0.16; 'wrote:': 0.18; 'trying': 0.19; 'seems': 0.21; 'cc:addr:python.org': 0.22; 'cc:2**1': 0.23; 'this?': 0.23; 'error': 0.23; 'skip': 0.24; 'skip:" 30': 0.26; 'pass': 0.26; 'post': 0.26; 'header:In-Reply- To:1': 0.27; 'function': 0.29; "i'm": 0.30; 'exceptions': 0.31; 'file': 0.32; '(most': 0.33; 'cc:no real name:2**1': 0.33; 'skip:_ 10': 0.34; 'done.': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'there': 0.35; 'c++': 0.36; 'interact': 0.36; 'method': 0.36; 'application': 0.37; 'problems': 0.38; 'window': 0.38; 'handle': 0.38; 'recent': 0.39; '12,': 0.39; 'users': 0.40; 'how': 0.40; 'completed': 0.61; "you're": 0.61; 'header:Message-Id:1': 0.63; 'happen': 0.63; 'close': 0.67; 'skip:w 30': 0.69; '(none': 0.84 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:cc:message-id:in-reply-to:references:subject :mime-version:content-type; bh=5g5fe1JVZYGjPMyQ5A2IVFUz06CAxPjM6ZhlEFLqAJs=; b=emxwy7mKecEj+SsgDabSo9Bar/g2P+Y6HiOoCMAYTSaSZJUEFqgKCr1FXaQ/mwEgRz wivLkrgIiGc48GrctYkbPaYvqHwj+Tlyjk204wIR+7rgXMwiHps16/IUAXoxO1yhbWsM araRaLOHn3c9txIELE42md3i3PqWuBY/nyJ0YXejjU/gk4JJed9tRWy+KGF2kg/6hnVN sOx/25MxEY3OyL7QpEbbAqRCfu4wVc1ajK7ofu/f92NL5CMe5cZbO47RkeVyzx2vDpOH U58FTSGFiSY/1nJ7ehQsxnS8+smEXhjMymafbnRO4l83tGoaIQVXJ53Jd6o81muNBReb +V8w== X-Received: by 10.50.97.74 with SMTP id dy10mr47289igb.1.1410539592134; Fri, 12 Sep 2014 09:33:12 -0700 (PDT) X-Google-Doc-Id: e92a3611845c1182 X-Google-Web-Client: true Date: Fri, 12 Sep 2014 09:33:09 -0700 (PDT) From: Nathan McCorkle To: wxpython-users@googlegroups.com In-Reply-To: <180ac253-7f29-4157-aed6-38f929e00674@googlegroups.com> References: <5411246B.8060700@alldunn.com> <180ac253-7f29-4157-aed6-38f929e00674@googlegroups.com> Subject: Marco's atexit issue was: Re: ANN: wxPython 3.0.1.1 MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_1332_955845531.1410539589767" X-Google-Token: EMXAzKAFccWpuOH4ju40 X-Google-IP: 134.134.139.78 Cc: python-announce-list@python.org, python-list@python.org X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 83 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1410540330 news.xs4all.nl 2958 [2001:888:2000:d::a6]:40991 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:77815 ------=_Part_1332_955845531.1410539589767 Content-Type: multipart/alternative; boundary="----=_Part_1333_1718159957.1410539589767" ------=_Part_1333_1718159957.1410539589767 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On Friday, September 12, 2014 1:14:41 AM UTC-7, Marco Prosperi wrote: > > > I'm trying to pass my application from wxpython2.9.4 to 3.0.1 but there > seems to be still some of the problems that made me skip wxpy2.9.5: when I > close the main window of my application (windows7-64bit, python 2.7) I get > exceptions like this below (none with wxpy2.9.4). How can I avoid that my > users get this? this happens after my OnExit function is completed > > Marco > > Error in atexit._run_exitfuncs: > Traceback (most recent call last): > File "C:\Programmi\Python27\lib\atexit.py", line 24, in _run_exitfuncs > func(*targs, **kargs) > PyAssertionError: C++ assertion "GetEventHandler() == this" failed at > ..\..\src\ > common\wincmn.cpp(478) in wxWindowBase::~wxWindowBase(): any pushed event > handle > rs must have been removed > Error in sys.exitfunc: > Traceback (most recent call last): > File "C:\Programmi\Python27\lib\atexit.py", line 24, in _run_exitfuncs > func(*targs, **kargs) > wx._core.PyAssertionError: C++ assertion "GetEventHandler() == this" > failed > at . > .\..\src\common\wincmn.cpp(478) in wxWindowBase::~wxWindowBase(): any > pushed eve > nt handlers must have been removed > Post some code? Sounds like you're trying to interact with a wxPython object in a function using atexit.register(AtExit)... which likely is always going to happen after the wx Destroy method is all done. ------=_Part_1333_1718159957.1410539589767 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 7bit


On Friday, September 12, 2014 1:14:41 AM UTC-7, Marco Prosperi wrote:

I'm trying to pass my application from wxpython2.9.4 to 3.0.1 but there
seems to be still some of the problems that made me skip wxpy2.9.5: when I
close the main window of my application (windows7-64bit, python 2.7) I get
exceptions like this below (none with wxpy2.9.4). How can I avoid that my
users get this? this happens after my OnExit function is completed

Marco

Error in atexit._run_exitfuncs:
Traceback (most recent call last):
  File "C:\Programmi\Python27\lib\atexit.py", line 24, in _run_exitfuncs
    func(*targs, **kargs)
PyAssertionError: C++ assertion "GetEventHandler() == this" failed at
..\..\src\
common\wincmn.cpp(478) in wxWindowBase::~wxWindowBase(): any pushed event
handle
rs must have been removed
Error in sys.exitfunc:
Traceback (most recent call last):
  File "C:\Programmi\Python27\lib\atexit.py", line 24, in _run_exitfuncs
    func(*targs, **kargs)
wx._core.PyAssertionError: C++ assertion "GetEventHandler() == this" failed
at .
.\..\src\common\wincmn.cpp(478) in wxWindowBase::~wxWindowBase(): any
pushed eve
nt handlers must have been removed


Post some code? Sounds like you're trying to interact with a wxPython object in a function using atexit.register(AtExit)... which likely is always going to happen after the wx Destroy method is all done.
 
------=_Part_1333_1718159957.1410539589767-- ------=_Part_1332_955845531.1410539589767--