Title: Program crashes when calling ctx.stroke() even when wrapped in try · Issue #388 · treeform/pixie · GitHub
Open Graph Title: Program crashes when calling ctx.stroke() even when wrapped in try · Issue #388 · treeform/pixie
X Title: Program crashes when calling ctx.stroke() even when wrapped in try · Issue #388 · treeform/pixie
Description: I'm using pixie.Context to experiment with some semi-random drawing. I build strokeStyle and path and then execute ctx.stroke. The program crashes even if I wrap the ctx.stroke call in a try. I daresay that the strokeStyle is the culprit...
Open Graph Description: I'm using pixie.Context to experiment with some semi-random drawing. I build strokeStyle and path and then execute ctx.stroke. The program crashes even if I wrap the ctx.stroke call in a try. I dar...
X Description: I'm using pixie.Context to experiment with some semi-random drawing. I build strokeStyle and path and then execute ctx.stroke. The program crashes even if I wrap the ctx.stroke call in a try. I...
Opengraph URL: https://github.com/treeform/pixie/issues/388
X: @github
Domain: github.com
IPv4 address: 140.82.114.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Program crashes when calling ctx.stroke() even when wrapped in try","articleBody":"I'm using pixie.Context to experiment with some semi-random drawing.\r\nI build strokeStyle and path and then execute ctx.stroke. The program crashes even if I wrap the ctx.stroke call in a try.\r\nI daresay that the strokeStyle is the culprit but it should surely not kill the program.\r\n\r\nthe snippet of code looks like this:\r\n```\r\n echo \"GStroke\"\r\n echo \"StrokeStyle: \", ctx.strokeStyle.repr\r\n try:\r\n ctx.stroke()\r\n except:\r\n echo getCurrentExceptionMsg()\r\n raise\r\n```\r\nAnd this is the result:\r\n\r\n> GStroke\r\n> StrokeStyle: ref 0x7fb0d3461590 --> [kind = AngularGradientPaint,\r\n> blendMode = NormalBlend,\r\n> opacity = 0.2196078449487686,\r\n> color = [r = 0.2156862765550613,\r\n> g = 0.0,\r\n> b = 0.007843137718737125,\r\n> a = 0.2196078449487686],\r\n> image = ref 0x7fb0d345a050 --> [width = 1,\r\n> height = 1,\r\n> data = 0x7fb0d345a080@[[r = 0,\r\n> g = 0,\r\n> b = 0,\r\n> a = 0]]],\r\n> imageMat = [arr = [1.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 1.0]],\r\n> gradientHandlePositions = 0x7fb0d345e5d0@[[arr = [0.0, 0.0]], [arr = [0.0, 0.0]], [arr = [0.0, 0.0]]],\r\n> gradientStops = 0x7fb0d345e450@[[color = [r = 0.0,\r\n> g = 0.0,\r\n> b = 0.0,\r\n> a = 0.0],\r\n> position = 0.0]]]\r\n> Killed\r\n> Error: execution of an external program failed: ...\r\n> \r\nI can try to create a stand alone example if necessary. \r\n\r\nEdit: I've hardcoded the paint kind to SolidPaint so presumably it is not the strokeStyle that is the problem after all, perhaps it is the path.","author":{"url":"https://github.com/kwhitefoot","@type":"Person","name":"kwhitefoot"},"datePublished":"2022-03-11T17:01:17Z","url":"https://github.com/treeform/pixie/issues/388"}
| react-profiling | 0 |
| react-import-map | react,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-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:55927238-8d52-bd5a-b578-086f51459d5a |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D374:26AE17:EC53:127F7:6B04E63D |
| html-safe-nonce | 99f92dc1c09035861c8679dcb55ddf9c36e9be000dd86b656e44c8bde7d09f1d |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMzc0OjI2QUUxNzpFQzUzOjEyN0Y3OjZCMDRFNjNEIiwidmlzaXRvcl9pZCI6IjE1NDUyMzM3Mjc3MDg1MjIwNDUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 2dadfb05529ed90887925fd8989df32640d5b233ba208f8ccc4ec1006f4f943a |
| hovercard-subject-tag | issue:1166651749 |
| github-keyboard-shortcuts | repository,source-code,file-tree,issues,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/issues/show/treeform/pixie/388/issue_layout |
| twitter:image | https://opengraph.githubassets.com/97f6f47a2bf4714ce2467a9b629f54b9d98369b91fdcdc7e4c08c990e5d871c2/treeform/pixie/issues/388 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/97f6f47a2bf4714ce2467a9b629f54b9d98369b91fdcdc7e4c08c990e5d871c2/treeform/pixie/issues/388 |
| og:image:alt | I'm using pixie.Context to experiment with some semi-random drawing. I build strokeStyle and path and then execute ctx.stroke. The program crashes even if I wrap the ctx.stroke call in a try. I dar... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | kwhitefoot |
| hostname | github.com |
| expected-hostname | github.com |
| None | f3851aad500d8e8dce736722ddc6fa9596e17d9fce3c53581eba968664c0bc32 |
| turbo-cache-control | no-preview |
| go-import | github.com/treeform/pixie git https://github.com/treeform/pixie.git |
| octolytics-dimension-user_id | 125948 |
| octolytics-dimension-user_login | treeform |
| octolytics-dimension-repository_id | 314427501 |
| octolytics-dimension-repository_nwo | treeform/pixie |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 314427501 |
| octolytics-dimension-repository_network_root_nwo | treeform/pixie |
| 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 | e29c922455fd8137f27e1cfcdf6a1e8b920b1926 |
| ui-target | canary-1 |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width