See the demo. If a frame is created and thrown away, a second frame will have the wrong size.
Created attachment 9016 [details] Testcase. Execute with an argument on the command line to trigger the bug.
I can't reproduce this. Closing.