maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Maemo 5 / Fremantle (https://talk.maemo.org/forumdisplay.php?f=40)
-   -   [N900] Yes, another hildon-home bug thread... (https://talk.maemo.org/showthread.php?t=86804)

peterleinchen 2012-12-04 21:22

Re: [N900] Yes, another hildon-home bug thread...
 
Quote:

Originally Posted by reinob (Post 1301226)
Thanks for that freemangordon!

One more thanks.


Quote:

Originally Posted by reinob (Post 1301226)
Question to peterleinchen: what DCEW's are you using? on one of my N900s I use it (uptime, ip, custom-script-for-battery-voltage-via-i2cget), but I normally don't keep that one turned on for more than a few minutes, so I haven't experienced any problems.

In any case, if the popen'ed process exit()s then stdout is flushed and the problem should NOT occur. Meaning you are executing a command that is itself blocking (for input?) or stuck in an infinite loop.

Can anyone comment on QBW? is that any better than DCEW?

I have listed all commands above. Not all of them are used. Some are still standard, some are customized.
But I could not identify any of them to cause an infinite block ...

Nevertheless I had a bit of confusion in DCEW config. I had a command on desktop, which did not belong there. And DCEW named it as "IP", but could not locate the command (when checking the executed commands of all my widgets).
But, again, this was one of the standard commands.

peterleinchen 2012-12-04 21:23

Re: [N900] Yes, another hildon-home bug thread...
 
And thanks to all of you trying to help/identify this phenomenon !!

peterleinchen 2012-12-04 21:32

Re: [N900] Yes, another hildon-home bug thread...
 
Quote:

Originally Posted by don_falcone (Post 1301430)
Everything else mentioned worked, IIRC. Only updating the value wasn't.

Strange! Do you have more Widgets on desktop updating values? Or was this the only one?
Normal applications, contacts, links, etc. still work even with this "hanging".
How did you recover? Reboot?

don_falcone 2012-12-11 08:46

Re: [N900] Yes, another hildon-home bug thread...
 
Besides contacts and shortcuts, I have:

- 8 instances of ConnectNow widget
- 2 QBW snippet widgets
- 1 Personal IP Monitor widget

On other desktops:

- 1 Calendar Home widget
- 4 Internet Radio Player widgets


Yes i did a reboot.

peterleinchen 2012-12-25 13:08

Re: [N900] Yes, another hildon-home bug thread...
 
New information!

It seems like wget is the culprit here (or Maemo itself).

I had that command
[code]
[code]
under suspicion, but no proove.

But now I am sure:
I chnged WLAN connectivity and at the same time fired that command in x-term. One time it did hang completely, there was no output. And the command did not end. This is the reason why h-h cannot end that command, as nothing is writte to stdout and it does not return.
There was no running instance of wget anymore neither of awk, so I do not understand that situation very well.

But that prooves that it is not a bug of h-h, but a bug inside Maemo itself (or really wget?) caused by "bad" (better: not perfect) implementation of dcew (as I would have done same way, relying on output/ending of a simple command line).

Any ideas/suggestions?
I still have that command line
Quote:

~ $ wget -t 2 -T 3 -q -O - checkip.dyndns.com | awk -F ": " '{print $2}' | awk -F "</" '
{print $1}'


open ...

P.S.: a second call in a second x-term terminated immediately with no ouput and after connecting agaian it terminetd after 2 seconds with correct IP shown

reinob 2012-12-27 22:49

Re: [N900] Yes, another hildon-home bug thread...
 
@peterleinchen,

Can I assume that you don't have the real wget installed, but are using busybox wget?

If so, busybox wget doesn't support, among others, the -t and -T options, but inconveniently chooses not to mention that fact.

Probably busybox wget is either buggy, or waits indefinetly for a reply, or both. Try to install the real wget and make sure wget is not the same as busybox wget. Hopefully this will solve your problem!

peterleinchen 2012-12-27 23:26

Re: [N900] Yes, another hildon-home bug thread...
 
Hi reinob,

thanks for your input.
Of course I am using bb-power, but also have lots of "real" programs installed ;)
Quote:

~ $ apt-cache policy wget
wget:
Installed: 1.10.2-2osso3
Candidate: 1.10.2-2osso3
Version table:
*** 1.10.2-2osso3 0
500 http://repository.maemo.org fremantle-1.3/free Packages
500 http://repository.maemo.org fremantle/free Packages
500 http://repository.maemo.org fremantle/free Packages
100 /var/lib/dpkg/status
1.10.2-2osso3 0
500 http://repository.maemo.org fremantle/tools/free Packages
So, I do not hink this is the reason. As this would imply there is still an instance of wget (busybox) running, which is not the case.
Open for any other input :)

