[solved] RocNetNode crash

http://wiki.rocrail.net/doku.php?id=roc ... netnode-en

Re: RocNetNode doesn't start!

Postby soni07 » 27.04.2018, 11:02

ups60 wrote:Hi Sonny,

have you activated the SPI and I2C-Interfaces in "sudo raspi-config"?

greets Uwe


Hi!
Tried with all enabled and disabled without any noticeable difference. Rob has found the error.
Thanks.

//Sonny
soni07
 

Re: RocNetNode doesn't start!

Postby soni07 » 27.04.2018, 11:10

rjversluis wrote:Hi Sonny,

I found the crash issue.
This happens in case no rocnetnode.ini is available.
I corrected this; Try the next nightly build and report the result.


Will do so, will come back with the result.
//Sonny
soni07
 

Re: RocNetNode crashes

Postby Schorse » 27.04.2018, 16:08

Hi Rob,

in my case it works now with rev. 13900. :D
Viele Grüße Gerd
Schorse
 

Re: RocNetNode doesn't start!

Postby soni07 » 28.04.2018, 17:24

soni07 wrote:
rjversluis wrote:Hi Sonny,

I found the crash issue.
This happens in case no rocnetnode.ini is available.
I corrected this; Try the next nightly build and report the result.


Will do so, will come back with the result.
//Sonny


Sorry, downloaded 13900 last night and 13903 today. Got an error when I manually started rocnetnode. Stopped the process and restarted with an error message in response. Examine and see that the / dev / i2c-1 file is missing instead there is a link that points to / proc / kcore. The file is stated to be 140.7 TB.

Output from my first start with 13903:

Resets memory statistics.
disable stdout buffering.
make copy of arguments.
Initialize the signal handler.
--
/ / (_)__ __ ____ __
/ /__/ / _ \/ // /\ \/ /
/____/_/_//_/\_,_/ /_/\_\
Initialize the Node...
Initialize the AccNode......
20180428.171037.673 .9999I main ORocNetN 4264 using default setup
20180428.171037.673 r9999I main ORocNetN 4280 ----------------------------------------
20180428.171037.673 r9999I main ORocNetN 4281 revision [13903]
20180428.171037.673 r9999I main ORocNetN 4282 ID [65535]
20180428.171037.673 r9999I main ORocNetN 4283 multicast address [224.0.0.1]
20180428.171037.674 r9999I main ORocNetN 4284 multicast port [4321]
20180428.171037.674 r9999I main ORocNetN 4285 HW type [0] BCM2708BASE=0x20000000
20180428.171037.674 r9999I main ORocNetN 4286 I/O type [0]
20180428.171037.674 r9999I main ORocNetN 4287 sensor ack [OFF]
20180428.171037.674 r9999I main ORocNetN 4288 RFID [OFF]
20180428.171037.674 r9999I main ORocNetN 4289 ADC Sensors [OFF]
20180428.171037.674 r9999I main ORocNetN 4290 motor PWM [OFF]
20180428.171037.675 r9999I main ORocNetN 4291 ----------------------------------------
20180428.171037.675 r9999I main OSocket 0521 allow all processes to use this port...
20180428.171038.175 r9999I main raspi 0137 setup RasPi I/O, GPIO base=0x20200000
20180428.171038.175 r9999I main ORocNetN 3817 init I2C [/dev/i2c-1]
20180428.171038.276 r9999I main ORocNetN 3730 init I2C PWM [/dev/i2c-1]
20180428.171038.326 r9999I main ORocNetN 3940 init LED1 on port 23
20180428.171038.376 r9999I main ORocNetN 3944 init LED2 on port 24
20180428.171038.477 r9999I rnscanne ORocNetN 3173 RocNet scanner started
20180428.171038.477 r9999I rnled ORocNetN 2361 RocNet LED started
20180428.171038.478 r9999I rfidack ORocNetN 2294 RocNet rfidAckWD started
20180428.171038.478 r9999I rnsignal ORocNetN 1561 signalProcessor started
20180428.171038.478 r9999I rnpwm ORocNetN 2441 RocNet pwm started
20180428.171038.478 r9999I textupda ORocNetN 1654 textUpdater started
20180428.171038.478 r9999I rnmacro ORocNetN 1538 macroProcessor started
20180428.171038.479 r9999I rnreader OSocket 1022 address 0 = 127.0.1.1
20180428.171038.479 r9999I rnreader ORocNetN 3486 RocNet reader started on: 0.0.4.167
20180428.171039.478 r9999I rnled ORocNetN 3701 check I2C base[0x00] offset[0x06]
20180428.171039.478 r9999I rnled ORocNetN 3701 check I2C base[0x00] offset[0x06]
20180428.171039.478 r9999I rnled ORocNetN 3701 check I2C base[0x00] offset[0x06]
20180428.171039.478 r9999I rnled ORocNetN 3701 check I2C base[0x00] offset[0x06]
20180428.171039.479 r9999I rnled ORocNetN 3701 check I2C base[0x00] offset[0x06]
20180428.171039.479 r9999I rnled ORocNetN 2365 checking the LEDs
20180428.171039.479 r9999I clockupd ORocNetN 3701 check I2C base[0x70] offset[0x00]
20180428.171039.479 r9999I clockupd ORocNetN 0215 clockUpdater started for 0 clock displays
20180428.171039.479 r9999I rocmouse ORocNetN 2878 RocMouse scanner started
20180428.171039.485 r9999I rnscanne ORocNetN 1961 write event [000000FFFF0328070146364F8004A7] to 0
20180428.171039.687 r9999I rnreader ORocNetN 2038 evaluate request [00FFFF0001050605000B04A700] from 1 to 65535
20180428.171039.687 r9999I rnreader ORocNetN 0903 new ID 11 Location 0 for me
20180428.171039.688 r9999W rnreader ORocNetN 0851 [temp.ini] is OK
20180428.171039.892 r9999W rnreader ORocNetN 0851 [temp.ini] is OK
__signalHandler: 2 Interrupt.
__signalHandler: shutdown...
20180428.171505.525 r9999W main ORocNetN 0851 [temp.ini] is OK
__signalHandler: exit...

