Re: assert "!IsAttached()" failed in SetInvokingWindow()

From: Ashesh Vashi <ashesh(dot)vashi(at)enterprisedb(dot)com>
To: Prasad <prasad(dot)s(at)mail(dot)com>
Cc: Richard PALO <richard(at)netbsd(dot)org>, pgadmin-hackers <pgadmin-hackers(at)postgresql(dot)org>
Subject: Re: assert "!IsAttached()" failed in SetInvokingWindow()
Date: 2015-03-10 05:52:04
Message-ID: CAG7mmowT9Xzo=RghQP0+Bn9VX2joUQvA8RVCyUQbpo78OR=Teg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgadmin-hackers

On Mon, Mar 2, 2015 at 3:44 AM, Prasad <prasad(dot)s(at)mail(dot)com> wrote:

> Hi,
>
> It seems that, wxWidget has added some checks in PopupMenu API. We can
> just directly call DoPopupMenu instead. Find attached patch. Seems harmless
> to directly call DoPopupMenu.
>
The patch seems to resolve the issue.
I've checked-in the patch with some changes (which involves minimal code
change from current).

I was little hesitant to check-in.
Because - I don't know - why did they put the assertion there?
There must be a reason for the same (which I don't know).

The following reference suggests that:
We should create a new menu with same ID in order to resolve the issue.

https://forums.wxwidgets.org/viewtopic.php?f=1&t=39069

--

Thanks & Regards,

Ashesh Vashi
EnterpriseDB INDIA: Enterprise PostgreSQL Company
<http://www.enterprisedb.com>

*http://www.linkedin.com/in/asheshvashi*
<http://www.linkedin.com/in/asheshvashi>

>
> regards,
> Prasad
>
>
> Sent: Saturday, February 28, 2015 at 8:20 AM
> From: "Richard PALO" <richard(at)netbsd(dot)org>
> To: pgadmin-hackers(at)postgresql(dot)org
> Subject: [pgadmin-hackers] assert "!IsAttached()" failed in
> SetInvokingWindow()
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> To continue the 1.20.0 discussion with wxWidgets 3.0, I can easily
> reproduce the following anytime
> (which I don't remember seeing with 2.8):
> > ASSERT INFO:
> > ./src/common/menucmn.cpp(715): assert "!IsAttached()" failed in
> SetInvokingWindow(): menus attached to menu bar can't have invoking window
> >
> > BACKTRACE:
> > [1] ctlMenuButton::DoProcessLeftClick(wxMouseEvent&)
> > [2] pluginButtonMenuFactory::StartDialog(frmMain*, pgObject*)
> > [3] frmMain::OnAction(wxCommandEvent&)
> > [4] main
> > [5] _start
>
> This happens after opening a connection to a server then clicking on the
> puzzle pieces icon
> (execute last used plugin).
>
> Not saying it"s not an older issue, though.
>
> - --
> Richard PALO
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1
> Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/
>
> iQEcBAEBAgAGBQJU8XpDAAoJECAB22fHtp27nn0H/278f4GXy/Uwhs9pbqRS4F84
> JE+7ItNOTgCZm3CJWhqtcgYS9NFgPtV6j4pKwhwilS738Gw23Z92//ykny+18oPY
> ZTHk7UN1lrSNJ+2DLGL/NNyr0HmPcxD8V6MDcE/gcDx3umZwvVSZVjxvcI6FyCed
> 2DzFfjTksAr6INorz5k4hVQBEsjoGkFe084VA5GEkERWDiY6Aj6IqCtAtff/WcbI
> mvDdt6JuEG9oDDShEaRcaCupIXBiAx5eQx6kwP3AkR91Zt7f+1j0IANcUqjn7v/8
> t3rklufbW5/AAqLGO545T2plpOg3gwSqwarcmSyhrU1LY9W0j/slXnK8MhYZ05g=
> =Y3EB
> -----END PGP SIGNATURE-----
>
>
>
> --
> Sent via pgadmin-hackers mailing list (pgadmin-hackers(at)postgresql(dot)org)
> To make changes to your subscription:
>
> http://www.postgresql.org/mailpref/pgadmin-hackers[http://www.postgresql.org/mailpref/pgadmin-hackers]
>
> --
> Sent via pgadmin-hackers mailing list (pgadmin-hackers(at)postgresql(dot)org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgadmin-hackers
>
>

In response to

Browse pgadmin-hackers by date

  From Date Subject
Next Message Ashesh Vashi 2015-03-10 07:09:43 Re: Patch : PGPASSFILE fix
Previous Message Ashesh Vashi 2015-03-10 05:49:07 pgAdmin III commit: Resolved an assertion error opening the plugin popu