LinuxMCE Forums

General => Users => Topic started by: mkbrown69 on August 04, 2015, 04:06:35 am

Title: GSD issues - all devices died.
Post by: mkbrown69 on August 04, 2015, 04:06:35 am
Hi folks!

I have an issue with all my GSD devices are dying and re-spawning until they hit the 50 retries. Both (the Radio Thermostat and the ISY994i driver) die with the same result code.

Code: [Select]
1843:#### START SETTERS #############################################################
#######
1844:def initialize()
1845:super
1846:@returnParamArray=Array.new
1847:end
1848:####  END  SETTERS #############################################################
#######
1849:end
1851:Return code: 134
3       08/03/15 09:59:41       189 (spawning-device)   Device died... count=34
/50 dev=189

I'm running 12.04 with the latest updates.  I notice from the 12.04 Wiki page that the requirement for Ruby 1.9 was added recently. Both Ruby 1.8 and 1.9 are presently on the system.

I'm wondering if anyone else has experienced similar issues. My likely next steps are to look at either reverting the 1.9 installation back to 1.8, or removing all the 1.8 Ruby packages. 

Anyone know what result code 134 means?

Thanks!

/Mike

Update:  I reverted back to pluto-generic-serial-device_2.0.0.46.14081629241_i386.deb (as it was the only previous version I could find in my package caches), and removed Ruby 1.9, restarted DCERouter, and my GSD devices are back in business!

/Mike
Title: Re: GSD issues - all devices died.
Post by: pointman87 on August 04, 2015, 05:10:36 pm
Hey, i have the same issue, could you by any chance attach that pluto-generic-serial-device_2.0.0.46.14081629241_i386.deb to this thread? As i just reinstalled i don't have it available.

BR Daniel
Title: Re: GSD issues - all devices died.
Post by: _if_ on August 04, 2015, 08:34:47 pm
have problems with my devices as well. running a pretty useless system at the moment...
Title: Re: GSD issues - all devices died.
Post by: mkbrown69 on August 07, 2015, 05:34:25 am
The Forum software limits the attachment size, so I can't post the GSD package here.

Looking into other options.

HTH!

/Mike
Title: Re: GSD issues - all devices died.
Post by: pointman87 on August 09, 2015, 11:34:26 am
After a little googling it seems ruby1.9.1 is buggy, maybe it would be better to depend on ruby2.0?
Title: Re: GSD issues - all devices died.
Post by: phenigma on August 11, 2015, 04:32:54 pm
Ruby will not be reverted to 1.8 going forward.  1204 is using Ruby 1.9.1 and 1404 is using Ruby 2.0.

There have been many changes in the ruby language that are biting some people during the alpha transition.  These issues will need to be worked through.  The biggest issue is changes in ruby syntax from 1.8->1.9.1.

Again, the issue here is ruby syntax changes.  Device Templates will have to be updated and will not be backwards compatible unless people are very careful about the changes.

I have a RadioThermostat here.  I am having very few issues with it since updating the ruby code.  Please do an sqlcvs update to get the latest code for it.  It should be completely backwards compatible with ruby 1.8 as well.

J.
Title: Re: GSD issues - all devices died.
Post by: Marie.O on August 11, 2015, 04:42:07 pm
Remember that changes to the DT in sqlCVS will not overwrite code that has been locally modified.
Title: Re: GSD issues - all devices died.
Post by: mkbrown69 on August 12, 2015, 03:03:10 am
Ruby will not be reverted to 1.8 going forward.  1204 is using Ruby 1.9.1 and 1404 is using Ruby 2.0.

There have been many changes in the ruby language that are biting some people during the alpha transition.  These issues will need to be worked through.  The biggest issue is changes in ruby syntax from 1.8->1.9.1.

Again, the issue here is ruby syntax changes.  Device Templates will have to be updated and will not be backwards compatible unless people are very careful about the changes.

