Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!goblin2!goblin.stu.neva.ru!newsfeed.xs4all.nl!newsfeed2a.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.012 X-Spam-Evidence: '*H*': 0.98; '*S*': 0.00; 'source.': 0.07; '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; 'exception': 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; 'code': 0.31; '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; 'nathan': 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=qhTVmm11L+pLFdzbJY+kH2l/0awunPbTyriwSET3lrA=; b=nUTZ1UvTocpYWvHVn2JNxg9WVD8K8d0bHdynX/3GLGqoN3+tvtj0Q1yol1bTqu88OI t0je8lg3Yd8HkylzDN0tVA8bI1t6CtdZu1DyZgI6CNp6r8ck0x5iiM5NdPtUDCYm0L8w mr+UaqcrxU2B9IsmR3mTPK9lsw8JEFXz0iZFtxJ5dJG7Z0UUePusB0qobI4aUqwv/fqB EFEmW+lFJvzyxJipTpCaahFDqGReD6oUHiP5ntVDTCzeVOxECBlgRlupCp7eBqSFg5h2 hkevEiQR7aiFmHDNYqZsWKoCPf1QTPATj72gBLT+oOwWoCzej0t7HNF2YuYT7LTmp6BG /5LA== X-Received: by 10.140.40.85 with SMTP id w79mr335qgw.38.1410783584372; Mon, 15 Sep 2014 05:19:44 -0700 (PDT) X-Google-Doc-Id: e6c3cdaddb1c7e23 X-Google-Web-Client: true Date: Mon, 15 Sep 2014 05:19:43 -0700 (PDT) From: Marco Prosperi To: wxpython-users@googlegroups.com In-Reply-To: <29a07ca1-990c-432a-9693-3dbc5f89f6f4@googlegroups.com> References: <5411246B.8060700@alldunn.com> <180ac253-7f29-4157-aed6-38f929e00674@googlegroups.com> <29a07ca1-990c-432a-9693-3dbc5f89f6f4@googlegroups.com> Subject: Re: Marco's atexit issue was: Re: ANN: wxPython 3.0.1.1 MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_2506_1698739338.1410783583653" X-Google-Token: EN-y26AFYjM9wSAdyw40 X-Google-IP: 94.164.167.17 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: 94 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1410784090 news.xs4all.nl 2949 [2001:888:2000:d::a6]:53633 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:77881 ------=_Part_2506_1698739338.1410783583653 Content-Type: multipart/alternative; boundary="----=_Part_2507_2064450548.1410783583653" ------=_Part_2507_2064450548.1410783583653 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit all the code addressed by the exception is out of my source. I don't have any atexit.register in my code Marco On Friday, September 12, 2014 6:33:09 PM UTC+2, Nathan McCorkle wrote: > > > > 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_2507_2064450548.1410783583653 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 7bit

all the code addressed by the exception is out of my source. I don't have any atexit.register in my code

Marco

On Friday, September 12, 2014 6:33:09 PM UTC+2, Nathan McCorkle wrote:


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_2507_2064450548.1410783583653-- ------=_Part_2506_1698739338.1410783583653--