View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0016098VTK(No Category)public2016-04-27 06:492016-06-27 12:34
ReporterStefano Borini 
Assigned ToHaocheng Liu 
PrioritynormalSeverityminorReproducibilityhave not tried
StatusclosedResolutionfixed 
PlatformOSOS Version
Product Version6.3.0 
Target VersionFixed in Version7.0.0 
Summary0016098: Uninitialized prop color value produces random results
DescriptionThe following code

import vtk
import time

for _ in range(10):
    vtk_obj = vtk.vtkOpenGLHardwareSelector()
    print vtk_obj.GetPropColorValue()
    time.sleep(1)

produces random values until initialisation takes place.

(2.975582179396061e-38, 1.401298464324817e-45, 1.0722085646526054e-38)
(0.0, 0.0, 0.0)
(2.975582179396061e-38, 1.401298464324817e-45, 1.0722085646526054e-38)
(5.344585974097996e-39, 1.401298464324817e-45, 5.344866233790861e-39)
(2.975582179396061e-38, 1.401298464324817e-45, 1.0722085646526054e-38)
(0.0, 0.0, 0.0)
(4.6179809698425413e+24, 2.0110569049325306e+20, 175.439208984375)
(1.7033563725959244e+35, 4.591634678053128e-41, 1.7033167585146673e+35)
(4.6179809698425413e+24, 2.0110569049325306e+20, 175.439208984375)
(5.344585974097996e-39, 1.401298464324817e-45, 5.344866233790861e-39)

Probably not critical but introduces randomness in a 3rd party testsuite.
TagsNo tags attached.
ProjectTBD
Typeincorrect functionality
Attached Files

 Relationships

  Notes
(0036111)
Haocheng Liu (developer)
2016-06-27 12:34

After testing the code on VTK 7.0.0, it seems that GetPropColorValue() now would produce a fixed value rather than some random value.(On windows 7 + Nvidia card). Free to reopen this topic if it's plate-form related bug.

 Issue History
Date Modified Username Field Change
2016-04-27 06:49 Stefano Borini New Issue
2016-06-20 11:38 Utkarsh Ayachit Assigned To => Haocheng Liu
2016-06-24 17:03 Haocheng Liu Status backlog => active development
2016-06-27 12:34 Haocheng Liu Note Added: 0036111
2016-06-27 12:34 Haocheng Liu Status active development => closed
2016-06-27 12:34 Haocheng Liu Resolution open => fixed
2016-06-27 12:34 Haocheng Liu Fixed in Version => 7.0.0


Copyright © 2000 - 2018 MantisBT Team