Output from my restart with 13903:

Resets memory statistics.
disable stdout buffering.
make copy of arguments.
Initialize the signal handler.
--
/ / (_)__ __ ____ __
/ /__/ / _ \/ // /\ \/ /
/____/_/_//_/\_,_/ /_/\_\
Initialize the Node...
Initialize the AccNode......
20180428.172448.186 .9999I main ORocNetN 4195 using ini setup
20180428.172448.187 r9999I main ORocNetN 4280 ----------------------------------------
20180428.172448.187 r9999I main ORocNetN 4281 revision [13903]
20180428.172448.187 r9999I main ORocNetN 4282 ID [11]
20180428.172448.187 r9999I main ORocNetN 4283 multicast address [224.0.0.1]
20180428.172448.187 r9999I main ORocNetN 4284 multicast port [4321]
20180428.172448.188 r9999I main ORocNetN 4285 HW type [0] BCM2708BASE=0x20000000
20180428.172448.188 r9999I main ORocNetN 4286 I/O type [0]
20180428.172448.188 r9999I main ORocNetN 4287 sensor ack [OFF]
20180428.172448.188 r9999I main ORocNetN 4288 RFID [OFF]
20180428.172448.188 r9999I main ORocNetN 4289 ADC Sensors [OFF]
20180428.172448.188 r9999I main ORocNetN 4290 motor PWM [OFF]
20180428.172448.188 r9999I main ORocNetN 4291 ----------------------------------------
20180428.172448.189 r9999I main OSocket 0521 allow all processes to use this port...
20180428.172448.689 r9999I main raspi 0137 setup RasPi I/O, GPIO base=0x20200000
20180428.172448.689 r9999I main ORocNetN 3817 init I2C [/dev/i2c-1]
20180428.172448.790 r9999I main ORocNetN 3730 init I2C PWM [/dev/i2c-1]
20180428.172448.840 r9999I main ORocNetN 3940 init LED1 on port 23
20180428.172448.890 r9999I main ORocNetN 3944 init LED2 on port 24
20180428.172448.991 r9999I rnscanne ORocNetN 3173 RocNet scanner started
20180428.172448.991 r9999I rnpwm ORocNetN 2441 RocNet pwm started
20180428.172448.992 r9999I rnsignal ORocNetN 1561 signalProcessor started
20180428.172448.992 r9999I rnled ORocNetN 2361 RocNet LED started
20180428.172448.993 r9999I rnreader OSocket 1022 address 0 = 127.0.1.1
20180428.172448.992 r9999I rfidack ORocNetN 2294 RocNet rfidAckWD started
20180428.172448.993 r9999I textupda ORocNetN 1654 textUpdater started
20180428.172448.992 r9999I rnmacro ORocNetN 1538 macroProcessor started
20180428.172448.993 r9999I rnreader ORocNetN 3486 RocNet reader started on: 0.0.7.21
20180428.172449.993 r9999I clockupd ORocNetN 3701 check I2C base[0x70] offset[0x00]
20180428.172449.993 r9999I rocmouse ORocNetN 2878 RocMouse scanner started
20180428.172450.003 r9999I clockupd ORocNetN 0215 clockUpdater started for 0 clock displays
20180428.172450.003 r9999I rnled ORocNetN 3701 check I2C base[0x00] offset[0x06]
20180428.172450.009 r9999I rnled ORocNetN 3701 check I2C base[0x00] offset[0x06]
20180428.172450.015 r9999I rnled ORocNetN 3701 check I2C base[0x00] offset[0x06]
20180428.172450.021 r9999I rnled ORocNetN 3701 check I2C base[0x00] offset[0x06]
20180428.172450.028 r9999I rnled ORocNetN 3701 check I2C base[0x00] offset[0x06]
20180428.172450.034 r9999I rnled ORocNetN 2365 checking the LEDs
20180428.172450.034 r9999I rnscanne ORocNetN 1961 write event [000000000B0328070146364F800715] to 0
20180428.172450.228 r9999I rnreader ORocNetN 2038 evaluate request [00000B0001030A0108] from 1 to 11
20180428.172450.228 r9999I rnreader ORocNetN 1716 queryids acknowleged from 1 to 11
20180428.172450.229 r9999I rnscanne ORocNetN 3188 scanner SoD
20180428.172450.229 r9999I rnscanne ORocNetN 3271 SoD for port 0
20180428.172450.229 r9999I rnscanne ORocNetN 3286 SoD for port 0: val=0 report=1
20180428.172508.562 r9999I rnreader ORocNetN 2038 evaluate request [00000000010702090000041C11191401FF] from 1 to 0
20180428.172508.563 r9999I rnreader ORocNetN 0387 Clock request 2 from 1 to 0
20180428.172508.563 r9999I rnreader ORocNetN 0408 Clock sync to 17:25 divider=1 temp=20 bri=255
20180428.172608.581 r9999I rnreader ORocNetN 2038 evaluate request [00000000010702090000041C111A1401FF] from 1 to 0
20180428.172608.582 r9999I rnreader ORocNetN 0387 Clock request 2 from 1 to 0
20180428.172608.582 r9999I rnreader ORocNetN 0408 Clock sync to 17:26 divider=1 temp=20 bri=255
__signalHandler: 2 Interrupt.
__signalHandler: shutdown...
20180428.172615.680 r9999I main ORocNetN 4354 Shutdown the RocNetNode
20180428.172615.681 r9999I main ORocNetN 1961 write event [000000000B032900] to 0
20180428.172615.683 r9999I rnpwm ORocNetN 2565 RocNet pwm stopped
20180428.172615.685 r9999I rnled ORocNetN 2431 RocNet LED stopped
20180428.172615.686 r9999I rocmouse ORocNetN 3156 RocMouse scanner stopped
20180428.172615.687 r9999I rnscanne ORocNetN 3400 RocNet scanner stopped
20180428.172615.687 r9999I rnsignal ORocNetN 1642 signalProcessor ended
20180428.172615.687 r9999I rnmacro ORocNetN 1547 macroProcessor ended
20180428.172615.691 r9999I rfidack ORocNetN 2313 RocNet rfidAckWD stopped20180428.172615.691 r9999I rnreader ORocNetN 3497 RocNet reader stopped