I have a RadioThermostat here.  I am having very few issues with it since updating the ruby code.  Please do an sqlcvs update to get the latest code for it.  It should be completely backwards compatible with ruby 1.8 as well.

J.

Phenigma,

A few questions if you don't mind...

Which Radio Thermostat template are you using; The 3M50 or the CT-30/CT-80 one?  Which model thermostat do you have?  I'm running a CT-80 myself...

It also sounds like you've seen some common changes that have to be done to the templates. Could you point out what you've seen, so I have an idea as to where to start if I have to debug the ISY template?

Thanks to you and posde for your guidance on this!

/Mike

Title: Re: GSD issues - all devices died.
Post by: phenigma on August 12, 2015, 03:16:44 am
First an overall response as I've seen things:

From what I can tell we have somewhere under 40 templates (total) that may be affected by the GSD updates.  Some of these templates are no longer used.  The vast majority of GSD templates are simple 'send only' templates that use the <$ > tags and will not require any updates/upgrades to function properly.   If your template parses return data from the device then you will likely need to make updates to the template (if someone else has not already done so).

A few questions if you don't mind...

I am happy to help!  :D

Which Radio Thermostat template are you using; The 3M50 or the CT-30/CT-80 one?  Which model thermostat do you have?  I'm running a CT-80 myself...

I use the CT30/CT80 template (DT2243).  I have a CT-80.  Mine is a rebranded version (in stickers/outer housing only) but an exact replica otherwise.  In Canada they are sold under the brand "Current Inovations".

It also sounds like you've seen some common changes that have to be done to the templates. Could you point out what you've seen, so I have an idea as to where to start if I have to debug the ISY template?

Mostly what I've seen is differences in handling nested commands lots of w.x.y.z() type stuff.  I find seperating those nested fn calls to seperate lines (even if you need extra variables) tends to solve some of the issues I've encountered.  Otherwise there have been some re-naming of library calls in ruby.

If you were to run 'screen -r CT30CT8097' you would see the screen session of the GSD device and the commands that are exectured on-the-fly as they are passed to the ruby interpreter.  This is how I've been monitoring things.  I think I've pushed all my changes there.

Any other errors that you have you can post here, or in IRC chat, and we'll try to help sort out your issues.

:)

Thanks for your feedback!

Jason.
Title: Re: GSD issues - all devices died.
Post by: mkbrown69 on August 12, 2015, 05:29:16 am
Jason,

Thanks for the quick response!  I'm a Canuck as well, in Ottawa, so we have the same Tstat. You're in Kingston, right?

Nice to see you're using DT2243; I did some work on that one a ways back. Still have some ideas for it; they'll have to wait.  I'll re-sync up my local code with what's in SQLCVS and see what's changed, and go from there.

The ISY template has some major changes coming, so I may have to revert my local code to match SQLCVS, and then slowly roll forward with the new code. I have a Z-wave module coming soon for my ISY, so I hope to add support for that in the next batch of updates.

Is most of the development effort towards putting out a 12.04 release, or going past it to 14.04 instead?  Just wondering where to expend my effort...

Thanks for the assistance!

/Mike
Title: Re: GSD issues - all devices died.
Post by: pointman87 on August 13, 2015, 01:53:18 am
@Phenigma any hint on how to update the denon avr template to work with 1.9.1? Some commands are like <$"PWSTANDBY\r"$> and some are like OnDemand("PW","ON")
Title: Re: GSD issues - all devices died.
Post by: Marie.O on August 13, 2015, 02:13:26 am
Probably the OnDemand function needs to be rectified. It checks for the current status before sending a change. So it probably has a read in there which can cause problems, iirc.
Title: Re: GSD issues - all devices died.
Post by: phenigma on August 14, 2015, 12:30:18 am
mhm.  I'll have to turn off my CEC Adaptor and turn on the GSD control of my Panny  TV and the Denon AVR.  Posde's SWMBO would be devastated if the Denon stopped working. ;)

