#14341: After closing Modal dialog, remaining windows are still blocked

15 views
Skip to first unread message

wxTrac

unread,
May 27, 2012, 2:22:59 PM5/27/12
to wx-...@googlegroups.com
Ticket URL: <http://trac.wxwidgets.org/ticket/14341>

#14341: After closing Modal dialog, remaining windows are still blocked
--------------------------+-------------------------------------------------
Reporter: jonthn | Owner:
Type: defect | Status: new
Priority: normal | Milestone: 2.9.4
Component: wxOSX-Cocoa | Version: 2.9-svn
Keywords: dialog modal | Blockedby:
Patch: 0 | Blocking:
--------------------------+-------------------------------------------------
In MKVToolnix there is a main window where you can set-up jobs and queue
them, it's the {{{ mux_dialog }}}

After that you can display the current jobs list {{{ job_dialog }}} which
is a modal dialog. In that window you can start the job which will display
a enhanced progress dialog but not derived from the ProgressDialog class
it's {{{ job_run_dialog }}}

Now if you quit the {{{ job_run_dialog }}} via OK it closes and you can
interact with {{{ job_dialog }}}
But when you close {{{ job_dialog }}} it disappears but doesn't seem to
give back the control to the {{{ mux_dialog }}} or the entries in the
menubar.

I tried making a test case using as a base the samples for Dialog (see
3modal.diff) but I couldn't exactly reproduce the case.

So I patched the source code (by applying patch-debug_modal.diff) and
enabled a debug build, compiled it and packaged binary that can be found
at http://jonthn.free.fr/debug/mkvtoolnix_debug.dmg

If you launch it from command-line something like :

{{{
$
PATH=/Volumes/Mkvtoolnix-5.5.0_2012-05-27-1a22/Mkvtoolnix.app/Contents/MacOS/:$PATH
/Volumes/Mkvtoolnix-5.5.0_2012-05-27-1a22/Mkvtoolnix.app/Contents/MacOS/mmg
}}}

You will see on stderr the destructor getting called except for the one
from job_dialog.

The complete source code is at https://github.com/mbunkus/mkvtoolnix/
Useful files are src/mmg/mux_dialog.cpp and src/mmg/jobs.cpp

The current wxWidgets config as reported from wx-config is :
$ ./bin/wx-config --selected-config
osx_cocoa-unicode-static-2.9
$ ./bin/wx-config --version
2.9.4

Available libraries in this build are:
xrc webview stc richtext ribbon propgrid aui html qa adv core xml net
base


--
Ticket URL: <http://trac.wxwidgets.org/ticket/14341>

wxTrac

unread,
May 28, 2012, 5:19:38 AM5/28/12
to wx-...@googlegroups.com
Ticket URL: <http://trac.wxwidgets.org/ticket/14341#comment:1>

#14341: After closing Modal dialog, remaining windows are still blocked
--------------------------+-------------------------------------------------
Reporter: jonthn | Owner:
Type: defect | Status: new
Priority: normal | Milestone: 2.9.4
Component: wxOSX-Cocoa | Version: 2.9-svn
Keywords: dialog modal | Blockedby:
Patch: 0 | Blocking:
--------------------------+-------------------------------------------------

Comment(by jonthn):

Replying to [ticket:14341 jonthn]:

I made a typo it's {{{mmg_dialog}}} instead of {{{mux_dialog}}}. :(


--
Ticket URL: <http://trac.wxwidgets.org/ticket/14341#comment:1>

wxTrac

unread,
Jun 30, 2012, 6:06:57 AM6/30/12
to wx-...@googlegroups.com
Ticket URL: <http://trac.wxwidgets.org/ticket/14341#comment:2>

#14341: After closing Modal dialog, remaining windows are still blocked
--------------------------+-------------------------------------------------
Reporter: jonthn | Owner:
Type: defect | Status: new
Priority: normal | Milestone: 2.9.4
Component: wxOSX-Cocoa | Version: 2.9-svn
Keywords: dialog modal | Blockedby:
Patch: 0 | Blocking:
--------------------------+-------------------------------------------------

Comment(by vadz):

Does this one still remain after the recent changes?


--
Ticket URL: <http://trac.wxwidgets.org/ticket/14341#comment:2>

wxTrac

unread,
Jul 1, 2012, 8:01:58 AM7/1/12
to wx-...@googlegroups.com
Ticket URL: <http://trac.wxwidgets.org/ticket/14341#comment:3>

