René's URL Explorer Experiment


Title: Memory Leak in Agg · Issue #3197 · matplotlib/matplotlib · GitHub

Open Graph Title: Memory Leak in Agg · Issue #3197 · matplotlib/matplotlib

X Title: Memory Leak in Agg · Issue #3197 · matplotlib/matplotlib

Description: First, the relevant output of valgrind with --tool=memcheck --leak-check=full --show-leak-kinds=all: ==2657== 4,841,396 bytes in 2 blocks are still reachable in loss record 4,337 of 4,341 ==2657== at 0x4C2BC79: operator new[](unsigned lo...

Open Graph Description: First, the relevant output of valgrind with --tool=memcheck --leak-check=full --show-leak-kinds=all: ==2657== 4,841,396 bytes in 2 blocks are still reachable in loss record 4,337 of 4,341 ==2657== ...

X Description: First, the relevant output of valgrind with --tool=memcheck --leak-check=full --show-leak-kinds=all: ==2657== 4,841,396 bytes in 2 blocks are still reachable in loss record 4,337 of 4,341 ==2657== ...

Mail addresses
notifications@github.com

Opengraph URL: https://github.com/matplotlib/matplotlib/issues/3197

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.114.3


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Memory Leak in Agg","articleBody":"First, the relevant output of valgrind with `--tool=memcheck --leak-check=full --show-leak-kinds=all`:\n\n```\n==2657== 4,841,396 bytes in 2 blocks are still reachable in loss record 4,337 of 4,341\n==2657==    at 0x4C2BC79: operator new[](unsigned long) (vg_replace_malloc.c:384)\n==2657==    by 0x2D592353: RendererAgg::tostring_rgba_minimized(Py::Tuple const&) (_backend_agg.cpp:2382)\n==2657==    by 0x2D5A3363: Py::PythonExtension\u003cRendererAgg>::method_varargs_call_handler(_object*, _object*) (ExtensionOldType.hxx:291)\n==2657==    by 0x54BB13: PyEval_EvalFrameEx (in /usr/bin/python2.7)\n==2657==    by 0x575D91: PyEval_EvalCodeEx (in /usr/bin/python2.7)\n==2657==    by 0x54C027: PyEval_EvalFrameEx (in /usr/bin/python2.7)\n==2657==    by 0x575D91: PyEval_EvalCodeEx (in /usr/bin/python2.7)\n==2657==    by 0x54C027: PyEval_EvalFrameEx (in /usr/bin/python2.7)\n==2657==    by 0x575D91: PyEval_EvalCodeEx (in /usr/bin/python2.7)\n==2657==    by 0x54C027: PyEval_EvalFrameEx (in /usr/bin/python2.7)\n==2657==    by 0x575D91: PyEval_EvalCodeEx (in /usr/bin/python2.7)\n==2657==    by 0x577BE1: ??? (in /usr/bin/python2.7)\n==2657== \n==2657== 55,424,972 bytes in 33 blocks are definitely lost in loss record 4,339 of 4,341\n==2657==    at 0x4C2BC79: operator new[](unsigned long) (vg_replace_malloc.c:384)\n==2657==    by 0x2D592353: RendererAgg::tostring_rgba_minimized(Py::Tuple const&) (_backend_agg.cpp:2382)\n==2657==    by 0x2D5A3363: Py::PythonExtension\u003cRendererAgg>::method_varargs_call_handler(_object*, _object*) (ExtensionOldType.hxx:291)\n==2657==    by 0x54BB13: PyEval_EvalFrameEx (in /usr/bin/python2.7)\n==2657==    by 0x575D91: PyEval_EvalCodeEx (in /usr/bin/python2.7)\n==2657==    by 0x54C027: PyEval_EvalFrameEx (in /usr/bin/python2.7)\n==2657==    by 0x575D91: PyEval_EvalCodeEx (in /usr/bin/python2.7)\n==2657==    by 0x54C027: PyEval_EvalFrameEx (in /usr/bin/python2.7)\n==2657==    by 0x575D91: PyEval_EvalCodeEx (in /usr/bin/python2.7)\n==2657==    by 0x54C027: PyEval_EvalFrameEx (in /usr/bin/python2.7)\n==2657==    by 0x575D91: PyEval_EvalCodeEx (in /usr/bin/python2.7)\n==2657==    by 0x577BE1: ??? (in /usr/bin/python2.7)\n==2657== \n==2657== 56,230,256 bytes in 25 blocks are possibly lost in loss record 4,340 of 4,341\n==2657==    at 0x4C2BC79: operator new[](unsigned long) (vg_replace_malloc.c:384)\n==2657==    by 0x2D592353: RendererAgg::tostring_rgba_minimized(Py::Tuple const&) (_backend_agg.cpp:2382)\n==2657==    by 0x2D5A3363: Py::PythonExtension\u003cRendererAgg>::method_varargs_call_handler(_object*, _object*) (ExtensionOldType.hxx:291)\n==2657==    by 0x54BB13: PyEval_EvalFrameEx (in /usr/bin/python2.7)\n==2657==    by 0x575D91: PyEval_EvalCodeEx (in /usr/bin/python2.7)\n==2657==    by 0x54C027: PyEval_EvalFrameEx (in /usr/bin/python2.7)\n==2657==    by 0x575D91: PyEval_EvalCodeEx (in /usr/bin/python2.7)\n==2657==    by 0x54C027: PyEval_EvalFrameEx (in /usr/bin/python2.7)\n==2657==    by 0x575D91: PyEval_EvalCodeEx (in /usr/bin/python2.7)\n==2657==    by 0x54C027: PyEval_EvalFrameEx (in /usr/bin/python2.7)\n==2657==    by 0x575D91: PyEval_EvalCodeEx (in /usr/bin/python2.7)\n==2657==    by 0x577BE1: ??? (in /usr/bin/python2.7)\n==2657== \n==2657== LEAK SUMMARY:\n==2657==    definitely lost: 55,490,524 bytes in 83 blocks\n==2657==    indirectly lost: 20,256 bytes in 407 blocks\n==2657==      possibly lost: 56,383,520 bytes in 481 blocks\n==2657==    still reachable: 11,403,937 bytes in 13,860 blocks\n==2657==         suppressed: 179,227,068 bytes in 27,533 blocks\n```\n\nI am drawing many maps (with basemap) with polygon collections using the agg backend and then save them as png or svg. I always close the figures and start fresh. The more I draw the higher the memory usage gets, which is why I ran memcheck. I will try to come up with a minimal example that reproduces this.\n\nI am using mpl 1.3.1, basemap 1.0.7, Python 2.7.3.\n","author":{"url":"https://github.com/letmaik","@type":"Person","name":"letmaik"},"datePublished":"2014-07-08T10:03:22Z","url":"https://github.com/matplotlib/matplotlib/issues/3197"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:fd8fe6d8-41f8-615f-9485-46eacf8282d0
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idCB30:1EFD:E422D:13C579:6B069334
html-safe-nonceeb46433063ac5694bf1bead5f47aa5fc4c00dc4c4e4463b6ccb3fcd9ac534956
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDQjMwOjFFRkQ6RTQyMkQ6MTNDNTc5OjZCMDY5MzM0IiwidmlzaXRvcl9pZCI6Ijc5Njg0Nzc1MzkzMDYyMTQxOTYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac2e2eb32e36c872f9479c069c13055d626430a6ba351364a87813e777def1afa7
hovercard-subject-tagissue:37351726
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/matplotlib/matplotlib/3197/issue_layout
twitter:imagehttps://opengraph.githubassets.com/6301a46a43ef906e5b8929516bfbbd2ee8545feb9539a5d3e2a2756b32323eb4/matplotlib/matplotlib/issues/3197
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/6301a46a43ef906e5b8929516bfbbd2ee8545feb9539a5d3e2a2756b32323eb4/matplotlib/matplotlib/issues/3197
og:image:altFirst, the relevant output of valgrind with --tool=memcheck --leak-check=full --show-leak-kinds=all: ==2657== 4,841,396 bytes in 2 blocks are still reachable in loss record 4,337 of 4,341 ==2657== ...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameletmaik
hostnamegithub.com
expected-hostnamegithub.com
None4462ff7ebfd3d551f202659f2423dae617b6849d23b1df6465dc504ef497d14a
turbo-cache-controlno-preview
go-importgithub.com/matplotlib/matplotlib git https://github.com/matplotlib/matplotlib.git
octolytics-dimension-user_id215947
octolytics-dimension-user_loginmatplotlib
octolytics-dimension-repository_id1385122
octolytics-dimension-repository_nwomatplotlib/matplotlib
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id1385122
octolytics-dimension-repository_network_root_nwomatplotlib/matplotlib
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release6d3909414814ff86ce7da4c51a0f4918a13fb41b
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/matplotlib/matplotlib/issues/3197#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmatplotlib%2Fmatplotlib%2Fissues%2F3197
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmatplotlib%2Fmatplotlib%2Fissues%2F3197
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=matplotlib%2Fmatplotlib
Reloadhttps://github.com/matplotlib/matplotlib/issues/3197
Reloadhttps://github.com/matplotlib/matplotlib/issues/3197
Reloadhttps://github.com/matplotlib/matplotlib/issues/3197
matplotlibhttps://github.com/matplotlib
matplotlibhttps://github.com/matplotlib/matplotlib
Codehttps://github.com/matplotlib/matplotlib
Issues1k (1k)https://github.com/matplotlib/matplotlib/issues
Pull requests429 (429)https://github.com/matplotlib/matplotlib/pulls
Actionshttps://github.com/matplotlib/matplotlib/actions
Projectshttps://github.com/matplotlib/matplotlib/projects
Wikihttps://github.com/matplotlib/matplotlib/wiki
Security and qualityhttps://github.com/matplotlib/matplotlib/security
Insightshttps://github.com/matplotlib/matplotlib/insights
https://github.com/matplotlib/matplotlib
New issuehttps://github.com/login?return_to=https://github.com/matplotlib/matplotlib/issues/3197
New issuehttps://github.com/login?return_to=https://github.com/matplotlib/matplotlib/issues/3197
Memory Leak in Agghttps://github.com/matplotlib/matplotlib/issues/3197#top
https://github.com/letmaik
letmaikhttps://github.com/letmaik
on Jul 8, 2014https://github.com/matplotlib/matplotlib/issues/3197#issue-37351726
https://github.com/tacaswell
tacaswellhttps://github.com/tacaswell
on Jul 8, 2014https://github.com/matplotlib/matplotlib/issues/3197#issuecomment-48324031
https://github.com/letmaik
letmaikhttps://github.com/letmaik
on Jul 8, 2014https://github.com/matplotlib/matplotlib/issues/3197#issuecomment-48329691
https://github.com/tacaswell
tacaswellhttps://github.com/tacaswell
on Jul 8, 2014https://github.com/matplotlib/matplotlib/issues/3197#issuecomment-48329803
https://github.com/letmaik
letmaikhttps://github.com/letmaik
on Jul 8, 2014https://github.com/matplotlib/matplotlib/issues/3197#issuecomment-48330082
https://github.com/tacaswell
tacaswellhttps://github.com/tacaswell
on Jul 9, 2014https://github.com/matplotlib/matplotlib/issues/3197#issuecomment-48417874
https://github.com/letmaik
letmaikhttps://github.com/letmaik
on Jul 9, 2014https://github.com/matplotlib/matplotlib/issues/3197#issuecomment-48435857
https://github.com/tacaswell
tacaswellhttps://github.com/tacaswell
on Jul 9, 2014https://github.com/matplotlib/matplotlib/issues/3197#issuecomment-48469900
@efiringhttps://github.com/efiring
https://github.com/dopplershift
dopplershifthttps://github.com/dopplershift
on Jul 11, 2014https://github.com/matplotlib/matplotlib/issues/3197#issuecomment-48696324
dopplershifthttps://github.com/dopplershift
on Jul 11, 2014https://github.com/matplotlib/matplotlib/issues/3197#event-140513935
Fix memory leak in tostring_rgba_minimize(). (matplotlib#3197)https://github.com/dopplershift/matplotlib/commit/493ded8519e87f23074b454d0ebb3ad7ac3486dd
matplotlib#3197https://github.com/matplotlib/matplotlib/issues/3197
493ded8https://github.com/dopplershift/matplotlib/commit/493ded8519e87f23074b454d0ebb3ad7ac3486dd
Fix memory leak in tostring_rgba_minimize(). (matplotlib#3197)https://github.com/dopplershift/matplotlib/commit/ef5f0ac984f233c3ae10da00d97a7e50d5b05514
matplotlib#3197https://github.com/matplotlib/matplotlib/issues/3197
ef5f0achttps://github.com/dopplershift/matplotlib/commit/ef5f0ac984f233c3ae10da00d97a7e50d5b05514
mdboomhttps://github.com/mdboom
on Jul 11, 2014https://github.com/matplotlib/matplotlib/issues/3197#event-140776898
Merge pull request #3207 from dopplershift/fix_memory_leakhttps://github.com/matplotlib/matplotlib/commit/3b4f958ff54c1b040b5aae413585c91b582a072b
#3207https://github.com/matplotlib/matplotlib/pull/3207
3b4f958https://github.com/matplotlib/matplotlib/commit/3b4f958ff54c1b040b5aae413585c91b582a072b
https://github.com/tacaswell
tacaswellhttps://github.com/tacaswell
on Jul 12, 2014https://github.com/matplotlib/matplotlib/issues/3197#issuecomment-48822062
@neothemachinehttps://github.com/neothemachine
tacaswellhttps://github.com/tacaswell
completedhttps://github.com/matplotlib/matplotlib/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Jul 12, 2014https://github.com/matplotlib/matplotlib/issues/3197#event-140950013
https://github.com/letmaik
letmaikhttps://github.com/letmaik
on Jul 14, 2014https://github.com/matplotlib/matplotlib/issues/3197#issuecomment-48887818
https://github.com/tacaswell
tacaswellhttps://github.com/tacaswell
on Jul 14, 2014https://github.com/matplotlib/matplotlib/issues/3197#issuecomment-48887935
#3197 (comment)https://github.com/matplotlib/matplotlib/issues/3197#issuecomment-48887818
https://github.com/letmaik
letmaikhttps://github.com/letmaik
on Jul 14, 2014https://github.com/matplotlib/matplotlib/issues/3197#issuecomment-48888046
https://github.com/tacaswell
tacaswellhttps://github.com/tacaswell
on Jul 14, 2014https://github.com/matplotlib/matplotlib/issues/3197#issuecomment-48892444
joferkingtonhttps://github.com/joferkington
on Jul 23, 2014https://github.com/matplotlib/matplotlib/issues/3197#event-144451184
Fix memory leak in tostring_rgba_minimize(). (matplotlib#3197)https://github.com/joferkington/matplotlib/commit/6843831272857b6d44fa9195c808ad8e060aba4b
matplotlib#3197https://github.com/matplotlib/matplotlib/issues/3197
6843831https://github.com/joferkington/matplotlib/commit/6843831272857b6d44fa9195c808ad8e060aba4b
Sign up for freehttps://github.com/signup?return_to=https://github.com/matplotlib/matplotlib/issues/3197
Sign in to commenthttps://github.com/login?return_to=https://github.com/matplotlib/matplotlib/issues/3197
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Response headers:
Servergithub.com
Content-Typetext/html; charset=utf-8
Cache-Controlmax-age=0, private, must-revalidate

Viewport: width=device-width


URLs of crawlers that visited me.