René's URL Explorer Experiment


Title: Automargin call stack size exceeded exception when resizing window · Issue #4028 · plotly/plotly.js · GitHub

Open Graph Title: Automargin call stack size exceeded exception when resizing window · Issue #4028 · plotly/plotly.js

X Title: Automargin call stack size exceeded exception when resizing window · Issue #4028 · plotly/plotly.js

Description: Resizing the browser window horizontally for a plot created using the code in the following codepen appears to occasionally result in a very specific case of the issue reported in #3561 : https://codepen.io/alanjmac/pen/oraKpR The combin...

Open Graph Description: Resizing the browser window horizontally for a plot created using the code in the following codepen appears to occasionally result in a very specific case of the issue reported in #3561 : https://c...

X Description: Resizing the browser window horizontally for a plot created using the code in the following codepen appears to occasionally result in a very specific case of the issue reported in #3561 : https://c...

Opengraph URL: https://github.com/plotly/plotly.js/issues/4028

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Automargin call stack size exceeded exception when resizing window","articleBody":"Resizing the browser window horizontally for a plot created using the code in the following codepen appears to occasionally result in a very specific case of the issue reported in #3561 :\r\nhttps://codepen.io/alanjmac/pen/oraKpR\r\n\r\nThe combination of layout options I found that will cause the stack overflow exception is when the xaxis has `automargin: true` and default values are also given for the plot margins, e.g.\r\n`margin: {\r\n  t: 30,\r\n  b: 55,\r\n  l: 20,\r\n  r: 20\r\n}`\r\nIf the right margin is set to null then I no longer experience the stack exception.\r\nI am specifying the margins because the default values leave too much space around the plot for my needs. Then automargin is required so that the axis titles do not overflow or overlap the axes labels.\r\n\r\nThe following GIF demonstrates how resizing the window leads to the mentioned exception (reproduced in Chrome and Firefox browsers on Ubuntu 18.04):\r\n![ResizeStackSizeException](https://user-images.githubusercontent.com/11413124/60816209-83835000-a199-11e9-8345-15f3171d6119.gif)\r\n\r\nThe following \"Uncaught RangeError: Maximum call stack size exceeded\" exception appears to be due to an infinite loop originating in or related to the doAutoMargin method:\r\n\r\n> plotly-latest.js:115686 Uncaught RangeError: Maximum call stack size exceeded\r\n    at Object.exports.drawMarginPushers (plotly-latest.js:115686)\r\n    at marginPushers (plotly-latest.js:110092)\r\n    at Object.lib.syncOrAsync (plotly-latest.js:104804)\r\n    at plot (plotly-latest.js:110174)\r\n    at Object.exports.call (plotly-latest.js:144186)\r\n    at plots.doAutoMargin (plotly-latest.js:137223)\r\n    at Object.lib.syncOrAsync (plotly-latest.js:104804)\r\n    at plot (plotly-latest.js:110174)\r\n    at Object.exports.call (plotly-latest.js:144186)\r\n    at plots.doAutoMargin (plotly-latest.js:137223)\r\n\r\nOccasionally this is followed by one of the following other exceptions:\r\n> plotly-latest.js:105176 Uncaught TypeError: Cannot read property 'select' of undefined\r\n    at Object.lib.ensureSingle (plotly-latest.js:105176)\r\n    at Object.drawing.initGradients (plotly-latest.js:87445)\r\n    at plot (plotly-latest.js:109966)\r\n    at Object.exports.call (plotly-latest.js:144186)\r\n    at exports.layoutReplot (plotly-latest.js:115489)\r\n    at Object.lib.syncOrAsync (plotly-latest.js:104804)\r\n    at relayout (plotly-latest.js:111688)\r\n    at Object.exports.call (plotly-latest.js:144186)\r\n    at plotly-latest.js:135385\r\n\r\n> Uncaught TypeError: fullLayout._has is not a function\r\n    at _relayout (plotly-latest.js:112043)\r\n    at relayout (plotly-latest.js:111652)\r\n    at Object.exports.call (plotly-latest.js:144186)\r\n    at plotly-latest.js:135385\r\n\r\n","author":{"url":"https://github.com/AlanJMac","@type":"Person","name":"AlanJMac"},"datePublished":"2019-07-08T14:06:38Z","url":"https://github.com/plotly/plotly.js/issues/4028"}

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:4506bec2-089c-257a-8490-d6bd024c136d
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id8E6C:3A73AA:18116E7:1E750B3:6B017BC2
html-safe-nonce1dfcf56fee91a372a2e4085a5fd274a151eb6bab70734c911b2c04712aa1b54e
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4RTZDOjNBNzNBQToxODExNkU3OjFFNzUwQjM6NkIwMTdCQzIiLCJ2aXNpdG9yX2lkIjoiMTI4NzY0Njk1NTM3MTA2ODM1NCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacf04999c30adef45a5f675d1cedb85bb1257e10be4f5cbf1ddfd5749b785c8c70
hovercard-subject-tagissue:465278501
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/plotly/plotly.js/4028/issue_layout
twitter:imagehttps://opengraph.githubassets.com/350d30025887c4daad3ffe6a7ef8d5ab5a5fc4aae8a4b4dae5ff0f63ba76fb0b/plotly/plotly.js/issues/4028
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/350d30025887c4daad3ffe6a7ef8d5ab5a5fc4aae8a4b4dae5ff0f63ba76fb0b/plotly/plotly.js/issues/4028
og:image:altResizing the browser window horizontally for a plot created using the code in the following codepen appears to occasionally result in a very specific case of the issue reported in #3561 : https://c...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameAlanJMac
hostnamegithub.com
expected-hostnamegithub.com
Nonecc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c
turbo-cache-controlno-preview
go-importgithub.com/plotly/plotly.js git https://github.com/plotly/plotly.js.git
octolytics-dimension-user_id5997976
octolytics-dimension-user_loginplotly
octolytics-dimension-repository_id45646037
octolytics-dimension-repository_nwoplotly/plotly.js
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id45646037
octolytics-dimension-repository_network_root_nwoplotly/plotly.js
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
release8c77c9e8439031ad54c75a250694842892f693e1
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/plotly/plotly.js/issues/4028#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fplotly%2Fplotly.js%2Fissues%2F4028
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%2Fplotly%2Fplotly.js%2Fissues%2F4028
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=plotly%2Fplotly.js
Reloadhttps://github.com/plotly/plotly.js/issues/4028
Reloadhttps://github.com/plotly/plotly.js/issues/4028
Reloadhttps://github.com/plotly/plotly.js/issues/4028
plotlyhttps://github.com/plotly
plotly.jshttps://github.com/plotly/plotly.js
Codehttps://github.com/plotly/plotly.js
Issues726 (726)https://github.com/plotly/plotly.js/issues
Pull requests84 (84)https://github.com/plotly/plotly.js/pulls
Actionshttps://github.com/plotly/plotly.js/actions
Security and qualityhttps://github.com/plotly/plotly.js/security
Insightshttps://github.com/plotly/plotly.js/insights
https://github.com/plotly/plotly.js
New issuehttps://github.com/login?return_to=https://github.com/plotly/plotly.js/issues/4028
New issuehttps://github.com/login?return_to=https://github.com/plotly/plotly.js/issues/4028
#4216https://github.com/plotly/plotly.js/pull/4216
Automargin call stack size exceeded exception when resizing windowhttps://github.com/plotly/plotly.js/issues/4028#top
#4216https://github.com/plotly/plotly.js/pull/4216
https://github.com/etpinard
bugsomething brokenhttps://github.com/plotly/plotly.js/issues?q=state%3Aopen%20label%3A%22bug%22
v1.50.0https://github.com/plotly/plotly.js/milestone/46
https://github.com/AlanJMac
AlanJMachttps://github.com/AlanJMac
on Jul 8, 2019https://github.com/plotly/plotly.js/issues/4028#issue-465278501
#3561https://github.com/plotly/plotly.js/issues/3561
https://codepen.io/alanjmac/pen/oraKpRhttps://codepen.io/alanjmac/pen/oraKpR
https://user-images.githubusercontent.com/11413124/60816209-83835000-a199-11e9-8345-15f3171d6119.gif
https://github.com/etpinard
etpinardhttps://github.com/etpinard
on Jul 8, 2019https://github.com/plotly/plotly.js/issues/4028#issuecomment-509251853
etpinardhttps://github.com/etpinard
bugsomething brokenhttps://github.com/plotly/plotly.js/issues?q=state%3Aopen%20label%3A%22bug%22
on Jul 8, 2019https://github.com/plotly/plotly.js/issues/4028#event-2466379239
https://github.com/etpinard
etpinardhttps://github.com/etpinard
on Jul 8, 2019https://github.com/plotly/plotly.js/issues/4028#issuecomment-509272345
#2704https://github.com/plotly/plotly.js/issues/2704
etpinardhttps://github.com/etpinard
on Jul 25, 2019https://github.com/plotly/plotly.js/issues/4028#event-2510752061
etpinardhttps://github.com/etpinard
v1.50.0https://github.com/plotly/plotly.js/milestone/46
on Jul 25, 2019https://github.com/plotly/plotly.js/issues/4028#event-2510752175
https://github.com/etpinard
etpinardhttps://github.com/etpinard
on Aug 6, 2019https://github.com/plotly/plotly.js/issues/4028#issuecomment-518820089
1c09a52https://github.com/plotly/plotly.js/commit/1c09a52cac6f0c85378e1724d41e1e46e39d5ebe
https://codepen.io/etpinard/pen/qexqMmhttps://codepen.io/etpinard/pen/qexqMm
https://github.com/wbrgss
wbrgsshttps://github.com/wbrgss
on Sep 13, 2019https://github.com/plotly/plotly.js/issues/4028#issuecomment-531283291
@cldouglhttps://github.com/cldougl
@chriddyphttps://github.com/chriddyp
https://codepen.io/wbrgss/pen/LYPryKOhttps://codepen.io/wbrgss/pen/LYPryKO
https://user-images.githubusercontent.com/9068290/64874648-7fe8cb00-d619-11e9-859d-006358a61562.png
@etpinardhttps://github.com/etpinard
https://github.com/etpinard
etpinardhttps://github.com/etpinard
on Sep 24, 2019https://github.com/plotly/plotly.js/issues/4028#issuecomment-534711341
@wbrgsshttps://github.com/wbrgss
#2704 (comment)https://github.com/plotly/plotly.js/issues/2704#issuecomment-524474154
https://codepen.io/etpinard/pen/GRKeKbKhttps://codepen.io/etpinard/pen/GRKeKbK
etpinardhttps://github.com/etpinard
completedhttps://github.com/plotly/plotly.js/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
#4216https://github.com/plotly/plotly.js/pull/4216
on Sep 25, 2019https://github.com/plotly/plotly.js/issues/4028#event-2661947014
Sign up for freehttps://github.com/signup?return_to=https://github.com/plotly/plotly.js/issues/4028
Sign in to commenthttps://github.com/login?return_to=https://github.com/plotly/plotly.js/issues/4028
etpinardhttps://github.com/etpinard
bugsomething brokenhttps://github.com/plotly/plotly.js/issues?q=state%3Aopen%20label%3A%22bug%22
v1.50.0https://github.com/plotly/plotly.js/milestone/46
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

Viewport: width=device-width


URLs of crawlers that visited me.