[solved] Linuxcnc crashes when opening files

More
10 Sep 2020 17:27 - 12 Sep 2020 07:38 #181660 by anfänger
Hi,

I updates to linuxcnc 2.8 and the latest qtpyvcp and probe basic.

wie I open some files linuxcnc is shutting down with following error:
/usr/bin/linuxcnc: Zeile 896:  4065 Speicherzugriffsfehler  $EMCDISPLAY -ini "$INIFILE" $EMCDISPLAYARGS $EXTRA_ARGS
Shutting down and cleaning up LinuxCNC...

and when powering up I get a lot of error messages:
ERROR: In /work/standalone-x64-build/VTK-source/Rendering/OpenGL2/vtkShaderProgram.cxx, line 431
vtkShaderProgram (0x564f846c6500): 0:1(10): error: GLSL 1.50 is not supported. Supported versions are: 1.10, 1.20, 1.30, 1.00 ES, and 3.00 ES


ERROR: In /work/standalone-x64-build/VTK-source/Rendering/OpenGL2/vtkShaderProgram.cxx, line 430
vtkShaderProgram (0x564f846c6500): 1: #version 150
2: #ifdef GL_ES
3: #if __VERSION__ == 300
4: #define attribute in
5: #define varying out
6: #endif // 300
7: #else // GL_ES
8: #define highp
9: #define mediump
10: #define lowp
11: #if __VERSION__ == 150
12: #define attribute in
13: #define varying out
14: #endif
15: #endif // GL_ES
16: 
17: 
18: /*=========================================================================
19: 
20:   Program:   Visualization Toolkit
21:   Module:    vtkPolyDataVS.glsl
22: 
23:   Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
24:   All rights reserved.
25:   See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
26: 
27:      This software is distributed WITHOUT ANY WARRANTY; without even
28:      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
29:      PURPOSE.  See the above copyright notice for more information.
30: 
31: =========================================================================*/
32: 
33: attribute vec4 vertexMC;
34: 
35: // frag position in VC
36: //VTK::PositionVC::Dec
37: 
38: // optional normal declaration
39: //VTK::Normal::Dec
40: 
41: // extra lighting parameters
42: //VTK::Light::Dec
43: 
44: // Texture coordinates
45: //VTK::TCoord::Dec
46: 
47: // material property values
48: //VTK::Color::Dec
49: 
50: // clipping plane vars
51: //VTK::Clip::Dec
52: 
53: // camera and actor matrix values
54: uniform mat4 MCDCMatrix;
55: 
56: // Apple Bug
57: //VTK::PrimID::Dec
58: 
59: // Value raster
60: //VTK::ValuePass::Dec
61: 
62: void main()
63: {
64:   //VTK::Color::Impl
65: 
66:   //VTK::Normal::Impl
67: 
68:   //VTK::TCoord::Impl
69: 
70:   //VTK::Clip::Impl
71: 
72:   //VTK::PrimID::Impl
73: 
74:     gl_Position = MCDCMatrix * vertexMC;
75: 
76: 
77:   //VTK::ValuePass::Impl
78: 
79:   //VTK::Light::Impl
80: }
81: 

and some more which I don't get in the terminal because it is ti fast and are not in the log files
the is just following:
cat igor.log 
2020-09-10 19:26:34,914 - qtpyvcp - INFO - Logging to /home/igor/linuxcnc/configs/IgorProbe/igor.log
2020-09-10 19:26:34,915 - qtpyvcp - INFO - QtPyVCP Version: v0.3.8
2020-09-10 19:26:35,379 - qtpyvcp.utilities.info - INFO - The machine has 3 axes and 3 joints
2020-09-10 19:26:35,379 - qtpyvcp.utilities.info - INFO - The Axis/Joint mapping is:
2020-09-10 19:26:35,379 - qtpyvcp.utilities.info - INFO - Axis X --> Joint 0
2020-09-10 19:26:35,379 - qtpyvcp.utilities.info - INFO - Axis Y --> Joint 1
2020-09-10 19:26:35,379 - qtpyvcp.utilities.info - INFO - Axis Z --> Joint 2
2020-09-10 19:26:35,575 - qtpyvcp - INFO - Loading global stylesheet: /home/igor/probe_basic/probe_basic/probe_basic.qss
2020-09-10 19:26:38,385 - qtpyvcp.widgets.form_widgets.main_window - ERROR - Error binding menu action settings.virtual-input.enable
Traceback (most recent call last):
  File "/home/igor/.local/lib/python2.7/site-packages/qtpyvcp/widgets/form_widgets/main_window.py", line 134, in getMenuAction
    actions.bindWidget(menu_action, action_name)
  File "/home/igor/.local/lib/python2.7/site-packages/qtpyvcp/actions/__init__.py", line 66, in bindWidget
    raise InvalidAction("Could not get action method: %s" % item)
