Interesting... When you get a chance, would you mind running the attached script? This is how I was finding object leaks before. It takes a single commandline argument that is the number of iterations. Can you send me the outputs from 1 and 2 iterations? That way we should be able to see what type of object is being leaked, which is a good first step. If that doesn't make it immediately obvious, I'll try this on my Ubuntu box at home and see if I can reproduce what you're seeing. Cheers, Mike Eric Firing wrote: > Michael Droettboom wrote: >> Interesting. I don't get that, but I do get some random segfaults (I >> got lucky the first time I tested). >> >> I'm awfully surprised that wx.GetApp() would return an iterator, as >> you are getting, so maybe it's corruption of some sort? >> >> Reverting to revision 3441 on backend_wx.py does resolve this issue >> for me, so it is related to removing the wxapp global variable. While I > > [...] > > Works for me now, and the result is attached. Object count is still > climbing. > > Eric > ------------------------------------------------------------------------ > > # columns are: iteration, OS memory (k), number of python objects > # > 0 18849 75791 > 10 18849 75831 > 20 18849 75871 > 30 18849 75911 > 40 18930 75951 > 50 18930 75991 > 60 19038 76031 > 70 19038 76071 > 80 19038 76111 > 90 19038 76151 > 100 19124 76191 > 110 19124 76231 > 120 19235 76271 > 130 19235 76311 > 140 19316 76351 > 150 19316 76391 > 160 19417 76431 > 170 19417 76471 > 180 19417 76511 > 190 19513 76551 > 200 19513 76591 > 210 19513 76631 > 220 19612 76671 > 230 19612 76711 > 240 19612 76751 > 250 19710 76791 > 260 19710 76831 > 270 19710 76871 > 280 19800 76911 > 290 19800 76951 > 300 19800 76991 > 310 19893 77031 > 320 19893 77071 > 330 19893 77111 > 340 19978 77151 > 350 19978 77191 > 360 20088 77231 > 370 20088 77271 > 380 20088 77311 > 390 20192 77351 > 400 20192 77391 > 410 20192 77431 > 420 20192 77471 > 430 20274 77511 > 440 20274 77551 > 450 20374 77591 > 460 20374 77631 > 470 20374 77671 > 480 20484 77711 > 490 20484 77751 > 500 20484 77791 > 510 20588 77831 > 520 20588 77871 > 530 20588 77911 > 540 20588 77951 > 550 20683 77991 > 560 20683 78031 > 570 20683 78071 > 580 20763 78111 > 590 20796 78151 > 600 20861 78191 > 610 20961 78231 > 620 20961 78271 > 630 20961 78311 > 640 21060 78351 > 650 21060 78391 > 660 21060 78431 > 670 21156 78471 > 680 21156 78511 > 690 21156 78551 > 700 21254 78591 > 710 21254 78631 > 720 21254 78671 > 730 21353 78711 > 740 21353 78751 > 750 21353 78791 > 760 21442 78831 > 770 21442 78871 > 780 21442 78911 > 790 21528 78951 > 800 21528 78991 > 810 21638 79031 > 820 21638 79071 > 830 21638 79111 > 840 21638 79151 > 850 21733 79191 > 860 21733 79231 > 870 21733 79271 > 880 21820 79311 > 890 21820 79351 > 900 21931 79391 > 910 21931 79431 > 920 21931 79471 > 930 21931 79511 > 940 22015 79551 > 950 22015 79591 > 960 22126 79631 > 970 22126 79671 > 980 22126 79711 > 990 22126 79751 > 1000 22207 79791 > 1010 22207 79831 > 1020 22298 79871 > 1030 22298 79911 > 1040 22335 79951 > 1050 22401 79991 > 1060 22503 80031 > 1070 22503 80071 > 1080 22503 80111 > 1090 22601 80151 > 1100 22601 80191 > 1110 22601 80231 > 1120 22699 80271 > 1130 22699 80311 > 1140 22699 80351 > 1150 22798 80391 > 1160 22798 80431 > 1170 22798 80471 > 1180 22897 80511 > 1190 22897 80551 > 1200 22897 80591 > 1210 22995 80631 > 1220 22995 80671 > 1230 22995 80711 > 1240 23086 80751 > 1250 23086 80791 > 1260 23086 80831 > 1270 23180 80871 > 1280 23180 80911 > 1290 23283 80951 > 1300 23283 80991 > 1310 23283 81031 > 1320 23283 81071 > 1330 23366 81111 > 1340 23366 81151 > 1350 23475 81191 > 1360 23475 81231 > 1370 23475 81271 > 1380 23475 81311 > 1390 23552 81351 > 1400 23552 81391 > 1410 23643 81431 > 1420 23643 81471 > 1430 23595 81511 > 1440 23700 81551 > 1450 23808 81591 > 1460 23808 81631 > 1470 23808 81671 > 1480 23787 81711 > 1490 23852 81751 > 1500 23951 81791 > 1510 24048 81831 > 1520 24048 81871 > 1530 24048 81911 > 1540 24146 81951 > 1550 24146 81991 > 1560 24146 82031 > 1570 24247 82071 > 1580 24247 82111 > 1590 24247 82151 > 1600 24344 82191 > 1610 24344 82231 > 1620 24344 82271 > 1630 24442 82311 > 1640 24442 82351 > 1650 24442 82391 > 1660 24542 82431 > 1670 24542 82471 > 1680 24542 82511 > 1690 24639 82551 > 1700 24639 82591 > 1710 24639 82631 > 1720 24738 82671 > 1730 24738 82711 > 1740 24738 82751 > 1750 24837 82791 > 1760 24837 82831 > 1770 24837 82871 > 1780 24935 82911 > 1790 24935 82951 > 1800 24935 82991 > 1810 25025 83031 > 1820 25025 83071 > 1830 25025 83111 > 1840 25118 83151 > 1850 25118 83191 > 1860 25104 83231 > 1870 25170 83271 > 1880 25281 83311 > 1890 25281 83351 > 1900 25281 83391 > 1910 25385 83431 > 1920 25385 83471 > 1930 25385 83511 > 1940 25362 83551 > 1950 25400 83591 > 1960 25469 83631 > 1970 25596 83671 > 1980 25596 83711 > 1990 25693 83751 > 2000 25693 83791 > # columns above are: iteration, OS memory (k), number of python objects > # > # uncollectable list: [] > # > # Backend WX, toolbar toolbar2 > # wxPython version: 2.8.1.1 > # Averaging over loops 1000 to 2000 > # Memory went from 22207k to 25693k > # Average memory consumed per loop: 3.4860k bytes > >