--edit
But -possibly- maybe it is really busybox-power's fault (/bin/sh).
So I post here output of
Quote:

~ $ ps |grep sh
1053 root 4712 S /usr/sbin/alsaped -p 4 -f /usr/share/policy/etc/current/als
1108 root 3632 S /usr/sbin/wappushd -b
1278 user 2836 S {autodisconnect-} /bin/ash /opt/autodisconnect/autodisconne
1524 user 2836 S sh -c /opt/BatteryGraph/bin/BatteryGraphd
1549 root 2836 S {savecpu.sh} /bin/sh /opt/savecpu/savecpu.sh start
1550 root 2836 S {run-standalone.} /bin/sh /usr/bin/run-standalone.sh /usr/s
1596 user 2836 S {run-standalone.} /bin/sh /usr/bin/run-standalone.sh /usr/b
1731 user 2836 S {ringtonedctl} /bin/sh /usr/bin/ringtonedctl startwait
1821 user 4416 S /usr/bin/crash_reporter_daemon
2345 root 3844 S /usr/sbin/sshd -D
2854 root 2836 S /bin/sh -e /dev/fd/8 hildon-desktop
2855 root 2836 S /bin/sh -e /dev/fd/8 hildon-desktop
6170 root 0 SW [pdflush]
6209 root 0 SW [pdflush]
7103 root 2836 S {autodisconnect-} /bin/ash /opt/autodisconnect/autodisconne
7467 root 2836 S {swapoffon_mmc} /bin/sh /sbin/swapoffon_mmc
7542 user 2844 S grep sh
21444 user 2912 S -sh
21465 user 2912 S -sh
21741 root 2836 D {cpu_normal.sh} /bin/sh /opt/scripts/cpu_normal.sh :1.13 nu
at the time of having two instances of x-term open, two browser windows and modest.
???

peterleinchen 2013-01-01 21:54

Re: [N900] Yes, another hildon-home bug thread...
 
Anybody ou there experiencing the same problem, please give some feedback!
Are you using busybox-power or stock busybox shell?
I would like to give iDont (big THX for looking into it to him) an all-clear in case anybody experienced this with stock sh, too.

Once again:
the command
Code:

wget -t 2 -T 3 -q -O - checkip.dyndns.com | awk -F ": " '{print $2}' | awk -F "</" '{print $1}'
did not return, so no output could be catched by DCEW (or QBW, ...), this way the h-h did hang until killed (or reboot).

I do not think it was caused by wget or awk as both programs did not have an instance running anymore.
Unfortunately my shell is now gone, as I had an umexpected reboot ...

sixwheeledbeast 2013-01-01 23:03

Re: [N900] Yes, another hildon-home bug thread...
 
Quote:

Originally Posted by peterleinchen (Post 1309851)
Anybody ou there experiencing the same problem, please give some feedback!
Are you using busybox-power or stock busybox shell?
I would like to give iDont (big THX for looking into it to him) an all-clear in case anybody experienced this with stock sh, too.

Seems there's no wget as standard in the stock sh.

Code:

sh: wget: not found
So there's no way this is the issue I am having from the OP.

peterleinchen 2013-01-02 15:37

Re: [N900] Yes, another hildon-home bug thread...
 
Quote:

Originally Posted by sixwheeledbeast (Post 1309865)
Seems there's no wget as standard in the stock sh.

So there's no way this is the issue I am having from the OP.

Yes, you are right sixwheeledbeast.
There is no wget in stock sh, but wget is available from the repo and listed as dependency in a lot of apps.

And, to be sure, you did not suffer from h-h getting stalled? At least this bug (no output from sh command, hereby h-h getting stalled) does not need to be caused by wget, but could be from stock (bb-power) sh or Maemo system itself.


All times are GMT. The time now is 17:15.

vBulletin® Version 3.8.8