Paolo
Hi !
Error occurred when I'm trying to use Live debug remote to see my blinky led program running on a Arduino Uno Rev3.
app-title:
beremiz

app-version:
2.01
Release: 2023-11-14

cwd:
C:\Users\Paolo\OpenPLC_Editor

date:
Fri Nov 24 10:51:37 2023

e-type:
<type 'exceptions.AttributeError'>

e-value:
'NoneType' object has no attribute 'GetRedrawRect'

locals:
    movex: 0
    movey: 0
    self: <graphics.LD_Objects.LD_Contact object at 0x12498870>
    rect: wx.Rect(100, 103, 43, 57)

platform:
Windows-10-10.0.17763

python-version:
2.7.15

self:
    Forced: False
    LastValue: None
    Highlights: {}
    Selected: False
    ToolTipTimer: <wx._misc.Timer; proxy of <Swig Object of type 'wxPyTimer *' at 0x11f3b408> >
    Highlighted: False
    oldPos: None
    Input: None
    Type: 1
    Handle: (None, None)
    Parent: <editors.LDViewer.LD_Viewer; proxy of <Swig Object of type 'wxSplitterWindow *' at 0x1182f078> >
    PreviousSpreading: False
    CurrentDrag: None
    PreviousValue: True
    Name: 'led'
    LastForced: False
    Value: True
    Inhibited: True
    Output: None
    TypeSize: (8, 16)
    StartPos: None
    DataType: 'BOOL'
    Pos: wx.Point(110, 130)
    ToolTip: None
    Visible: True
    ToolTipPos: None
    BoundingBox: wx.Rect(109, 112, 25, 39)
    Dragging: False
    Id: 3
    NameSize: (24, 16)
    Size: wx.Size(21, 20)

traceback:
  File "C:\Users\Paolo\OpenPLC_Editor\editor\ProjectController.py", line 1911, in DispatchDebugValuesProc
    "__tick__", "NewDataAvailable", debug_ticks)
  File "C:\Users\Paolo\OpenPLC_Editor\editor\ProjectController.py", line 1881, in CallWeakcallables
    function(*cargs)
  File "C:\Users\Paolo\OpenPLC_Editor\editor\editors\Viewer.py", line 1159, in NewDataAvailable
    refresh_rect.Union(element.GetRedrawRect())
  File "C:\Users\Paolo\OpenPLC_Editor\editor\graphics\LD_Objects.py", line 444, in GetRedrawRect
    rect = rect.Union(self.Input.GetRedrawRect(movex, movey))
<type 'exceptions.AttributeError'>: 'NoneType' object has no attribute 'GetRedrawRect'

wx-platform:
__WXMSW__

wx-version:
3.0.2.0
 
Reply 0 0
thiagoralves
Which protocol are you using for debug? Serial or TCP? Have you enabled Modbus on the upload dialog? What are the messages in the console window when you start debugging?
Reply 0 0
Paolo
Yes Modbus RTU are enabled on the upload dialog.  I'm using Serial to debug.  Today it's work without craches😕  Here is the log of my console :
Compilé avec succès.
Connexion de PYRO à l'URI😋YROLOC://127.0.0.1:61691
PLC did not provide identity and security infomation.
Latest build does not match with connected target.
Program matches PLC MD5
PLC data transfered successfully.
UI thread started successfully.
PLCobject : No files to purge
PLCobject : NewPLC (78f0d90e6abd9b9441a8c6c7e1ac3a20)
PLC installed successfully.
PLCobject : PLC started
PLCobject : Python extensions started
Démarrer l'automate
Error reading traces from remote: NULL response object.
Error reading traces from remote: NULL response object.
Error reading traces from remote: NULL response object.
Error reading traces from remote: NULL response object.
Error reading traces from remote: NULL response object.
Error reading traces from remote: NULL response object.
Error reading traces from remote: NULL response object.
Error reading traces from remote: NULL response object.
PLCobject : PLC stopped
 
Error appear when I force variable LED to TRUE or FALSE.
Line 4 is suspicious because I have uploaded and started debugging just after
Reply 0 0
Write a reply...
Reply