ch-sa/labelCloud

exit with code -1073740791 (0xC0000409)

MarStarck opened this issue · 4 comments

i just download the code, install requirements using pycharm, and run the labelCloud.py, things seem good, gui appears without any model, but crashed after few seconds.

python: 3.8.10
os: windows 10 professional

'''
OpenGL_accelerate module loaded
Using accelerated ArrayDatatype
Set export strategy to CentroidFormat.
Saving rotations absolutely to positve x-axis in degrees (0..360°).
Loading next point cloud...
Loading point cloud from pointclouds\exemplary.ply using Open3DHandler.
================================================ Loading exemplary.ply =================================================
Successfully loaded point cloud from pointclouds\exemplary.ply!
Number of Points: 86357
Number of Colors: 86357
Point Cloud Center: [ 0.03 -0.37 0.29]
Point Cloud Minimums: [-2.02 -1.42 -0.03]
Point Cloud Maximums: [0.98 0.95 0.94]
Initial Translation: [-0.03 0.37 -4.22]
========================================================================================================================
There is currently no active bounding box to manipulate.
There is currently no active bounding box to manipulate.
Alignmode was changed to False!
Imported 1 labels from labels\exemplary.json.
Loaded 1 bboxes!
There is currently no active bounding box to manipulate.
Intialized widget.
Resized widget.
Showing GUI...
Resized widget.

进程已结束,退出代码-1073740791 (0xC0000409)

'''

Traceback (most recent call last):
File "labelCloud-master\labelCloud\view\viewer.py", line 102, in paintGL
oglhelper.draw_crosshair(cx, cy, cz, color=self.crosshair_col)
File "labelCloud-master\labelCloud\utils\oglhelper.py", line 85, in draw_crosshair
GL.glColor3d(*color)
TypeError: this function takes 3 arguments (4 given)

I modified the input param to be (0,1,0), it works! But I dont know why you can run it by passing 4 float.

Hi, could you provide more information regarding OS, Python Version and instruction to reproduce the error?

i have updated my description, thanks

ch-sa commented

@chingyulin Probably my bad during refactoring.

@MarStarck can you try with the following branch ch-sa/fix-opengl-color?

I think that should fix the issue. Interesting enough I can still pass 4 parameters without problems to this function on linux. So Maybe the behavior of OpenGL is a bit more strict on Windows.

@chingyulin Probably my bad during refactoring.

@MarStarck can you try with the following branch ch-sa/fix-opengl-color?

I think that should fix the issue. Interesting enough I can still pass 4 parameters without problems to this function on linux. So Maybe the behavior of OpenGL is a bit more strict on Windows.

yes, this branch works fine.