arupmondal
app-title:
beremiz
app-version:
3.0
Release: 2025-02-14
cwd:
C:\Users\Administrator\OpenPLC_Editor
date:
Tue Mar 11 09:15:08 2025
e-type:
<class 'TypeError'>
e-value:
invalid argument: ex_type should be an exception type, or just supply no arguments at all
locals:
formatRemoteTraceback: <function get_pyro_traceback.<locals>.formatRemoteTraceback at 0x0000020E5711CA60>
platform:
Windows-10-10.0.19045-SP0
python-version:
3.9.10
traceback:
File "C:\Users\Administrator\OpenPLC_Editor\.\editor\BeremizIDE.py", line 836, in OnMenu
getattr(self.CTR, method)()
File "C:\Users\Administrator\OpenPLC_Editor\.\editor\ProjectController.py", line 2438, in _debugPLC
if self._connector.MatchMD5(MD5, request_type='remote') == True:
File "C:\Users\Administrator\OpenPLC_Editor\.\editor\connectors\PYRO\__init__.py", line 82, in catcher_func
errmess = ''.join(Pyro5.errors.get_pyro_traceback(e))
File "C:\Users\Administrator\OpenPLC_Editor\python\.venv\lib\site-packages\Pyro5\errors.py", line 87, in get_pyro_traceback
raise TypeError("invalid argument: ex_type should be an exception type, or just supply no arguments at all")
<class 'TypeError'>: invalid argument: ex_type should be an exception type, or just supply no arguments at all
wx-platform:
__WXMSW__
wx-version:
4.2.0
 
Reply 0 0
thiagoralves
Make sure you disable Windows Defender or your antivirus when you're trying to debug. This crash happens because your antivirus blocked the debugger from accessing the runtime.
Reply 0 0
arupmondal
Thank you thiagoralves! It helped once on one event. The other crashes I found that my cycle time was too fast for heavy math logic in program block. In another event I had bad variables defined as LINT and LREAL (64 bit) whereas pi pico is good for DINT and REAL (32 bit) refusing to debug since system hung!

However, anyone has any idea when you get these errors in console:
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.

Debug: target couldn't trace all requested variables.
Debug: target couldn't trace all requested variables.
Debug: target couldn't trace all requested variables.

Thanks again!
Reply 0 0
thiagoralves
That basically means an incomplete response from the target - your your case the pico board. The debugger should work with any type of variables, not matter if they are 32 or 64 bits. If you don’t mind sharing your project, I would like to take a look at it and see why the debugger is not behaving properly
Reply 0 0
arupmondal
I am able to compile but debug never connects even with the tutorial projects with the following errors. I deleted Arduino15 folder and recompiled - still no luck! IDK what is going on! No code change was made and all worked good yesterday!
 
Error: Invalid response code while fetching MD5 hash
Error: Invalid response while fetching MD5 hash
PLCobject : Unable to read MD5 from target
This project does not match the program running on target. Upload the project to target and try again.
Couldn't stop PLC !
Reply 0 0
thiagoralves
Make sure you’re on the latest version of the editor (file->check for updates), then upload your code again and try using the debugger
Reply 0 0
arupmondal
I already had the latest version after updates. I reinstalled, did update again. uploaded the tutorial traffic light project and connected to debug successfully without MD5 hash issues.

But today same problem happened again, same project just changed the new IP, ssid, password for the router at different location for the pi-picoW. Got the same error for MD5 hash failing to connect to debug. I seems I have to reinstall the openPLC editor again! Also fails to connect to debug with same error for tutorial traffic light project.
 
Error: Invalid response while fetching MD5 hash
PLCobject : Unable to read MD5 from target
This project does not match the program running on target. Upload the project to target and try again.
Reply 0 0
thiagoralves
This is really odd. Are you trying to connect to a Pico W over WiFi? Have you tried using the serial debugger over USB? I’ll try to replicate your setup here
Reply 0 0
arupmondal
Yes, used wifi for picoW for MQTT. I tried both RTU serial and TCP to connect for debug. Same MD5 issue and fails to connect. It was all working. Tried to connect to another router. It compiles good, flashes uf2. No debug. Happened twice while switching between office and home network
Reply 0 0
Write a reply...
Reply