InvalidAction: Could not get action method: settings
2020-09-10 19:26:38,386 - qtpyvcp.widgets.form_widgets.main_window - ERROR - Error binding menu action settings.backplot.show-grid
Traceback (most recent call last):
  File "/home/igor/.local/lib/python2.7/site-packages/qtpyvcp/widgets/form_widgets/main_window.py", line 134, in getMenuAction
    actions.bindWidget(menu_action, action_name)
  File "/home/igor/.local/lib/python2.7/site-packages/qtpyvcp/actions/__init__.py", line 66, in bindWidget
    raise InvalidAction("Could not get action method: %s" % item)
InvalidAction: Could not get action method: settings
2020-09-10 19:26:38,387 - qtpyvcp.widgets.form_widgets.main_window - ERROR - Error binding menu action settings.backplot.show-machine-bounds
Traceback (most recent call last):
  File "/home/igor/.local/lib/python2.7/site-packages/qtpyvcp/widgets/form_widgets/main_window.py", line 134, in getMenuAction
    actions.bindWidget(menu_action, action_name)
  File "/home/igor/.local/lib/python2.7/site-packages/qtpyvcp/actions/__init__.py", line 66, in bindWidget
    raise InvalidAction("Could not get action method: %s" % item)
InvalidAction: Could not get action method: settings
2020-09-10 19:26:38,387 - qtpyvcp.widgets.form_widgets.main_window - ERROR - Error binding menu action settings.backplot.show-machine-labels
Traceback (most recent call last):
  File "/home/igor/.local/lib/python2.7/site-packages/qtpyvcp/widgets/form_widgets/main_window.py", line 134, in getMenuAction
    actions.bindWidget(menu_action, action_name)
  File "/home/igor/.local/lib/python2.7/site-packages/qtpyvcp/actions/__init__.py", line 66, in bindWidget
    raise InvalidAction("Could not get action method: %s" % item)
InvalidAction: Could not get action method: settings
2020-09-10 19:26:38,388 - qtpyvcp.widgets.form_widgets.main_window - ERROR - Error binding menu action settings.backplot.show-machine-ticks
Traceback (most recent call last):
  File "/home/igor/.local/lib/python2.7/site-packages/qtpyvcp/widgets/form_widgets/main_window.py", line 134, in getMenuAction
    actions.bindWidget(menu_action, action_name)
  File "/home/igor/.local/lib/python2.7/site-packages/qtpyvcp/actions/__init__.py", line 66, in bindWidget
    raise InvalidAction("Could not get action method: %s" % item)
InvalidAction: Could not get action method: settings
2020-09-10 19:26:38,388 - qtpyvcp.widgets.form_widgets.main_window - ERROR - Error binding menu action settings.backplot.show-program-bounds
Traceback (most recent call last):
  File "/home/igor/.local/lib/python2.7/site-packages/qtpyvcp/widgets/form_widgets/main_window.py", line 134, in getMenuAction
    actions.bindWidget(menu_action, action_name)
  File "/home/igor/.local/lib/python2.7/site-packages/qtpyvcp/actions/__init__.py", line 66, in bindWidget
    raise InvalidAction("Could not get action method: %s" % item)
InvalidAction: Could not get action method: settings
2020-09-10 19:26:38,389 - qtpyvcp.widgets.form_widgets.main_window - ERROR - Error binding menu action settings.backplot.show-program-labels
Traceback (most recent call last):
  File "/home/igor/.local/lib/python2.7/site-packages/qtpyvcp/widgets/form_widgets/main_window.py", line 134, in getMenuAction
    actions.bindWidget(menu_action, action_name)
  File "/home/igor/.local/lib/python2.7/site-packages/qtpyvcp/actions/__init__.py", line 66, in bindWidget
    raise InvalidAction("Could not get action method: %s" % item)
