question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

vtkLookupTable: Bad table range

See original GitHub issue

Hi, thank you for your efforts on this tool!

I am trying to accomplish functionality that combines slider with color map. Part of my code is list below:

def slider(widget, event):
        value = widget.GetRepresentation().GetValue() 
        my_mesh.pointColors(some_kind_of_values, vmin = value, cmap = 'jet')
plotter.addSlider2D(slider,xxxxxx)

But the problem is that when the slider value exceeds some threshold, it will bump into errors, and the error message is list below:

ERROR: In /Users/prabhu/src/git/VTKPythonPackage/standalone-build/VTK-source/Common/Core/vtkLookupTable.cxx, line 143
vtkLookupTable (0x7fd865ae2e20): Bad table range: [0.963639, 0.892214]

ERROR: In /Users/prabhu/src/git/VTKPythonPackage/standalone-build/VTK-source/Common/Core/vtkLookupTable.cxx, line 143
vtkLookupTable (0x7fd865ae2e20): Bad table range: [0.963639, 0.892214]

ERROR: In /Users/prabhu/src/git/VTKPythonPackage/standalone-build/VTK-source/Common/Core/vtkLookupTable.cxx, line 143
vtkLookupTable (0x7fd86411f1e0): Bad table range: [0.957363, 0.892214]

ERROR: In /Users/prabhu/src/git/VTKPythonPackage/standalone-build/VTK-source/Common/Core/vtkLookupTable.cxx, line 143
vtkLookupTable (0x7fd86411f1e0): Bad table range: [0.957363, 0.892214]

ERROR: In /Users/prabhu/src/git/VTKPythonPackage/standalone-build/VTK-source/Common/Core/vtkLookupTable.cxx, line 143
vtkLookupTable (0x7fd85d586b40): Bad table range: [0.955794, 0.892214]

ERROR: In /Users/prabhu/src/git/VTKPythonPackage/standalone-build/VTK-source/Common/Core/vtkLookupTable.cxx, line 143
vtkLookupTable (0x7fd85d586b40): Bad table range: [0.955794, 0.892214]

I wonder how I can handle this problem. Any suggestions or examples will be helpful. Thank you in advance!

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
BatYucommented, Sep 16, 2020

ok thanks, never mind. Actually I don’t think this problem can be fixed, or even this is not a problem at all. I think it has something to do with my 3D model so that some places cannot be ‘lit up’.

Thank you so much for your quick responses and helpful advice. Have a good day!

0reactions
marcomusycommented, Sep 16, 2020

Uhm, you maybe should post a screenshot… maybe you have wrong normals to faces (?)

Read more comments on GitHub >

github_iconTop Results From Across the Web

vtkLookUpTable. Bad table range: [0, -1] - 3D Slicer Community
Operating system: macOS 10.14.6. Slicer version: 4.10.2. Hello,. I used a vtkLookUpTable to color a vtkPolyData like this :
Read more >
The vtkLookupTable::SetTable() results in bad out-of-range ...
It was reported that when the SetTable() method was used to provide an array (4-component unsigned char) for use as the lookup table, ......
Read more >
vtkLookupTable Class Reference - VTK
The color table can be created by direct insertion of color values, or by specifying a hue, saturation, value, and alpha range and...
Read more >
Problem with add_overlay · Issue #193 · nipy/PySurfer - GitHub
... and would like to show both positive and negative parts. ... line 144 vtkLookupTable (0xcc23d70): Bad table range: [1e+299, -1e+299].
Read more >
vtkLookupTable errors after converting to .vti volume
ERROR: In C:\Apps\vmtk-build\VTK\Common\Core\vtkLookupTable.cxx, line 144. vtkLookupTable (0000000008DD1CC0): Bad table range: [1e+299, ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found