java.lang.IllegalArgumentException: Error compiling shader: Shader compilation errors (5, 9): Macro already defined (5, 14): syntax error, unexpected NEWLINE_TOK, expecting IDENT_TOK or MACRO_DEFINITION

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via GitHub by damon-kwok
, 1 year ago
Error compiling shader: Shader compilation errors (5, 9): Macro already defined (5, 14): syntax error, unexpected NEWLINE_TOK, expecting IDENT_TOK or MACRO_DEFINITION
via GitHub by Schyfis
, 2 months ago
Error compiling shader: ERROR: 0:1: '' : version '140' is not supported ERROR: 0:1: '' : version '140' is not supported
via Stack Overflow by Nathan
, 2 years ago
Error compiling shader: Vertex shader(s) failed to link, fragment shader(s) failed to link. ERROR: error(#275) Symbol 'v_texCoords' is defined with 2 different types between two stages ERROR: error(#275) Symbol 'v_texCoords' is defined with 2 different types between two stages
via GitHub by de-ko
, 1 year ago
Error compiling shader: Vertex shader failed to compile with the following errors: ERROR: error(#272) Implicit version number 110 not supported by GL3 forward compatible context ERROR: error(#273) 1 compilation errors. No code generated ...
via badlogicgames.com by Unknown author, 1 year ago
Error compiling shader: Vertex shader failed to compile with the following errors: ERROR: error(#272) Implicit version number 110 not supported by GL3 forward compatible context ERROR: error(#273) 1 compilation errors.  No code generated Fragment
via GitHub by donmahallem
, 2 years ago
Error compiling shader: Vertex shader failed to compile with the following errors: ERROR: error(#272) Implicit version number 110 not supported by GL3 forward compatible context ERROR: error(#273) 1 compilation errors. No code generated Fragment
java.lang.IllegalArgumentException: Error compiling shader: Shader compilation errors (5, 9): Macro already defined (5, 14): syntax error, unexpected NEWLINE_TOK, expecting IDENT_TOK or MACRO_DEFINITION
at com.badlogic.gdx.graphics.g2d.SpriteBatch.createDefaultShader(SpriteBatch.java:195)
at com.badlogic.gdx.graphics.g2d.SpriteBatch.(SpriteBatch.java:159)
at com.lz.run.Game.create(Game.java:35)
at com.badlogic.gdx.backends.gwt.GwtApplication.setupLoop(GwtApplication.java:177)
at com.badlogic.gdx.backends.gwt.GwtApplication$1$1.update(GwtApplication.java:139)
at com.badlogic.gdx.backends.gwt.preloader.Preloader$1$1.onSuccess(Preloader.java:184)
at com.badlogic.gdx.backends.gwt.preloader.AssetDownloader$4$1.onEvent(AssetDownloader.java:171)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103)
at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71)
at com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:172)
at com.google.gwt.dev.shell.BrowserChannelServer.reactToMessages(BrowserChannelServer.java:293)
at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:547)
at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:364)
at java.lang.Thread.run(Thread.java:722)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 year ago

Know the solutions? Share your knowledge to help other developers to debug faster.