|
|
|
Ed Musgrove-2
|
Hi Gale!
> -----Original Message----- > From: Gale Andrews [mailto:[hidden email]] > | From "Ed Musgrove" <[hidden email]> Sat, 17 Oct 2009 > | 20:36:01 -0700 > | Subject: I think you might like this new project behavior > > Thanks for the latest suggestion to fix large new project windows being > hidden. Can we keep this on the list please, in case others have comments? [Ed:] Sorry for e-mailing you off the list, I did not want to expose the patch to others until you commented upon it. > I applied the patch below, tested on XP. Two things first: > > If I start with an initialised .cfg, launch Audacity, maximise it, exit and re- > launch it, then click "Restore Down", the project window moves up so that > the Title bar is off screen. If I exit > like that, .cfg has > > X=-4 > Y=-29 > Width=1028 > Height=712 > Maximized=0 [Ed:] This has to do with the fact that Audacity has no way (as of yet) of remembering a "normalized" state of a maximized window. I think I know how to do this and will add that ability to the "final" patch for this problem. I consider that a "feature" request more than a bug fix involved in this specific bug. > If I re-initialise .cfg, so it opens with a small normalised window at top left, do > File > New six times then exit using that last new window, Audacity > relaunches with the x,y of the default window, not the one that was exited > with. I think that's reasonable, but also think you had this on your list of > possible improvements, is that correct? [Ed:] Audacity has always stepped through the list of projects starting with the oldest (in the above case the "default" window) when looking for an appropriate project whose state (size and location) will be saved in preferences. If I change this, I would want to see a discussion to determine the design criteria. Here are some possible cases: *use the oldest non-iconized project-- if no project fits this use default (current behavior-- has problems if the "accepted" project is maximized) *use the oldest non-iconized project-- if no project fits, do not save anything (current behavior "fixes" those configuration files where the X. and Y. locations are -32,000 -- this would not solve that problem ) *use the oldest non-iconized project-- if no project fits, do not save anything (but check for the X. and Y. locations equal to -32,000 -- if found, use the default; this WOULD solve that problem ) *use the oldest non-itemized and non-maximized project (see the previous two items -- same problems) *use the newest... (as the above four items -- similar problems) > In my test case with a large more or less square project > window: > > X=0 > Y=0 > Width=689 > Height=662 > Maximized=0 > > the first new project window opens offset down and to right; the second > subsequent new ones are offset only to right at the same vertical position > and window size. When the right edge of the screen is reached, then the > subsequent new windows start decreasing in size. Could we be more exotic > (such as offsetting alternate windows up and down when they cannot go > lower)? Otherwise, IMO this now works quite well and is definitely > acceptable (to me). [Ed:] We could be more exotic, but offsetting the windows up and down would eventually cause windows to be hidden. I know you do not want to add more preferences to help deal with this but without some input from the user as to how this type of situation should be dealt with, any exotic method I create would most likely only satisfy a small handful of users and confuse most others. Personally, I prefer the method which I presented which cascaded the new projects (down twenty-five and right twenty-five) then resized the window as needed. I do understand your desire to keep the windows as tall as possible in any given situation. > I noticed when the windows cannot be decreased further in size at the right > edge, no new windows are added when you File > New, and the Selection > Toolbar end/length buttons blackout. Audacity then becomes unresponsive > to mouse unless you realise you can use CTRL + W to get out of the problem. > This does not happen until I have over 20 windows on my 1024 x 768 screen, > but could be an issue on smaller screens. Can we do what we used to do > when no more windows can be added at right, and start the next new > window at the stored .cfg position? Or some other idea? [Ed:] NEW -- (I'm going to leave what I previously wrote below) testing again, I too got to the point where Audacity was no longer responsive to the mouse-- this time it was after opening 36 projects. In fact, it only seemed like it was unresponsive; regardless, the behavior is unacceptable. I believe we are actually running into some other limiting factor system RAM, graphics RAM or something (Windows has a small buffer which it uses to store information about existing windows, shortcuts and the like -- this buffer is very tiny, we might be over stressing it). In this test, when I opened project number thirty I shrank its window down and drag it over near the top left so in this case, I know for sure that was not a problem with overlapping windows of the exact same dimensions and location. I think the behavior that you are experiencing is not quite what you think. I think those windows are being created but they are hidden behind existing windows. Let me do a quick test... Yikes! After opening 37 new projects Audacity forced Windows and my display hardware into overload. I am not sure quite exactly what happened and I do not know if it was intentional on the part of Vista and ATI (my graphic card is an ATI based SAPPHIRE HD3870); a poorly implemented full screen display opens, it is completely blank (although the Audacity project windows are there but drawn completely in white on white) and the taskbar is invisible until I move the mouse down to that region of the screen. I have full access to the taskbar and can close individual Audacity projects or all projects. When you say "Audacity then becomes unresponsive to mouse unless you either..." my guess is that the hidden window has focus and is gobbling your mouse events. Look down at your taskbar -- you should see a bunch of Audacity entries (I don't think XP groups these entries but it might). Opening the group if necessary, select one of the middle projects -- it's window should pop to the front. Close that project to get it out of your face then select the window to the extreme right-- does it open right on top of a previously existing window? If this is what is going on we could test for that (one window opening right on top of another window) then move down twenty-five and start stepping across the screen again (of course this would require making these new Windows twenty-five pixels shorter). > So apart from the "Restore Down" problem, I think we could have cracked > this one now. Once restore down is fixed, I'll try the patch on Linux too. [Ed:] Changing the "restored down" behavior will require modifications to AudacityApp, AudacityProject and the storage in the configuration file of a wxRect. As such it will require serious debugging on all platforms. I know this is a monstrously long thread and there is a lot of information in this current post. Here is what I propose: First, examine what happens as the new projects march toward the right and eventually cause at best user confusion or possibly a bug. Potential solution: use some method (once again I vote for a user preference setting <grin>) to set a minimum width (and eventually minimum height) to which a project window can be automatically resized a) if automatically resizing would cause this minimum to be dishonored, warn the user and ask the user what to do: 1) do not create the new project 2) ask the user for a new top left location b) if automatic resizing would cause this minimum to be dishonored, automatically: 1) do not create the new project 2) use some built-in default for the new projects top left location Second, make the "restore down" feature. While this is far afield from the original bug I think it an important GUI improvement. Third, consider some "exotic" techniques for cascading windows. See if you can view this: http://home.wavecable.com/~edgarmusgrove/exoticAudacity.jpg note how the cascading of the Windows begins again (I forced this) and eventually starts marching to the right. If you cannot view the picture let me know and I will attach a picture to e-mail. If you've gotten this far (I applied your perseverance), let me know if you approve of the order in which I propose to attack this and share your thoughts about the potential solution for the first case. ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ audacity-devel mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/audacity-devel |
||||||||||||||||
|
Ed Musgrove-2
|
In regard to the problem with Audacity becoming unresponsive, after creating
thirty-six very small project windows using the Release build from August 29, 2009 all of those windows fit neatly on the screen cascading with the original behavior but the exact same unresponsive behavior appeared. This bug is not new to my code -- it was there long before I started development. I am almost certain that this is a resource allocation issue; it might not even be the fault of Audacity. Bill -- I CCed this directly to you to ensure that I got your attention... could you perform the following test on your Mac (make sure to save all data in any open programs because this may well crash your machine): Launch Audacity; size the project window so that it is fairly small and move it so that it is in the top left-hand corner of the screen. Start creating new projects; eventually a new project's bottom right corner will near the bottom right corner of the screen -- drag that project up to the top left corner of the screen; repeat until something unexpected happens -- this might be a crash, it might be your computer becoming unresponsive, it might be Audacity becoming unresponsive but other programs being responsive, or it might be some warning that you have run out of resources. Let me know what happens. Thanks! --Ed ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ audacity-devel mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/audacity-devel |
||||||||||||||||
|
Ed Musgrove-2
|
Wavetable seems to be having problems with the picture the previous link
that I gave doesn't display anything usable. Please find attached a zip file of the picture... --Ed ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ audacity-devel mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/audacity-devel |
||||||||||||||||
|
Bill Wharrie
|
In reply to this post
by Ed Musgrove-2
On 18-Oct-09, at 6:55 PM, Ed Musgrove wrote: > In regard to the problem with Audacity becoming unresponsive, after > creating > thirty-six very small project windows using the Release build from > August > 29, 2009 all of those windows fit neatly on the screen cascading > with the > original behavior but the exact same unresponsive behavior appeared. > This > bug is not new to my code -- it was there long before I started > development. > I am almost certain that this is a resource allocation issue; it > might not > even be the fault of Audacity. > > Bill -- I CCed this directly to you to ensure that I got your > attention... > could you perform the following test on your Mac (make sure to save > all data > in any open programs because this may well crash your machine): > Launch Audacity; size the project window so that it is fairly small > and move > it so that it is in the top left-hand corner of the screen. > Start creating new projects; eventually a new project's bottom right > corner > will near the bottom right corner of the screen -- drag that project > up to > the top left corner of the screen; repeat until something unexpected > happens > -- this might be a crash, it might be your computer becoming > unresponsive, > it might be Audacity becoming unresponsive but other programs being > responsive, or it might be some warning that you have run out of > resources. > > Let me know what happens. Thanks! Ed: This is with 1.3.10-alpha-Oct 17 2009 Well, I didn't think anything was going to happen other than Audacity consuming more and more CPU time. But on the attempt to create the 98th project window, Audacity hung. The window was not created but all other windows had greyed-out title bars and widgets. Clicking on a menu highlights the menu title but no menu drops down. Right-clicking on the Dock icon highlights the Dock icon but no menu appears. This is how a Mac user would normally force-quit an unresponsive program. Switching to Activity Monitor (top wrapped in a GUI) shows Audacity using about 100% CPU time. [Note that I am running a dual G5 so this means Audacity is using about 100% of one CPU - the graphical display shows the load being shifted from one CPU to the other.] In Activity Monitor, clicking the "Inspect" or "Sample Process" buttons with Audacity selected produces no response. Drat! I was hoping to get calling list. In Activity Monitor, Audacity is not highlighted as an unresponsive application, so I guess it is still talking to the OS to some extent. Going to Apple Menu > Force Quit, again Audacity is not highlighted as an unresponsive application. Command-tab for application switching no longer works as expected - hitting command-tab and continuing to hold command, the graphic with the list of running applications does not appear, but a simple command- tab will switch between the two most-recently used applications. Application switching by clicking on a running program's icon in the Dock still works. Back in Activity Monitor, click the "Quit Process" button. This works, but it takes several seconds for Audacity to quit. As well ... At first I didn't read your instructions fully and just kept creating new windows not realizing that you wanted me to drag the window close to the bottom edge back to the top. So I saw what happens in that situation - that is, with the front-most window near the bottom of the screen and no room to tile the next new window. The next window is created with its title bar *under* the menubar and does not respect the space reserved for the Dock (I have my Dock on the left of the screen). This window is not draggable and the only way to get rid of it is with command-W. I also kept track of Audacity's CPU usage as each window was created. After the 26th window was create CPU usage was about 97%. This is not linear. With the first few windows it's about +1% for each window. By the 20th window it's about +7% for each window. So there you are. 97 open project windows. Number 98 is the killer. One part of me says "who's ever going to have that many open project windows. Are they crazy?" But I guess you've got to push the envelope to expose these bugs. -- Bill ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ audacity-devel mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/audacity-devel |
||||||||||||||||
|
Bill Wharrie
|
In reply to this post
by Ed Musgrove-2
Further to this test, I was driven to see if Audacity "respected" the
Dock location in OSX. Open audacity.cfg and delete everything except "NewPrefsInitialized=1" My Dock is at the left of the screen Launch Audacity (1.3.10 Oct 17 2009) Default window is positioned at upper left of the screen, but not under the Dock. Quit Audacity So Audacity respects the Dock when creating its first window after a virgin install. Open audacity.cfg and delete everything except "NewPrefsInitialized=1" Move my Dock to the bottom of the screen Launch Audacity Default window is positioned at upper left of the screen. Quit Audacity Move my Dock back to the left of the screen Launch Audacity Window is created at top left of the screen, *under* the Dock. It appears Audacity uses the window position values stored in audacity.cfg and does not check if the user has repositioned the Dock. Open audacity.cfg and delete everything except "NewPrefsInitialized=1" Move my Dock to the bottom of the screen Launch Audacity Default window is positioned at upper left of the screen. Make window much bigger. Create new projects - the windows tile nicely When it is not possible to create a new window without part of the window being under the Dock, Audacity puts it in the upper-left of the screen. So Audacity *does* respect the Dock in this situation. Although it still creates the window with the title bar under the menu bar. The same happens if the Dock is on the right of the screen. So all is well in Mac-land, except that Audacity does not check, on launch, to see if it is about to create a window under the Dock if it has window coordinates stored in audacity.cfg. Nice behaviour would be to check for this and adjust the window location. This is not a big deal, as Mac users are used to programs not respecting the dock :-) and it is nice that Audacity goes as far as it does in this regard. Also, if the user had decided to permanently move their Dock from the bottom to the left of the screen, this behaviour would be rectified on the next launch of Audacity since it would have the user's new preferred window location stored in audacity.cfg. The issue with new project windows being created with the title bar under the menu bar when tiling down and right fails, is another kettle of fish. -- Bill On 18-Oct-09, at 6:55 PM, Ed Musgrove wrote: > In regard to the problem with Audacity becoming unresponsive, after > creating > thirty-six very small project windows using the Release build from > August > 29, 2009 all of those windows fit neatly on the screen cascading > with the > original behavior but the exact same unresponsive behavior appeared. > This > bug is not new to my code -- it was there long before I started > development. > I am almost certain that this is a resource allocation issue; it > might not > even be the fault of Audacity. > > Bill -- I CCed this directly to you to ensure that I got your > attention... > could you perform the following test on your Mac (make sure to save > all data > in any open programs because this may well crash your machine): > Launch Audacity; size the project window so that it is fairly small > and move > it so that it is in the top left-hand corner of the screen. > Start creating new projects; eventually a new project's bottom right > corner > will near the bottom right corner of the screen -- drag that project > up to > the top left corner of the screen; repeat until something unexpected > happens > -- this might be a crash, it might be your computer becoming > unresponsive, > it might be Audacity becoming unresponsive but other programs being > responsive, or it might be some warning that you have run out of > resources. > > Let me know what happens. Thanks! ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ audacity-devel mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/audacity-devel |
||||||||||||||||
|
Ed Musgrove-2
|
In reply to this post
by Bill Wharrie
This is vaguely what I expected. Once again, my hat's off to you, your
incredibly detailed and thorough beta testing are extremely helpful. I am going to rerun the test with the system monitor open...but I am going to send this first! --Ed > -----Original Message----- > From: Bill Wharrie [mailto:[hidden email]] > This is with 1.3.10-alpha-Oct 17 2009 > > Well, I didn't think anything was going to happen other than Audacity > consuming more and more CPU time. But on the attempt to create the 98th [Ed:] Once again proving the superiority of the Mac OS over Windows <grin>! 98 compared to my 36 and it sounds like we have fairly similar hardware: CPU: Intel Core 2 Duo E6850 3.0 GHz FSB1333 RAM: 8 GB OCZ DDR3 PC3 I have paging turned off so all files are always in RAM. > project window, Audacity hung. The window was not created but all other > windows had greyed-out title bars and widgets. Clicking on a menu highlights > the menu title but no menu drops down. ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ audacity-devel mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/audacity-devel |
||||||||||||||||
|
Ed Musgrove-2
|
In reply to this post
by Bill Wharrie
Okay tried the experiment with Windows Task Manager and sysinternals's
Process Explorer running (not at the same time). Audacity's CPU usage slowly ramped up starting at about 4% for the first project and adding a little bit less than 1% per project -- this was not linear. Project number 35 had the CPU add approximately 20%. Unfortunately, the RAM usage is not very accurate; before I started Audacity approximately 2.46 gigabytes were in use, after launching the first project it was approximately 2.50 but thereafter did not increase very rapidly; that project number 35 the RAM usage was 2.55 gigabytes. Upon trying to create number thirty-six CPU usage went to 60% and RAM usage went to 2.66 GB. The taskbar was still responsive so I chose to close Audacity via the taskbar icon. Audacity do not close on its own but Windows realized this and offered me the chance to close the program which I accepted. It took Windows approximately 2 minutes to close all the windows and recover all the resources. This was the August 29 Release build as obtained from the website. --Ed > -----Original Message----- > From: Bill Wharrie [mailto:[hidden email]] > > This is with 1.3.10-alpha-Oct 17 2009 > > Well, I didn't think anything was going to happen other than Audacity > consuming more and more CPU time. But on the attempt to create the 98th > project window, Audacity hung. ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ audacity-devel mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/audacity-devel |
||||||||||||||||
|
Gale (Audacity Team)
|
In reply to this post
by Ed Musgrove-2
| From "Ed Musgrove" <[hidden email]> | Sun, 18 Oct 2009 15:34:19 -0700 | Subject: [Audacity-devel] Problem with hidden second project window on Windows WAS: Re: wxGetClientDisplayRect > > -----Original Message----- > > From: Gale Andrews [mailto:[hidden email]] > > | From "Ed Musgrove" <[hidden email]> Sat, 17 Oct 2009 > > | 20:36:01 -0700 > > | Subject: I think you might like this new project behavior > > > > Thanks for the latest suggestion to fix large new project windows being > > hidden. Can we keep this on the list please, in case others have comments? > > [Ed:] > Sorry for e-mailing you off the list, I did not want to expose the patch to > others until you commented upon it. I see it as possibly better if you do post the patch, unless the patch really is only some kind of "try-out" between other patches. It wouldn't need more than a couple of lines of text if you attached the patch. This is just because I can only really comment on usability rather than code per se. > > I applied the patch below, tested on XP. Two things first: > > > > If I start with an initialised .cfg, launch Audacity, maximise it, exit > and re- > > launch it, then click "Restore Down", the project window moves up so that > > the Title bar is off screen. If I exit > > like that, .cfg has > > > > X=-4 > > Y=-29 > > Width=1028 > > Height=712 > > Maximized=0 > > [Ed:] > This has to do with the fact that Audacity has no way (as of yet) of > remembering a "normalized" state of a maximized window. I think I know how > to do this and will add that ability to the "final" patch for this problem. > I consider that a "feature" request more than a bug fix involved in this > specific bug. Except that this off-screen behaviour seems new to your patch; remove the patch and it doesn't happen (for me). Have you seen it before in your tests pre-patch? "Remembering the previous normalised state" is a Feature Request, but if doing so is essential to prevent this off-screen behaviour in your patch, it would IMO be a requirement. I couldn't pass it while I could reliably reproduce this off-screen behaviour. > > If I re-initialise .cfg, so it opens with a small normalised window at top > left, do > > File > New six times then exit using that last new window, Audacity > > relaunches with the x,y of the default window, not the one that was exited > > with. I think that's reasonable, but also think you had this on your list > of > > possible improvements, is that correct? > > [Ed:] > Audacity has always stepped through the list of projects starting with the > oldest (in the above case the "default" window) when looking for an > appropriate project whose state (size and location) will be saved in > preferences. > > If I change this, I would want to see a discussion to determine the design > criteria. Here are some possible cases: > *use the oldest non-iconized project-- if no project fits this use default > (current behavior-- has problems if the "accepted" project is maximized) > *use the oldest non-iconized project-- if no project fits, do not save > anything (current behavior "fixes" those configuration files where the X. > and Y. locations are -32,000 -- this would not solve that problem ) > *use the oldest non-iconized project-- if no project fits, do not save > anything (but check for the X. and Y. locations equal to -32,000 -- if > found, use the default; this WOULD solve that problem ) > *use the oldest non-itemized and non-maximized project (see the previous two > items -- same problems) > *use the newest... (as the above four items -- similar problems) I only really mentioned this as an aside, and we should start a new explicit thread if we want to discuss this in detail. Definitely a "Feature Request", and less important than others we've been discussing. As an off-the-cuff response, step backwards from the newest, checking for those negative x,y values? > > In my test case with a large more or less square project > > window: > > > > X=0 > > Y=0 > > Width=689 > > Height=662 > > Maximized=0 > > > > the first new project window opens offset down and to right; the second > and > > subsequent new ones are offset only to right at the same vertical position > > and window size. When the right edge of the screen is reached, then the > > subsequent new windows start decreasing in size. Could we be more exotic > > (such as offsetting alternate windows up and down when they cannot go > > lower)? Otherwise, IMO this now works quite well and is definitely > > acceptable (to me). > > [Ed:] > We could be more exotic, but offsetting the windows up and down would > eventually cause windows to be hidden. I know you do not want to add more > preferences to help deal with this but without some input from the user as > to how this type of situation should be dealt with, any exotic method I > create would most likely only satisfy a small handful of users and confuse > most others. Personally, I prefer the method which I presented which > cascaded the new projects (down twenty-five and right twenty-five) then > resized the window as needed. I do understand your desire to keep the > windows as tall as possible in any given situation. Again this is no more than an enhancement, but I believe it would inevitably be raised by users when they see the rightwards extending line of new windows at the same Y position. I'll take a look at your "exotic" patch when I have time. > > I noticed when the windows cannot be decreased further in size at the > right > > edge, no new windows are added when you File > New, and the Selection > > Toolbar end/length buttons blackout. Audacity then becomes unresponsive > > to mouse unless you realise you can use CTRL + W to get out of the > problem. > > This does not happen until I have over 20 windows on my 1024 x 768 screen, > > but could be an issue on smaller screens. Can we do what we used to do > > when no more windows can be added at right, and start the next new > > window at the stored .cfg position? Or some other idea? > > [Ed:] > NEW -- (I'm going to leave what I previously wrote below) testing again, I > too got to the point where Audacity was no longer responsive to the mouse-- > this time it was after opening 36 projects. In fact, it only seemed like it > was unresponsive; regardless, the behavior is unacceptable. I believe we are > actually running into some other limiting factor system RAM, graphics RAM or > something (Windows has a small buffer which it uses to store information > about existing windows, shortcuts and the like -- this buffer is very tiny, > we might be over stressing it). In this test, when I opened project number > thirty I shrank its window down and drag it over near the top left so in > this case, I know for sure that was not a problem with overlapping windows > of the exact same dimensions and location. > > I think the behavior that you are experiencing is not quite what you think. > I think those windows are being created but they are hidden behind existing > windows... When you say "Audacity then becomes unresponsive to mouse > unless you either..." my guess is that the hidden window has focus and is > gobbling your mouse events. Look down at your taskbar -- you should see > a bunch of Audacity entries (I don't think XP groups these entries but it might). > Opening the group if necessary, select one of the middle projects -- it's > window should pop to the front. Close that project to get it out of your > face then select the window to the extreme right-- does it open right on top > of a previously existing window? Not here. My taskbar icon groups and displays a count of how many windows are open. Once it reaches 25 (occasionally, 23 or 24) and that last window doesn't paint, further CTRL + N's do not increment that displayed number. > If this is what is going on we could test for that (one window opening right > on top of another window) then move down twenty-five and start stepping > across the screen again (of course this would require making these new > Windows twenty-five pixels shorter). > > > So apart from the "Restore Down" problem, I think we could have cracked > > this one now. Once restore down is fixed, I'll try the patch on Linux too. > > [Ed:] > Changing the "restored down" behavior will require modifications to > AudacityApp, AudacityProject and the storage in the configuration file of a > wxRect. As such it will require serious debugging on all platforms. > > I know this is a monstrously long thread and there is a lot of information > in this current post. Here is what I propose: > First, examine what happens as the new projects march toward the right and > eventually cause at best user confusion or possibly a bug. > Potential solution: use some method (once again I vote for a user preference > setting <grin>) to set a minimum width (and eventually minimum height) to > which a project window can be automatically resized > a) if automatically resizing would cause this minimum to be > dishonored, warn the user and ask the user what to do: > 1) do not create the new project > 2) ask the user for a new top left location > b) if automatic resizing would cause this minimum to be dishonored, > automatically: > 1) do not create the new project > 2) use some built-in default for the new projects top left > location Brain wheels spinning slowly now, but there already is of course a minimum height and width for manual resizing, so wouldn't that set the automatic limit? Otherwise, users could resize down a new project window before creating the new one so as to defeat the automatic limit (or, end up oddly with a larger window than the previous one). >From tests here on XP, the issue is the number of windows open (20+ being the trigger), not when they reach the right edge or start needing to be resized. You are mentioning a limit of 35. Would it be unreasonable to simply limit the number of windows? I know we don't so with number of tracks, but ultimately too many tracks will also mean Audacity barely responds, and won't paint properly if you start to actually play or edit. And the current problem is worse than that, because you cannot fully create the new window in the first place. > Second, make the "restore down" feature. While this is far afield from the > original bug I think it an important GUI improvement. See above. > Third, consider some "exotic" techniques for cascading windows. See if you > can view this: > http://home.wavecable.com/~edgarmusgrove/exoticAudacity.jpg > note how the cascading of the Windows begins again (I forced this) and > eventually starts marching to the right. If you cannot view the picture let > me know and I will attach a picture to e-mail. Although I can see the image, it looks like a DVD that has been content-scrambled. I'll try your exotic patch, but it may take a while. Thanks Gale ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ audacity-devel mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/audacity-devel |
||||||||||||||||
|
Ed Musgrove-2
|
About half the time I FTP an image to Wavecable it ends up looking like
that. I wish I had the option for a different provider but I don't. Try the exotic patch; with the exception of remembering the "normalized" size of a window, it gives us all we could wish for in an exotic relocation/resizing design. I think it also cures all the bugs with the exception of opening too many windows. Try it, you'll like it! Tonight I created a tiny little wxWidgets application which allows testing of that "irritating seek bug". Now I need to find two developers who are familiar with creating new projects -- one on Mac and one on Linux. I also spent considerable time testing the creation of window number thirty-six, stepping through the wxWidgets memory allocation code trying to figure out what triggered the problem. I'm close, I have breakpoints set on both sides of the problem but it is very time-consuming. --Ed > -----Original Message----- > From: Gale Andrews [mailto:[hidden email]] > > Although I can see the image, it looks like a DVD that has been > content-scrambled. I'll try your exotic patch, but it may take a while. ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ audacity-devel mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/audacity-devel |
||||||||||||||||
|
Vidyashankar Vellal
|
Hi Ed I can work on Linux (Ubuntu 9.04). Tell me what you need. Vidyashankar On Mon, Oct 19, 2009 at 12:17 PM, Ed Musgrove <[hidden email]> wrote:
------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ audacity-devel mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/audacity-devel |
||||||||||||||||
|
Ed Musgrove-2
|
In reply to this post
by Ed Musgrove-2
This has gone way beyond the original lost window bug!
I have attached a "final" patch which should address the original problem (except the already hosed .cfg files--I do not think it desirable to test every config every time for the -32000 case, but I will add that if asked--it is only a few lines of code and who knows, someday a value of -3200 might be quite reasonable). New behaviors: Projects now recall their "original" state if Maximized and/or Iconized (a maximized project may also be iconized). When exiting this original state is also stored. When re-launched the Maximized state is honored and the Maxed window will "restore down" to the "original" pre-launch state. Code is commented out which will provide the same behavior for the Iconized state, but I doubt we ever want to launch iconized. Multiple new projects will cascade until the screen boundary or the default minimum size is reached thereafter "intelligent" resizing and re-location occur. The design criteria were to keep part of the previous project's window exposed; maintain the new project's height as close to the previous project's as possible and to only jump back to the left screen edge when forced by a too-narrow window. Comments and rotten fruit welcome! <grin> --Ed ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ audacity-devel mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/audacity-devel |
||||||||||||||||
| Free Embeddable Forum Powered by Nabble | Help |