#14341: After closing Modal dialog, remaining windows are still blocked
--------------------------+-------------------------------------------------
Reporter: jonthn | Owner:
Type: defect | Status: new
Priority: normal | Milestone: 2.9.4
Component: wxOSX-Cocoa | Version: 2.9-svn
Keywords: dialog modal | Blockedby:
Patch: 0 | Blocking:
--------------------------+-------------------------------------------------

Comment(by jonthn):

I'll check within a day or two and report the result here.


--
Ticket URL: <http://trac.wxwidgets.org/ticket/14341#comment:3>

wxTrac

unread,
Jul 3, 2012, 5:51:45 PM7/3/12
to wx-...@googlegroups.com
Ticket URL: <http://trac.wxwidgets.org/ticket/14341#comment:5>

#14341: After closing Modal dialog, remaining windows are still blocked
--------------------------+-------------------------------------------------
Reporter: jonthn | Owner:
Type: defect | Status: new
Priority: normal | Milestone: 2.9.5
Component: wxOSX-Cocoa | Version: 2.9-svn
Keywords: dialog modal | Blockedby:
Patch: 0 | Blocking:
--------------------------+-------------------------------------------------

Comment(by jonthn):

I just finished testing it and it still remains.
Also I'm not sure it's related but with the latest SVN r71954 the main
window isn't hidden anymore but all the widgets/buttons/... inside are
gone.


--
Ticket URL: <http://trac.wxwidgets.org/ticket/14341#comment:5>

wxTrac

unread,
Nov 4, 2012, 3:50:06 PM11/4/12
to wx-...@googlegroups.com
Ticket URL: <http://trac.wxwidgets.org/ticket/14341#comment:6>

#14341: After closing Modal dialog, remaining windows are still blocked
--------------------------+-------------------------------------------------
Reporter: jonthn | Owner:
Type: defect | Status: infoneeded_new
Priority: normal | Milestone:
Component: wxOSX-Cocoa | Version: 2.9-svn
Keywords: dialog modal | Blockedby:
Patch: 0 | Blocking:
--------------------------+-------------------------------------------------
Changes (by vadz):

* status: new => infoneeded_new
* milestone: 2.9.5 =>


Comment:

Could we please have some simple way of reproducing this? I'm really sorry
but I don't have time to compile and debug a whole new big unknown
project. Please try to reproduce this in the dialogs sample again, it
should be possible -- or at least it should be possible to find what does
your program do differently from the sample and maybe fix/work around the
problem like this.


--
Ticket URL: <http://trac.wxwidgets.org/ticket/14341#comment:6>

wxTrac

unread,
Nov 6, 2012, 3:56:40 PM11/6/12
to wx-...@googlegroups.com
Ticket URL: <http://trac.wxwidgets.org/ticket/14341#comment:7>

#14341: After closing Modal dialog, remaining windows are still blocked
--------------------------+-------------------------------------------------
Reporter: jonthn | Owner:
Type: defect | Status: infoneeded_new
Priority: normal | Milestone:
Component: wxOSX-Cocoa | Version: 2.9-svn
Keywords: dialog modal | Blockedby:
Patch: 0 | Blocking:
--------------------------+-------------------------------------------------

Comment(by jonthn):

I completely understand the difficulty.

I'll try again, but not in a short term, to make a reproducer but as I
already tried I cannot guarantee anything.

Anyway if you want to close this bug until I get more informations that's
fine by me.


--
Ticket URL: <http://trac.wxwidgets.org/ticket/14341#comment:7>

wxTrac

unread,
May 24, 2016, 2:28:49 PM5/24/16
to wx-...@googlegroups.com
#14341: After closing Modal dialog, remaining windows are still blocked
---------------------+---------------------------
Reporter: jonthn | Owner:
Type: defect | Status: new
Priority: normal | Milestone:
Component: wxOSX | Version: stable-latest
Resolution: | Keywords: dialog modal
Blocked By: | Blocking:
Patch: 0 |
---------------------+---------------------------
Changes (by oneeyeman):

* status: infoneeded_new => new


Comment:

Jonthn,
Replying to [comment:7 jonthn]:
> I completely understand the difficulty.
>
> I'll try again, but not in a short term, to make a reproducer but as I
already tried I cannot guarantee anything.
>
> Anyway if you want to close this bug until I get more informations
that's fine by me.
The test case you made is long gone and it looks like the project switched
to use Qt in the meantime.
Unfortunately you never came back to this issue and so it will probably be
closed.
The dialogs sample works fine under the Cocoa build with 10.8.

--
Ticket URL: <http://trac.wxwidgets.org/ticket/14341#comment:8>
Reply all
Reply to author
Forward
0 new messages