View Issue Details

IDProjectCategoryView StatusLast Update
0005271MMW v4Main Panel/Toolbars/Menuspublic2015-02-05 15:13
Reporterstephen_plattAssigned To 
PriorityhighSeverityminorReproducibilityalways
Status feedbackResolutionreopened 
Product Version3.1 
Target Version4.0.7Fixed in Version4.0 
Summary0005271: Application Focus Problem in skinned MediaMonkey
Description- open Tools /Options dialog box;
- switch to some another program, i.e. Notepad;
- click somewhere on the main MM window (not on the Options dialog box)

In skinned MediaMonkey, notepad loses focus but MediaMonkey does not regain focus.
In nonskinned, notepad loses focus and MediaMonkey Options regains focus.

Skinned MM behave the same as the non-skinned in this regard.
Additional Informationhttp://www.mediamonkey.com/forum/viewtopic.php?f=6&t=36612
http://www.mediamonkey.com/forum/viewtopic.php?f=6&t=36335
http://www.mediamonkey.com/forum/viewtopic.php?f=6&t=37944
http://www.mediamonkey.com/forum/viewtopic.php?f=6&t=38398
http://www.mediamonkey.com/forum/viewtopic.php?f=6&t=38769
http://www.mediamonkey.com/forum/viewtopic.php?f=6&t=39230
TagsNo tags attached.
Fixed in build1392

Relationships

related to 0003703 closedpetr MediaMonkey focus problem: pressing cancel in modal dialogs minimizes to taskbar 
related to 0007993 closedpetr Focus problem: Scripts appear behind MM 
related to 0005269 closedpetr Active control in skinned MM is not remembered when removing focus 
related to 0008038 new Displaying of context menu -> lost active state of window 
related to 0008144 newpetr Minimizes to collapsed window instead of to taskbar 
related to 0008028 closedpetr Window Controls in MM title bar stop functioning in some cases 
related to 0006395 new Modal Dialog Focus Problem: Rip CD Dialog 
related to 0011040 feedbackLudek Rip dialog fails to come into focus --> Options dialogs fail to come into focus 

Activities

rusty

2009-05-07 03:23

administrator   ~0017721

Last edited: 2009-05-07 12:33

This problem is also manifesting itself in another way. Intellitype drivers are incorrectly recognizing MM's state, causing keyboard multimedia keys to fail. For details see:
http://www.mediamonkey.com/forum/viewtopic.php?f=6&t=37882&st=0&sk=t&sd=a&start=15

Of interest is the fact that this problem occurs only with 3.1 and not 3.0.

Edited by Ludek:
I think this is unrelated, see the forum link for more details.

petr

2009-05-08 01:03

developer   ~0017738

Fixed in 1245

rusty

2009-05-15 10:43

administrator   ~0017876

Tested in 1246 and the originally reported issue is still not fixed. i.e.
- open Tools /Options dialog box;
- switch to some another program, i.e. Notepad;
- click somewhere on the main MM window (not on the Options dialog box)
-->MM options window doesn't regain focus.

petr

2009-05-15 19:20

developer   ~0017890

Can't reproduce with 1246.

peke

2009-05-18 03:38

developer   ~0017904

Tested with XP and Win 7 x64.

Can't Replicate.

rusty

2009-05-20 21:14

administrator   ~0017932

Verified 1247 on XP.

zvezdan

2009-07-12 06:56

updater   ~0018564

You are not fixed this completely, but only for modeless dialog boxes - program with displayed some modal dialog box still has same problem. Steps to reproduce a problem:
1. Open Edit / Properties dialog box;
2. switch to some another program, e.g. Notepad;
3. click to the main window of the MediaMonkey -> MM is not activated.

Steps to reproduce correct behavior:
1. Open View / Properties dialog box;
2. switch to some another program, e.g. Notepad;
3. click to the main window of the MediaMonkey -> MM is activated.

zvezdan

2009-08-12 07:20

updater   ~0018627

Sorry, it is not manifesting always, but only if there is multiple instances of program, even if some instance left after program crush, as I explained in the Forum thread: http://www.mediamonkey.com/forum/viewtopic.php?p=214146#p214146

OK, here is a way to reproduce a problem.
- Open the Options dialog box and turn off the "Allow just one instance of MediaMonkey" option.
- Start another instance of program.
- In a new instance open some modal dialog box (Edit / Propeties or Tools / Options) and try same thing with Notepad as before -> MM will not regain focus if you click on the main window.
- If you try same thing in a first instance -> everything works correctly.

I tried with opened 3 instances -> only the first instance works correctly.

rusty

2009-08-27 17:18

administrator   ~0018699

Note: Another manifestation of this problem is that global hotkeys work just for first instance of MM and when a user closes the first instance, global hotkeys stop working entirely (user need close up all MM instances and then restart MM to get it to work).

According to Petr, the problem is that key and mouse hooks are trying to find MM's internal window (this window is used for communication between MM and other plugins, "Play with" explorer menu etc.) ... but they only find the window of the first instance of the MM even when other instance is trying to hook keyboard/mouse.

petr

2009-08-27 18:30

developer   ~0018700

Last edited: 2009-08-27 18:31

This issue isn't that critical and could be high regression risk. Problem is only when more than one instance of MM is running, so Jiri and i agreed this can be postponed.

