Prowl and Crash

rnaleonard rnaleonard at rcn.com
Thu Feb 11 09:29:47 EST 2021


Thank you for the debugging tips.  I am getting more suspicious that this is a problem I am causing myself rather than an issue with the Prowl helper or loadURL.  I checked the background process window and nothing unexpected there.  Also did the don't thread database saves and the option restart and nothing popped up there (my gosh there is a lot of stuff happening behind the happy interface we normally look at!)

I can run the prowl helper with a call to it within the script and see no problem.  And I can turn on the units that trigger the prowl notifications from within XTension and see no problem.  But yet, there is something happening because XTension crashed last night around 12:30am.

Real testing is tricky because the units that trigger these notifications are long range sensors (I need to write this up at some point) located outside.  Maybe today I can get someone to wander around in the snow while I watch XTension.

I will send the crash report via separate email in case there are clues in there.

Thank you for your help,
Rich

> On Feb 11, 2021, at 5:34 AM, James Sentman <james at sentman.com> wrote:
> 
> 
> If you haven’t already (I’m reading list emails before my personal emails this morning) please send me the output of any crash reports that popup after it happens.
> 
> There are a couple of other places to have a look at. The LoadURL command runs as a background thread in XTension and you can monitor those via the background processes window. It’s possible that things are building up somehow for whatever reason, though I use prowl and that exact script a lot and so far haven’t had any similar issues. You should see the loadURL command in that window and after it’s complete it should disappear after a few moments and the list should be empty if nothing is happening at that moment. You might also see other things there, threaded database saves and async shell commands.
> 
> The other thing that might be helpful is to check the new “dont thread database saves” checkbox in XTension’s preferences that I added in the last update. That turns off disk caching and turns on verbose logging when doing a database save and does it inline of the main thread as we have been doing since the beginning of time before I moved it out to a thread. So it will pause the app for a few seconds as it saves off anything that needs to be saved and if XTension is crashing during a database save, meaning a corrupt script or something similar, then it will clearly show in the log written out exactly which script or unit script it was trying to get the compiled data of when it crashed.
> 
> If all else fails to reveal anything we should do a restart while holding the option key down and select the “log detailed startup information” (and then once you’ve done that you’ll want to quit and restart normally again as it leaves the verbose logging on which will very rapidly spam your log with tons of extra stuff) if there are errors loading any of the scripts it may show up there too.
> 
> You can email me off the list the output from either the verbose database save if you have another crash or the output from the detailed startup info and I’ll dig through it looking for something helpful.
> 
> 
>> On Feb 10, 2021, at 12:34 PM, rnaleonard <rnaleonard at rcn.com <mailto:rnaleonard at rcn.com>> wrote:
>> 
>> I am having difficulty with the Prowl helper script.  This is the updated one that uses the loadurl command and runs inside XTension.  I think I have it set up correctly as it does send Prowl notifications.  But after a short period XTension ends up crashing.  I don't see anything in the log that ties the crash to the Prowl helper.  But once I connected the problem to Prowl and reverted back to the old external script app, the crashes stopped.  Is there anything I can do to trace the problem or to fix it?  Anyone else using this script?
>> 
> 
> Thanks,
>  James
> 
> 
> James Sentman                       http://www.PlanetaryGear.org <http://www.planetarygear.org/>		http://MacHomeAutomation.com <http://machomeautomation.com/>
> 
> 
> 
> 
> _______________________________________________
> XTensionList mailing list
> XTensionList at machomeautomation.com
> http://mail.machomeautomation.com/mailman/listinfo/xtensionlist

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.machomeautomation.com/pipermail/xtensionlist/attachments/20210211/cda06721/attachment.html>


More information about the XTensionList mailing list