On Thu, 12 Sep 2013 10:51:31 +0200 Dan Gudmundsson wrote:
DG> Hi guys I have a problem with the current versions.
Hello,
Sorry for the lack of reply, I hoped Stefan would answer this as I'm
really not sure about what's going on here. But let's see if we can do
anything about this ourselves...
DG> The erlang port hangs during initialization om mac (snow leopard),
DG> since commit (git) b0fa6efc8
DG> using #ifdef wxABORT_ON_CONFIG_ERROR not just #if as elsewhere
DG>
DG> git-svn-id:
DG>
https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74656c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
FWIW the commit message is incorrect, the changes in this revision don't
have anything to do with wxABORT_ON_CONFIG_ERROR but rather change how
OnInit() is called in wxOSX, see
http://trac.wxwidgets.org/changeset/74656
DG> Backtrace is:
DG>
DG> #0 0x00007fff8a605d7a in mach_msg_trap ()
DG> #1 0x00007fff8a6063ed in mach_msg ()
DG> #2 0x00007fff81bb1902 in __CFRunLoopRun ()
DG> #3 0x00007fff81bb0d8f in CFRunLoopRunSpecific ()
DG> #4 0x00007fff808da7ee in RunCurrentEventLoopInMode ()
DG> #5 0x00007fff808da5f3 in ReceiveNextEventCommon ()
DG> #6 0x00007fff808da4ac in BlockUntilNextEventMatchingListInMode ()
DG> #7 0x00007fff8877eeb2 in _DPSNextEvent ()
DG> #8 0x00007fff8877e801 in -[NSApplication
DG> nextEventMatchingMask:untilDate:inMode:dequeue:] ()
DG> #9 0x00007fff8874468f in -[NSApplication run] ()
DG> #10 0x0000000013c9dfa8 in wxGUIEventLoop::OSXDoRun ()
DG> #11 0x0000000014438ddf in wxCFEventLoop::DoRun ()
DG> #12 0x00000000143777e1 in wxEventLoopBase::Run ()
DG> #13 0x000000001433bfa7 in wxAppConsoleBase::MainLoop ()
DG> #14 0x0000000013c30147 in wxApp::OnRun ()
DG> #15 0x00000000143b5393 in wxEntry ()
DG> #16 0x0000000013181c5b in wxe_main_loop (vpdl=0x11c823f8) at
DG> wxe_impl.cpp:237
DG> #17 0x00000000100259bb in erl_start (argc=<value temporarily unavailable,
DG> due to optimizations>, argv=0x7fff5fbfef20) at beam/erl_init.c:1775
DG>
DG> Took me a day to find that commit, on my old and slow mac mini via a manual
DG> bisect.
DG>
DG> Is it something I have change to make it work or is that bug wxWidgets?
If the previously working code now hangs, I'd say it's bug in wx. But the
trouble is that I have no idea why does it hang... Is your OnInit() called
at all? And what do you do in it that could depend on the order in which
things are done?
Regards,
VZ