{"action":"created","issue":{"url":"https://api.github.com/repos/aaron-santos/zaffre/issues/3","repository_url":"https://api.github.com/repos/aaron-santos/zaffre","labels_url":"https://api.github.com/repos/aaron-santos/zaffre/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/aaron-santos/zaffre/issues/3/comments","events_url":"https://api.github.com/repos/aaron-santos/zaffre/issues/3/events","html_url":"https://github.com/aaron-santos/zaffre/issues/3","id":137118906,"number":3,"title":"make-terminal always throws an exception in 0.3.0","user":{"login":"m-r-hunt","id":6061323,"avatar_url":"https://avatars.githubusercontent.com/u/6061323?v=3","gravatar_id":"","url":"https://api.github.com/users/m-r-hunt","html_url":"https://github.com/m-r-hunt","followers_url":"https://api.github.com/users/m-r-hunt/followers","following_url":"https://api.github.com/users/m-r-hunt/following{/other_user}","gists_url":"https://api.github.com/users/m-r-hunt/gists{/gist_id}","starred_url":"https://api.github.com/users/m-r-hunt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/m-r-hunt/subscriptions","organizations_url":"https://api.github.com/users/m-r-hunt/orgs","repos_url":"https://api.github.com/users/m-r-hunt/repos","events_url":"https://api.github.com/users/m-r-hunt/events{/privacy}","received_events_url":"https://api.github.com/users/m-r-hunt/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-02-29T00:52:33Z","updated_at":"2016-02-29T21:44:35Z","closed_at":"2016-02-29T21:44:35Z","body":"Here's the output from trying to run Zaffre's main directly (so I know it's not me).\r\n\r\n```\r\nPS E:\\clojurestuff\\zaffre> lein run\r\nReflection warning, zaffre/glterminal.clj:95:24 - reference to field getName can't be resolved.\r\nReflection warning, zaffre/glterminal.clj:95:40 - reference to field getSize can't be resolved.\r\nReflection warning, zaffre/glterminal.clj:124:46 - call to method canDisplay can't be resolved (target class is unknown).\r\nReflection warning, zaffre/glterminal.clj:175:7 - call to method setRenderingHint on java.awt.Graphics can't be resolved (no such method).\r\nReflection warning, zaffre/glterminal.clj:213:24 - reference to field getWidth can't be resolved.\r\nReflection warning, zaffre/glterminal.clj:214:24 - reference to field getHeight can't be resolved.\r\nReflection warning, zaffre/glterminal.clj:217:18 - reference to field getRaster can't be resolved.\r\nReflection warning, zaffre/glterminal.clj:218:18 - reference to field getDataBuffer can't be resolved.\r\nReflection warning, zaffre/glterminal.clj:220:18 - reference to field getData can't be resolved.\r\nReflection warning, zaffre/glterminal.clj:221:33 - call to static method alength on clojure.lang.RT can't be resolved (argument types: unknown).\r\nReflection warning, zaffre/glterminal.clj:271:15 - reference to field getWidth can't be resolved.\r\nReflection warning, zaffre/glterminal.clj:272:16 - reference to field getHeight can't be resolved.\r\nReflection warning, zaffre/glterminal.clj:309:7 - call to static method glTexImage2D on org.lwjgl.opengl.GL11 can't be resolved (argument types: int, long, int, unknown, unknown, long, int, int, unknown).\r\nReflection warning, zaffre/glterminal.clj:355:59 - call to static method aset on clojure.lang.RT can't be resolved (argument types: unknown, int, unknown).\r\nReflection warning, zaffre/glterminal.clj:361:61 - call to static method aset on clojure.lang.RT can't be resolved (argument types: unknown, int, unknown).\r\nReflection warning, zaffre/glterminal.clj:362:61 - call to static method aset on clojure.lang.RT can't be resolved (argument types: unknown, int, unknown).\r\nReflection warning, zaffre/glterminal.clj:446:7 - call to static method glBindAttribLocation on org.lwjgl.opengl.GL20 can't be resolved (argument types: int, java.lang.Object, java.lang.Object).\r\nReflection warning, zaffre/glterminal.clj:446:7 - call to static method glBindAttribLocation on org.lwjgl.opengl.GL20 can't be resolved (argument types: int, java.lang.Object, java.lang.Object).\r\nReflection warning, zaffre/glterminal.clj:486:7 - reference to field flip can't be resolved.\r\nReflection warning, zaffre/glterminal.clj:498:7 - reference to field flip can't be resolved.\r\nReflection warning, zaffre/glterminal.clj:633:11 - call to static method glTexImage2D on org.lwjgl.opengl.GL11 can't be resolved (argument types: int, long, int, java.lang.Object, java.lang.Object, long, int, int, unknown).\r\nReflection warning, zaffre/glterminal.clj:930:68 - call to static method glGetAttribLocation on org.lwjgl.opengl.GL20 can't be resolved (argument types: java.lang.Object, java.lang.String).\r\nReflection warning, zaffre/glterminal.clj:931:68 - call to static method glGetAttribLocation on org.lwjgl.opengl.GL20 can't be resolved (argument types: java.lang.Object, java.lang.String).\r\nReflection warning, zaffre/glterminal.clj:932:71 - call to static method glGetAttribLocation on org.lwjgl.opengl.GL20 can't be resolved (argument types: java.lang.Object, java.lang.String).\r\nReflection warning, zaffre/glterminal.clj:933:71 - call to static method glGetAttribLocation on org.lwjgl.opengl.GL20 can't be resolved (argument types: java.lang.Object, java.lang.String).\r\nReflection warning, zaffre/glterminal.clj:949:59 - call to static method glGetUniformLocation on org.lwjgl.opengl.GL20 can't be resolved (argument types: java.lang.Object, unknown).\r\nReflection warning, zaffre/glterminal.clj:962:59 - call to static method glGetUniformLocation on org.lwjgl.opengl.GL20 can't be resolved (argument types: java.lang.Object, unknown).\r\n16-02-29 00:46:14 Max-Desktop INFO [zaffre.glterminal] - Loading font by name\r\n16-02-29 00:46:14 Max-Desktop INFO [zaffre.glterminal] - Using font java.awt.Font[family=Consolas,name=Consolas,style=plain,size=18]\r\n16-02-29 00:46:14 Max-Desktop INFO [zaffre.glterminal] - characters per line 204\r\n16-02-29 00:46:14 Max-Desktop INFO [zaffre.glterminal] - characters 4650 cwidth 2048 cheight 512\r\n16-02-29 00:46:14 Max-Desktop INFO [zaffre.glterminal] - glyph image width 2048 height 512\r\n16-02-29 00:46:14 Max-Desktop INFO [zaffre.glterminal] - arranging character with zaffre.glterminal$characters_per_line@1a1ccaaf per line\r\n16-02-29 00:46:14 Max-Desktop INFO [zaffre.glterminal] - Created font texture. screen-width 800 screen-height 528\r\n16-02-29 00:46:14 Max-Desktop INFO [zaffre.glterminal] - screen size 800 x 528\r\n16-02-29 00:46:14 Max-Desktop INFO [zaffre.glterminal] - byte-buffer [Ljava.nio.ByteBuffer;@510a4cf4\r\n16-02-29 00:46:14 Max-Desktop INFO [zaffre.glterminal] - Creating glyph array\r\n16-02-29 00:46:14 Max-Desktop INFO [zaffre.glterminal] - creating buffers for glyph/fg/bg textures ( 128 x 32 )\r\nERROR: Linking Shaders:\r\nVertex shader(s) failed to link.\r\nVertex link error: INVALID_OPERATION.\r\nERROR: error(#272) Implicit version number 110 not supported by GL3 forward compatible context\r\nERROR: error(#273) 1 compilation errors.  No code generated\r\n\r\n\r\nException in thread \"main\" java.lang.Exception: OpenGL Error(1282):GL_INVALID_OPERATION: glGenBuffers vertices-vbo-id - Invalid operation, compiling:(C:\\Users\\max\\AppData\\Local\\Temp\\form-init5499585173456089547.clj:1:106)\r\n        at clojure.lang.Compiler.load(Compiler.java:7239)\r\n        at clojure.lang.Compiler.loadFile(Compiler.java:7165)\r\n        at clojure.main$load_script.invoke(main.clj:275)\r\n        at clojure.main$init_opt.invoke(main.clj:280)\r\n        at clojure.main$initialize.invoke(main.clj:308)\r\n        at clojure.main$null_opt.invoke(main.clj:343)\r\n        at clojure.main$main.doInvoke(main.clj:421)\r\n        at clojure.lang.RestFn.invoke(RestFn.java:421)\r\n        at clojure.lang.Var.invoke(Var.java:383)\r\n        at clojure.lang.AFn.applyToHelper(AFn.java:156)\r\n        at clojure.lang.Var.applyTo(Var.java:700)\r\n        at clojure.main.main(main.java:37)\r\nCaused by: java.lang.Exception: OpenGL Error(1282):GL_INVALID_OPERATION: glGenBuffers vertices-vbo-id - Invalid operation\r\n        at zaffre.glterminal$except_gl_errors.invoke(glterminal.clj:266)\r\n        at zaffre.glterminal$init_buffers.invoke(glterminal.clj:521)\r\n        at zaffre.glterminal$make_terminal$fn__2943.invoke(glterminal.clj:939)\r\n        at zaffre.glterminal$make_terminal.invoke(glterminal.clj:939)\r\n        at zaffre.glterminal$handle_input_in_main.doInvoke(glterminal.clj:1104)\r\n        at clojure.lang.RestFn.invoke(RestFn.java:397)\r\n        at zaffre.glterminal$_main.doInvoke(glterminal.clj:1160)\r\n        at clojure.lang.RestFn.invoke(RestFn.java:397)\r\n        at clojure.lang.Var.invoke(Var.java:375)\r\n        at user$eval2515.invoke(form-init5499585173456089547.clj:1)\r\n        at clojure.lang.Compiler.eval(Compiler.java:6782)\r\n        at clojure.lang.Compiler.eval(Compiler.java:6772)\r\n        at clojure.lang.Compiler.load(Compiler.java:7227)\r\n        ... 11 more\r\n```\r\n\r\nThen a blank window pops up and I have to do something to kill off the JVM.\r\n\r\nIt seems to be related to the recent shader fx change. In my project I originally hadn't set the fx-shader-name option, and setting it to retro.fs didn't help.\r\n\r\nI'm on 64 bit Windows 10, Java 1.8. If you need any more information or there's any other way I can help debugging let me know."},"comment":{"url":"https://api.github.com/repos/aaron-santos/zaffre/issues/comments/190409293","html_url":"https://github.com/aaron-santos/zaffre/issues/3#issuecomment-190409293","issue_url":"https://api.github.com/repos/aaron-santos/zaffre/issues/3","id":190409293,"user":{"login":"m-r-hunt","id":6061323,"avatar_url":"https://avatars.githubusercontent.com/u/6061323?v=3","gravatar_id":"","url":"https://api.github.com/users/m-r-hunt","html_url":"https://github.com/m-r-hunt","followers_url":"https://api.github.com/users/m-r-hunt/followers","following_url":"https://api.github.com/users/m-r-hunt/following{/other_user}","gists_url":"https://api.github.com/users/m-r-hunt/gists{/gist_id}","starred_url":"https://api.github.com/users/m-r-hunt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/m-r-hunt/subscriptions","organizations_url":"https://api.github.com/users/m-r-hunt/orgs","repos_url":"https://api.github.com/users/m-r-hunt/repos","events_url":"https://api.github.com/users/m-r-hunt/events{/privacy}","received_events_url":"https://api.github.com/users/m-r-hunt/received_events","type":"User","site_admin":false},"created_at":"2016-02-29T21:44:35Z","updated_at":"2016-02-29T21:44:35Z","body":"That seems to have fixed it for me. Thanks for the quick response Aaron."}}