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

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

From
Richard PALO
Date:
-----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
haveinvoking 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-----

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

From
Richard PALO
Date:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Le 28/02/15 09:20, Richard PALO a écrit :
>
> Not saying it"s not an older issue, though.
>
BTW, I'm also seeing at startup each time:
> richard@omnis:/home/richard/src/pkgsrc/databases/pgadmin3$ pgadmin3
> 09:36:56: Debug: Adding duplicate image handler for 'PNG file'
  ^^^^^^^^
 <timestamp>
- --
Richard PALO

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQEcBAEBAgAGBQJU8X6HAAoJECAB22fHtp27jZIIAJZq3zi5eVs+6fS0Obg7+2QH
LLucxFHyFjXjuCISia7PIMADKjmKPsKjaqy9ATZWQN8mhxgC4wGvPWcNSb639I7+
bXXxmnL2/FFlUYa9EncrBW3ZDCtwcuR6HpOg19000H11aasZos8RDRKTWA9Z/lRw
NlSjGyMHj2LZvfwS4VH50ff0HlUn7bVFPZ8LYkZ4ppzHf7fUD2Prl8X4h/p+7SlU
DCyvKRyKwwoLgzLeK3itBgWnXw4HXaRmcWGjCkmUUH0KgH+EdrEU10yFtKkAFdTa
H+CmVX5otJCdoeYMz9z0ALI0Z0YKSHPpbsuH9GQrzaR/FRHsV4gzYreJbbn3XZE=
=zVUW
-----END PGP SIGNATURE-----


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

From
Prasad
Date:
Hi,

It seems that, wxWidget has added some checks in PopupMenu API. We can just directly call DoPopupMenu instead. Find
attachedpatch. Seems harmless to directly call DoPopupMenu. 
 
regards,
Prasad
 

Sent: Saturday, February 28, 2015 at 8:20 AM
From: "Richard PALO" <richard@netbsd.org>
To: pgadmin-hackers@postgresql.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
haveinvoking 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@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgadmin-hackers[http://www.postgresql.org/mailpref/pgadmin-hackers]

Attachment

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

From
Dave Page
Date:
Ashesh; can you please get this reviewed and applied if it looks OK?

Thanks.

On Sun, Mar 1, 2015 at 10:14 PM, Prasad <prasad.s@mail.com> wrote:
> Hi,
>
> It seems that, wxWidget has added some checks in PopupMenu API. We can just directly call DoPopupMenu instead. Find
attachedpatch. Seems harmless to directly call DoPopupMenu. 
>
> regards,
> Prasad
>
>
> Sent: Saturday, February 28, 2015 at 8:20 AM
> From: "Richard PALO" <richard@netbsd.org>
> To: pgadmin-hackers@postgresql.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'thave 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@postgresql.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@postgresql.org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgadmin-hackers
>



--
Dave Page
Blog: http://pgsnake.blogspot.com
Twitter: @pgsnake

EnterpriseDB UK: http://www.enterprisedb.com
The Enterprise PostgreSQL Company


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

From
Ashesh Vashi
Date:
Sure

--

Thanks & Regards,

Ashesh Vashi
EnterpriseDB INDIA: Enterprise PostgreSQL Company


http://www.linkedin.com/in/asheshvashi


On Tue, Mar 3, 2015 at 2:01 PM, Dave Page <dpage@pgadmin.org> wrote:
Ashesh; can you please get this reviewed and applied if it looks OK?

Thanks.

On Sun, Mar 1, 2015 at 10:14 PM, Prasad <prasad.s@mail.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.
>
> regards,
> Prasad
>
>
> Sent: Saturday, February 28, 2015 at 8:20 AM
> From: "Richard PALO" <richard@netbsd.org>
> To: pgadmin-hackers@postgresql.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@postgresql.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@postgresql.org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgadmin-hackers
>



--
Dave Page
Blog: http://pgsnake.blogspot.com
Twitter: @pgsnake

EnterpriseDB UK: http://www.enterprisedb.com
The Enterprise PostgreSQL Company


--
Sent via pgadmin-hackers mailing list (pgadmin-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgadmin-hackers

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

From
Richard PALO
Date:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Le 01/03/15 23:14, Prasad a écrit :
> Hi,
>
> It seems that, wxWidget has added some checks in PopupMenu API. We can just directly call DoPopupMenu instead. Find
attachedpatch. Seems harmless to directly call DoPopupMenu. 
>
> regards,
> Prasad
>

This patch seems to get over the initial issue encountered. +1

> richard@omnis:/home/richard/src/pkgsrc/databases/pgadmin3$ pgadmin3
> 09:55:32: Debug: Adding duplicate image handler for 'PNG file'
> execvp(/usr/bin/xterm, -e, /opt/local/bin/psql, --host, 192.168.0.6, --port, 5432, --username, postgres, postgres)
failedwith error 2! 
> richard@omnis:/home/richard/src/pkgsrc/databases/pgadmin3$


- --
Richard PALO

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQEcBAEBAgAGBQJU/A92AAoJECAB22fHtp27dksIAILM4wbJ1yGAfJuJwdDoxNjd
cCq/DZjSzLjKoUjMR7V0298BAkp3NcYjxhImMOkwbkOrh4a1h4LkVsJrXRqyqx/u
caLmHcVIlecRXzpJiETNKXxWsx3FhOSKTAg5hm+fPb9k9Nyfio/Of9ImldNHGMET
rmHvr78jw11cxFjxcrPZQO4rSCeYJyNtZD0PTWJnJce5u7eaqTXuZSodvP2quSnG
BQ0pUVDeYpb8tbbtd/pDHQWAUYB83+Cz6tOC+57nEKrCGNXsz8SC5z8Tsze7ymZq
UDrvjVgOTvyxrb+eo9gRGuKY4TPOy9DkhR/3MPiV/mhcCMqItgwWONHmNZSBgQQ=
=aD3Q
-----END PGP SIGNATURE-----


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

From
Ashesh Vashi
Date:
On Mon, Mar 2, 2015 at 3:44 AM, Prasad <prasad.s@mail.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.linkedin.com/in/asheshvashi

 
regards,
Prasad
 

Sent: Saturday, February 28, 2015 at 8:20 AM
From: "Richard PALO" <richard@netbsd.org>
To: pgadmin-hackers@postgresql.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@postgresql.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@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgadmin-hackers