SebKuzminsky / pycam

Other
340 stars 98 forks source link

emty canvas: no drawings after model is loaded #98

Closed cki61 closed 6 years ago

cki61 commented 6 years ago

Hi all,

independent from the "save workspace" updates I only see an empty canvas after the model is loaded. Please see the very long log from starting App by command line. I use openSUSE 42.3 with all necessary python packages. Maybe someone gets an idea whats wrong with my installation or the app.

Regards, cki61

`cki@ckilap02:~/D_IWS022/bin/pycam> pycam/run_gui.py

(run_gui.py:7242): Gtk-WARNING **: Theme parsing error: gtk.css:68:35: The style property GtkButton:child-displacement-x is deprecated and shouldn't be used anymore. It will be removed in a future version

(run_gui.py:7242): Gtk-WARNING **: Theme parsing error: gtk.css:69:35: The style property GtkButton:child-displacement-y is deprecated and shouldn't be used anymore. It will be removed in a future version

(run_gui.py:7242): Gtk-WARNING **: Theme parsing error: gtk.css:73:46: The style property GtkScrolledWindow:scrollbars-within-bevel is deprecated and shouldn't be used anymore. It will be removed in a future version Enabled 4 parallel local processes Storing a state revision (1/20)

(run_gui.py:7242): Gtk-CRITICAL **: gtk_box_pack: assertion '_gtk_widget_get_parent (child) == NULL' failed

(run_gui.py:7242): Gtk-CRITICAL *: gtk_box_pack: assertion '_gtk_widget_get_parent (child) == NULL' failed
Traceback (most recent call last):
File "/home/cki/D_IWS022/bin/pycam/pycam/Plugins/OpenGLWindow.py", line 725, in paint
self.glsetup()
File "/home/cki/D_IWS022/bin/pycam/pycam/Plugins/OpenGLWindow.py", line 505, in glsetup
GL.glShadeModel(GL.GL_SMOOTH)
File "/usr/lib/python3.4/site-packages/OpenGL/platform/baseplatform.py", line 402, in call
return self(
args, **named )
File "errorchecker.pyx", line 53, in OpenGL_accelerate.errorchecker._ErrorChecker.glCheckError (src/errorchecker.c:1218)
OpenGL.error.GLError: GLError(
err = 1282,
description = b'invalid operation',
baseOperation = glShadeModel,
cArguments = (GL_SMOOTH,)
)
Font directory: /home/cki/D_IWS022/bin/pycam/share/fonts
Loading workspace from file: /home/cki/.pycam/workspace.yml Imported 2 items into 'tools' Imported 2 items into 'processes' Imported 1 items into 'bounds' Imported 2 items into 'tasks' Imported 1 items into 'models' Imported STL model: 0 vertices, 0 edges, 12 triangles Imported 1 items into 'export_settings' Traceback (most recent call last): File "/home/cki/D_IWS022/bin/pycam/pycam/Plugins/OpenGLWindow.py", line 725, in paint self.glsetup() File "/home/cki/D_IWS022/bin/pycam/pycam/Plugins/OpenGLWindow.py", line 505, in glsetup GL.glShadeModel(GL.GL_SMOOTH) File "errorchecker.pyx", line 53, in OpenGL_accelerate.errorchecker._ErrorChecker.glCheckError (src/errorchecker.c:1218) OpenGL.error.GLError: GLError( err = 1282, description = b'invalid operation', baseOperation = glShadeModel, cArguments = (GL_SMOOTH,) ) Traceback (most recent call last): File "/home/cki/D_IWS022/bin/pycam/pycam/Plugins/OpenGLWindow.py", line 725, in paint self.glsetup() File "/home/cki/D_IWS022/bin/pycam/pycam/Plugins/OpenGLWindow.py", line 505, in glsetup GL.glShadeModel(GL.GL_SMOOTH) File "errorchecker.pyx", line 53, in OpenGL_accelerate.errorchecker._ErrorChecker.glCheckError (src/errorchecker.c:1218) OpenGL.error.GLError: GLError( err = 1282, description = b'invalid operation', baseOperation = glShadeModel, cArguments = (GL_SMOOTH,) ) Traceback (most recent call last): File "/home/cki/D_IWS022/bin/pycam/pycam/Plugins/OpenGLWindow.py", line 725, in paint self.glsetup() File "/home/cki/D_IWS022/bin/pycam/pycam/Plugins/OpenGLWindow.py", line 505, in glsetup GL.glShadeModel(GL.GL_SMOOTH) File "errorchecker.pyx", line 53, in OpenGL_accelerate.errorchecker._ErrorChecker.glCheckError (src/errorchecker.c:1218) OpenGL.error.GLError: GLError( err = 1282, description = b'invalid operation', baseOperation = glShadeModel, cArguments = (GL_SMOOTH,) )

(run_gui.py:7242): Gtk-WARNING **: Allocating size to GtkBox 0x13cc270 without calling gtk_widget_get_preferred_width/height(). How does the code know the size to allocate?

(run_gui.py:7242): Gtk-WARNING **: Allocating size to GtkWindow 0x16ae340 without calling gtk_widget_get_preferred_width/height(). How does the code know the size to allocate?

(run_gui.py:7242): Gtk-WARNING **: Allocating size to GtkBox 0x13cc270 without calling gtk_widget_get_preferred_width/height(). How does the code know the size to allocate?

(run_gui.py:7242): Gtk-WARNING **: Allocating size to GtkWindow 0x16ae340 without calling gtk_widget_get_preferred_width/height(). How does the code know the size to allocate? Storing a state revision (2/20) Traceback (most recent call last): File "/home/cki/D_IWS022/bin/pycam/pycam/Plugins/OpenGLWindow.py", line 725, in paint self.glsetup() File "/home/cki/D_IWS022/bin/pycam/pycam/Plugins/OpenGLWindow.py", line 505, in glsetup GL.glShadeModel(GL.GL_SMOOTH) File "errorchecker.pyx", line 53, in OpenGL_accelerate.errorchecker._ErrorChecker.glCheckError (src/errorchecker.c:1218) OpenGL.error.GLError: GLError( err = 1282, description = b'invalid operation', baseOperation = glShadeModel, cArguments = (GL_SMOOTH,) ) Traceback (most recent call last): File "/home/cki/D_IWS022/bin/pycam/pycam/Plugins/OpenGLWindow.py", line 725, in paint self.glsetup() File "/home/cki/D_IWS022/bin/pycam/pycam/Plugins/OpenGLWindow.py", line 505, in glsetup GL.glShadeModel(GL.GL_SMOOTH) File "errorchecker.pyx", line 53, in OpenGL_accelerate.errorchecker._ErrorChecker.glCheckError (src/errorchecker.c:1218) OpenGL.error.GLError: GLError( err = 1282, description = b'invalid operation', baseOperation = glShadeModel, cArguments = (GL_SMOOTH,) ) Traceback (most recent call last): File "/home/cki/D_IWS022/bin/pycam/pycam/Plugins/OpenGLWindow.py", line 725, in paint self.glsetup() File "/home/cki/D_IWS022/bin/pycam/pycam/Plugins/OpenGLWindow.py", line 505, in glsetup GL.glShadeModel(GL.GL_SMOOTH) File "errorchecker.pyx", line 53, in OpenGL_accelerate.errorchecker._ErrorChecker.glCheckError (src/errorchecker.c:1218) OpenGL.error.GLError: GLError( err = 1282, description = b'invalid operation', baseOperation = glShadeModel, cArguments = (GL_SMOOTH,) ) Traceback (most recent call last): File "/home/cki/D_IWS022/bin/pycam/pycam/Plugins/OpenGLWindow.py", line 725, in paint self.glsetup() File "/home/cki/D_IWS022/bin/pycam/pycam/Plugins/OpenGLWindow.py", line 505, in glsetup GL.glShadeModel(GL.GL_SMOOTH) File "errorchecker.pyx", line 53, in OpenGL_accelerate.errorchecker._ErrorChecker.glCheckError (src/errorchecker.c:1218) OpenGL.error.GLError: GLError( err = 1282, description = b'invalid operation', baseOperation = glShadeModel, cArguments = (GL_SMOOTH,) ) Traceback (most recent call last): File "/home/cki/D_IWS022/bin/pycam/pycam/Plugins/OpenGLWindow.py", line 725, in paint self.glsetup() File "/home/cki/D_IWS022/bin/pycam/pycam/Plugins/OpenGLWindow.py", line 505, in glsetup GL.glShadeModel(GL.GL_SMOOTH) File "errorchecker.pyx", line 53, in OpenGL_accelerate.errorchecker._ErrorChecker.glCheckError (src/errorchecker.c:1218) OpenGL.error.GLError: GLError( err = 1282, description = b'invalid operation', baseOperation = glShadeModel, cArguments = (GL_SMOOTH,) ) Traceback (most recent call last): File "/home/cki/D_IWS022/bin/pycam/pycam/Plugins/OpenGLWindow.py", line 725, in paint self.glsetup() File "/home/cki/D_IWS022/bin/pycam/pycam/Plugins/OpenGLWindow.py", line 505, in glsetup GL.glShadeModel(GL.GL_SMOOTH) File "errorchecker.pyx", line 53, in OpenGL_accelerate.errorchecker._ErrorChecker.glCheckError (src/errorchecker.c:1218) OpenGL.error.GLError: GLError( err = 1282, description = b'invalid operation', baseOperation = glShadeModel, cArguments = (GL_SMOOTH,) ) Traceback (most recent call last): File "/home/cki/D_IWS022/bin/pycam/pycam/Plugins/OpenGLWindow.py", line 725, in paint self.glsetup() File "/home/cki/D_IWS022/bin/pycam/pycam/Plugins/OpenGLWindow.py", line 505, in glsetup GL.glShadeModel(GL.GL_SMOOTH) File "errorchecker.pyx", line 53, in OpenGL_accelerate.errorchecker._ErrorChecker.glCheckError (src/errorchecker.c:1218) OpenGL.error.GLError: GLError( err = 1282, description = b'invalid operation', baseOperation = glShadeModel, cArguments = (GL_SMOOTH,) ) Traceback (most recent call last): File "/home/cki/D_IWS022/bin/pycam/pycam/Plugins/OpenGLWindow.py", line 725, in paint self.glsetup() File "/home/cki/D_IWS022/bin/pycam/pycam/Plugins/OpenGLWindow.py", line 505, in glsetup GL.glShadeModel(GL.GL_SMOOTH) File "errorchecker.pyx", line 53, in OpenGL_accelerate.errorchecker._ErrorChecker.glCheckError (src/errorchecker.c:1218) OpenGL.error.GLError: GLError( err = 1282, description = b'invalid operation', baseOperation = glShadeModel, cArguments = (GL_SMOOTH,) ) cki@ckilap02:~/D_IWS022/bin/pycam> `

sumpfralle commented 6 years ago

This looks similar to issue #97.

Please try the following:

MESA_GL_VERSION_OVERRIDE="3.0 Mesa 17.2.5" python3 pycam/run_gui.py
sumpfralle commented 6 years ago

@cki61: did you make progress? Can the issue be closed?

cki61 commented 6 years ago

Hi sumpfralle, just tested the actual version, now I can see the canvas with some lines, but no model. Please see image appended. Best Regards, Christof screenshot_20180215_233844

sumpfralle commented 6 years ago

Hi Christof,

could you please verify, that the model visualization is enabled?

pycam_model_is_visible

cki61 commented 6 years ago

Hi sumpfralle,

I didn't recognize that "show Model" is a button, By your hint I saw it after pushing that area, it became blue in the background, see image Thanks a lot!

Best Regards, Christof

screenshot_20180216_094834