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
Domain: patch-diff.githubusercontent.com
{"@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:
\nConnecting 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
\nFrom 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.
\nThe 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.
\nThe fixes (cef428d and 145e97b) have been merged into the latest pyControl code.
\nIf 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","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-controller | voltron_discussions_fragments |
| route-action | discussion_layout |
| fetch-nonce | v2:74c76c3f-6f89-6052-6e9f-c95118a30c1d |
| current-catalog-service-hash | 9f0abe34da433c9b6db74bffa2466494a717b579a96b30a5d252e5090baea7be |
| request-id | 9BB2:34C66:5911E6:745AB5:698EB4EB |
| html-safe-nonce | 953ae05868c0e5a1291d60d39a0fb2d9026406da7da321f0e2c3d1816b16d6aa |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5QkIyOjM0QzY2OjU5MTFFNjo3NDVBQjU6Njk4RUI0RUIiLCJ2aXNpdG9yX2lkIjoiNTQzNDM4NTEzNzQzNjM3NDI1MSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | ce0cc90555e9350f2310abe8e6fdba7568b1b901e87ea301c55955321726847f |
| hovercard-subject-tag | discussion:8179271 |
| github-keyboard-shortcuts | repository,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/Voltron::DiscussionsFragmentsController/show/orgs/pyControl/146/discussion_layout |
| twitter:image | https://opengraph.githubassets.com/ee477408c06976b0ef19254f87a682404d8605e4d192d331d0d0cf082f284e66/orgs/pyControl/discussions/146 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/ee477408c06976b0ef19254f87a682404d8605e4d192d331d0d0cf082f284e66/orgs/pyControl/discussions/146 |
| og:image:alt | 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... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | cb2828a801ee6b7be618f3ac76fbf55def35bbc30f053a9c41bf90210b8b72ba |
| turbo-cache-control | no-preview |
| octolytics-dimension-user_id | 58780920 |
| octolytics-dimension-user_login | pyControl |
| octolytics-dimension-repository_id | 219033872 |
| octolytics-dimension-repository_nwo | pyControl/code |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 219033872 |
| octolytics-dimension-repository_network_root_nwo | pyControl/code |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | e6b91a7e6e46287d26887e3fb7a4161657bab8f7 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width