Page 1 of 1

Unknown Trace Type

Posted: Sat Aug 06, 2011 11:52 am
by Nightrader_
Hello all,
Recently I added a script device I created ( a Thermostat). This is a fairly simple device and I have many other script devices that work fine. The problem with this device is it randomly crashes HouseBot back to the desktop with no error message or anything. When I check the HouseBot logs, this is what I find:

"08/06/2011","8:36:50 am","TStat - lvrm","Error","Unknown trace type [1867325556] found in HB_TraceDeviceMessage()"

I have not been able to find anything wrong with the Device or the DB, this script device looks the same as my others.

Anyone have a clue what is causing this, or maybe a work around.

Thanks,
Gene

Re: Unknown Trace Type

Posted: Sat Aug 06, 2011 2:39 pm
by Richard Naninck
Are you tracing messages? If so, did you try to disable (error) logging.
Maybe PM the script to me so I could have a general look. Sometimes you get blind from your own stuff;)

Re: Unknown Trace Type

Posted: Sat Aug 06, 2011 8:34 pm
by ScottBot
If it's a script device, there are only a couple of ways to trace messages and they should isolate the script from ever specifying an "unknown trace type". It's possible that something has went so wrong that the call is corrupted.

If the server crashed, there should be a .dmp file created in the HouseBot\Dump directory. If you send me the latest dump file in that directory, maybe I can find some additional clues.

Re: Unknown Trace Type

Posted: Sun Aug 07, 2011 3:12 am
by Nightrader_
Richard Naninck wrote:Are you tracing messages? If so, did you try to disable (error) logging.
Maybe PM the script to me so I could have a general look. Sometimes you get blind from your own stuff;)
I have tried it with the tracing turned off and set to window. Same result.
btw, I am talking about the settings on the device log panel.

The line above was from the HouseBot logfile in the Logs folder.

Gene

Re: Unknown Trace Type

Posted: Sun Aug 07, 2011 3:17 am
by Nightrader_
ScottBot wrote:If it's a script device, there are only a couple of ways to trace messages and they should isolate the script from ever specifying an "unknown trace type". It's possible that something has went so wrong that the call is corrupted.

If the server crashed, there should be a .dmp file created in the HouseBot\Dump directory. If you send me the latest dump file in that directory, maybe I can find some additional clues.
I had not noticed the Dump files :D
anyway here is the latest.

Update:
After looking over the Dump files, it looks like the problem is in hbWebServer.dll. I will remove it and monitor.

Thanks,
Gene

Re: Unknown Trace Type

Posted: Sun Aug 07, 2011 3:40 am
by Nightrader_
No luck :(
It crashed again. no warning or anything, just gone.

no new dmp file now, but this was in the error log file.

I am not tracing anything for any of the script devices.

"08/07/2011","12:32:44 am","TStat - lvrm","Error","Unknown trace type [1919252335] found in HB_TraceDeviceMessage()"

Thanks,
Gene

Re: Unknown Trace Type

Posted: Sun Aug 07, 2011 1:48 pm
by Nightrader_
I went over the script and cleaned it up some (I have not add "Option Explicit" as recommend by Richard, yet (It is good advise)) and I created an export.

This is fairly portable and everyone is welcome to use it or any portion of it in anyway they wish.
You may need to edit the property names in the script, for the 3 devices (AC, Fan and Sensor), I should not have hard coded these. :wink:

Please let me know if you experience the same crashing as I.

Thanks,
Gene