kicad-developers team mailing list archive
-
kicad-developers team
-
Mailing list archive
-
Message #27268
Re: issues in GAL mode with event manager.
-
To:
<kicad-developers@xxxxxxxxxxxxxxxxxxx>
-
From:
Maciej Sumiński <maciej.suminski@xxxxxxx>
-
Date:
Fri, 20 Jan 2017 09:46:30 +0100
-
Authentication-results:
spf=pass (sender IP is 188.184.36.48) smtp.mailfrom=cern.ch; lists.launchpad.net; dkim=none (message not signed) header.d=none;lists.launchpad.net; dmarc=bestguesspass action=none header.from=cern.ch;
-
In-reply-to:
<ebd1f414-b805-e3f4-de0c-1e791f4155db@wanadoo.fr>
-
Spamdiagnosticmetadata:
NSPM
-
Spamdiagnosticoutput:
1:99
-
User-agent:
Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.6.0
Hi Jean-Pierre,
Thank you for the report. I already see the first issue, the fix is in
progress. I will check the second problem later as well.
Regards,
Orson
On 01/18/2017 08:06 PM, jp charras wrote:
> Hi Orson and Tomasz,
>
> Sorry to give you a bit of work, but I found issues which are outside my knowledge.
>
> Recently, a grid sub-menu was added to the router tool context menu.
> And I found issues when using it.
> But issues are due to the events are managed in GAL mode, not due to this sub-menu.
>
> First (both on W7 and Linux):
> The submenu exists in other context menus, and does not show a problem.
> Especially, the current grid selection appears checked in context menu grid list, but not in the
> ROUTER_TOOL_MENU context menu.
> First time I saw that, I was thinking it is just a cosmetic issue.
> But after more investigations, I am pretty sure this is a much more serious issue.
>
> Second, but only on Windows:
> During investigations, I found a much more annoying behavior in GAL dispatch events.
> This happens only on W7 (32bits for me), not on Linux. (I don't know on OSX)
>
> I saw EventHandler( const wxMenuEvent& aEvent ) living in many menus are called at least once,
> regardless the menuid of the corresponding menu.
>
> I did not tested (obviously) all menus, but I tested:
> CONTEXT_TRACK_WIDTH_MENU::EventHandler
> ZOOM_MENU::EventHandler
> GRID_MENU::EventHandler
> (just add in these methods a call to a wxMessageBox: the result is very interesting)
>
> In context menus where both zoom and grid menu exist, and when you select a new grid or zoom, zoom
> and grid EventHandler are called, regardless the menu clicked, then the right menu is called a
> second time.
> (Therefore the right handler is called twice. Usually, this is not a problem, but...)
>
> Especially, the CONTEXT_TRACK_WIDTH_MENU::EventHandler is called when a new grid is selected from
> the router tool context menu.
> And because the menuid is not expected in this handler, the width of tracks created after this
> selection is very strange.
>
> (I have a fix for this menu in one of my working copy, but the best is to fix the source of issues)
>
>
> Besides:
> in many case, assert is used, instead of wxASSERT in sources.
> At least on Windows, it makes the debug not usable (dbg is just closed, and you have no trace and no
> message).
> And when you have to debug an issue which happens only on Windows, this is a bit annoying.
>
> Thanks.
>
Attachment:
signature.asc
Description: OpenPGP digital signature
Follow ups
References