kcjengr / qtpyvcp

QtPyVCP - Qt and Python based Virtual Control Panel framework for LinuxCNC.
https://www.qtpyvcp.com
Other
88 stars 48 forks source link

AttributeError: 'NoneType' object has no attribute 'setNotify' #75

Closed dadoblu2000 closed 1 year ago

dadoblu2000 commented 3 years ago

(Please fill in this issue template with as much information as you can about the circumstances under which the issue occurred, and the steps needed to reproduce it.)

Steps to reproduce the problem

(provide as detailed a step by step as you can)

1. 2. 3.

This is what I expected to happen

(explain what you thought should have happened)

This is what happened instead

(explain what happened instead)

It worked properly before this

(did it work before? what changed?)

Traceback

Traceback (most recent call last):
  File "/home/linuxcnc/.local/lib/python2.7/site-packages/qtpyvcp/plugins/notifications.py", line 126, in timerEvent
    self.captureMessage('error', msg)
  File "/home/linuxcnc/.local/lib/python2.7/site-packages/qtpyvcp/plugins/notifications.py", line 82, in captureMessage
    self.notification_dispatcher.setNotify(m_type, msg)
AttributeError: 'NoneType' object has no attribute 'setNotify'

Options

{
    "chooser": false, 
    "command_line_args": null, 
    "config_file": null, 
    "confirm_exit": null, 
    "develop": false, 
    "fullscreen": null, 
    "help": false, 
    "hide_cursor": false, 
    "hide_menu_bar": false, 
    "hide_status_bar": false, 
    "info": false, 
    "ini": "/home/linuxcnc/linuxcnc/configs/probe_basic/config/atc_sim/vmc_index.ini", 
    "log_file": "/home/linuxcnc/qtpyvcp.log", 
    "log_level": null, 
    "maximize": null, 
    "perfmon": false, 
    "position": null, 
    "qt_api": null, 
    "size": null, 
    "stylesheet": null, 
    "theme": null, 
    "vcp": "probe_basic", 
    "version": false
}

System Info

 * Description: Debian GNU/Linux 10 (buster)
 * Kernel: 4.19.0-14-rt-amd64
 * Qt version: v5.11.3
 * Qt bindings: PyQt5 v5.11.3
 * LinuxCNC version: v2.8.1
 * QtPyVCP version: v0.3.12

Attachments

Please also find and attach the following files, along with any others that may be helpful:

FranseFrikandel commented 3 years ago

Duplicate of #68.

Presumably this happens upon startup? Perhaps try testing with a different VCP just to eliminate it actually being a probe_basic bug.

What appears to happen is that postGuiInitialise() of the Notifications dataplugin is not being called. I don't know how or why this would happen though.

dadoblu2000 commented 3 years ago

hi, this is the error report when i try to start probe-basic

Error report created by /usr/lib/tcltk/linuxcnc/show_errors.tcl:

Print file information: RUN_IN_PLACE=no LINUXCNC_DIR= LINUXCNC_BIN_DIR=/usr/bin LINUXCNC_TCL_DIR=/usr/lib/tcltk/linuxcnc LINUXCNC_SCRIPT_DIR= LINUXCNC_RTLIB_DIR=/usr/lib/linuxcnc/modules LINUXCNC_CONFIG_DIR= LINUXCNC_LANG_DIR=/usr/lib/tcltk/linuxcnc/msgs INIVAR=inivar HALCMD=halcmd LINUXCNC_EMCSH=/usr/bin/wish8.6 LINUXCNC - 2.8.1 Machine configuration directory is '/home/cnc/linuxcnc/configs/probe_basic/config/probe_basic' Machine configuration file is 'probe_basic.ini' INIFILE=/home/cnc/linuxcnc/configs/probe_basic/config/probe_basic/probe_basic.ini VERSION=1.1 PARAMETER_FILE=sim.var TASK=milltask HALUI=halui DISPLAY=probe_basic COORDINATES=X Y Z A B KINEMATICS=trivkins coordinates=XYZAB Starting LinuxCNC... Starting LinuxCNC server program: linuxcncsvr Loading Real Time OS, RTAPI, and HAL_LIB modules Starting LinuxCNC IO program: io Starting HAL User Interface program: halui twopass:invoked with <> options twopass:found ./hallib/core_sim_5.hal twopass:found ./hallib/spindle_sim.hal twopass:found ./hallib/simulated_home_probe_basic.hal twopass:found ./hallib/sim_cannon.hal Starting TASK program: milltask Starting DISPLAY program: probe_basic Shutting down and cleaning up LinuxCNC... task: 589 cycles, min=0.000082, max=0.056105, avg=0.009638, 0 latency excursions (> 10x expected cycle time of 0.010000s) File: tool.tbl Unrecognized line skipped: ;Tool Pocket Z Offset Diameter Remark

