Title: Blur filter throws exception if extent is too large relative to image size · Issue #723 · processing/processing4 · GitHub
Open Graph Title: Blur filter throws exception if extent is too large relative to image size · Issue #723 · processing/processing4
X Title: Blur filter throws exception if extent is too large relative to image size · Issue #723 · processing/processing4
Description: Created by: jlstrecker Description When filter(BLUR, param) is called with param above a certain amount relative to the image size, an ArithmeticException is thrown for division by zero. Expected Behavior Image is blurred the specified a...
Open Graph Description: Created by: jlstrecker Description When filter(BLUR, param) is called with param above a certain amount relative to the image size, an ArithmeticException is thrown for division by zero. Expected B...
X Description: Created by: jlstrecker Description When filter(BLUR, param) is called with param above a certain amount relative to the image size, an ArithmeticException is thrown for division by zero. Expected B...
Opengraph URL: https://github.com/processing/processing4/issues/723
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Blur filter throws exception if extent is too large relative to image size","articleBody":"*Created by: jlstrecker*\n\n## Description\r\n\r\nWhen `filter(BLUR, param)` is called with `param` above a certain amount relative to the image size, an ArithmeticException is thrown for division by zero.\r\n\r\n## Expected Behavior\r\n\r\nImage is blurred the specified amount.\r\n\r\n## Current Behavior\r\n\r\n```\r\njava.lang.ArithmeticException: / by zero\r\n\tat processing.core.PImage.blurARGB(PImage.java:1318)\r\n\tat processing.core.PImage.filter(PImage.java:991)\r\n\tat processing.opengl.PGraphicsOpenGL.filter(PGraphicsOpenGL.java:6037)\r\n\tat processing.core.PApplet.filter(PApplet.java:15081)\r\n\tat BlurTest.draw(BlurTest.java:25)\r\n\tat processing.core.PApplet.handleDraw(PApplet.java:2094)\r\n\tat processing.opengl.PSurfaceJOGL$DrawListener.display(PSurfaceJOGL.java:840)\r\n\tat jogamp.opengl.GLDrawableHelper.displayImpl(GLDrawableHelper.java:692)\r\n\tat jogamp.opengl.GLDrawableHelper.display(GLDrawableHelper.java:674)\r\n\tat jogamp.opengl.GLAutoDrawableBase$2.run(GLAutoDrawableBase.java:443)\r\n\tat jogamp.opengl.GLDrawableHelper.invokeGLImpl(GLDrawableHelper.java:1293)\r\n\tat jogamp.opengl.GLDrawableHelper.invokeGL(GLDrawableHelper.java:1147)\r\n\tat com.jogamp.newt.opengl.GLWindow.display(GLWindow.java:782)\r\n\tat com.jogamp.opengl.util.AWTAnimatorImpl.display(AWTAnimatorImpl.java:81)\r\n\tat com.jogamp.opengl.util.AnimatorBase.display(AnimatorBase.java:453)\r\n\tat com.jogamp.opengl.util.FPSAnimator$MainTask.run(FPSAnimator.java:178)\r\n\tat java.base/java.util.TimerThread.mainLoop(Timer.java:566)\r\n\tat java.base/java.util.TimerThread.run(Timer.java:516)\r\n```\r\n\r\n## Steps to Reproduce\r\n\r\nRun this sketch:\r\n\r\n```java\r\nvoid setup() {\r\n size(100, 100, P3D);\r\n}\r\n\r\nvoid draw() {\r\n background(0);\r\n ellipse(50, 50, 80, 80);\r\n filter(BLUR, 29); // 28 is OK, 29 throws exception\r\n}\r\n```\r\n\r\n## Your Environment\r\n\u003c!--- Include details about your environment. --\u003e\r\n\u003c!--- Thousands of people use Processing every day and may not have this issue, --\u003e \r\n\u003c!--- so this gives us clues about why you’re running into a problem. --\u003e\r\n* Processing version: 4.2\r\n* Operating System and OS version: macOS 10.15.7\r\n\r\n## Possible Causes / Solutions\r\n\u003c!--- Optionally, if you have a diagnosis or fix in mind, please share. --\u003e\r\n","author":{"url":"https://github.com/processing-bot","@type":"Person","name":"processing-bot"},"datePublished":"2023-05-18T15:20:27.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/723/processing4/issues/723"}
| 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:c73956f3-7aed-f2d6-abbb-38b41c45cd2c |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E112:9CC2A:1B3AFB3:25A343B:696AA84F |
| html-safe-nonce | be6be37f817b3e099a93b5d4faa6d32d011b0b7a268c5e9d3f7b71ec3a3a5ea0 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMTEyOjlDQzJBOjFCM0FGQjM6MjVBMzQzQjo2OTZBQTg0RiIsInZpc2l0b3JfaWQiOiI4NDI1OTg5NjUzMzU2MjU5NDA3IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 5757d33a7dbbe47f5b36123632047f08b9c58915db68c5e0736eaa59aa6f1b89 |
| hovercard-subject-tag | issue:2472646640 |
| github-keyboard-shortcuts | repository,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/processing/processing4/723/issue_layout |
| twitter:image | https://opengraph.githubassets.com/eb8b3dca318a05c6782a9860a14e74f7010c57a1becad9c7057e3423aa6a4208/processing/processing4/issues/723 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/eb8b3dca318a05c6782a9860a14e74f7010c57a1becad9c7057e3423aa6a4208/processing/processing4/issues/723 |
| og:image:alt | Created by: jlstrecker Description When filter(BLUR, param) is called with param above a certain amount relative to the image size, an ArithmeticException is thrown for division by zero. Expected B... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | processing-bot |
| hostname | github.com |
| expected-hostname | github.com |
| None | 3eaf9b8cf1badcd7041a8ad480b9d9b28bea0ef1cc821ca9ff20f2cc7f4fe4b9 |
| turbo-cache-control | no-preview |
| go-import | github.com/processing/processing4 git https://github.com/processing/processing4.git |
| octolytics-dimension-user_id | 1617169 |
| octolytics-dimension-user_login | processing |
| octolytics-dimension-repository_id | 844382769 |
| octolytics-dimension-repository_nwo | processing/processing4 |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 844382769 |
| octolytics-dimension-repository_network_root_nwo | processing/processing4 |
| 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 | dd9a979046e6382bd084e2bd873bf65f797125ff |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width