Audacity 2.1.2 Alpha - Window size not remembered

Opening Audacity 96d2e66-2.1.2-alpha-10-oct-15 gives a small window, about half my screen width. Same thing with Cmd-N for a new window if there is not already a window open that I have already dragged to the proper size. Every time I start this version of Audacity I have to stretch the window out to the size I want. Obviously it should remember the previous size. This didn’t happen with the earlier 2.1.2 Alpha from Sept 9 (audacity-macosx-r5f985a2).

Cliff

Hi Cliff,

Thanks for testing. Can you quit Audacity, attach the audacity.cfg it’s reading from ( ~/Library/Application Support/audacity/audacity.cfg assuming you don’t have a “Portable Settings” folder) then delete that audacity.cfg and tell us what size Audacity opens at next time you launch it.

Also tell us what resolution your monitor is.

I don’t experience your problem on a 1024*768 monitor.

Gale

Hi Gale,

It opens after deleting the cfg file with a time line range of -1.5 - 9 seconds. I normally expand it to about 13 seconds.

My monitor on my MBP is 1440x900.

Tried it on a different monitor 1280x1024 and it opened -1.5 - 8 seconds wide. I can expand the window then close the window and a new window, cmd+N, opens in the small size again. Absolute no memory at all of the size it had been expanded to.

Cliff

PS: I’ve tested some of the bugs, but was waiting to hear from you regarding the Private Email I sent you before posting anything.
audacityCfg.zip (2.18 KB)

I’m also seeing the main Audacity window opening at the wrong size on Linux (Xfce Desktop).

If the window was maximised when Audacity was closed, then Audacity correctly opens maximised.

When Audacity was not maximised when closed, the the x/y coordinates are correctly restored (providing that the x/y coordinates fit on the available desktop area), but width and height are not restored correctly.

A couple of examples:

Example 1)

When closed:

[Window]
X=54
Y=69
Width=1312
Height=678
Maximized=0
Normal_X=54
Normal_Y=69
Normal_Width=1312
Normal_Height=678
Iconized=0

When re-opened, the Audacity is noticeably smaller than 1312x678

When re-closed:

[Window]
X=54
Y=69
Width=886
Height=656
Maximized=0
Normal_X=54
Normal_Y=69
Normal_Width=886
Normal_Height=656
Iconized=0

On close, the setting look to be about right, but when opened, the window size looks too small.

Example 2)

When closed:

[Window]
X=614
Y=158
Width=516
Height=494
Maximized=0
Normal_X=614
Normal_Y=158
Normal_Width=516
Normal_Height=494
Iconized=0

When re-opened, the Audacity is noticeably narrower than 516 px.

When re-closed:

[Window]
X=614
Y=158
Width=326
Height=494
Maximized=0
Normal_X=614
Normal_Y=158
Normal_Width=326
Normal_Height=494
Iconized=0

Interestingly, some sizes appear to work correctly:

On first close:

[Window]
X=3
Y=75
Width=937
Height=638
Maximized=0
Normal_X=3
Normal_Y=75
Normal_Width=937
Normal_Height=638
Iconized=0

Open and re-close:

[Window]
X=3
Y=75
Width=937
Height=638
Maximized=0
Normal_X=3
Normal_Y=75
Normal_Width=937
Normal_Height=638
Iconized=0

On Windows 7, I tried that setting (width 516, height 494) and got the exact same incorrect width 326, height 494 when reopening Audacity.

This size reopens correctly for me on Windows 7:

[Window]
X=49
Y=21
Width=838
Height=609
Maximized=0
Normal_X=49
Normal_Y=21
Normal_Width=838
Normal_Height=609
Iconized=0

I am not sure if this broke between the two builds Cliff was testing, possibly Cliff was previously expanding to a size that worked.

It’s a regression on 2.1.1 release so it looks like I should add this to Bugzilla.


Gale

FWIW, this is the first time I’ve ever seen this issue. I’ve used various versions of Audacity in various sizes and haven’t seen it until now, but maybe I just happened on the magic sizes each time. :slight_smile: I can load the Sept 9th version along with the Oct 10 version and make them the same size, as well as I can by sight, and close them both and the Sept 9th one will reopen correctly and the Oct 10th will revert back to the small window. I can also open the Oct 10th with the Sept 9th and it will open with the small window. Expand that one to a normal size and then close Oct 10th and open Sept 9th and it will open correctly. Go figure.

Cliff

I can’t quite follow those last two sentences. Do you mean Sep 9 can open with the wrong size in some cases?

Are one or both of these Audacity versions running with a “Portable Settings” folder? I hope so, because you should not otherwise be able to open two Audacity instances at once.


Gale

The bug was introduced in commit 1ccb738 on 12th September.
https://github.com/audacity/audacity/commit/1ccb738
“Fix for project windows opening larger than available display space on OSX”

Thanks for that, Steve. Still, that bug is (on Mac) arguably somewhat worse than the one we have now. What happens with that fixed bug on Mac is that the Audacity title bar that has the window buttons gets stuck underneath the Apple menu bar.

I don’t know if the workaround of auto-hiding the Dock always works for that bug.


Gale

On Linux, the problem appears to be fixed by removing (from Project.cpp):

   if (width < defRect->width)
   {
      defRect->width = width;
   }

   if (height < defRect->height)
   {
      defRect->height = height;
   }

but perhaps that is required on other platforms.

I’ve added a bug report: http://bugzilla.audacityteam.org/show_bug.cgi?id=1243