Upgraded from 2.7 to 2.8 and GladeVCP is not working

More
02 Jun 2023 21:41 #272768 by LearningLinuxCNC
So my SSD failed on my mill. I was able to recover the data from the main partition but the boot partition was not working.

I copied my configuration data and did a new install of 2.8.4 from the latest stable release.

Put my configuration files in and started it up. All is working except for my custom GladeVCP.

I had probe screen loaded in the past configuration. If I have it loading I get the following error.
(gmoccapy:3197): GtkSourceView-CRITICAL **: 16:40:00.870: gtk_source_language_manager_set_search_path: assertion 'lm->priv->ids == NULL' failed
RB1-CNC_PostGUI.hal:22: Pin 'SBOGladeCB4.TBSpindleBrakeOverride' does not exist
Traceback (most recent call last):
  File "/usr/bin/gladevcp", line 41, in <module>
    import gtk
  File "/usr/lib/python2.7/dist-packages/gtk-2.0/gtk/__init__.py", line 44, in <module>
    from gtk._lazyutils import LazyNamespace, LazyModule
KeyboardInterrupt
Traceback (most recent call last):
  File "/usr/bin/gladevcp", line 46, in <module>
    import gladevcp.makepins
  File "/usr/lib/python2.7/dist-packages/gladevcp/__init__.py", line 1, in <module>
    from hal_pythonplugin import *
  File "/usr/lib/python2.7/dist-packages/gladevcp/hal_pythonplugin.py", line 18, in <module>
    from state_label import State_Label
  File "/usr/lib/python2.7/dist-packages/gladevcp/state_label.py", line 16, in <module>
    import gobject
KeyboardInterrupt
3138
/usr/bin/gladevcp:191: GtkWarning: GtkSpinButton: setting an adjustment with non-zero page size is deprecated
  builder.add_from_file(xmlname)
3193
Stopping realtime threads
Unloading hal components
Traceback (most recent call last):
  File "/usr/bin/gladevcp", line 347, in <module>
    main()
  File "/usr/bin/gladevcp", line 248, in main
    window = xembed.reparent(window, opts.parent)
  File "/usr/lib/python2.7/dist-packages/gladevcp/xembed.py", line 13, in reparent
    from Xlib import display
  File "/usr/lib/python2.7/dist-packages/Xlib/display.py", line 38, in <module>
    from .xobject import resource
  File "/usr/lib/python2.7/dist-packages/Xlib/xobject/resource.py", line 22, in <module>
    from Xlib.protocol import request
KeyboardInterrupt
PPMC: shutting down
Note: Using POSIX realtime

If I comment out the probe screen and only load my two custom GladeVCP panels I get the following error.
(gmoccapy:2731): GtkSourceView-CRITICAL **: 16:32:18.303: gtk_source_language_manager_set_search_path: assertion 'lm->priv->ids == NULL' failed
RB1-CNC_PostGUI.hal:22: Pin 'SBOGladeCB4.TBSpindleBrakeOverride' does not exist
Traceback (most recent call last):
  File "/usr/bin/gladevcp", line 46, in <module>
    import gladevcp.makepins
  File "/usr/lib/python2.7/dist-packages/gladevcp/__init__.py", line 1, in <module>
    from hal_pythonplugin import *
  File "/usr/lib/python2.7/dist-packages/gladevcp/hal_pythonplugin.py", line 1, in <module>
    from hal_widgets import HAL_HideTable
  File "/usr/lib/python2.7/dist-packages/gladevcp/hal_widgets.py", line 16, in <module>
    import gobject
KeyboardInterrupt
Traceback (most recent call last):
  File "/usr/bin/gladevcp", line 41, in <module>
    import gtk
  File "/usr/lib/python2.7/dist-packages/gtk-2.0/gtk/__init__.py", line 40, in <module>
    from gtk import _gtk
  File "/usr/lib/python2.7/dist-packages/cairo/__init__.py", line 1, in <module>
    from ._cairo import *  # noqa: F401,F403
KeyboardInterrupt
2672
2727
Stopping realtime threads
Unloading hal components
PPMC: shutting down
Note: Using POSIX realtime

What is different between 2.7 and 2.8 that would be causing this?

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

More
02 Jun 2023 21:51 #272769 by tommylight
From both of your logs:
RB1-CNC_PostGUI.hal:22: Pin 'SBOGladeCB4.TBSpindleBrakeOverride' does not exist

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

More
02 Jun 2023 22:08 #272771 by LearningLinuxCNC
I see this. Why did it exist and now it does not?

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

More
02 Jun 2023 22:12 #272772 by LearningLinuxCNC
Just to clarify SBOGladeCB4.TBSpindleOverride is the pin for a HAL Toggle Button on my Glade VCP panel. Did something change with HAL Toggle Buttons between 2.7 and 2.8 that would cause this issue. All of the files within my config folder are the same. Has to be something outside the main config. I don't recall changing any code for the HAL Toggle Button in the previous version. However my memory could be failing me here.

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

More
02 Jun 2023 22:15 #272774 by LearningLinuxCNC
If this helps any my remaps are not working either. If I try to run M6 in MDI it sets there and does nothing. I have to stop the MDI command mannualy but the machine does nothing.

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

More
02 Jun 2023 22:16 #272775 by tommylight
No idea, never used glade that i am aware of.
I would first check if glade is installed or grown or whatever it needs to be for it to be used by LinuxCNC.
sorry for the vague reply.
-
hmmmm
glade uses UI files or something like that, check if those files are present.

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

More
02 Jun 2023 23:12 #272781 by LearningLinuxCNC
The ui files are present and they show up fine if I comment out the postgui.hal file that tries to connect to the pin.

I guess my question is why is the pin not there.

Glade is installed. The docs say to have glade-gtk3 3.8.0 or lower it is 3.8.6-1 is what is installed.

python-gtk3 is installed 2.24.0-5.1

Linuxcnc was installed from the installer so it should be configured as installed according to the docs.

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

More
03 Jun 2023 00:41 #272785 by tommylight
Another stab in the dark, but do those UI files have to be executable to work?
Copying stuff in Linux tend to remove the executable flag.

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

More
03 Jun 2023 00:52 #272788 by LearningLinuxCNC
Not sure if they need to be executable or not. I think the problem is with this part of the error message.

Traceback (most recent call last):
File "/usr/bin/gladevcp", line 46, in <module>
import gladevcp.makepins

I don't think it is finding gladevcp.makepins. I could be wrong but seems like it could be the cause.

gladevcp_makepins.py existis on the computer however it says it is depreciated and to use gladevcp.makepins.

I will do another test tomorrow but for now I am done for the day. Worked on it from about 5:00 to 7:00 with no progress so I am tired out.

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

More
03 Jun 2023 07:15 #272799 by HansU
It would help if you could post your configuration and your Glade file.

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

Moderators: HansU
Time to create page: 0.135 seconds
Powered by Kunena Forum