How to debug: Error: PluginSystem: Exception processing message.

Python and python framework

Moderator: leecollings

Post Reply
pipiche
Posts: 2034
Joined: Monday 02 April 2018 20:33
Target OS: Linux
Domoticz version:
Contact:

How to debug: Error: PluginSystem: Exception processing message.

Post by pipiche »

I'm using the Python Plugin Framework and I see time to time a thread crashing with this error:

"2021-02-14 13:39:37.397 Error: PluginSystem: Exception processing message."


How can we debug that ? It would be nice if Domoticz when getting this Exception processing message could log a bit more information ?

Last what can trigger those Exception ?

Code: Select all

2021-02-14 13:38:49.327  Error: Error parsing http request address: ::ffff:192.168.1.38
2021-02-14 13:38:49.386  Error: Error parsing http request address: ::ffff:192.168.1.38
2021-02-14 13:38:49.503  Error: Error parsing http request address: ::ffff:192.168.1.38
2021-02-14 13:38:49.641  Error: Error parsing http request address: ::ffff:192.168.1.38
2021-02-14 13:38:49.703  Error: Error parsing http request address: ::ffff:192.168.1.38
2021-02-14 13:38:49.767  Error: Error parsing http request address: ::ffff:192.168.1.38
2021-02-14 13:38:49.842  Error: Error parsing http request address: ::ffff:192.168.1.38
2021-02-14 13:38:49.900  Error: Error parsing http request address: ::ffff:192.168.1.38
2021-02-14 13:39:12.557  Status: Incoming Domoticz connection from: 192.168.1.38
2021-02-14 13:39:27.803  Error: Error parsing http request address: ::ffff:192.168.1.38
2021-02-14 13:39:28.346  Error: Error parsing http request address: ::ffff:192.168.1.38
2021-02-14 13:39:28.347  Error: Error parsing http request address: ::ffff:192.168.1.38
2021-02-14 13:39:28.918  Error: Error parsing http request address: ::ffff:192.168.1.38
2021-02-14 13:39:28.918  Error: Error parsing http request address: ::ffff:192.168.1.38
2021-02-14 13:39:28.938  Error: Error parsing http request address: ::ffff:192.168.1.38
2021-02-14 13:39:28.939  Error: Error parsing http request address: ::ffff:192.168.1.38
2021-02-14 13:39:28.956  Error: Error parsing http request address: ::ffff:192.168.1.38
2021-02-14 13:39:28.966  Error: Error parsing http request address: ::ffff:192.168.1.38
2021-02-14 13:39:28.978  Error: Error parsing http request address: ::ffff:192.168.1.38
2021-02-14 13:39:28.985  Error: Error parsing http request address: ::ffff:192.168.1.38
2021-02-14 13:39:29.011  Error: Error parsing http request address: ::ffff:192.168.1.38
2021-02-14 13:39:37.700  Error: PluginSystem: Exception processing message.

The IPV6 ::ffff:192.168.1.38 is a PC Win10 running a Firefox Browser 85.0.2
Domoticz 2020.2 build 12947

cf: https://github.com/domoticz/domoticz/issues/3822
User avatar
Dnpwwo
Posts: 820
Joined: Sunday 23 March 2014 9:00
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Melbourne, Australia
Contact:

Re: How to debug: Error: PluginSystem: Exception processing message.

Post by Dnpwwo »

@pipiche,

I suspect that the use of IP v6 is the underlying issue.

There are a number places where boost IP v4 specific structures are used, accepting incoming connections is one of these. I don't use IP v6 so could never debug the code.

If you compile from source you could try replacing

Code: Select all

boost::asio::ip::tcp::v4
with

Code: Select all

boost::asio::ip::tcp::v6
in CPluginTransportTCP::handleListen. This compiles and according to StackOverflow will handle both v4 and v6.
The reasonable man adapts himself to the world; the unreasonable one persists to adapt the world to himself. Therefore all progress depends on the unreasonable man. George Bernard Shaw
pipiche
Posts: 2034
Joined: Monday 02 April 2018 20:33
Target OS: Linux
Domoticz version:
Contact:

Re: How to debug: Error: PluginSystem: Exception processing message.

Post by pipiche »

I see a number of PR in domoticz where if I not miss-understood moving out from Boost to Std ( https://github.com/domoticz/domoticz/pull/4620 )

do you think it will bring a better support or inter-operability between V4 and V6 ?
Post Reply