InvalidAction: Could not get action method: settings
2020-09-10 19:26:38,389 - qtpyvcp.widgets.form_widgets.main_window - ERROR - Error binding menu action settings.backplot.show-program-ticks
Traceback (most recent call last):
  File "/home/igor/.local/lib/python2.7/site-packages/qtpyvcp/widgets/form_widgets/main_window.py", line 134, in getMenuAction
    actions.bindWidget(menu_action, action_name)
  File "/home/igor/.local/lib/python2.7/site-packages/qtpyvcp/actions/__init__.py", line 66, in bindWidget
    raise InvalidAction("Could not get action method: %s" % item)
InvalidAction: Could not get action method: settings
2020-09-10 19:26:38,647 - qtpyvcp.app.launcher - INFO - Loading POSTGUI_HALFILE: /home/igor/linuxcnc/configs/IgorProbe/hallib/postgui.hal

Has anyone some ideas?

Thanks Patrick

File Attachment:

File Name: Igor.ini
File Size:7 KB
Attachments:
Last edit: 12 Sep 2020 07:38 by anfänger.

Please Log in or Create an account to join the conversation.

More
10 Sep 2020 18:36 - 10 Sep 2020 18:37 #181664 by anfänger
some of the errors in the beginning of power up come from filling the tool changer widget and and are a little odd cause the atc widget is filled as usual. But the VTK-Plot widget seems to miss
[qtpyvcp.app.launcher][CRITICAL]  Unhandled exception in machine_actions.py line 425 (launcher.py:37)
Traceback (most recent call last):
  File "/home/igor/.local/lib/python2.7/site-packages/qtpyvcp/actions/machine_actions.py", line 425, in set
    CMD.rapidrate(float(value) / 100)
  File "/home/igor/.local/lib/python2.7/site-packages/qtpyvcp/hal/hal_qlib.py", line 112, in signal_handler
    self.exit()
  File "/home/igor/.local/lib/python2.7/site-packages/qtpyvcp/hal/hal_qlib.py", line 109, in exit
    return self._comp.exit(*a, **kw)
RuntimeError: Invalid operation on closed HAL component
[qtpyvcp.plugins.notifications][ERROR]  Error evaluating DEBUG expression: 'vcp.getWidget("dynatc").store_tool(1.000000, 1060.000000)' (notifications.py:146)
Traceback (most recent call last):
  File "/home/igor/.local/lib/python2.7/site-packages/qtpyvcp/plugins/notifications.py", line 144, in timerEvent
    eval(exp, {"vcp": app})
  File "<string>", line 1, in <module>
  File "/home/igor/.local/lib/python2.7/site-packages/qtpyvcp/app/application.py", line 213, in getWidget
    raise AttributeError("Could not find widget with name: %s" % name)
AttributeError: Could not find widget with name: dynatc
[qtpyvcp.plugins.notifications][ERROR]  Error evaluating DEBUG expression: 'vcp.getWidget("dynatc").store_tool(11.000000, 2001.000000)' (notifications.py:146)
Traceback (most recent call last):
  File "/home/igor/.local/lib/python2.7/site-packages/qtpyvcp/plugins/notifications.py", line 144, in timerEvent
    eval(exp, {"vcp": app})
  File "<string>", line 1, in <module>
  File "/home/igor/.local/lib/python2.7/site-packages/qtpyvcp/app/application.py", line 213, in getWidget
    raise AttributeError("Could not find widget with name: %s" % name)
AttributeError: Could not find widget with name: dynatc
Last edit: 10 Sep 2020 18:37 by anfänger.

Please Log in or Create an account to join the conversation.

More
11 Sep 2020 02:21 - 11 Sep 2020 02:21 #181705 by KCJ
Hello Patrick,

Those are really strange errors.

The VTK error looks to be a GL shading language version mismatch, I'm not sure how to fix that. It could be that installing the latest version of VTK will work. I will try to set up a test environment and experiment with that.