Personally I hate that OnDemand fn, seems to obfuscate what is being done for no good reason.  Anyways.  Go into the screen session for the device and see if you can identify a specific error from the Ruby interpreter (this is how I've been checking/updating stuff here).

Since I have a denon avr I'll switch over and see what I can find out as well.  :)

J.
Title: Re: GSD issues - all devices died.
Post by: Marie.O on August 14, 2015, 12:51:30 am
OnDemand has one very big reason: It limits the amount of switching happening on the Denon. Each time you send a change input, the HDMI output causes the display to re-calibrate. And there is no need to change what's already there.

That was the reason I implemented OnDemand.
Title: Re: GSD issues - all devices died.
Post by: phenigma on August 14, 2015, 06:37:40 am
Ok.  Makes good sense to me.  Just never quite got the point nor have I userstood the german logging.

J.
Title: Re: GSD issues - all devices died.
Post by: Marie.O on August 14, 2015, 12:58:05 pm
You should brush up on your language skills :D
Title: Re: GSD issues - all devices died.
Post by: phenigma on August 16, 2015, 09:39:37 pm
;)
Title: Re: GSD issues - all devices died.
Post by: mkbrown69 on August 21, 2015, 04:32:54 am
Jason,

Thanks for the tip on using screen. Here's the output from each time the device dies.

Code: [Select]
LOG: ========== NEW LOG SECTION ==========
1       08/20/15 22:23:57       189 (spawning-device)   Starting... 40
1       08/20/15 22:23:57       189 (spawning-device)   Starting... 40
1       08/20/15 22:23:57       189 (spawning-device)   Found /usr/pluto/bin/Generic_Serial_Device
1       08/20/15 22:23:57       189 (spawning-device)   Found /usr/pluto/bin/Generic_Serial_Device
Generic_Serial_Device, v.2.0.0.46.15060430777
Visit www.plutohome.com for source code and license information

embed: [BUG] Segmentation fault
ruby 1.9.3p0 (2011-10-30 revision 33570) [i686-linux]

-- Control frame information -----------------------------------------------
c:0001 p:0000 s:0002 b:0002 l:ffffdfc4 d:ffffdfc4 TOP


