Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re: Perl Tk crashes when mem usage exceeds 4G on Win10by kcott (Archbishop) |
on Sep 23, 2022 at 22:29 UTC ( [id://11147093]=note: print w/replies, xml ) | Need Help?? |
G'day boleary, I ran a few tests and can confirm your findings.
I made a very small change to your code to confirm completion: I have Cygwin running on Win10:
I have Perlbrew with a variety of Perl versions, each with Tk installed. I ran
successfully to completion, without any error or warning messages, with these Perl & Tk combinations: 5.30.0/804.034, 5.32.0/804.035 & 5.36.0/804.036 (each using ~5.5GB memory, from visual inspection of Task Manager). I don't use the MSWin side of my machine very often, doing nearly all of my work with Cygwin; however, I did have an old Strawberry Perl version with Tk:
I ran the script three times:
Each run died at about 4GB memory usage (from visual inspection of Task Manager) with the Tk application completely shutting down. Like you, I either got "Free to wrong pool ..." or no output at all. With the added shebang and a blank line after it, my line 43 should be the same as your line 41:
I had a look in "Active bugs for Tk" but nothing really looked like it was relevant to this. There's apparently 144 in the list; I could have missed something; a second pair of eyes wouldn't hurt. I would definitely advise raising a bug report. Before you do that, though, I'd await further reports from other monks. The more specific information you can supply, the easier it will be for maintainers to track down the problem. The type of such information could be, but is not limited to:
I acknowledge that you may already know this. You can consider it as a useful checklist for others. — Ken
In Section
Seekers of Perl Wisdom
|
|