Removing HAL_LIB, RTAPI, and Real Time OS modules Removing NML shared memory segments

Debug file information: Note: Using POSIX realtime motion.c: Creating unlock hal pins for joint 4 ERROR: In /work/standalone-x64-build/VTK-source/Rendering/OpenGL2/vtkOpenGLRenderWindow.cxx, line 797 vtkXOpenGLRenderWindow (0x559cb9784830): GL version 2.1 with the gpu_shader4 extension is not supported by your graphics driver but is required for the new OpenGL rendering backend. Please update your OpenGL driver. If you are using Mesa please make sure you have version 10.6.5 or later and make sure your driver in Mesa supports OpenGL 3.2.

ERROR: In /work/standalone-x64-build/VTK-source/Rendering/OpenGL2/vtkOpenGLRenderWindow.cxx, line 797 vtkXOpenGLRenderWindow (0x559cbc281410): GL version 2.1 with the gpu_shader4 extension is not supported by your graphics driver but is required for the new OpenGL rendering backend. Please update your OpenGL driver. If you are using Mesa please make sure you have version 10.6.5 or later and make sure your driver in Mesa supports OpenGL 3.2.

/usr/bin/linuxcnc: riga 896: 2319 Errore di segmentazione $EMCDISPLAY -ini "$INIFILE" $EMCDISPLAYARGS $EXTRA_ARGS 2283 2315 Stopping realtime threads Unloading hal components Note: Using POSIX realtime


Info report created by linuxcnc_info: The file: /tmp/linuxcnc_info.txt can be posted to a forum or a web site like: http://pastebin.com in order to provide information about the linuxcnc system and configuration.

            Date: mer 24 mar 2021, 12.17.50, CET
        UTC Date: mer 24 mar 2021, 11.17.50, UTC
    this program: /usr/bin/linuxcnc_info
          uptime: 12:17:50 up 6 min, 1 user, load average: 1,41, 1,65, 0,88
 lsb_release -sa: Debian Debian GNU/Linux 10 (buster) 10 buster
  which linuxcnc: /usr/bin/linuxcnc
             pwd: /home/cnc/linuxcnc/configs/probe_basic/config/probe_basic
            USER: cnc
         LOGNAME: cnc
            HOME: /home/cnc
          EDITOR: 
          VISUAL: 
        LANGUAGE: 
            TERM: dumb
       COLORTERM: 
         DISPLAY: :0
         DESKTOP: lightdm-xsession
    display size: 1920x1080 pixels (508x285 millimeters)
            PATH: /usr/bin:/home/cnc/linuxcnc/configs/probe_basic/config/probe_basic/bin:/usr/bin:/home/cnc/.local/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games

uname items: nodename -n: debian kernel-name -s: Linux kernel-vers -v: #1 SMP PREEMPT RT Debian 4.19.171-2 (2021-01-30) machine -m: x86_64 processor -p: unknown platform -i: unknown oper system -o: GNU/Linux

/proc items: cmdline: BOOT_IMAGE=/boot/vmlinuz-4.19.0-14-rt-amd64 root=UUID=97d2a556-8540-4927-9ebd-de33dd8be249 ro quiet model name: Intel(R) Core(TM)2 Duo CPU E6550 @ 2.33GHz cores: 2 cpu MHz: 2257.418 parport: 0000-0000 : parport0 0000-0000 : parport0 serial: 0000-0000 : serial 0000-0000 : serial

Versions: gcc: gcc (Debian 8.3.0-6) 8.3.0 python: Python 2.7.16 git: git version 2.20.1 git commit: NA tcl: 8.6 tk: 8.6 glade: not_in_PATH glade-gtk2: not_in_PATH