20180428.172615.758 r9999I textupda ORocNetN 1690 textUpdater ended
20180428.172615.781 r9999I main ORocNetN 0834 saving [temp.ini]...
20180428.172615.782 r9999I main ORocNetN 0844 checking [temp.ini]...
20180428.172615.782 r9999W main ORocNetN 0851 [temp.ini] is OK
20180428.172615.782 r9999I main ORocNetN 0864 backing up [rocnetnode.ini] to [rocnetnode.ini.bak]
20180428.172615.783 r9999I main ORocNetN 0871 rename [temp.ini] to [rocnetnode.ini]
__signalHandler: exit...

//Sonny
soni07
 

Re: RocNetNode crash

Postby rjversluis » 28.04.2018, 18:39

Can you run it in gdb and post here the backtrace?

I cannot reproduce it.

Remove all *.ini* files and start rocnetnode in the debugger.
Best Regards, Rob.
:!: PS: Do not forget to attach the usual files.
:!: PS: Nicht vergessen die übliche Dateien an zu hängen.
[ macOS - Linux] - [ N: CBus - CAN-GCA ] - [ 0: RocNetNode - GCA-Pi ]
rjversluis
Site Admin
 

Re: RocNetNode crash

Postby soni07 » 29.04.2018, 07:12

Morning!
Here are the results from gdb, stuck on run so i had to cancel so I did not get any results from bt. Started last night stood still all night so I restarted the whole procedure again in the morning.

//Sonny