-- C level backtrace information -------------------------------------------
/usr/lib/libruby-1.9.1.so.1.9(+0x15e4dd) [0x26e4dd]
/usr/lib/libruby-1.9.1.so.1.9(+0x4e111) [0x15e111] vfscanf.c:1784
/usr/lib/libruby-1.9.1.so.1.9(rb_bug+0x44) [0x15e8f4] vfscanf.c:1013
/usr/lib/libruby-1.9.1.so.1.9(+0xf7b5c) [0x207b5c] argp.h:586
[0xa20410]
/usr/lib/libruby-1.9.1.so.1.9(+0x63b24) [0x173b24] fxprintf.c:47
/usr/lib/libruby-1.9.1.so.1.9(+0x63c37) [0x173c37] printf-parsemb.c:152
/usr/lib/libruby-1.9.1.so.1.9(+0x656bf) [0x1756bf] libioP.h:985
/usr/lib/libruby-1.9.1.so.1.9(rb_newobj+0x23c) [0x17624c] iopopen.c:346
/usr/lib/libruby-1.9.1.so.1.9(+0x102d65) [0x212d65] ../sysdeps/unix/sysv/linux/readonly-area.c:88
/usr/lib/libruby-1.9.1.so.1.9(rb_enc_str_new+0x2a) [0x214faa] wcpcpy_chk.c:38
/usr/lib/libruby-1.9.1.so.1.9(+0xa252e) [0x1b252e] ../stdlib/strtod_l.c:1615
/usr/lib/libruby-1.9.1.so.1.9(+0xab6e7) [0x1bb6e7] getdate.c:270
/usr/lib/libruby-1.9.1.so.1.9(+0xb8dd5) [0x1c8dd5] ../sysdeps/unix/sysv/linux/i386/setgid.c:36
/usr/lib/libruby-1.9.1.so.1.9(+0x160601) [0x270601]
/usr/lib/libruby-1.9.1.so.1.9(+0xa24e1) [0x1b24e1] ../stdlib/strtod_l.c:1601
/usr/lib/libruby-1.9.1.so.1.9(rb_iseq_compile_with_option+0x64) [0x255cc4] ../sysdeps/i386/i686/multiarch/strcmp-ssse3.S:1853
/usr/lib/libruby-1.9.1.so.1.9(rb_iseq_compile+0x3b) [0x255eeb] ../sysdeps/i386/i686/multiarch/strcmp-ssse3.S:1950
/usr/lib/libruby-1.9.1.so.1.9(+0x15358a) [0x26358a]
/usr/lib/libruby-1.9.1.so.1.9(rb_eval_string+0x4f) [0x263bff]
/usr/pluto/bin/Generic_Serial_Device(_ZN7EMBRUBY11RubyEmbeder9_loadcodeEm+0x23) [0x8077e1d] RubyEmbeder.cpp:109
/usr/lib/libruby-1.9.1.so.1.9(rb_protect+0xce) [0x16299e] vfscanf.c:2318
/usr/pluto/bin/Generic_Serial_Device() [0x8077b54] RubyEmbeder.cpp:79
/usr/pluto/bin/Generic_Serial_Device() [0x808d448] RubyIOManager.cpp:463
/usr/pluto/bin/Generic_Serial_Device(_ZN3DCE8IOThread11_threadprocEPv+0x2a) [0x80775fe] IOThread.cpp:79
/lib/i386-linux-gnu/libpthread.so.0(+0x6d4c) [0x597d4c] pthread_create.c:308
/lib/i386-linux-gnu/libc.so.6(clone+0x5e) [0xe46b8e] ../sysdeps/unix/sysv/linux/i386/clone.S:130

-- Other runtime information -----------------------------------------------

* Loaded script: embed

* Loaded features:

    0 enumerator.so

* Process memory map:

