Issue 14 in glumpy: Glumpy fails: "Too many vertex shader texture samplers"

23 views
Skip to first unread message

glu...@googlecode.com

unread,
Dec 20, 2011, 8:21:52 PM12/20/11
to Nicolas...@inria.fr
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 14 by thibault...@gmail.com: Glumpy fails: "Too many vertex
shader texture samplers"
http://code.google.com/p/glumpy/issues/detail?id=14

What steps will reproduce the problem?
1. install glumpy
2. run any demo

What is the expected output? What do you see instead?
See a matrix out of simple.py.
Instead, a black window shows up. Error message:
Traceback (most recent call last):
File "_ctypes/callbacks.c", line 313, in 'calling callback function'
File "/usr/lib/python2.7/site-packages/glumpy/window/backend_glut.py",
line 237, in _display
self.dispatch_event('on_draw')
File "/usr/lib/python2.7/site-packages/glumpy/window/event.py", line 349,
in dispatch_event
if handler(*args):
File "simple.py", line 41, in on_draw
image.draw( x=0, y=0, z=0, width=fig.width, height=fig.height )
File "/usr/lib/python2.7/site-packages/glumpy/image/image.py", line 207,
in draw
self._filter.activate( self._texture )
File "/usr/lib/python2.7/site-packages/glumpy/image/filter.py", line 172,
in activate
self.build()
File "/usr/lib/python2.7/site-packages/glumpy/image/filter.py", line 279,
in build
self._shader = Shader(self._vertex_code, self._fragment_code)
File "/usr/lib/python2.7/site-packages/glumpy/graphics/shader.py", line
91, in __init__
self._link()
File "/usr/lib/python2.7/site-packages/glumpy/graphics/shader.py", line
147, in _link
raise ShaderException, 'Linking: '+ log
glumpy.graphics.shader.ShaderException: Linking: Too many vertex shader
texture samplers


What version of the product are you using? On what operating system?
glumpy 0.2.1
Linux 2.6.41.4-1.fc15.x86_64 #1 SMP x86_64 x86_64 GNU/Linux
Mesa DRI Intel(R) Sandybridge Mobile
2.1 Mesa 7.11

Please provide any additional information below.
Attached: glxinfo

Attachments:
glx.info 12.0 KB

glu...@googlecode.com

unread,
Dec 21, 2011, 1:40:05 AM12/21/11
to Nicolas...@inria.fr

Comment #1 on issue 14 by Nicolas...@gmail.com: Glumpy fails: "Too
many vertex shader texture samplers"
http://code.google.com/p/glumpy/issues/detail?id=14

From mesa sources, it seems that the "Too many vertex shader texture
samplers" relates to the maximum number of texture unit but glumly uses
only 2. Do you know if the intel driver provides more than one texture
unit ?

In any case, I will have to add some test on the configuration and provides
alternative.

glu...@googlecode.com

unread,
Dec 21, 2011, 7:58:56 AM12/21/11
to Nicolas...@inria.fr

Comment #2 on issue 14 by thibault...@gmail.com: Glumpy fails: "Too many

No idea if more than one texture unit is provided by that driver. I will
try to know more about that.

glu...@googlecode.com

unread,
Feb 12, 2012, 7:20:34 PM2/12/12
to Nicolas...@inria.fr

Comment #3 on issue 14 by thibault...@gmail.com: Glumpy fails: "Too many

It seems that only a single texture unit is provided by these GC. Are 2 of
them mandatory ? (I haven't really read the code yet :))

BTW, is that project still active ?

glu...@googlecode.com

unread,
Feb 13, 2012, 1:38:57 AM2/13/12
to Nicolas...@inria.fr

Comment #4 on issue 14 by Nicolas...@gmail.com: Glumpy fails: "Too
many vertex shader texture samplers"
http://code.google.com/p/glumpy/issues/detail?id=14

That's bad. One texture is used to represent the array and the other is
used as a colormap so yes, two texture units is mandatory unfortunately.
Could you try to show a MxNx3 matrix ? (this would require only one texture
unit).

And yes, project is still alive but I'm a bit busy until end of February.
At that time, I will update glumpy and handle all the bug reports.

glu...@googlecode.com

unread,
Dec 31, 2012, 3:34:55 AM12/31/12
to Nicolas...@inria.fr
Updates:
Status: WontFix

Comment #5 on issue 14 by Nicolas...@gmail.com: Glumpy fails: "Too
many vertex shader texture samplers"
http://code.google.com/p/glumpy/issues/detail?id=14

Not sure there is a way to fix the issue with such driver.

Reply all
Reply to author
Forward
0 new messages