[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/arm-linux-gnueabihf/libthread_db.so.1".
Resets memory statistics.
disable stdout buffering.
make copy of arguments.
Initialize the signal handler.
--
/ / (_)__ __ ____ __
/ /__/ / _ \/ // /\ \/ /
/____/_/_//_/\_,_/ /_/\_\
Initialize the Node...
Initialize the AccNode......
[New Thread 0x76e28470 (LWP 5446)]
20180429.075428.203 .9999I main ORocNetN 4264 using default setup
20180429.075428.203 r9999I main ORocNetN 4280 ----------------------------------------
20180429.075428.203 r9999I main ORocNetN 4281 revision [13903]
20180429.075428.203 r9999I main ORocNetN 4282 ID [65535]
20180429.075428.203 r9999I main ORocNetN 4283 multicast address [224.0.0.1]
20180429.075428.203 r9999I main ORocNetN 4284 multicast port [4321]
20180429.075428.203 r9999I main ORocNetN 4285 HW type [0] BCM2708BASE=0x20000000
20180429.075428.203 r9999I main ORocNetN 4286 I/O type [0]
20180429.075428.203 r9999I main ORocNetN 4287 sensor ack [OFF]
20180429.075428.203 r9999I main ORocNetN 4288 RFID [OFF]
20180429.075428.203 r9999I main ORocNetN 4289 ADC Sensors [OFF]
20180429.075428.203 r9999I main ORocNetN 4290 motor PWM [OFF]
20180429.075428.204 r9999I main ORocNetN 4291 ----------------------------------------
20180429.075428.204 r9999I main OSocket 0521 allow all processes to use this port...
20180429.075428.704 r9999I main raspi 0137 setup RasPi I/O, GPIO base=0x20200000
20180429.075428.704 r9999I main ORocNetN 3817 init I2C [/dev/i2c-1]
20180429.075428.805 r9999I main ORocNetN 3730 init I2C PWM [/dev/i2c-1]
20180429.075428.855 r9999I main ORocNetN 3940 init LED1 on port 23
20180429.075428.905 r9999I main ORocNetN 3944 init LED2 on port 24
[New Thread 0x76de8470 (LWP 5447)]
[New Thread 0x76da8470 (LWP 5448)]
20180429.075429.008 r9999I rnscanne ORocNetN 3173 RocNet scanner started[New Thread 0x76d68470 (LWP 5449)]

20180429.075429.011 r9999I rnpwm ORocNetN 2441 RocNet pwm started
[New Thread 0x76bff470 (LWP 5450)]
20180429.075429.012 r9999I rnled ORocNetN 2361 RocNet LED started
[New Thread 0x76bbf470 (LWP 5451)]
20180429.075429.042 r9999I rnsignal ORocNetN 1561 signalProcessor started
[New Thread 0x76b7f470 (LWP 5452)]
20180429.075429.075 r9999I rfidack ORocNetN 2294 RocNet rfidAckWD started
[New Thread 0x76b3f470 (LWP 5453)]
20180429.075429.084 r9999I rnmacro ORocNetN 1538 macroProcessor started
[New Thread 0x764ff470 (LWP 5454)]
20180429.075429.084 r9999I rnreader OSocket 1022 address 0 = 127.0.1.1
20180429.075429.085 r9999I textupda ORocNetN 1654 textUpdater started
20180429.075429.085 r9999I rnreader ORocNetN 3486 RocNet reader started on: 0.0.21.152
[New Thread 0x764bf470 (LWP 5455)]
[New Thread 0x7647f470 (LWP 5456)]
20180429.075430.014 r9999I rnled ORocNetN 3701 check I2C base[0x00] offset[0x06]
20180429.075430.014 r9999I rnled ORocNetN 3701 check I2C base[0x00] offset[0x06]
20180429.075430.015 r9999I rnled ORocNetN 3701 check I2C base[0x00] offset[0x06]
20180429.075430.015 r9999I rnled ORocNetN 3701 check I2C base[0x00] offset[0x06]
20180429.075430.016 r9999I rnled ORocNetN 3701 check I2C base[0x00] offset[0x06]
20180429.075430.016 r9999I rnled ORocNetN 2365 checking the LEDs
20180429.075430.016 r9999I rnscanne ORocNetN 1961 write event [000000FFFF0328070146364F801598] to 0
20180429.075430.086 r9999I clockupd ORocNetN 3701 check I2C base[0x70] offset[0x00]
20180429.075430.086 r9999I rocmouse ORocNetN 2878 RocMouse scanner started
20180429.075430.086 r9999I clockupd ORocNetN 0215 clockUpdater started for 0 clock displays
20180429.075430.197 r9999I rnreader ORocNetN 2038 evaluate request [00FFFF0001050605000F159800] from 1 to 65535
20180429.075430.197 r9999I rnreader ORocNetN 0903 new ID 15 Location 0 for me
20180429.075430.199 r9999W rnreader ORocNetN 0851 [temp.ini] is OK
20180429.075430.509 r9999W rnreader ORocNetN 0851 [temp.ini] is OK
^C
Thread 1 "rocnetnode" received signal SIGINT, Interrupt.
0x76ec5030 in nanosleep () at ../sysdeps/unix/syscall-template.S:84
84../sysdeps/unix/syscall-template.S: Filen eller katalogen finns inte.
(gdb) bt
#0 0x76ec5030 in nanosleep () at ../sysdeps/unix/syscall-template.S:84
#1 0x76ec4f00 in __sleep (seconds=0) at ../sysdeps/posix/sleep.c:55
#2 0x00092440 in ?? ()
Backtrace stopped: previous frame identical to this frame (corrupt stack?)
(gdb) quit
soni07
 

Re: RocNetNode crash

Postby rjversluis » 29.04.2018, 07:30

Hi Sonny,

remove all *ini* files
reboot the raspi
run rocnetnode in gdb
Best Regards, Rob.
:!: PS: Do not forget to attach the usual files.
:!: PS: Nicht vergessen die übliche Dateien an zu hängen.
[ macOS - Linux] - [ N: CBus - CAN-GCA ] - [ 0: RocNetNode - GCA-Pi ]
rjversluis
Site Admin
 

Re: RocNetNode crash

Postby soni07 » 29.04.2018, 10:13

Hi!
Made this before. Made a new SD card raspbian 2018-04-18 Stretch Full imposed. Just changed ssh and vnc under Interface Options in Raspi-config. Restarted. Installed 13903 and checked that no ini, bak or trc-files in the directory. Executed gdb with the same result.

Starting program: /opt/rocnet/rocnetnode
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/arm-linux-gnueabihf/libthread_db.so.1".
Resets memory statistics.
disable stdout buffering.
make copy of arguments.
Initialize the signal handler.
--
/ / (_)__ __ ____ __
/ /__/ / _ \/ // /\ \/ /
/____/_/_//_/\_,_/ /_/\_\
Initialize the Node...
Initialize the AccNode......
[New Thread 0x76e28470 (LWP 1207)]
20180429.084708.070 .9999I main ORocNetN 4264 using default setup
20180429.084708.070 r9999I main ORocNetN 4280 ----------------------------------------
20180429.084708.070 r9999I main ORocNetN 4281 revision [13903]
20180429.084708.070 r9999I main ORocNetN 4282 ID [65535]
20180429.084708.070 r9999I main ORocNetN 4283 multicast address [224.0.0.1]
20180429.084708.070 r9999I main ORocNetN 4284 multicast port [4321]
20180429.084708.070 r9999I main ORocNetN 4285 HW type [0] BCM2708BASE=0x20000000
20180429.084708.070 r9999I main ORocNetN 4286 I/O type [0]
20180429.084708.070 r9999I main ORocNetN 4287 sensor ack [OFF]
20180429.084708.071 r9999I main ORocNetN 4288 RFID [OFF]
20180429.084708.071 r9999I main ORocNetN 4289 ADC Sensors [OFF]
20180429.084708.071 r9999I main ORocNetN 4290 motor PWM [OFF]
20180429.084708.071 r9999I main ORocNetN 4291 ----------------------------------------
20180429.084708.071 r9999I main OSocket 0521 allow all processes to use this port...
20180429.084708.571 r9999I main raspi 0137 setup RasPi I/O, GPIO base=0x20200000
20180429.084708.571 r9999I main ORocNetN 3817 init I2C [/dev/i2c-1]
20180429.084708.672 r9999I main ORocNetN 3730 init I2C PWM [/dev/i2c-1]
20180429.084708.722 r9999I main ORocNetN 3940 init LED1 on port 23
20180429.084708.772 r9999I main ORocNetN 3944 init LED2 on port 24
[New Thread 0x76de8470 (LWP 1208)]
[New Thread 0x76da8470 (LWP 1209)]
20180429.084708.873 r9999I rnscanne ORocNetN 3173 RocNet scanner started
[New Thread 0x76bff470 (LWP 1210)]
20180429.084708.873 r9999I rnscanne ORocNetN 3296 delayed on port 0
[New Thread 0x76d68470 (LWP 1211)]
20180429.084708.874 r9999I rnpwm ORocNetN 2441 RocNet pwm started
20180429.084708.874 r9999I rnled ORocNetN 2361 RocNet LED started[New Thread 0x76bbf470 (LWP 1212)]

20180429.084708.875 r9999I rnsignal ORocNetN 1561 signalProcessor started
[New Thread 0x76b7f470 (LWP 1213)]
20180429.084708.875 r9999I rfidack ORocNetN 2294 RocNet rfidAckWD started[New Thread 0x76b3f470 (LWP 1214)]

20180429.084708.876 r9999I rnmacro ORocNetN 1538 macroProcessor started
[New Thread 0x765ff470 (LWP 1215)]
20180429.084708.876 r9999I textupda ORocNetN 1654 textUpdater started[New Thread 0x765bf470 (LWP 1216)]

[New Thread 0x7657f470 (LWP 1217)]
20180429.084708.938 r9999I rnreader OSocket 1022 address 0 = 127.0.1.1
20180429.084708.938 r9999I rnreader ORocNetN 3486 RocNet reader started on: 0.0.8.94
20180429.084709.875 r9999I rnled ORocNetN 3701 check I2C base[0x00] offset[0x06]
20180429.084709.876 r9999I rnled ORocNetN 3701 check I2C base[0x00] offset[0x06]
20180429.084709.876 r9999I rnled ORocNetN 3701 check I2C base[0x00] offset[0x06]
20180429.084709.877 r9999I rnled ORocNetN 3701 check I2C base[0x00] offset[0x06]
20180429.084709.877 r9999I rnled ORocNetN 3701 check I2C base[0x00] offset[0x06]
20180429.084709.877 r9999I rocmouse ORocNetN 2878 RocMouse scanner started
20180429.084709.877 r9999I rnled ORocNetN 2365 checking the LEDs
20180429.084709.877 r9999I clockupd ORocNetN 3701 check I2C base[0x70] offset[0x00]
20180429.084709.878 r9999I clockupd ORocNetN 0215 clockUpdater started for 0 clock displays
20180429.084709.893 r9999I rnscanne ORocNetN 1961 write event [000000FFFF0328070146364F80085E] to 0
20180429.084709.917 r9999I rnreader ORocNetN 2038 evaluate request [00FFFF00010506050019085E00] from 1 to 65535
20180429.084709.917 r9999I rnreader ORocNetN 0903 new ID 25 Location 0 for me
20180429.084709.918 r9999W rnreader ORocNetN 0851 [temp.ini] is OK
20180429.084710.028 r9999W rnreader ORocNetN 0851 [temp.ini] is OK
^C
Thread 1 "rocnetnode" received signal SIGINT, Interrupt.
0x76ec5030 in nanosleep () at ../sysdeps/unix/syscall-template.S:84
84../sysdeps/unix/syscall-template.S: No such file or directory.
(gdb) bt
#0 0x76ec5030 in nanosleep () at ../sysdeps/unix/syscall-template.S:84
#1 0x76ec4f00 in __sleep (seconds=0) at ../sysdeps/posix/sleep.c:55
#2 0x00092440 in ?? ()
Backtrace stopped: previous frame identical to this frame (corrupt stack?)
(gdb) quit

//Sonny
soni07
 

Re: RocNetNode crash

Postby rjversluis » 29.04.2018, 10:20

You did terminate rocnetnode with Ctrl+C...
Best Regards, Rob.
:!: PS: Do not forget to attach the usual files.
:!: PS: Nicht vergessen die übliche Dateien an zu hängen.
[ macOS - Linux] - [ N: CBus - CAN-GCA ] - [ 0: RocNetNode - GCA-Pi ]
rjversluis
Site Admin
 

Re: RocNetNode crash

Postby rjversluis » 29.04.2018, 12:03

RocNetNode does not hang; It just deactivated the INFO trace level.
Check the nightly build of tomorrow.
Best Regards, Rob.
:!: PS: Do not forget to attach the usual files.
:!: PS: Nicht vergessen die übliche Dateien an zu hängen.
[ macOS - Linux] - [ N: CBus - CAN-GCA ] - [ 0: RocNetNode - GCA-Pi ]
rjversluis
Site Admin
 

Re: RocNetNode crash

Postby soni07 » 29.04.2018, 12:09

Yes, it started yesterday at 20 o'clock and the process stopped in the line above ctrl-C in the printout. Controlled at regular intervals how far it had arrived. When it was time to crawl to bed I left it as it where. Today in the morning I checked how far it had come. In 10 hours nothing had happened, so today in the morning I did a new installation and learned that if it got stuck, cancel it. Mentioned this earlier that I had made ctrl - C.

//Sonny
soni07
 

Re: RocNetNode crash

Postby soni07 » 29.04.2018, 12:10

rjversluis wrote:RocNetNode does not hang; It just deactivated the INFO trace level.
Check the nightly build of tomorrow.


I will do so.

//Sonny
soni07
 

Re: RocNetNode crash

Postby soni07 » 30.04.2018, 08:21

Hi!
Here comes the print from gdb. Checked / dev directory before starting. The I2c-1 file was there but before I canceled the process, I checked the directory and the file was gone. The process was run for 12 hours and the only thing that happened was an update of the clock every minute.

Reading symbols from ./rocnetnode...(no debugging symbols found)...done.
(gdb) run
Starting program: /opt/rocnet/rocnetnode
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/arm-linux-gnueabihf/libthread_db.so.1".
Resets memory statistics.
disable stdout buffering.
make copy of arguments.
Initialize the signal handler.
--
/ / (_)__ __ ____ __
/ /__/ / _ \/ // /\ \/ /
/____/_/_//_/\_,_/ /_/\_\
Initialize the Node...
Initialize the AccNode......
[New Thread 0x76e28470 (LWP 1135)]
20180429.205010.744 .9999I main ORocNetN 4275 using default setup
20180429.205010.744 r9999I main ORocNetN 4294 ----------------------------------------
20180429.205010.744 r9999I main ORocNetN 4295 revision [13912]
20180429.205010.744 r9999I main ORocNetN 4296 ID [65535]
20180429.205010.744 r9999I main ORocNetN 4297 multicast address [224.0.0.1]
20180429.205010.744 r9999I main ORocNetN 4298 multicast port [4321]
20180429.205010.744 r9999I main ORocNetN 4299 HW type [0] BCM2708BASE=0x20000000
20180429.205010.745 r9999I main ORocNetN 4300 I/O type [0]
20180429.205010.745 r9999I main ORocNetN 4301 sensor ack [OFF]
20180429.205010.745 r9999I main ORocNetN 4302 RFID [OFF]
20180429.205010.745 r9999I main ORocNetN 4303 ADC Sensors [OFF]
20180429.205010.745 r9999I main ORocNetN 4304 motor PWM [OFF]
20180429.205010.745 r9999I main ORocNetN 4305 ----------------------------------------
20180429.205010.745 r9999I main OSocket 0521 allow all processes to use this port...
20180429.205011.245 r9999I main raspi 0137 setup RasPi I/O, GPIO base=0x20200000
20180429.205011.246 r9999I main ORocNetN 3831 init I2C [/dev/i2c-1]
20180429.205011.346 r9999I main ORocNetN 3744 init I2C PWM [/dev/i2c-1]
20180429.205011.396 r9999I main ORocNetN 3954 init LED1 on port 23
20180429.205011.446 r9999I main ORocNetN 3958 init LED2 on port 24
[New Thread 0x76de8470 (LWP 1136)]
[New Thread 0x76da8470 (LWP 1137)]
20180429.205011.548 r9999I rnscanne ORocNetN 3187 RocNet scanner started
[New Thread 0x76d68470 (LWP 1138)]
[New Thread 0x76bff470 (LWP 1139)]
20180429.205011.553 r9999I rnled ORocNetN 2375 RocNet LED started
20180429.205011.559 r9999I rnpwm ORocNetN 2455 RocNet pwm started
[New Thread 0x76bbf470 (LWP 1140)]
20180429.205011.582 r9999I rnsignal ORocNetN 1573 signalProcessor started
[New Thread 0x76b7f470 (LWP 1141)]
20180429.205011.847 r9999I rfidack ORocNetN 2306 RocNet rfidAckWD started
[New Thread 0x76b3f470 (LWP 1142)]
20180429.205011.864 r9999I rnreader OSocket 1022 address 0 = 127.0.1.1
20180429.205011.864 r9999I rnreader ORocNetN 3500 RocNet reader started on: 0.0.7.204
[New Thread 0x766ff470 (LWP 1143)]
20180429.205011.864 r9999I rnmacro ORocNetN 1550 macroProcessor started
20180429.205011.865 r9999I textupda ORocNetN 1666 textUpdater started
[New Thread 0x766bf470 (LWP 1144)]
[New Thread 0x7667f470 (LWP 1145)]
20180429.205012.553 r9999I rnled ORocNetN 3715 check I2C base[0x00] offset[0x06]
20180429.205012.553 r9999I rnled ORocNetN 2379 checking the LEDs
20180429.205012.556 r9999I rnscanne ORocNetN 1973 write event [000000FFFF032807014636588007CC] to 0
20180429.205012.617 r9999I rnreader ORocNetN 2050 evaluate request [00FFFF0001050605001D07CC00] from 1 to 65535
20180429.205012.617 r9999I rnreader ORocNetN 0915 new ID 29 Location 0 for me
20180429.205012.617 r9999I rnreader ORocNetN 0757 saving the modified ini file...
20180429.205012.618 r9999I rnreader ORocNetN 0766 saving the ports and channels...
20180429.205012.618 r9999I rnreader ORocNetN 0782 saving the macros...
20180429.205012.618 r9999I rnreader ORocNetN 0814 saving the trace levels...(info=2)
20180429.205012.618 r9999I rnreader ORocNetN 0829 saving the trace levels...
20180429.205012.618 r9999I rnreader ORocNetN 0836 saving the modified ini file first to [temp.ini]...
20180429.205012.619 r9999I rnreader ORocNetN 0843 saving [temp.ini]...
20180429.205012.619 r9999I rnreader ORocNetN 0856 checking [temp.ini]...
20180429.205012.619 r9999I rnreader ORocNetN 0863 [temp.ini] is OK
20180429.205012.620 r9999I rnreader ORocNetN 0883 rename [temp.ini] to [rocnetnode.ini]
20180429.205012.620 r9999I rnreader ORocNetN 1973 write event [000000FFFF032900] to 0
20180429.205012.630 r9999I rnreader ORocNetN 2050 evaluate event [000000FFFF032900] from 65535 to 0
20180429.205012.711 r9999I rnreader ORocNetN 2050 evaluate request [000000000101020100] from 1 to 0
20180429.205012.711 r9999I rnreader ORocNetN 0619 CS request 2 from 1 to 0
20180429.205012.711 r9999I rnreader ORocNetN 0757 saving the modified ini file...
20180429.205012.712 r9999I rnreader ORocNetN 0766 saving the ports and channels...
20180429.205012.712 r9999I rnreader ORocNetN 0782 saving the macros...
20180429.205012.712 r9999I rnreader ORocNetN 0814 saving the trace levels...(info=2)
20180429.205012.712 r9999I rnreader ORocNetN 0829 saving the trace levels...
20180429.205012.712 r9999I rnreader ORocNetN 0836 saving the modified ini file first to [temp.ini]...
20180429.205012.713 r9999I rnreader ORocNetN 0843 saving [temp.ini]...
20180429.205012.713 r9999I rnreader ORocNetN 0856 checking [temp.ini]...
20180429.205012.713 r9999I rnreader ORocNetN 0863 [temp.ini] is OK
20180429.205012.713 r9999I rnreader ORocNetN 0876 backing up [rocnetnode.ini] to [rocnetnode.ini.bak]
20180429.205012.713 r9999I rnreader ORocNetN 0883 rename [temp.ini] to [rocnetnode.ini]
20180429.205012.866 r9999I clockupd ORocNetN 3715 check I2C base[0x70] offset[0x00]
20180429.205012.866 r9999I clockupd ORocNetN 0215 clockUpdater started for 0 clock displays
20180429.205012.867 r9999I rocmouse ORocNetN 2892 RocMouse scanner started
20180429.205013.574 r9999I rnscanne ORocNetN 1973 write event [000000001D032807014636588007CC] to 0
20180429.205013.639 r9999I rnreader ORocNetN 2050 evaluate request [00001D0001030A0108] from 1 to 29
20180429.205013.639 r9999I rnreader ORocNetN 1728 queryids acknowleged from 1 to 29
20180429.205013.645 r9999I rnscanne ORocNetN 3202 scanner SoD
20180429.205013.645 r9999I rnscanne ORocNetN 3285 SoD for port 0
20180429.205013.646 r9999I rnscanne ORocNetN 3300 SoD for port 0: val=0 report=1
20180429.205033.500 r9999I rnreader ORocNetN 2050 evaluate request [00000000010702090000041D16321401FF] from 1 to 0
20180429.205033.501 r9999I rnreader ORocNetN 0387 Clock request 2 from 1 to 0
20180429.205033.501 r9999I rnreader ORocNetN 0408 Clock sync to 22:50 divider=1 temp=20 bri=255
20180429.205133.518 r9999I rnreader ORocNetN 2050 evaluate request [00000000010702090000041D16331401FF] from 1 to 0
20180429.205133.519 r9999I rnreader ORocNetN 0387 Clock request 2 from 1 to 0
20180429.205133.519 r9999I rnreader ORocNetN 0408 Clock sync to 22:51 divider=1 temp=20 bri=255
.
.
.
20180430.065842.328 r9999I rnreader ORocNetN 2050 evaluate request [00000000010702090000041E083A1401FF] from 1 to 0
20180430.065842.329 r9999I rnreader ORocNetN 0387 Clock request 2 from 1 to 0
20180430.065842.329 r9999I rnreader ORocNetN 0408 Clock sync to 08:58 divider=1 temp=20 bri=255
^C
Thread 1 "rocnetnode" received signal SIGINT, Interrupt.
0x76ec5030 in nanosleep () at ../sysdeps/unix/syscall-template.S:84
84../sysdeps/unix/syscall-template.S: No such file or directory.
(gdb) bt
#0 0x76ec5030 in nanosleep () at ../sysdeps/unix/syscall-template.S:84
#1 0x76ec4f00 in __sleep (seconds=0) at ../sysdeps/posix/sleep.c:55
#2 0x000928b0 in ?? ()
Backtrace stopped: previous frame identical to this frame (corrupt stack?)
(gdb) quit
soni07
 

Re: RocNetNode crash

Postby rjversluis » 30.04.2018, 09:10

Sorry, but I do not see any problem.
Do you know what rocnetnode is made for? What should RocNetNode do if nothing happens??? It waits for commands and scans the defined ports...
Best Regards, Rob.
:!: PS: Do not forget to attach the usual files.
:!: PS: Nicht vergessen die übliche Dateien an zu hängen.
[ macOS - Linux] - [ N: CBus - CAN-GCA ] - [ 0: RocNetNode - GCA-Pi ]
rjversluis
Site Admin
 

Re: [???] RocNetNode crash

Postby soni07 » 30.04.2018, 17:57

Yes, a cheaper alternative than what I work with professionally. Systems for industry with a fiercer price tag. Installed my SD card with the Raspbian Lite version and now it works. Now I let everything be. Version 13912 installed. Restarted at least 20 times and get started every time, can communicate with the node. Have tried for about a week before turning to the forum.
Thanks you for your help, sorry I put ants in your head.
:thumb_up:
soni07
 

Previous

Return to RocNetNode