Skip to content

"Could not link, max varying:10" #95

Open

Description

@greglockwood

I am encountering the following error on attempting to connect to a large project using a proxy:

"Could not link, max varying:10".

I am using Google Chrome Canary on Windows, and according to http://www.browserleaks.com/webgl the max varying vectors is indeed 10.

This error is occurring when trying to link the shader for the listView, in particular the selectRect shader.

Any clues on how to proceed from here?

Activity

  1. greglockwood commented on Jul 16, 2013

    @greglockwood
    Author

    I was initially able to get it working with Firefox 22.0, but not in Chrome or Chrome Canary on Windows.

  2. hex commented on Aug 19, 2013

    @hex

    I have the same problem.

    Error: Could not link, max varying:10
    precision mediump float;
    #define ucol vec4
    uniform vec4 ps;
    uniform vec4 sz;
    uniform float fg;
    uniform sampler2D T;
    vec2 f;
    uniform vec2 s;
    uniform ucol N_g;
    varying vec4 rv_;
    vec4 r;
    vec4 _f(){
    vec3 v = vec3(floor(ps.z+(ps.x+r.x)*sz.x),floor(ps.w+(ps.y+r.y)*sz.y-sz.z),ps.z+(ps.x+r.z)*sz.x);
    vec4 c = vec4((texture2D(T,vec2((fg),0.))));
    ;
    if(f.x<v.x+0.5*sz.x){
    vec2 d = vec2(f.x-(v.x+sz.x),f.y-(v.y+0.5*sz.y));
    ;
    if(d.y<0.&&mod(r.w,2.)==1.)return vec4(c);
    ;
    if(d.y>0.&&mod(r.w,4.)>=2.)return vec4(c);
    return vec4(c.xyz,sqrt(d.x*d.x+d.y*d.y)>9.?0.:c.w);
    ;
    }
    else ;
    if(f.x>v.z-0.5*sz.x){
    vec2 d = vec2(f.x-(v.z-sz.x),f.y-(v.y+0.5*sz.y));
    ;
    if(d.y<0.&&mod(r.w,8.)>=4.)return vec4(c);
    ;
    if(d.y>0.&&mod(r.w,16.)>=8.)return vec4(c);
    return vec4(c.xyz,sqrt(d.x*d.x+d.y*d.y)>9.?0.:c.w);
    ;
    }
    return vec4(c);
    ;
    }
    void main(void){
     r = rv_;
    f = vec2(gl_FragCoord.x,s.y-gl_FragCoord.y);
     gl_FragColor = _f();
    }

    On Windows 7 x64 with Chrome Version 29.0.1547.0 dev-m

  3. HeikoR commented on Aug 21, 2013

    @HeikoR

    Same problem here:

    Windows 7 x64 with Chrome Version: 30.0.1599.10 beta-m

  4. Volox commented on Aug 28, 2013

    @Volox

    +1

  5. wridgers commented on Sep 4, 2013

    @wridgers

    👍 Same problem here!

  6. robindexter commented on Sep 11, 2013

    @robindexter

    Same Problem, Win 7 ,x86, Chrome Version 29.0.1547.66 m

  7. IngageStroliaC commented on Sep 24, 2013

    @IngageStroliaC

    Same here.

    Actually, I can't seem to get Tracegl working at all. I even created a very simple app to test with just an index.html page and a single js file with a simple alert in it. I'm using Chrome v. 29.0.1547.66 on a Windows 7 machine.

    I can go to the app with http://localhost:2080, no problem, but I can not get http://localhost:2000 do show me anything but the error:

    Uncaught Error: Could not link, max varying:10
    precision mediump float;
    #define ucol vec4
    uniform vec4 ps;
    uniform vec4 sz;
    uniform float fg;
    uniform sampler2D T;
    vec2 f;
    uniform vec2 s;
    uniform ucol N_g;
    varying vec4 rv_;
    vec4 r;
    vec4 _f(){
    vec3 v = vec3(floor(ps.z+(ps.x+r.x)*sz.x),floor(ps.w+(ps.y+r.y)*sz.y-sz.z),ps.z+(ps.x+r.z)*sz.x);
    vec4 c = vec4((texture2D(T,vec2((fg),0.))));
    ;
    if(f.x<v.x+0.5*sz.x){
    vec2 d = vec2(f.x-(v.x+sz.x),f.y-(v.y+0.5*sz.y));
    ;
    if(d.y<0.&&mod(r.w,2.)==1.)return vec4(c);
    ;
    if(d.y>0.&&mod(r.w,4.)>=2.)return vec4(c);
    return vec4(c.xyz,sqrt(d.x*d.x+d.y*d.y)>9.?0.:c.w);
    ;
    }
    else ;
    if(f.x>v.z-0.5*sz.x){
    vec2 d = vec2(f.x-(v.z-sz.x),f.y-(v.y+0.5*sz.y));
    ;
    if(d.y<0.&&mod(r.w,8.)>=4.)return vec4(c);
    ;
    if(d.y>0.&&mod(r.w,16.)>=8.)return vec4(c);
    return vec4(c.xyz,sqrt(d.x*d.x+d.y*d.y)>9.?0.:c.w);
    ;
    }
    return vec4(c);
    ;
    }
    void main(void){
     r = rv_;
    f = vec2(gl_FragCoord.x,s.y-gl_FragCoord.y);
     gl_FragColor = _f();
    }
    

    I only purchased this today. If I can't get it working then it doesn't even help me solve 1 bug, and therefore is definitely not worth the few cups of coffee it cost me.

  8. ishmaelthedestroyer commented on Nov 16, 2013

    @ishmaelthedestroyer

    I'm getting the same issue. A blank page pops up on Chrome, but it seems tow ork fine with Firefox. Any fixes?

  9. wridgers commented on Nov 17, 2013

    @wridgers

    It's been a long time now. Frankly I'm a bit irritated. I bought tracegl only to immediately encounter this bug.

    The developer appears to have abandoned us.

  10. ishmaelthedestroyer commented on Nov 17, 2013

    @ishmaelthedestroyer

    I sent an email yesterday, and this is the response I got:

    "Hi Ishmael,

    Yeah this problem is caused by a fix for other videocards, i have no easy way to detect which type you are to switch. I can try to get you a custom build, let me think about it."

    I'll post any information I get on this thread.

  11. martindale commented on Nov 19, 2013

    @martindale

    +1 on this, having the same issue. Version 33.0.1707.0 dev-m

  12. sindresorhus commented on Nov 19, 2013

    @sindresorhus

    +1

  13. matt-wratt commented on Nov 27, 2013

    @matt-wratt

    +1

  14. matt-wratt commented on Nov 27, 2013

    @matt-wratt

    My work around was to use Firefox

  15. ncote commented on Dec 7, 2013

    @ncote

    I wouldn't mind having to specify the card explicitly if it can get it working...

  16. owenyang0 commented on Jan 3, 2014

    @owenyang0

    +1

  17. cristiano-belloni commented on Jan 18, 2014

    @cristiano-belloni

    +1 here. Macbook pro,

    Intel HD Graphics 4000:

    Chipset Model: Intel HD Graphics 4000
    Type: GPU
    Bus: Built-In
    VRAM (Total): 1024 MB
    Vendor: Intel (0x8086)
    Device ID: 0x0166
    Revision ID: 0x0009
    Displays:

  18. pixelshaded commented on Jan 22, 2014

    @pixelshaded

    +1
    AMD Radeon HD 7570M

  19. ardcore commented on Feb 27, 2014

    @ardcore

    +1!
    Uncaught Error: Could not link, max varying:15

    Chrome 33 / OSX, Intel HD 4000

  20. hulkish commented on Mar 9, 2014

    @hulkish

    Should I assume this issue will remain unresolved? Having the same issue here..

  21. emnh commented on Mar 17, 2014

    @emnh

    same issue

  22. emnh commented on Mar 17, 2014

    @emnh

    got it working by workaround of commenting out the exception throw as suggested, and inserting a "return" at top of trace.gl update function

  23. hulkish commented on Mar 19, 2014

    @hulkish

    The change from @emnh also worked for me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions