{"action":"created","issue":{"url":"https://api.github.com/repos/oracle/graal/issues/817","repository_url":"https://api.github.com/repos/oracle/graal","labels_url":"https://api.github.com/repos/oracle/graal/issues/817/labels{/name}","comments_url":"https://api.github.com/repos/oracle/graal/issues/817/comments","events_url":"https://api.github.com/repos/oracle/graal/issues/817/events","html_url":"https://github.com/oracle/graal/issues/817","id":383595154,"node_id":"MDU6SXNzdWUzODM1OTUxNTQ=","number":817,"title":"Graphics & Fonts Usage fails","user":{"login":"fellmann","id":10139607,"node_id":"MDQ6VXNlcjEwMTM5NjA3","avatar_url":"https://avatars1.githubusercontent.com/u/10139607?v=4","gravatar_id":"","url":"https://api.github.com/users/fellmann","html_url":"https://github.com/fellmann","followers_url":"https://api.github.com/users/fellmann/followers","following_url":"https://api.github.com/users/fellmann/following{/other_user}","gists_url":"https://api.github.com/users/fellmann/gists{/gist_id}","starred_url":"https://api.github.com/users/fellmann/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fellmann/subscriptions","organizations_url":"https://api.github.com/users/fellmann/orgs","repos_url":"https://api.github.com/users/fellmann/repos","events_url":"https://api.github.com/users/fellmann/events{/privacy}","received_events_url":"https://api.github.com/users/fellmann/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-11-22T16:07:15Z","updated_at":"2018-11-27T11:14:49Z","closed_at":null,"author_association":"NONE","body":"Version: GraalVM 1.0.0-RC9\r\n\r\nMinimal example:\r\n\r\nExample1.java\r\n```java\r\nimport java.awt.*;\r\nimport java.awt.image.BufferedImage;\r\n\r\npublic class Example1 {\r\n    public static void main(String[] args) {\r\n        BufferedImage bufferedImage = new BufferedImage(200, 200, BufferedImage.TYPE_INT_ARGB);\r\n        Graphics graphics = bufferedImage.getGraphics();\r\n        graphics.drawString(\"test\", 100, 100);\r\n        graphics.dispose();\r\n    }\r\n}\r\n```\r\n\r\nThen run:\r\n```bash\r\ndocker run -v $(pwd):/work -w /work --rm -it oracle/graalvm-ce:1.0.0-rc9 sh -c \"javac Example1.java && java Example1\"\r\n```\r\n\r\nExpected: no error\r\nResult:\r\n```\r\nException in thread \"main\" java.lang.NullPointerException\r\n\tat sun.awt.FontConfiguration.getVersion(FontConfiguration.java:1264)\r\n\tat sun.awt.FontConfiguration.readFontConfigFile(FontConfiguration.java:219)\r\n\tat sun.awt.FontConfiguration.init(FontConfiguration.java:107)\r\n\tat sun.awt.X11FontManager.createFontConfiguration(X11FontManager.java:774)\r\n\tat sun.font.SunFontManager$2.run(SunFontManager.java:431)\r\n\tat java.security.AccessController.doPrivileged(Native Method)\r\n\tat sun.font.SunFontManager.<init>(SunFontManager.java:376)\r\n\tat sun.awt.FcFontManager.<init>(FcFontManager.java:35)\r\n\tat sun.awt.X11FontManager.<init>(X11FontManager.java:57)\r\n\tat sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)\r\n\tat sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)\r\n\tat sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)\r\n\tat java.lang.reflect.Constructor.newInstance(Constructor.java:423)\r\n\tat java.lang.Class.newInstance(Class.java:442)\r\n\tat sun.font.FontManagerFactory$1.run(FontManagerFactory.java:83)\r\n\tat java.security.AccessController.doPrivileged(Native Method)\r\n\tat sun.font.FontManagerFactory.getInstance(FontManagerFactory.java:74)\r\n\tat java.awt.Font.getFont2D(Font.java:491)\r\n\tat java.awt.Font.access$000(Font.java:224)\r\n\tat java.awt.Font$FontAccessImpl.getFont2D(Font.java:228)\r\n\tat sun.font.FontUtilities.getFont2D(FontUtilities.java:180)\r\n\tat sun.java2d.SunGraphics2D.checkFontInfo(SunGraphics2D.java:669)\r\n\tat sun.java2d.SunGraphics2D.getFontInfo(SunGraphics2D.java:830)\r\n\tat sun.java2d.pipe.GlyphListPipe.drawString(GlyphListPipe.java:50)\r\n\tat sun.java2d.pipe.ValidatePipe.drawString(ValidatePipe.java:165)\r\n\tat sun.java2d.SunGraphics2D.drawString(SunGraphics2D.java:2928)\r\n\tat Example1.main(Example1.java:8)\r\n```"},"comment":{"url":"https://api.github.com/repos/oracle/graal/issues/comments/442021380","html_url":"https://github.com/oracle/graal/issues/817#issuecomment-442021380","issue_url":"https://api.github.com/repos/oracle/graal/issues/817","id":442021380,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0MjAyMTM4MA==","user":{"login":"dougxc","id":5080087,"node_id":"MDQ6VXNlcjUwODAwODc=","avatar_url":"https://avatars0.githubusercontent.com/u/5080087?v=4","gravatar_id":"","url":"https://api.github.com/users/dougxc","html_url":"https://github.com/dougxc","followers_url":"https://api.github.com/users/dougxc/followers","following_url":"https://api.github.com/users/dougxc/following{/other_user}","gists_url":"https://api.github.com/users/dougxc/gists{/gist_id}","starred_url":"https://api.github.com/users/dougxc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dougxc/subscriptions","organizations_url":"https://api.github.com/users/dougxc/orgs","repos_url":"https://api.github.com/users/dougxc/repos","events_url":"https://api.github.com/users/dougxc/events{/privacy}","received_events_url":"https://api.github.com/users/dougxc/received_events","type":"User","site_admin":false},"created_at":"2018-11-27T11:14:49Z","updated_at":"2018-11-27T11:14:49Z","author_association":"MEMBER","body":"This seems to work fine in the non-docker scenario. Can you please confirm @fellmann .\r\nAlso, can you please run `java -Dsun.java2d.debugfonts=true Example1` and post the output here."}}
{"actor":{"display_login":"dougxc"}}