00110000-0030e000 r-xp 00000000 fd:01 131209     /usr/lib/libruby-1.9.1.so.1.9.1
0030e000-00311000 r--p 001fd000 fd:01 131209     /usr/lib/libruby-1.9.1.so.1.9.1
00311000-00313000 rw-p 00200000 fd:01 131209     /usr/lib/libruby-1.9.1.so.1.9.1
00313000-00323000 rw-p 00000000 00:00 0
00323000-00341000 r-xp 00000000 fd:01 654464     /usr/pluto/lib/libSerializeClass.so
00341000-00342000 r--p 0001d000 fd:01 654464     /usr/pluto/lib/libSerializeClass.so
00342000-00343000 rw-p 0001e000 fd:01 654464     /usr/pluto/lib/libSerializeClass.so
00343000-00357000 r-xp 00000000 fd:01 1442801    /lib/i386-linux-gnu/libz.so.1.2.3.4
00357000-00358000 r--p 00013000 fd:01 1442801    /lib/i386-linux-gnu/libz.so.1.2.3.4
00358000-00359000 rw-p 00014000 fd:01 1442801    /lib/i386-linux-gnu/libz.so.1.2.3.4
00359000-00383000 r-xp 00000000 fd:01 1455536    /lib/i386-linux-gnu/libm-2.15.so
00383000-00384000 r--p 00029000 fd:01 1455536    /lib/i386-linux-gnu/libm-2.15.so
00384000-00385000 rw-p 0002a000 fd:01 1455536    /lib/i386-linux-gnu/libm-2.15.so
00385000-0038d000 r-xp 00000000 fd:01 1455548    /lib/i386-linux-gnu/libcrypt-2.15.so
0038d000-0038e000 r--p 00007000 fd:01 1455548    /lib/i386-linux-gnu/libcrypt-2.15.so
0038e000-0038f000 rw-p 00008000 fd:01 1455548    /lib/i386-linux-gnu/libcrypt-2.15.so
0038f000-003b6000 rw-p 00000000 00:00 0
003d5000-003dc000 r-xp 00000000 fd:01 654359     /usr/pluto/lib/libSerial.so
003dc000-003dd000 r--p 00006000 fd:01 654359     /usr/pluto/lib/libSerial.so
003dd000-003de000 rw-p 00007000 fd:01 654359     /usr/pluto/lib/libSerial.so
003de000-004bf000 r-xp 00000000 fd:01 655506     /usr/pluto/lib/libDCECommon.so
004bf000-004c0000 r--p 000e0000 fd:01 655506     /usr/pluto/lib/libDCECommon.so
004c0000-004c3000 rw-p 000e1000 fd:01 655506     /usr/pluto/lib/libDCECommon.so
004c3000-004d4000 rw-p 00000000 00:00 0
0056c000-0058c000 r-xp 00000000 fd:01 1455488    /lib/i386-linux-gnu/ld-2.15.so
0058c000-0058d000 r--p 0001f000 fd:01 1455488    /lib/i386-linux-gnu/ld-2.15.so
0058d000-0058e000 rw-p 00020000 fd:01 1455488    /lib/i386-linux-gnu/ld-2.15.so
00591000-005a8000 r-xp 00000000 fd:01 1447355    /lib/i386-linux-gnu/libpthread-2.15.so
005a8000-005a9000 r--p 00016000 fd:01 1447355    /lib/i386-linux-gnu/libpthread-2.15.so
005a9000-005aa000 rw-p 00017000 fd:01 1447355    /lib/i386-linux-gnu/libpthread-2.15.so
005aa000-005ac000 rw-p 00000000 00:00 0
005e9000-0064a000 r-xp 00000000 fd:01 654266     /usr/pluto/lib/libPlutoUtils.so
0064a000-0064b000 r--p 00061000 fd:01 654266     /usr/pluto/lib/libPlutoUtils.so
0064b000-0064d000 rw-p 00062000 fd:01 654266     /usr/pluto/lib/libPlutoUtils.so
00692000-0076a000 r-xp 00000000 fd:01 131619     /usr/lib/i386-linux-gnu/libstdc++.so.6.0.16
0076a000-0076b000 ---p 000d8000 fd:01 131619     /usr/lib/i386-linux-gnu/libstdc++.so.6.0.16
0076b000-0076f000 r--p 000d8000 fd:01 131619     /usr/lib/i386-linux-gnu/libstdc++.so.6.0.16
0076f000-00770000 rw-p 000dc000 fd:01 131619     /usr/lib/i386-linux-gnu/libstdc++.so.6.0.16
00770000-00777000 rw-p 00000000 00:00 0
00782000-0078d000 r-xp 00000000 fd:01 1454921    /lib/i386-linux-gnu/libnss_files-2.15.so
0078d000-0078e000 r--p 0000a000 fd:01 1454921    /lib/i386-linux-gnu/libnss_files-2.15.so
0078e000-0078f000 rw-p 0000b000 fd:01 1454921    /lib/i386-linux-gnu/libnss_files-2.15.so
007c4000-007e0000 r-xp 00000000 fd:01 1439086    /lib/i386-linux-gnu/libgcc_s.so.1
007e0000-007e1000 r--p 0001b000 fd:01 1439086    /lib/i386-linux-gnu/libgcc_s.so.1
007e1000-007e2000 rw-p 0001c000 fd:01 1439086    /lib/i386-linux-gnu/libgcc_s.so.1
00887000-008c1000 r-xp 00000000 fd:01 654944     /usr/pluto/lib/libMessageTranslation.so
008c1000-008c2000 r--p 0003a000 fd:01 654944     /usr/pluto/lib/libMessageTranslation.so
008c2000-008c3000 rw-p 0003b000 fd:01 654944     /usr/pluto/lib/libMessageTranslation.so
008c3000-008c4000 rw-p 00000000 00:00 0
0093a000-0093d000 r-xp 00000000 fd:01 1455565    /lib/i386-linux-gnu/libdl-2.15.so
0093d000-0093e000 r--p 00002000 fd:01 1455565    /lib/i386-linux-gnu/libdl-2.15.so
0093e000-0093f000 rw-p 00003000 fd:01 1455565    /lib/i386-linux-gnu/libdl-2.15.so
00a20000-00a21000 r-xp 00000000 00:00 0          [vdso]
00a40000-00cdc000 r-xp 00000000 fd:01 135635     /usr/lib/i386-linux-gnu/libmysqlclient.so.18.0.0
00cdc000-00cdf000 r--p 0029c000 fd:01 135635     /usr/lib/i386-linux-gnu/libmysqlclient.so.18.0.0
00cdf000-00d55000 rw-p 0029f000 fd:01 135635     /usr/lib/i386-linux-gnu/libmysqlclient.so.18.0.0
00d55000-00d58000 rw-p 00000000 00:00 0
00d58000-00efb000 r-xp 00000000 fd:01 1455578    /lib/i386-linux-gnu/libc-2.15.so
00efb000-00efd000 r--p 001a3000 fd:01 1455578    /lib/i386-linux-gnu/libc-2.15.so
00efd000-00efe000 rw-p 001a5000 fd:01 1455578    /lib/i386-linux-gnu/libc-2.15.so
00efe000-00f01000 rw-p 00000000 00:00 0
00f2c000-00f33000 r-xp 00000000 fd:01 1455485    /lib/i386-linux-gnu/librt-2.15.so
00f33000-00f34000 r--p 00006000 fd:01 1455485    /lib/i386-linux-gnu/librt-2.15.so
00f34000-00f35000 rw-p 00007000 fd:01 1455485    /lib/i386-linux-gnu/librt-2.15.so
08048000-080b3000 r-xp 00000000 fd:01 552583     /usr/pluto/bin/Generic_Serial_Device
080b3000-080b4000 r--p 0006b000 fd:01 552583     /usr/pluto/bin/Generic_Serial_Device
080b4000-080b5000 rw-p 0006c000 fd:01 552583     /usr/pluto/bin/Generic_Serial_Device
09364000-09478000 rw-p 00000000 00:00 0          [heap]
b4800000-b4828000 rw-p 00000000 00:00 0
b4828000-b4900000 ---p 00000000 00:00 0
b4a00000-b4afa000 rw-p 00000000 00:00 0
b4afa000-b4b00000 ---p 00000000 00:00 0
b4bff000-b4c00000 ---p 00000000 00:00 0
b4c00000-b5400000 rw-p 00000000 00:00 0
b5400000-b545e000 rw-p 00000000 00:00 0
b545e000-b5500000 ---p 00000000 00:00 0
b5538000-b55dc000 rw-p 00000000 00:00 0
b55ff000-b5600000 ---p 00000000 00:00 0
b5600000-b5e00000 rw-p 00000000 00:00 0
b5e00000-b5e21000 rw-p 00000000 00:00 0
b5e21000-b5f00000 ---p 00000000 00:00 0
b5f1f000-b5f20000 ---p 00000000 00:00 0
b5f20000-b6720000 rw-p 00000000 00:00 0
b6720000-b6721000 ---p 00000000 00:00 0
b6721000-b6f21000 rw-p 00000000 00:00 0
b6f21000-b6f22000 ---p 00000000 00:00 0
b6f22000-b7728000 rw-p 00000000 00:00 0
b773d000-b773e000 rw-p 00000000 00:00 0
b773e000-b773f000 ---p 00000000 00:00 0
b773f000-b7746000 rw-p 00000000 00:00 0
bfe5b000-bfe7c000 rw-p 00000000 00:00 0          [stack]


