Opened 8 years ago

Closed 8 years ago

#11805 closed defect (fixed)

wxMac hangs on exit

Reported by: swiss_kinkajou Owned by: csomor
Priority: critical Milestone: 2.9.1
Component: wxOSX Version: stable-latest
Keywords: exit hang Cc:
Blocked By: Blocking:
Patch: no


When I close an application, the window disappear but the application hangs and doesn't quit correctly. At first sight wxWidgets seems to stay in wxEventLoopManual::ProcessEvents

To reproduce:

  • Build latest trunk using options bellow
  • Build minimal sample
  • Start minimal sample
  • Quit minimal sample

Expected: a nice application closure
Observed: The application's window is destroyed but the application isn't stopped.

My configuration is : wxMac svn version [63658] build with following options: --enable-unicode --disable-monolithic --disable-shared --with-osx_cocoa --with-macosx-version-min=10.5

Change History (7)

comment:1 Changed 8 years ago by norfolc

This bug was introduced in [63652]. Setting Pending() to always return true causes infinite loop in src\common\evtloopcmn.cpp at line 150.

comment:2 Changed 8 years ago by csomor

  • Owner set to csomor
  • Status changed from new to accepted

comment:3 Changed 8 years ago by SC

(In [63687]) streamlining OSX event support first step, see #11805, see #11797

comment:4 Changed 8 years ago by csomor

could you please check with the last revision and report back, thanks

comment:5 Changed 8 years ago by SC

(In [63689]) streamlining OSX event support second step, moving pending and idle event handling to runloop-observer, see #11805, see #11797

comment:6 Changed 8 years ago by swiss_kinkajou

I'have tested your code changes (both revisions [63687] and [63689]) and it works as expected. Thanks a lot

comment:7 Changed 8 years ago by csomor

  • Resolution set to fixed
  • Status changed from accepted to closed
Note: See TracTickets for help on using tickets.