Take the 2-minute tour ×
Mathematica Stack Exchange is a question and answer site for users of Mathematica. It's 100% free, no registration required.

This is now bugging me too much to ignore it anymore. When I interact with a notebook that has dynamic content, for example moving a slider, Mathematica regularly brings other open notebook windows to the front. This means that while I am interacting with the given notebook, some other notebook (already opened, but in the background) pops up in the front, either blocking my view or just staying in the lower-left corner (if it was minimized before). The focus is not changed, so I can still interact with the content of the original notebook now in the back. When I continue manipulation, the front notebook disappears, just to reappear again a few seconds later. This is extremely annoying and happens "if the Manipulate [or other dynamic content] contains something that's computationally expensive" (Sjoerd's comment below, and I can confirm this), mostly when complex 2D or 3D plots are manipulated directly (e.g. 3D rotate with mouse) or indirectly (mouse driven slider changes parameters of dynamic plot).

For example rotating the following 3D figure with the mouse causes the behaviour to present itself.

Plot3D[Sin[x + y^2], {x, -3, 3}, {y, -2, 2}]

Reproducibility is occasional, sometimes it happens fairly frequently, sometimes not at all. A more or less solid way to reproduce the error:

  • open a fresh Mathematica
  • open a new notebook (by e.g. ctrl+N; this will be the one that will pop to the front; this can be any notebook window)
  • open another notebook, paste above code
  • evaluate code (dragging the 3D plot now won't trigger the glitch, or only very rarely)
  • bring in front any other application, e.g. Firefox (though the glitch could happen even if no other application is running)
  • get back to Mathematica (by e.g. minimizing Firefox)
  • dragging the 3D plot around for some time (~5-10 sec) has a high chance to trigger the glitch, which can manifest as short "jumps" of open Mathematica windows where one gets in the front for a fraction of a second)

Does anyone else experience this annoyance?

What causes this behaviour?


This is still reproducible under Mathematica 9.0.1, Windows 7.

share|improve this question
    
Is there anyway to get the code for the dynamic slider, so we can try to reproduce what you're seeing? –  tkott Apr 10 '12 at 16:15
    
Is there any observable pattern? For example, the window shown in front is an "Untitled-" notebook; is this always the case? Does this happen as often shortly after Mathematica is opened, or mostly after it has been running for some while? Is there any situation in which the problem is always reproducible? –  Mr.Wizard Apr 10 '12 at 16:32
    
@tkott, Mr.Wizard: It is not caused by a particular piece of code, but I gave an example that does cause it sometimes. The other window can be anything, even the Messages window I think, if it was checked once before. Mostly it happens after some time, but I managed to do it now with a fresh Mathematica. No, sadly there is no situation where it is always present. –  István Zachar Apr 10 '12 at 17:03
    
I can neither produce this error nor recall it happening on v7, therefore I have tagged this question version-8. If anyone using a different version, perhaps on a different OS, also experiences this error, please remove the version-8 tag. –  Mr.Wizard Apr 10 '12 at 17:40
2  
If I try your simple Plot3D code and keep dragging the plotted function quickly in circles invariably, within 15 seconds or so of continuous movement, one of the open windows pops up in front. Very reproducible. –  Sjoerd C. de Vries Apr 10 '12 at 20:10
show 10 more comments

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.