[NOTE]
You may have encountered a bug in the Ruby interpreter or extension libraries.
Bug reports are welcome.
For details: http://www.ruby-lang.org/bugreport.html

/usr/pluto/bin/Spawn_Device.sh: line 170: 17427 Aborted                 (core dumped) /usr/pluto/bin/Spawn_Wrapper.sh "$Path$cmd_line" -d "$device_id" -r "$ip_of_router" -l "$LogFile"
LOG: Return code: 134
3       08/20/15 22:23:57       189 (spawning-device)   Device died... count=40/50 dev=189
3       08/20/15 22:23:57       189 (spawning-device)   Device died... count=40/50 dev=189
LOG: Thu Aug 20 22:23:58 EDT 2015 died
^C
[screen is terminating]


It's 12.04 updated to the latest GSD package and Ruby 1.9.1. The GSD device is segfaulting. Someone more knowledgeable about the GSD device and C have any ideas?

Thanks!

/Mike
Title: Re: GSD issues - all devices died.
Post by: mkbrown69 on August 28, 2015, 05:05:41 am
Jason,

Just to report back, your change in update 31133 did not resolve the problem. The devices still segfault the 50 times, then the screen session for the device is terminated.

Thanks for trying!

/Mike
Title: Re: GSD issues - all devices died.
Post by: phenigma on August 28, 2015, 05:43:37 am
:( shitty.  Ok.  It was targeting a specific issue that tschak was having... And I thought it may relate.  That aside.  We think we've reduced it to #350 Process Incoming Data.  If there is any code in that section could you comment it out (#) and reload.  We *think* that's where our issues are coming from and may help us find a solution.

In most cases this fn is doing nothing at all.

Thanks for the feedback and the help narrowing things down!  We really appreciate the testing!  Let me know if there's anything else I can answer or help with.  We are trying to determine the ultimate cause, but it is proving quite elusive ;)

J.
Title: Re: GSD issues - all devices died.
Post by: mkbrown69 on August 29, 2015, 05:22:32 am
Jason,

I commented out the stuff in my ISY driver's #350, and rebooted (a reload wasn't sufficient to restart the device.

It no longer segfaults. It loads all the GSD code, and then dies at the end, and tries to re-spawn.

Code: [Select]
1843:#### START SETTERS #############################################################
#######
1844:def initialize()
1845:super
1846:@returnParamArray=Array.new
1847:end
1848:####  END  SETTERS #############################################################
#######
1849:end
1851:Return code: 134
3       08/28/15 23:07:59       189 (spawning-device)   Device died... count=2/
50 dev=189
Fri Aug 28 23:07:59 EDT 2015 died
== ATTEMPT FRESH START ==
1       08/28/15 23:08:08       /usr/pluto/bin/Spawn_Device.sh 189 (spawning-device)15473 Dev: 189; Already Running list: 15,18,113,36,16,19,31,183,38,32,189,

1       08/28/15 23:08:08       /usr/pluto/bin/Spawn_Device.sh 189 (spawning-device)15473 Device 189 was marked as 'running'. Not starting
1       08/28/15 23:08:08       /usr/pluto/bin/Spawn_Device.sh 189 (spawning-device)15473 Dev: 189; Exiting because not starting


So, #350 does look to be the cause of the segfaults, but is not the only problem. My driver does use 350 for it's subscription feed from the ISY.

The CT30/CT80 only has a Conn_close() in #350, which probably isn't a issue to leave out. However, it also dies and res-spawns.
Code: [Select]
955:#### START SETTERS #############################################################
#######
 956:def initialize()
 957:super
 958:@returnParamArray=Array.new
 959:end
 960:####  END  SETTERS #############################################################
#######
 961:end
963:Return code: 134
3       08/28/15 23:07:47       183 (spawning-device)   Device died... count=1/
50 dev=183
Fri Aug 28 23:07:47 EDT 2015 died
========== NEW LOG SECTION ==========
1       08/28/15 23:07:57       183 (spawning-device)   Starting... 2
1       08/28/15 23:07:57       183 (spawning-device)   Found /usr/pluto/bin/Ge
neric_Serial_Device
RCODE:


Looks like you and Thom are closing in on it!

HTH!

/Mike
Title: Re: GSD issues - all devices died.
Post by: phenigma on September 01, 2015, 04:43:50 pm
:(  Not sure why those devices are dying.  I have dropped the #350 on my thermostat and I'm not having any issues there atm, I am using Ruby 2.0 on 1404 though.  It would be nice to figure out why your devices are dying rather than staying alive. 

I think we are getting close on the #350 thing, but we don't have a full solution at this point.  It appears to me that Ruby2.0 is a little more stable than 1.9.1.  I'll see what it would take to backport it.

J.
Title: Re: GSD issues - all devices died.
Post by: mkbrown69 on September 02, 2015, 03:01:04 am
Hey Jason!

I'm not against rolling forward to 14.04. I'm trying to implement a SAMBA 4 AD Set-up at home (using 2 virtuals of Zentyal as PDC and BDC/NAS), and was planning on looking at seeing if I could integrate LMCE's SAMBA into at as a DC as well.

I can stay on 12.04 for a while if you want, to help troubleshoot. Just curious if more dev effort is moving towards 14.04, or if 12.04 is still the focus?

Thanks!

/Mike
Title: Re: GSD issues - all devices died.
Post by: phenigma on September 03, 2015, 06:54:45 pm
1204 is where all dev activity is concentrated.  1404 is currently running on a couple of the dev's systems, including my home production system.

I have had my thermostat end up disabled now as well, not sure how/where/why it happened yet but I will be investigating.

J.
Title: Re: GSD issues - all devices died.
Post by: pointman87 on October 09, 2015, 09:35:53 pm
Hello, is there any news on this? The Denon rs232 still doesn't work. Any pointers?

BR Daniel
Title: Re: GSD issues - all devices died.
Post by: phenigma on October 09, 2015, 09:39:47 pm
There have been no updates to GSD.  Patches and Ruby code updates are welcome.  :)

J.
Title: Re: GSD issues - all devices died.
Post by: Marie.O on October 09, 2015, 09:41:24 pm
What device template do you use for your Denon?
Title: Re: GSD issues - all devices died.
Post by: phenigma on October 09, 2015, 09:44:28 pm
I was just going to ask that.   :P

J.
Title: Re: GSD issues - all devices died.
Post by: pointman87 on October 09, 2015, 09:59:16 pm
ohh sorry DT:71 for rs232
Title: Re: GSD issues - all devices died.
Post by: phenigma on October 10, 2015, 05:21:51 pm
Can you pastebin the logs from your GSD device?  You should find them in /var/log/pluto/XX_Generic_Serial_Device.log, where XX is the device #.

J.
Title: Re: GSD issues - all devices died.
Post by: pointman87 on October 10, 2015, 05:31:42 pm
Here is a paste from screen http://pastebin.com/9e4pz84d
Here is a paste from log      http://pastebin.com/x7n30TQX
I have to reboot my system to get the device going again as it crashes 50 times, hence not starting again. Quick volume changes crashes it, change of input, pretty mush everything makes it crash, as long as it idle it doesn't crash
Title: Re: GSD issues - all devices died.
Post by: Marie.O on October 10, 2015, 06:16:37 pm
It starts again. The 50 counter is only in the Spawn_xxx script, so if you manually to a Start_LocalDevices.sh it should restart your device
Title: Re: GSD issues - all devices died.
Post by: phenigma on October 10, 2015, 07:38:00 pm
You can remove your device's number from /usr/pluto/locks/pluto_spawned_local_devices.txt and reload router to get it to return as well.  Make sure it is not 'disabled' in webadmin.

The pastebin's show more info than we've seen yet.  The segault is new.  I'm afraid this may not be easy to track down.  I'm going to try running some GSD stuff in a debugger to see if anything other info pops out.  Not sure when I'll get to that yet.

J.