Page 5 of 10

Re: [App] libRunWidget D/E/F/H

Posted: Fri Jul 31, 2015 1:13 pm
by sectroyer
smart_lover wrote: 3600 is millisecond or second?!
I will be generous and trust your skills :) I think you can test it yourself :)

Re: [App] libRunWidget D/E/F/H

Posted: Fri Jul 31, 2015 3:37 pm
by smart_lover
sectroyer wrote:
smart_lover wrote: 3600 is millisecond or second?!
I will be generous and trust your skills :) I think you can test it yourself :)
Okeey! I already knew the answer, but I thought with myself 1 hour!?! why!?
Then I find that 3600 was only a sample, By the way I use 'sleep 90' and all things seems to be ok now and my Widget no longer exit unexpectedly.

Re: [App] libRunWidget D/E/F/H

Posted: Fri Jul 31, 2015 4:11 pm
by zoelechat
smart_lover wrote:Okeey! I already knew the answer, but I thought with myself 1 hour!?! why!?
Humor? :P
smart_lover wrote:By the way I use 'sleep 90' and all things seems to be ok now and my Widget no longer exit unexpectedly.
Try lower values until you find the "magic" one, should be much less than 90sec imho :)

Re: [App] libRunWidget D/E/F/H

Posted: Sat Aug 01, 2015 12:21 pm
by smart_lover
zoelechat wrote: Humor? :P
Yeah!
zoelechat wrote:Try lower values until you find the "magic" one, should be much less than 90sec imho :)
I need reliability(because there is no operator in front of TV and all operations will take place remotely), So I think a sleep between 70 to 90 seconds is enough. Actually I don't want to power off TV for long time and want to use libSofpoweroff instead!

Re: [App] libRunWidget D/E/F/H

Posted: Sat Aug 01, 2015 12:34 pm
by zoelechat
I already noticed you use SoftPowerOff ;)
smart_lover wrote:

Code: Select all

samyGOrc -p $(pidof exeTV || pidof exeDSP) 1 152

Re: [App] libRunWidget D/E/F/H

Posted: Sat Aug 01, 2015 6:58 pm
by smart_lover
zoelechat wrote:I already noticed you use SoftPowerOff ;)
smart_lover wrote:

Code: Select all

samyGOrc -p $(pidof exeTV || pidof exeDSP) 1 152
Yes! It was for the time that I planned to not to use 'micom reboot'. But with your help I used 'sync' and everything backed to normal!

Re: [App] libRunWidget D/E/F/H

Posted: Mon Oct 05, 2015 9:09 pm
by smart_lover
Everything works perfect till today.
Today when I run

Code: Select all

samyGOso -d -A -B -l /mnt/opt/privateer/usr/libso/libRunWidget.so ID:MyWidgetId
for the first time(exactly after TV boot) it successfully run my Widget. After that I exit from app with this

Code: Select all

samyGOrc -p $(pidof exeTV || pidof exeDSP) 45
and TV will successfully exit from app. but suddenly I get following error message from TV and all my commands(except micom reboot) will return following error(until I use micom reboot and let TV start again). Is it all about SamyGOso?
(I did not see anything like this before today during using libRunWidget and exit from widget with above command)

Code: Select all

samyGOso v1.2.5 (c) bugficks 2013-2014, sectroyer 2014-2015
usage: samyGOso [-p PID | -n procname | -A | -T | -D ] [-B ] {-c CONFIG | -l /full/path/to/inject.so [-r (=resident)]} [-d (=debug on)] [-a (=add libc addressoffset )] [arg0,...,argN]
Whats wrong with my TV? I test in my other TVs and same result happened.
Root is still available after TV power on.

I am really in a terrible situation. Please help me find my way.

Note 1:I repeat the same procedure but after running and exiting app for the 3rd time, same above error happened(I think there is some kind of instability in samyGOso).

Note 2: When I hit power button (I use libSoftPowerOff) TV will not power off and after some try,TV power it off actually(As there is no libSofPowerOff) and after that I lost my root(when I power on TV).Why?!!

Re: [App] libRunWidget D/E/F/H

Posted: Mon Oct 05, 2015 9:38 pm
by zoelechat
smart_lover wrote:

Code: Select all

samyGOso v1.2.5 (c) bugficks 2013-2014, sectroyer 2014-2015
usage: samyGOso [-p PID | -n procname | -A | -T | -D ] [-B ] {-c CONFIG | -l /full/path/to/inject.so [-r (=resident)]} [-d (=debug on)] [-a (=add libc addressoffset )] [arg0,...,argN]
Well that simply means TV is already crashed, you have to find if either it's samyGOso, samyGOrc, some lib, or your widget that crashes it :)

At this point you might check:

Code: Select all

pidof exeTV
pidof exeAPP
One or both should show no PID, which means TV "suicided" process(es) to "protect the innocent". :D

Btw, are you using recommended version of samyGOrc (v1.0), not sure that's the one included by default, being known to crash some TVs (for example mine) when you send an odd number of keys.
smart_lover wrote:Note 2: When I hit power button (I use libSoftPowerOff) TV will not power off and after some try,TV power it off actually(As there is no libSofPowerOff) and after that I lost my root(when I power on TV).Why?!!
Looks like normal behavior of crashed TV :)

ps: beware of offtopic...

Re: [App] libRunWidget D/E/F/H

Posted: Mon Oct 05, 2015 10:08 pm
by smart_lover
zoelechat wrote: At this point you might check:

Code: Select all

pidof exeTV
pidof exeAPP
One or both should show no PID, which means TV "suicided" process(es) to "protect the innocent". :D
Yes, both of them return no PID!
zoelechat wrote: Btw, are you using recommended version of samyGOrc (v1.0), not sure that's the one included by default, being known to crash some TVs (for example mine) when you send an odd number of keys.
Yes I use.
zoelechat wrote: Looks like normal behavior of crashed TV :)
Why I lost my root and have to run SamyGo widget to root my TV again after this kind of crash!? Is there a way to prevent root access after some kind of TV crashes?
zoelechat wrote: ps: beware of offtopic...
Where I can continue this conversation?

Re: [App] libRunWidget D/E/F/H

Posted: Mon Oct 05, 2015 10:20 pm
by zoelechat
smart_lover wrote:Yes, both of them return no PID!
Try then to repeat them at different times to get closer and find WHAT crashes TV.
smart_lover wrote:Where I can continue this conversation?
You're allowed to create a topic in support section for example ;)

No idea why you loose root...