Re: Broadcaster Plugin Received Data Fix
Posted: Mon Nov 21, 2016 6:54 am
and the encoding does not take place in the Trigger event...
it takes place in the log. where it is displayed
i do have a question tho.. are you running EG in debugging mode???
because of the use of python codecs and 'ascii' when it writes to the log file. and it specifically states ascii in the traceback. that is the only place that i know of in EG that any kind of codec is use with ascii that is in the chain for TriggerEvent.
and following a stack trace that comes out of asyncore leads you to a dead end because of how it completely butchers it
and UDP is a broadcast message and is not able to pass through a router. so it has to be coming from your internal network. now it can be many different things. but the fact that it is always the same character is suspect of something doing it and not some garbage getting in.
i personally do not like asyncore as there are known issues with it. and it's not a true thread it's some kind of voodoo code. now what i find very odd is the fact it states unhandled exception. when in the version i made it is handled. i am not sure if you also tried the one i made...
now if you want to get the true traceback and just have it bypass the error totally
then you will have to add this is the subclass of asyncore
this will override the handle_error method for asyncore and stop it from raising an exception where it has modified the original exception
this will print the exception but not raise it. and should allow the broadcaster plugin to continue along it's way.
but the simple fact is that the event never gets fired if this takes place..
but the printed traceback could be more revealing
it takes place in the log. where it is displayed
i do have a question tho.. are you running EG in debugging mode???
because of the use of python codecs and 'ascii' when it writes to the log file. and it specifically states ascii in the traceback. that is the only place that i know of in EG that any kind of codec is use with ascii that is in the chain for TriggerEvent.
and following a stack trace that comes out of asyncore leads you to a dead end because of how it completely butchers it
and UDP is a broadcast message and is not able to pass through a router. so it has to be coming from your internal network. now it can be many different things. but the fact that it is always the same character is suspect of something doing it and not some garbage getting in.
i personally do not like asyncore as there are known issues with it. and it's not a true thread it's some kind of voodoo code. now what i find very odd is the fact it states unhandled exception. when in the version i made it is handled. i am not sure if you also tried the one i made...
now if you want to get the true traceback and just have it bypass the error totally
then you will have to add this is the subclass of asyncore
Code: Select all
def handle_error(self):
import traceback
traceback.print_exc()
this will override the handle_error method for asyncore and stop it from raising an exception where it has modified the original exception
this will print the exception but not raise it. and should allow the broadcaster plugin to continue along it's way.
but the simple fact is that the event never gets fired if this takes place..
but the printed traceback could be more revealing