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

GitHub | damon-kwok | 3 years ago
  1. 0

    Fix SpriteBatch shader for Windows Phone 8.1

    GitHub | 3 years ago | damon-kwok
    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
  2. 0

    Create SpriteBatch throw IllegalArgumentException

    Stack Overflow | 1 year ago | Nathan
    java.lang.IllegalArgumentException: 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
  3. 0

    libgdx - How to prevent crashing when create shader on some devices

    Stack Overflow | 11 months ago | Nathan
    java.lang.IllegalArgumentException: Error compiling shader: Vertex shader failed to compile with the following errors: Fragment shader failed to compile with the following errors: at com.badlogic.gdx.graphics.g2d.SpriteBatch.createDefaultShader(SpriteBatch.java:157)
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    GitHub comment 17#203978868

    GitHub | 8 months ago | de-ko
    java.lang.IllegalArgumentException: 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 ...
  6. 0

    GitHub comment 17#203734076

    GitHub | 8 months ago | de-ko
    java.lang.IllegalArgumentException: 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 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

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. 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()
    2. libGDX Core
      SpriteBatch.<init>
      1. com.badlogic.gdx.graphics.g2d.SpriteBatch.createDefaultShader(SpriteBatch.java:195)
      2. com.badlogic.gdx.graphics.g2d.SpriteBatch.<init>(SpriteBatch.java:159)
      3. com.badlogic.gdx.graphics.g2d.SpriteBatch.<init>(SpriteBatch.java:96)
      3 frames
    3. com.lz.run
      Game.create
      1. com.lz.run.Game.create(Game.java:35)
      1 frame
    4. com.badlogic.gdx
      AssetDownloader$4$1.onEvent
      1. com.badlogic.gdx.backends.gwt.GwtApplication.setupLoop(GwtApplication.java:177)
      2. com.badlogic.gdx.backends.gwt.GwtApplication$1$1.update(GwtApplication.java:139)
      3. com.badlogic.gdx.backends.gwt.preloader.Preloader$1$1.onSuccess(Preloader.java:184)
      4. com.badlogic.gdx.backends.gwt.preloader.AssetDownloader$4$1.onEvent(AssetDownloader.java:171)
      4 frames
    5. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      4. java.lang.reflect.Method.invoke(Method.java:601)
      4 frames
    6. GWT dev
      BrowserChannelServer.run
      1. com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103)
      2. com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71)
      3. com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:172)
      4. com.google.gwt.dev.shell.BrowserChannelServer.reactToMessages(BrowserChannelServer.java:293)
      5. com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:547)
      6. com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:364)
      6 frames
    7. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:722)
      1 frame