linuxcnc_var all:

 LINUXCNCVERSION: 2.8.1

LINUXCNC_AUX_GLADEVCP: /usr/share/linuxcnc/aux_gladevcp LINUXCNC_AUX_EXAMPLES: /usr/share/linuxcnc/aux_examples REALTIME: /etc/init.d/realtime RTS: uspace HALLIB_DIR: /usr/share/linuxcnc/hallib

dpkg -l 'linuxcnc': Voluto=U (non noto)/I (installato)/R (rimosso)/P (rimosso totale)/H (in attesa) | Stato=Non/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend |/ Err?=(nessuno)/R (reinstallazione richiesta) (Stato,Err: maiuscolo=grave) ||/ Nome Versione Architettura Descrizione +++-===============-============-============-===================================================================== un linuxcnc (nessuna descrizione disponibile) un linuxcnc-doc (nessuna descrizione disponibile) ii linuxcnc-doc-en 1:2.8.1 all motion controller for CNC machines and robots (English documentation) un linuxcnc-sim (nessuna descrizione disponibile) ii linuxcnc-uspace 1:2.8.1 amd64 motion controller for CNC machines and robots

FranseFrikandel commented 3 years ago

As mentioned in LinuxCNC discord, relevant error message here is:

ERROR: In /work/standalone-x64-build/VTK-source/Rendering/OpenGL2/vtkOpenGLRenderWindow.cxx, line 797 vtkXOpenGLRenderWindow (0x559cb9784830): GL version 2.1 with the gpu_shader4 extension is not supported by your graphics driver but is required for the new OpenGL rendering backend. Please update your OpenGL driver. If you are using Mesa please make sure you have version 10.6.5 or later and make sure your driver in Mesa supports OpenGL 3.2.

You will need to update graphics drivers. How this is done depends on hardware and what exact distro you're running.

dadoblu2000 commented 3 years ago

I've been trying to figure out how to update video drivers for days but I can't get a spider out of the hole, can you help me? debian operating system 10

glxinfo | grep OpenGL

OpenGL vendor string: Intel Open Source Technology Center OpenGL renderer string: Mesa DRI Intel(R) Q35 OpenGL version string: 1.4 Mesa 18.3.6 OpenGL extensions: OpenGL ES profile version string: OpenGL ES 2.0 Mesa 18.3.6 OpenGL ES profile shading language version string: OpenGL ES GLSL ES 1.0.16 OpenGL ES profile extensions:

is this information correct?

FranseFrikandel commented 3 years ago

Seems odd. Your CPU does not appear to have integrated graphics, so I assume OpenGL vendor should not be Intel, but rather AMD/ATI or NVidia if you were running a dedicated GPU.

dadoblu2000 commented 3 years ago

the graphics are integrated I have no video cards added in the PCIe or PCI slots

dadoblu2000 commented 3 years ago

I add log files for any checks, I just want to know if the video drivers are upgradeable to OpenGL 3.3 or if I need to add an alternative video card

log_26mar_095428.txt

FranseFrikandel commented 3 years ago

Dont know much about this type of stuff. But managed to find it was loading i915 drivers for integrated graphics, and then found this: https://wiki.archlinux.org/index.php/intel_graphics#OpenGL_2.1_with_i915_driver which might resolve your issue.

Websites I find seem to suggest you would have a Radeon HD2400 Pro built in but there is no mention of it in the logs so I assume this is wrong.

dadoblu2000 commented 3 years ago

I immediately go to read, to me it reports this description related to the video card VGA compatible controller: Intel Corporation 82Q35 Express Integrated Graphics Controller (rev 02)

dadoblu2000 commented 3 years ago

I was able to read and then verify the existence of the folder mentioned in the article, but / drirc does not exist in my operating system

FranseFrikandel commented 3 years ago

I had sent you a message in Discord, but just noticed you haven't seen it yet, so I might have the wrong account or something.

I believe you can just create the drirc folder if it doesn't exist.

dadoblu2000 commented 3 years ago

Hello sorry if I did not answer, but I have been busy with work, I think the problem is hardware and I need to add a video card that supports opengl, so they told me from a forum but I don't know what to do

joco-nz commented 1 year ago

Closing as old and part of 2.7 branch which is now defunct as Python 2 is end of life.