{"action":"created","issue":{"url":"https://api.github.com/repos/processing/processing/issues/5632","repository_url":"https://api.github.com/repos/processing/processing","labels_url":"https://api.github.com/repos/processing/processing/issues/5632/labels{/name}","comments_url":"https://api.github.com/repos/processing/processing/issues/5632/comments","events_url":"https://api.github.com/repos/processing/processing/issues/5632/events","html_url":"https://github.com/processing/processing/issues/5632","id":354350826,"node_id":"MDU6SXNzdWUzNTQzNTA4MjY=","number":5632,"title":"Segmentation fault/non-working renderer (default, P2D, P3D)","user":{"login":"hkiel","id":9904830,"node_id":"MDQ6VXNlcjk5MDQ4MzA=","avatar_url":"https://avatars3.githubusercontent.com/u/9904830?v=4","gravatar_id":"","url":"https://api.github.com/users/hkiel","html_url":"https://github.com/hkiel","followers_url":"https://api.github.com/users/hkiel/followers","following_url":"https://api.github.com/users/hkiel/following{/other_user}","gists_url":"https://api.github.com/users/hkiel/gists{/gist_id}","starred_url":"https://api.github.com/users/hkiel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hkiel/subscriptions","organizations_url":"https://api.github.com/users/hkiel/orgs","repos_url":"https://api.github.com/users/hkiel/repos","events_url":"https://api.github.com/users/hkiel/events{/privacy}","received_events_url":"https://api.github.com/users/hkiel/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-08-27T14:49:15Z","updated_at":"2018-08-27T15:47:58Z","closed_at":null,"author_association":"NONE","body":"<!--- ** For coding questions, please use https://forum.processing.org ** -->\r\n<!--- ** This form is only for bugs in the software & feature requests ** -->\r\n\r\n<!--- ** Also be sure to read the troubleshooting page first: ** -->\r\n<!--- ** https://github.com/processing/processing/wiki/Troubleshooting ** -->\r\n\r\n<!--- ** Before posting, please search Issues for duplicates  ** --> \r\n\r\n## Description\r\nGraphics not updated correctly or segmentation fault, depending on which renderer is selected\r\n\r\n## Expected Behavior\r\nBelow code should just work fine (as it does with FX2D)\r\n\r\n## Current Behavior\r\n- graphics is not updated with default renderer `size(300,200);`\r\nIt works fine if I comment out the `noLoop()`\r\n\r\n- Segmentation fault with P2D/P3D renderer `size(300,200,P2D)` (see below)\r\nwhen doing first key press\r\n- works just fine with size(300,200,FX2D);\r\n\r\n<!--- Explain the difference from current behavior. -->\r\n\r\n## Steps to Reproduce\r\n<!--- Provide an unambiguous set of steps to reproduce. -->\r\n<!--- Including code will make it more likely to be fixed. -->\r\n\r\n```\r\nint zahl;\r\nint raten;\r\n\r\nvoid setup() {\r\n  size(300, 200);\r\n  zahl = (int)random(0, 100);\r\n  raten = 0;\r\n  background(255);\r\n  fill(0);\r\n  text(\"Errate mich (0-100)\", 10, 10);\r\n  noLoop();\r\n}\r\nvoid draw() {\r\n}\r\nvoid keyPressed() {\r\n  background(255);\r\n  fill(0);\r\n  text(\"Errate mich (0-100)\", 10, 10);\r\n  if (key==ENTER||key==RETURN) {\r\n    if (raten>zahl) text(raten+\" ist zu groß!\", 10, 50);\r\n    else if (raten<zahl) text(raten+\" ist zu klein!\", 10, 50);\r\n    else {\r\n      text(raten+\" ist richtig!\", 10, 50);\r\n      zahl = (int)random(0, 100);\r\n    }\r\n    raten = 0;\r\n  } else if (key>='0' && key <='9') {\r\n    raten = raten*10+key-'0';\r\n    println(raten+\"(\"+zahl+\")\");\r\n  }\r\n  text(raten, 10, 30);\r\n  redraw();\r\n}\r\n```\r\n\r\n```\r\n\r\n#\r\n# A fatal error has been detected by the Java Runtime Environment:\r\n#\r\n#  SIGSEGV (0xb) at pc=0x00007fffa2222e31, pid=8425, tid=0x000000000000fc07\r\n#\r\n# JRE version: Java(TM) SE Runtime Environment (8.0_181-b13) (build 1.8.0_181-b13)\r\n# Java VM: Java HotSpot(TM) 64-Bit Server VM (25.181-b13 mixed mode bsd-amd64 compressed oops)\r\n# Problematic frame:\r\n# C  [libGL.dylib+0xe31]  glClearColor+0xd\r\n#\r\n# Failed to write core dump. Core dumps have been disabled. To enable core dumping, try \"ulimit -c unlimited\" before starting Java again\r\n#\r\n# An error report file with more information is saved as:\r\n# /Users/foo/hs_err_pid8425.log\r\n#\r\n# If you would like to submit a bug report, please visit:\r\n#   http://bugreport.java.com/bugreport/crash.jsp\r\n# The crash happened outside the Java Virtual Machine in native code.\r\n# See problematic frame for where to report the bug.\r\n#\r\nCould not run the sketch (Target VM failed to initialize).\r\nFor more information, read revisions.txt and Help → Troubleshooting.\r\n\r\n```\r\n1. type any key\r\n\r\n## Your Environment\r\n<!--- Include details about your environment. -->\r\n<!--- Thousands of people use Processing every day and may not have --> \r\n<!--- this issue, this might give us clues about why you’re seeing it. -->\r\n* Processing version: 3.4 (macOS), 3.3.7 (windows)\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/processing/processing/issues/comments/416271993","html_url":"https://github.com/processing/processing/issues/5632#issuecomment-416271993","issue_url":"https://api.github.com/repos/processing/processing/issues/5632","id":416271993,"node_id":"MDEyOklzc3VlQ29tbWVudDQxNjI3MTk5Mw==","user":{"login":"liquid600pgm","id":16415678,"node_id":"MDQ6VXNlcjE2NDE1Njc4","avatar_url":"https://avatars2.githubusercontent.com/u/16415678?v=4","gravatar_id":"","url":"https://api.github.com/users/liquid600pgm","html_url":"https://github.com/liquid600pgm","followers_url":"https://api.github.com/users/liquid600pgm/followers","following_url":"https://api.github.com/users/liquid600pgm/following{/other_user}","gists_url":"https://api.github.com/users/liquid600pgm/gists{/gist_id}","starred_url":"https://api.github.com/users/liquid600pgm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/liquid600pgm/subscriptions","organizations_url":"https://api.github.com/users/liquid600pgm/orgs","repos_url":"https://api.github.com/users/liquid600pgm/repos","events_url":"https://api.github.com/users/liquid600pgm/events{/privacy}","received_events_url":"https://api.github.com/users/liquid600pgm/received_events","type":"User","site_admin":false},"created_at":"2018-08-27T15:47:58Z","updated_at":"2018-08-27T15:47:58Z","author_association":"CONTRIBUTOR","body":"This doesn't occur on my machine, everything works just fine."}}
{"actor":{"display_login":"liquid600pgm"}}