René's URL Explorer Experiment


Title: scene.kb.getkey segfault and related issues · Issue #9 · vpython/visual · GitHub

Open Graph Title: scene.kb.getkey segfault and related issues · Issue #9 · vpython/visual

X Title: scene.kb.getkey segfault and related issues · Issue #9 · vpython/visual

Description: Consider the following simple program #! /usr/bin/python from __future__ import print_function from visual import * while 1: rate(30) if scene.kb.keys: # check for key event s = scene.kb.getkey() # get keyboard info print("len:", len(s))...

Open Graph Description: Consider the following simple program #! /usr/bin/python from __future__ import print_function from visual import * while 1: rate(30) if scene.kb.keys: # check for key event s = scene.kb.getkey() #...

X Description: Consider the following simple program #! /usr/bin/python from __future__ import print_function from visual import * while 1: rate(30) if scene.kb.keys: # check for key event s = scene.kb.getkey() #...

Opengraph URL: https://github.com/vpython/visual/issues/9

X: @github

direct link

Domain: patch-diff.githubusercontent.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"scene.kb.getkey segfault and related issues","articleBody":"Consider the following simple program\n\n```\n#! /usr/bin/python\n\nfrom __future__ import print_function\nfrom visual import *\n\nwhile 1:\n  rate(30)\n  if scene.kb.keys:       # check for key event\n    s = scene.kb.getkey() # get keyboard info\n    print(\"len:\", len(s))\n    if len(s):\n      print(\"key event '\", s, \"'\")\n```\n\nObserved behavior:\n\n1) For the shift, ctrl, and alt keys on the left side of the keyboard, when pressed by themselves, kb.keys sees no events at all.\n\n2) The shift, ctrl, and alt keys on the right side of the keyboard, kb.getkey returns a zero-length string.\n\n3) For the keys XF86WakeUp (151), XF86Back (165), and XF86Forward (166), kb.getkey produces a segmentation fault.  This is 100% reproducible chez moi.  A stack trace is attached.\n[stacktrace.txt](https://github.com/vpython/visual/files/356177/stacktrace.txt)\n# \n\nDesired behavior:\n\n1) It would be very useful to have a way of knowing whether or not each shift, ctrl, and alt key is down at any given time.  The existing kb.keys / kb.getkey interface does not attempt to provide this information.  I could not find any alternative interface that did.\n\n2) Specific suggestion, it would be nice to have some way to obtain the standard \"event\" structures, including standard keyup / keypress / kendown events, via the polling interface.\n\n3) The event-driven interface would be even better, but that only works in vpython 6, which is not presently supported on linux platforms.  And no, my users are not going to install wine.\n\n4) Not segfaulting.\n","author":{"url":"https://github.com/JohnDenker","@type":"Person","name":"JohnDenker"},"datePublished":"2016-07-10T20:06:40.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/9/visual/issues/9"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:3ebf7991-1208-2d1c-0062-ffacd343796d
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idC7D0:3930F2:A689732:D754C47:69766632
html-safe-nonce617d1fac6aa4401209fceef7d8c63f75be443cdc807941616e3be5d90f285846
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDN0QwOjM5MzBGMjpBNjg5NzMyOkQ3NTRDNDc6Njk3NjY2MzIiLCJ2aXNpdG9yX2lkIjoiNTkyMzQ1MjM1OTA1NTY2NDY5MCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac6392eabbc891717684fe1520e27bf81393193e9adefdbd6c026acad52cb82e3f
hovercard-subject-tagissue:164731532
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/vpython/visual/9/issue_layout
twitter:imagehttps://opengraph.githubassets.com/298775a2eaa6542128e861ebf96964dc6aa4f351ba3d67f2efd94e11dd901b54/vpython/visual/issues/9
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/298775a2eaa6542128e861ebf96964dc6aa4f351ba3d67f2efd94e11dd901b54/vpython/visual/issues/9
og:image:altConsider the following simple program #! /usr/bin/python from __future__ import print_function from visual import * while 1: rate(30) if scene.kb.keys: # check for key event s = scene.kb.getkey() #...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameJohnDenker
hostnamegithub.com
expected-hostnamegithub.com
None032152924a283b83384255d9489e7b93b54ba01da8d380b05ecd3953b3212411
turbo-cache-controlno-preview
go-importgithub.com/vpython/visual git https://github.com/vpython/visual.git
octolytics-dimension-user_id1280757
octolytics-dimension-user_loginvpython
octolytics-dimension-repository_id3045458
octolytics-dimension-repository_nwovpython/visual
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id3045458
octolytics-dimension-repository_network_root_nwovpython/visual
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
release5b577f6be6482e336e3c30e8daefa30144947b17
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://patch-diff.githubusercontent.com/vpython/visual/issues/9#start-of-content
https://patch-diff.githubusercontent.com/
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fvpython%2Fvisual%2Fissues%2F9
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%2Fvpython%2Fvisual%2Fissues%2F9
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%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=vpython%2Fvisual
Reloadhttps://patch-diff.githubusercontent.com/vpython/visual/issues/9
Reloadhttps://patch-diff.githubusercontent.com/vpython/visual/issues/9
Reloadhttps://patch-diff.githubusercontent.com/vpython/visual/issues/9
vpython https://patch-diff.githubusercontent.com/vpython
visualhttps://patch-diff.githubusercontent.com/vpython/visual
Notifications https://patch-diff.githubusercontent.com/login?return_to=%2Fvpython%2Fvisual
Fork 25 https://patch-diff.githubusercontent.com/login?return_to=%2Fvpython%2Fvisual
Star 57 https://patch-diff.githubusercontent.com/login?return_to=%2Fvpython%2Fvisual
Code https://patch-diff.githubusercontent.com/vpython/visual
Issues 9 https://patch-diff.githubusercontent.com/vpython/visual/issues
Pull requests 1 https://patch-diff.githubusercontent.com/vpython/visual/pulls
Actions https://patch-diff.githubusercontent.com/vpython/visual/actions
Projects 0 https://patch-diff.githubusercontent.com/vpython/visual/projects
Wiki https://patch-diff.githubusercontent.com/vpython/visual/wiki
Security 0 https://patch-diff.githubusercontent.com/vpython/visual/security
Insights https://patch-diff.githubusercontent.com/vpython/visual/pulse
Code https://patch-diff.githubusercontent.com/vpython/visual
Issues https://patch-diff.githubusercontent.com/vpython/visual/issues
Pull requests https://patch-diff.githubusercontent.com/vpython/visual/pulls
Actions https://patch-diff.githubusercontent.com/vpython/visual/actions
Projects https://patch-diff.githubusercontent.com/vpython/visual/projects
Wiki https://patch-diff.githubusercontent.com/vpython/visual/wiki
Security https://patch-diff.githubusercontent.com/vpython/visual/security
Insights https://patch-diff.githubusercontent.com/vpython/visual/pulse
New issuehttps://patch-diff.githubusercontent.com/login?return_to=https://github.com/vpython/visual/issues/9
New issuehttps://patch-diff.githubusercontent.com/login?return_to=https://github.com/vpython/visual/issues/9
scene.kb.getkey segfault and related issueshttps://patch-diff.githubusercontent.com/vpython/visual/issues/9#top
https://github.com/JohnDenker
https://github.com/JohnDenker
JohnDenkerhttps://github.com/JohnDenker
on Jul 10, 2016https://github.com/vpython/visual/issues/9#issue-164731532
stacktrace.txthttps://github.com/vpython/visual/files/356177/stacktrace.txt
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.