René's URL Explorer Experiment


Title: Buffer too small · pyControl · Discussion #146 · GitHub

Open Graph Title: Buffer too small · pyControl · Discussion #146

X Title: Buffer too small · pyControl · Discussion #146

Description: Buffer too small

Open Graph Description: I have created a task that has quite a few variables, it loads ok however as soon as i try to run it i get the following output: Connecting to board COM3 Micropython version: 1.241 Framework versio...

X Description: I have created a task that has quite a few variables, it loads ok however as soon as i try to run it i get the following output: Connecting to board COM3 Micropython version: 1.241 Framework versio...

Opengraph URL: https://github.com/orgs/pyControl/discussions/146

X: @github

direct link

Domain: patch-diff.githubusercontent.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"QAPage","mainEntity":{"@type":"Question","name":"Buffer too small","text":"

I have created a task that has quite a few variables, it loads ok however as soon as i try to run it i get the following output:

\n
Connecting to board COM3\n\nMicropython version: 1.241\nFramework version: 2.0.2\n\nTransferring state machine Experiments - Two pumps\\E1_2_pumps_behavioral_experiment to pyboard. OK\n\nRun started at: 2025/04/08 16:33:34\n\n484477:33:34.543\terror\t\t\n\nTraceback (most recent call last):\n  File \"<stdin>\", line 1, in <module>\n  File \"pyControl/framework.py\", line 175, in run\n  File \"pyControl/framework.py\", line 91, in output_data\nOverflowError: buffer too small\n\nError during framework run.\n
\n

From what i understand it's trying to print the initial values of all the public variables but i guess the list is to long i my case.
\nWould love to hear if anyone has encountered something similar? Is there a fix?
\nI tried reading the framework.py code but didn't see a problem with it.

\n

The task and controls GUI code

","upvoteCount":1,"answerCount":1,"acceptedAnswer":{"@type":"Answer","text":"

Hey @guykoy123, I ran into the exact same issue (described here) after upgrading to 1.24.

\n

The fixes (cef428d and 145e97b) have been merged into the latest pyControl code.

\n

If you are tracking pyControl with git, you can git pull the latest changes and that will fix the problem. Otherwise, you can delete your local copy of source/pyControl/hardware.py file and replace it with the latest hardware.py which you can download here. Do the same for source/pyControl/framework.py (download here)

\n

\"CleanShot

","upvoteCount":1,"url":"https://github.com/orgs/pyControl/discussions/146#discussioncomment-12769147"}}}

route-pattern/_view_fragments/Voltron::DiscussionsFragmentsController/show/orgs/:org/:discussion_number/discussion_layout(.:format)
route-controllervoltron_discussions_fragments
route-actiondiscussion_layout
fetch-noncev2:74c76c3f-6f89-6052-6e9f-c95118a30c1d
current-catalog-service-hash9f0abe34da433c9b6db74bffa2466494a717b579a96b30a5d252e5090baea7be
request-id9BB2:34C66:5911E6:745AB5:698EB4EB
html-safe-nonce953ae05868c0e5a1291d60d39a0fb2d9026406da7da321f0e2c3d1816b16d6aa
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5QkIyOjM0QzY2OjU5MTFFNjo3NDVBQjU6Njk4RUI0RUIiLCJ2aXNpdG9yX2lkIjoiNTQzNDM4NTEzNzQzNjM3NDI1MSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacce0cc90555e9350f2310abe8e6fdba7568b1b901e87ea301c55955321726847f
hovercard-subject-tagdiscussion:8179271
github-keyboard-shortcutsrepository,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/discussions_fragments/discussion_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/Voltron::DiscussionsFragmentsController/show/orgs/pyControl/146/discussion_layout
twitter:imagehttps://opengraph.githubassets.com/ee477408c06976b0ef19254f87a682404d8605e4d192d331d0d0cf082f284e66/orgs/pyControl/discussions/146
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/ee477408c06976b0ef19254f87a682404d8605e4d192d331d0d0cf082f284e66/orgs/pyControl/discussions/146
og:image:altI have created a task that has quite a few variables, it loads ok however as soon as i try to run it i get the following output: Connecting to board COM3 Micropython version: 1.241 Framework versio...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Nonecb2828a801ee6b7be618f3ac76fbf55def35bbc30f053a9c41bf90210b8b72ba
turbo-cache-controlno-preview
octolytics-dimension-user_id58780920
octolytics-dimension-user_loginpyControl
octolytics-dimension-repository_id219033872
octolytics-dimension-repository_nwopyControl/code
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id219033872
octolytics-dimension-repository_network_root_nwopyControl/code
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
releasee6b91a7e6e46287d26887e3fb7a4161657bab8f7
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://patch-diff.githubusercontent.com/pyControl/code/discussions/146#start-of-content
https://patch-diff.githubusercontent.com/
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Forgs%2FpyControl%2Fdiscussions%2F146
pyControlhttps://patch-diff.githubusercontent.com/pyControl
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
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
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://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/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Forgs%2FpyControl%2Fdiscussions%2F146
Sign up https://patch-diff.githubusercontent.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fdiscussions_fragments%2Fdiscussion_layout&source=header-repo&source_repo=pyControl%2Fcode
Reloadhttps://patch-diff.githubusercontent.com/pyControl/code/discussions/146
Reloadhttps://patch-diff.githubusercontent.com/pyControl/code/discussions/146
Reloadhttps://patch-diff.githubusercontent.com/pyControl/code/discussions/146
pyControl https://patch-diff.githubusercontent.com/pyControl
Overview https://patch-diff.githubusercontent.com/pyControl
Repositories https://patch-diff.githubusercontent.com/orgs/pyControl/repositories
Discussions https://patch-diff.githubusercontent.com/orgs/pyControl/discussions
Projects https://patch-diff.githubusercontent.com/orgs/pyControl/projects
Packages https://patch-diff.githubusercontent.com/orgs/pyControl/packages
People https://patch-diff.githubusercontent.com/orgs/pyControl/people
Overviewhttps://patch-diff.githubusercontent.com/pyControl
Repositorieshttps://patch-diff.githubusercontent.com/orgs/pyControl/repositories
Discussionshttps://patch-diff.githubusercontent.com/orgs/pyControl/discussions
Projectshttps://patch-diff.githubusercontent.com/orgs/pyControl/projects
Packageshttps://patch-diff.githubusercontent.com/orgs/pyControl/packages
Peoplehttps://patch-diff.githubusercontent.com/orgs/pyControl/people
Answered https://patch-diff.githubusercontent.com/pyControl/code/discussions/146#discussioncomment-12769147
alustig3https://patch-diff.githubusercontent.com/alustig3
guykoy123 https://patch-diff.githubusercontent.com/guykoy123
Q&Ahttps://patch-diff.githubusercontent.com/orgs/pyControl/discussions/categories/q-a
Buffer too small https://patch-diff.githubusercontent.com/pyControl/code/discussions/146#top
guykoy123 https://patch-diff.githubusercontent.com/guykoy123
Answered https://patch-diff.githubusercontent.com/pyControl/code/discussions/146#discussioncomment-12769147
alustig3https://patch-diff.githubusercontent.com/alustig3
Return to tophttps://patch-diff.githubusercontent.com/pyControl/code/discussions/146#top
Please reload this pagehttps://patch-diff.githubusercontent.com/pyControl/code/discussions/146
https://patch-diff.githubusercontent.com/pyControl/code/discussions/146
guykoy123 https://patch-diff.githubusercontent.com/guykoy123
Apr 8, 2025 https://patch-diff.githubusercontent.com/pyControl/code/discussions/146#discussion-8179271
task and controls GUI codehttps://bitbucket.org/guykoy123/workspace/snippets/REpxrR
Give feedback.https://patch-diff.githubusercontent.com/pyControl/code/discussions/146
alustig3 https://patch-diff.githubusercontent.com/alustig3
Apr 8, 2025 https://github.com/orgs/pyControl/discussions/146#discussioncomment-12769147
@guykoy123https://github.com/guykoy123
herehttps://github.com/pyControl/code/pull/136
cef428dhttps://github.com/pyControl/code/commit/cef428de74c8f9732ca953571e4935a6b1cf2381
145e97bhttps://github.com/pyControl/code/commit/145e97b5744c8f2fe5f82e9e6e7f98d1414973c8
herehttps://github.com/pyControl/code/blob/master/source/pyControl/hardware.py
herehttps://github.com/pyControl/code/blob/master/source/pyControl/framework.py
View full answer https://patch-diff.githubusercontent.com/pyControl/code/discussions/146#discussioncomment-12769147
Oldest https://patch-diff.githubusercontent.com/orgs/pyControl/discussions/146?sort=old
Newest https://patch-diff.githubusercontent.com/orgs/pyControl/discussions/146?sort=new
Top https://patch-diff.githubusercontent.com/orgs/pyControl/discussions/146?sort=top
Please reload this pagehttps://patch-diff.githubusercontent.com/pyControl/code/discussions/146
https://patch-diff.githubusercontent.com/pyControl/code/discussions/146
Please reload this pagehttps://patch-diff.githubusercontent.com/pyControl/code/discussions/146
https://patch-diff.githubusercontent.com/pyControl/code/discussions/146
alustig3 https://patch-diff.githubusercontent.com/alustig3
Apr 8, 2025 https://patch-diff.githubusercontent.com/pyControl/code/discussions/146#discussioncomment-12769147
@guykoy123https://github.com/guykoy123
herehttps://github.com/pyControl/code/pull/136
cef428dhttps://github.com/pyControl/code/commit/cef428de74c8f9732ca953571e4935a6b1cf2381
145e97bhttps://github.com/pyControl/code/commit/145e97b5744c8f2fe5f82e9e6e7f98d1414973c8
herehttps://github.com/pyControl/code/blob/master/source/pyControl/hardware.py
herehttps://github.com/pyControl/code/blob/master/source/pyControl/framework.py
https://private-user-images.githubusercontent.com/8128628/431531966-be590ef0-8f42-4cb2-816d-7956e5c9afa9.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NzA5NjA0MDcsIm5iZiI6MTc3MDk2MDEwNywicGF0aCI6Ii84MTI4NjI4LzQzMTUzMTk2Ni1iZTU5MGVmMC04ZjQyLTRjYjItODE2ZC03OTU2ZTVjOWFmYTkucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI2MDIxMyUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNjAyMTNUMDUyMTQ3WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9YjdkNjI4OWVmMzFlNWM1ZjQ1M2NlM2FmZGE3MzVmYWE4M2E5Nzk4ZjUzMzE0ZTkzMzgwNjNhNDcwZTg1MzU2NCZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.YILM3tifD8YwlnpPK25Y0IbQwSKdl3yPZuX12a8QFOU
Give feedback.https://patch-diff.githubusercontent.com/pyControl/code/discussions/146
https://patch-diff.githubusercontent.com/alustig3
Please reload this pagehttps://patch-diff.githubusercontent.com/pyControl/code/discussions/146
https://patch-diff.githubusercontent.com/pyControl/code/discussions/146
alustig3https://patch-diff.githubusercontent.com/alustig3
Apr 9, 2025 https://patch-diff.githubusercontent.com/pyControl/code/discussions/146#discussioncomment-12782365
Give feedback.https://patch-diff.githubusercontent.com/pyControl/code/discussions/146
guykoy123https://patch-diff.githubusercontent.com/guykoy123
Sign up for freehttps://patch-diff.githubusercontent.com/join?source=comment-repo
Sign in to commenthttps://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Forgs%2FpyControl%2Fdiscussions%2F146
🙏 Q&A https://patch-diff.githubusercontent.com/orgs/pyControl/discussions/categories/q-a
https://patch-diff.githubusercontent.com/guykoy123
https://patch-diff.githubusercontent.com/alustig3
https://patch-diff.githubusercontent.com/pyControl/code/discussions/146
https://patch-diff.githubusercontent.com/settings/replies?return_to=1
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.