The raise InvalidAction("Could not get action method: %s" % item) are likely due to menu items defined in the GUI that are not set up in the YAML setting definitions. This is not a big deal, probably caused my mismatched QtPyVCP and ProbeBasic versions. This only affects the window menu items, some of which might not function correctly.

The other errors are really strange. Again I think caused by miss matched versions. Are you possibly running a really old version of ProbeBasic??

What is the output of qtpyvcp --info and probe_basic -v?

Cheers,
Kurt
Last edit: 11 Sep 2020 02:21 by KCJ.

Please Log in or Create an account to join the conversation.

More
11 Sep 2020 04:19 #181717 by anfänger
Thats a bit odd I think I use the git versions of both but I get this:
qtpyvcp -v
QtPyVCP v0.3.8
igor@igor:~$ probe_basic -v
QtPyVCP v0.3.8, Probe Basic vv0.2.8+158.gdfd576e.dirty

in git I get for qtpyvcp:
v0.3.8-100-gc57bb925

I usually update by
 git fetch --all
git reset --hard origin/master
pip install -e .

But I recycle my UI file cause I made a lot of changes to suite my machine.

Tanks for your help

Please Log in or Create an account to join the conversation.

More
11 Sep 2020 07:05 - 11 Sep 2020 07:11 #181726 by TurBoss
Hello,

thanks for the report

could you please issue this command?
glxinfo | grep OpenGL


It will show the system GLSL version 1.50

from the error I can read
error: GLSL 1.50 is not supported. Supported versions are: 1.10, 1.20, 1.30, 1.00 ES, and 3.00 ES

is the VTK from the repos or built from sources?
Last edit: 11 Sep 2020 07:11 by TurBoss.

Please Log in or Create an account to join the conversation.

More
11 Sep 2020 07:13 #181727 by TurBoss
have you changed your graphics card ?

Please Log in or Create an account to join the conversation.

More
12 Sep 2020 05:44 - 12 Sep 2020 05:51 #181823 by anfänger
I changed only the apt repo to 2.8 linuxcnc and ran an update (all packages including the Debian ones maybe this was a mistake). No hardware changes

kernel: 4.9.0-13-rt-amd64

my apt sources


everything comes from the precompiled except some pythons modules I installed by pip and qtpyvcp, probe_basic and the hand wheel module

clx resulsts:
OpenGL vendor string: VMware, Inc.
OpenGL renderer string: Gallium 0.4 on llvmpipe (LLVM 3.9, 256 bits)
OpenGL version string: 3.0 Mesa 13.0.6
OpenGL shading language version string: 1.30
OpenGL context flags: (none)
OpenGL extensions:
Attachments:
Last edit: 12 Sep 2020 05:51 by anfänger.

Please Log in or Create an account to join the conversation.

More
12 Sep 2020 06:04 - 12 Sep 2020 06:07 #181824 by TurBoss
hello,

is curious how

OpenGL vendor string: VMware, Inc.
OpenGL renderer string: Gallium 0.4 on llvmpipe (LLVM 3.9, 256 bits)
OpenGL version string: 3.0 Mesa 13.0.6
OpenGL shading language version string: 1.30
OpenGL context flags: (none)
OpenGL extensions:



reports system using GLSL 1.30 wich is shown as compatible on the first error


ERROR: In /work/standalone-x64-build/VTK-source/Rendering/OpenGL2/vtkShaderProgram.cxx, line 431
vtkShaderProgram (0x564f846c6500): 0:1(10): error: GLSL 1.50 is not supported. Supported versions are: 1.10, 1.20, 1.30, 1.00 ES, and 3.00 ES

can you pleas show distribution field when you click on the linuxcnc build bot repo ?

and I'm not sure if is correct to have both repositories active :? can some one confirm?

deb linuxcnc.org/
deb buildbot.linuxcnc.org


Thanks

edit: maybe try
pip install --upgrade vtk
Last edit: 12 Sep 2020 06:07 by TurBoss.

Please Log in or Create an account to join the conversation.

More
12 Sep 2020 07:14 #181830 by anfänger
pip install --upgrade vtk
seems to have solved the problem

many thanks!
The following user(s) said Thank You: TurBoss, KCJ

Please Log in or Create an account to join the conversation.

Moderators: KCJLcvette
Time to create page: 0.157 seconds
Powered by Kunena Forum