zvezdan

2009-08-27 23:30

updater   ~0018701

I don't know what kind of regression you are talking, but I have two questions:
1. How non-skinned program doesn't have this problem?
2. How modeless dialog boxes don't have this problem?

petr

2009-08-28 09:33

developer   ~0018705

It's affecting just skinned version because of skinning engine we're using.

rusty

2010-12-21 15:42

administrator   ~0022012

There's a major focus problem with MM4 build 1337:
1) Clean install, startup scan.
--> Upon completion of the startup scan, dialog appears indicating status of the scan (e.g. 'xx files scanned...').
2) Click MM main panel
--> Dialog is hidden
3) Close MM
--> "There are background processes running. Terminate them?"

It's impossible to get to get to the Scan Status Dialog, without closing MM by terminating background processes (I assume the background process is related to the fact that that dialog is open).

petr

2011-02-14 19:48

developer   ~0023078

Can't reproduce in 1348

stephen_platt

2011-02-15 22:41

developer   ~0023118

verified 1349

zvezdan

2011-06-15 14:42

updater   ~0026150

You have the same problem again with the skinned program beginning from 1351. Works fine 1333, 1343, 1345, 1346, 1348, 1349; doesn't work as it should 1351, 1358, 1367, 1383. During testing I had only one instance in the memory.

petr

2011-06-15 16:07

developer   ~0026154

Are you able to make a short video ? Me, Jiri and Michal tried to reproduce, but can't (modal dialog is always at front of the main window).

rusty

2011-06-15 17:41

administrator   ~0026160

Last edited: 2011-06-15 18:22

I've seen this occur once or twice as well, but I've never been able to reproduce the problem in any consistent manner. Until now:

1) install MM and initiate scan (note: MM was windowed not maximized)
2) minimize MM (important--the bug doesn't occur if MM remains maximized or windowed)
3) switch focus to another app while the scan is in progress (note: other app was firefox/maximized)
4) after the scan is complete, click MM in the taskbar
--> scan dialog briefly displays but the main app quickly covers it.

Note screensaver kicking in during the scan or post-scan doesn't seem to have an effect (only tested a couple of scenarios).

Edit: even though the App covers the dialog, the user can move the app or close it, however, attempts to close it result in a warning about terminating threads. If fixing the bug is too risky, an interim solution would be for scanning threads to complete prior to closing those dialogs so that this error doesn't occur.

zvezdan

2011-06-15 19:49

updater   ~0026161

Here is an .avi video file showing 1389 (buggy), then 1294 & 1344 (fine): http://www.ptt.rs/korisnici/z/v/zvezdand/MediaMonkeyAVI.zip

petr

2011-06-15 20:49

developer   ~0026163

Fixed in 1391

zvezdan

2011-06-16 12:32

updater   ~0026175

It is not fixed in 1391, still the same problem. Did you take a look at my .avi file?

petr

2011-06-16 14:04

developer   ~0026180

I saw. That's the original issue and it's risky to fix it now (it's managed by ThemeEngine) because it can throw an regression. My fix was about issue raised by Rusty in notes 22012 and 26160 (because of regression as mentioned just finishing a scanning thread before info dialog popup so terminating shouldn't show any 'terminating threads' error).

zvezdan

2011-06-16 14:28

updater   ~0026181

Well, Rusty should create a new topic if he found something different. I am talking about an issue described in the Description.

Why did you change something that worked fine anyway? Your script engine is full of holes and I think you should change it for something better. I am already tired of your excuses about it, you had the same explanation already in this same topic ("This issue isn't that critical and could be high regression risk."). Do you understand that your skinned program doesn't work as any normal Windows application?

rusty

2011-06-16 14:46

administrator   ~0026182

I thought that both issues were the same i.e. that MM doesn't properly handle modal dialogs:
a) when they are displayed (Zvesdan)
b) when they are hidden (Rusty)

re. a) I can replicate it in Windows XP (in Windows 7, an 'windows error' sound plays upon clicking the main app if a modal dialog is open, but MM regains focus as expected).

re b) it is still only partially fixed, since the ?previously modal? scan dialog still appears in back of MM, but the MM dialog can function, however, the minimize button no longer works. The proper fix would be for MM to come into view with the hidden dialog in focus.

petr

2011-06-16 16:59

developer   ~0026197

Fixed in 1392

rusty

2011-06-17 06:17

administrator   ~0026204

Tested build 1392

a) In windows 7, the 'windows error' sound still occurs. XP now behaves identically to Win 7 (i.e. MM comes into focus as expected, however, a 'windows error' sound plays.

b) It still fails in exactly the same manner as described in comment 26182 (the scan summary dialog still appears in back of the main apps ui, and remains there even when the app window is clicked. Attempting to minimize the app fails).

rusty

2011-06-20 19:50

administrator   ~0026247

c) Another problem in 1392: while configuring the startup wizard, the wizard can disappear in back of the main window! Reproduced as follows:
In the scan Media portion of the Wizard,
Expand Network node --> hourglass
Expand a Workgroup --> hourglass
Expand a Share --> hourglass and dialog disappears in back of the main panel!!

rusty

2011-06-27 20:48

administrator   ~0026395

Focus problem reported in 1396:
http://www.mediamonkey.com/forum/viewtopic.php?f=6&t=58882