Search found 72 matches

by n9yty
01 Nov 2010, 14:47
Forum: Scan Tailor
Topic: Mac problem - contextual menus cause crash
Replies: 30
Views: 29460

Re: Mac problem - contextual menus cause crash

Very unfortunate situation. There seems to be no clean fix, because the expectations of ScanTailor do not meet the constraints of the QMenu class with regard to signals and the order they are presented across all supported platforms. I still do not understand the assumptions about the connection typ...
by n9yty
01 Nov 2010, 11:31
Forum: Scan Tailor
Topic: Mac problem - contextual menus cause crash
Replies: 30
Views: 29460

Re: Mac problem - contextual menus cause crash

If anyone on the Mac would like to try this and verify that it fixes the problem for them, here is the location of a 0.9.9.2 build with the mac fixes... updated with keystroke fix. http://www.4shared.com/file/-BwOoBST/ScanTailor-0992-macfix.html MD5 (ScanTailor-0.9.9.2-macfix.dmg) = 2f716aa649a3f850...
by n9yty
29 Oct 2010, 13:19
Forum: Scan Tailor
Topic: Mac problem - contextual menus cause crash
Replies: 30
Views: 29460

Re: Mac problem - contextual menus cause crash

Keep in mind that when you override event handlers, you generally have to call their base versions Right, I have that, there is special care needed to handle knowing when to send the "didHide" kind of signal with respect to mouse events/etc... But I have it working now, sending you the pa...
by n9yty
29 Oct 2010, 11:06
Forum: Scan Tailor
Topic: Mac problem - contextual menus cause crash
Replies: 30
Views: 29460

Re: Mac problem - contextual menus cause crash

We have here a design issue with the QMenu class. What I need is a signal / event like "dismissed without activating any items". Not only they don't provide such an event, but they also don't have a "finalizer"-type of event, where I would be able check if any items were activat...
by n9yty
28 Oct 2010, 10:38
Forum: Scan Tailor
Topic: Mac problem - contextual menus cause crash
Replies: 30
Views: 29460

Re: Mac problem - contextual menus cause crash

On my system, menuAboutToHide() is always called BEFORE menuItemTriggered(). Quite strange. menuAboutToHide() was specifically put on a queued connection to make it go after menuItemTriggered() even if Qt dispatches them in the other order. If your observation is correct, the only hope to handle th...
by n9yty
28 Oct 2010, 09:04
Forum: Scan Tailor
Topic: Mac problem - contextual menus cause crash
Replies: 30
Views: 29460

Re: Mac problem - contextual menus cause crash

You said you can reproduce the crash without clicking any menu items, in which scenario menuItemTriggered() will not be called at all. I suggest you concentrate on this scenario, as it's the most simple one. If you do click a menu item, menuAboutToHide() will either be called after menuItemTriggere...
by n9yty
27 Oct 2010, 22:39
Forum: Scan Tailor
Topic: Mac problem - contextual menus cause crash
Replies: 30
Views: 29460

Re: Mac problem - contextual menus cause crash

gdb steps.... This may or may not be useful. I set the breakpoint at menuAboutToHide(). One is with just invoking the zone menu and the letting it go away. The other is with invoking the zone menu and selecting an option. [UPDATE: I also had a breakpoint set at ZoneContextMenuInteraction::menuItemTr...
by n9yty
27 Oct 2010, 20:02
Forum: Scan Tailor
Topic: Mac problem - contextual menus cause crash
Replies: 30
Views: 29460

Re: Mac problem - contextual menus cause crash

That change makes no difference in behavior here. Just to be sure, this is where/how I inserted it: ZoneContextMenuInteraction::~ZoneContextMenuInteraction() { m_ptrMenu.release()->deleteLater(); } As to the timing of the signals, is the hide or trigger supposed to fire first? If I am in the debugge...
by n9yty
27 Oct 2010, 15:02
Forum: Scan Tailor
Topic: Mac problem - contextual menus cause crash
Replies: 30
Views: 29460

Re: Mac problem - contextual menus cause crash

Okay, so I started all over back to the original build configuration for i386/ppc Tiger-10.4 builds. Confirmed via gdb that menuAboutToHide() is called before menuItemTriggered(). [UPDATE: The crashes described here with respect to bringing up a menu without selecting items were done after I had bee...
by n9yty
27 Oct 2010, 12:30
Forum: Scan Tailor
Topic: Mac problem - contextual menus cause crash
Replies: 30
Views: 29460

Re: Mac problem - contextual menus cause crash

Tulon, thank you, I know all the pieces are there, and documentation abounds, but it gets harder year after year to pack new information into my head and thought processes. I am largely just self-documenting here, so don't feel that you have to respond unless you have insight. :) At any rate, trying...