Re: wxWidgets alert at start (was: Beta 2 start problem on OS X)

From: Jyrki Wahlstedt <jyrki(dot)wahlstedt(at)hut(dot)fi>
To: Dave Page <dpage(at)postgresql(dot)org>
Cc: pgadmin-hackers(at)postgresql(dot)org
Subject: Re: wxWidgets alert at start (was: Beta 2 start problem on OS X)
Date: 2007-08-01 09:44:42
Message-ID: F51F2A7A-4D6B-4923-8190-FD97423691C5@hut.fi
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgadmin-hackers


On 1.8.2007, at 12.31, Dave Page wrote:

> Jyrki Wahlstedt wrote:
>> Well,
>> this much progress. I built debug version of wxWidgets (2.8.4 with
>> separate libraries) and debug version of 1.8.0b2. It crashes, but
>> shows
>> something.
>> I hope the attachment comes through, but it contains the cause of my
>> crash (I hope). For some reason the code fails an assert at arrstr.h
>> line 155 nIndex < m_nCount in Item(): wxArrayString leading to
>> index out
>> bounds situation leading to crash.
>> Of course, this does not mean I can fix it, at least at the
>> moment :-(
>
> Can you attach gdb/xcode at that point and get a backtrace?
>
You mean something like this:
#0 0x90009cd7 in mach_msg_trap ()
#1 0x90009c38 in mach_msg ()
#2 0x9082d2b3 in CFRunLoopRunSpecific ()
#3 0x9082cace in CFRunLoopRunInMode ()
#4 0x92ded8d8 in RunCurrentEventLoopInMode ()
#5 0x92ee2dff in GetNextEventMatchingMask ()
#6 0x92ee2ac0 in WNEInternal ()
#7 0x92ee2a00 in WaitNextEvent ()
#8 0x92f4b7e5 in ModalDialog ()
#9 0x92f4b446 in RunStandardAlert ()
#10 0x106c394e in wxMessageDialog::ShowModal (this=0xbffff110) at ../
src/mac/carbon/msgdlg.cpp:182
#11 0x1067b264 in wxMessageBox (message=(at)0xbffff368,
caption=(at)0xbffff36c, style=538, parent=0x0) at ../src/common/
utilscmn.cpp:1171
#12 0x10727ba8 in wxGUIAppTraitsBase::ShowAssertDialog
(this=0x18d559b0, msg=(at)0xbffff3bc) at ../src/common/appcmn.cpp:599
#13 0x17d232b8 in ShowAssertDialog (szFile=0x30522c, nLine=155,
szFunc=0x18d69f9c, szCond=0x3051e4, szMsg=0x305158,
traits=0x18d559b0) at ../src/common/appbase.cpp:839
#14 0x17d23465 in wxOnAssert (szFile=0x30522c, nLine=155,
szFunc=0x291af8 "Item", szCond=0x3051e4, szMsg=0x305158) at ../src/
common/appbase.cpp:712
#15 0x002e19bd in wxArrayString::Item (this=0xbffff498, nIndex=0)
at ./agent/dlgJob.cpp:154
#16 0x002e2086 in wxArrayString::operator[] (this=0xbffff498,
nIndex=0) at ./agent/dlgSchedule.cpp:161
#17 0x00224ecb in isPgApp (app=(at)0xbffff5f4) at ./utils/misc.cpp:1090
#18 0x00009948 in pgAdmin3::InitPaths (this=0x18d2b990) at ./
pgAdmin3.cpp:766
#19 0x000105ea in pgAdmin3::OnInit (this=0x18d2b990) at ./
pgAdmin3.cpp:206
#20 0x002dfa22 in wxAppConsole::CallOnInit (this=0x18d2b990) at /opt/
local/include/wx-2.8/wx/app.h:76
#21 0x17d68a46 in wxEntry (argc=(at)0x17e60038, argv=0x18d292c0) at ../
src/common/init.cpp:433
#22 0x00007e60 in main (argc=2, argv=0xbffffc3c) at ./pgAdmin3.cpp:104

after 'gdb pgAdmin3 pid'?

!
! Jyrki Wahlstedt
! http://www.wahlstedt.fi/jyrki/
!
! Our life is no dream; but it ought to become one and perhaps will.
! PGP key ID: 0x139CC386 fingerprint: F355 B46F 026C B8C1 89C0 A780
6366 EFD9 139C C386

In response to

Responses

Browse pgadmin-hackers by date

  From Date Subject
Next Message Dave Page 2007-08-01 10:24:29 Re: wxWidgets alert at start
Previous Message Dave Page 2007-08-01 09:31:21 Re: wxWidgets alert at start (was: Beta 2 start problem on OS X)