10/12/2009, 11:08 AM
|
#21 (permalink) |
|
Member
![]() Join Date: Jun 2009
Location: Arizona
Posts: 451
Likes Received: 35
Thanks: 104
Thanked 78 Times in 42 Posts
|
Great work! Thank you! I am now able to install applications from the App Catalog with no freezing, no memory message, and with PMS installed working with Preware.
|
10/12/2009, 11:31 AM
|
#24 (permalink) |
|
Member
![]() Join Date: Jul 2009
Posts: 795
Likes Received: 0
Thanks: 22
Thanked 105 Times in 92 Posts
|
So, I'm a little confused about having du return a 0. Does this leave the App Catalog installer vulnerable to filling up the /var space? Or does your mod also catch that before it actually installs? Thanks.
|
10/12/2009, 01:17 PM
|
#25 (permalink) | |
|
Member
![]() Join Date: Jun 2009
Posts: 16
Likes Received: 0
Thanks: 2
Thanked 0 Times in 0 Posts
|
Quote:
thanks for the fix. Preware is great. |
|
10/12/2009, 02:13 PM
|
#26 (permalink) |
|
Member
![]() ![]() Join Date: Jun 2009
Location: kansas city, mo
Posts: 633
Likes Received: 0
Thanks: 85
Thanked 303 Times in 146 Posts
|
Rod, here is a mod to your 'du' command so that it will only return 0 if the app catalog is running. If app catalog is not running, it will run the normal du command. What you've posted is pretty risky for anything else that depends on the du command.
Code:
#!/bin/sh
luna-send -n 1 palm://com.palm.applicationManager/running {} 2>&1 |grep findapps >/dev/null
if [ $? == 0 ]
then
echo "0 $2"
else
/usr/bin/du $*
fi
shift echo "0 $*" instead of echo "0 $2" ...this will echo all other arguments. Not sure if you need that but might be cleaner. But even this update isn't clean. If App Catalog is running yet another app is running that depends on 'du', it will still break. This only fixes the issue if App Catalog is not running. Is there a way to determine if App Catalog is the one calling du? |
10/12/2009, 03:35 PM
|
#27 (permalink) |
|
Member
![]() Join Date: Feb 2008
Posts: 34
Likes Received: 0
Thanks: 9
Thanked 0 Times in 0 Posts
|
Where can I donate a buck or two to show my appreciation for this!
Although many catalog apps have underwhelmed me, I still like to be able to install and try out new stuff - WHICH I COULDN'T DO FOR MORE THAN TWO WEEKS! Thanks again, wish I could contribute more than $$$ to this community... |
10/12/2009, 04:11 PM
|
#28 (permalink) | |
|
Member
![]() Join Date: Jun 2009
Location: Everett, WA
Posts: 441
Likes Received: 0
Thanks: 63
Thanked 48 Times in 41 Posts
|
Quote:
There is a paypal link there. Mention that it is for Fair Dinkum |
|
10/12/2009, 04:17 PM
|
#29 (permalink) | |
|
Member
![]() Join Date: Feb 2008
Posts: 34
Likes Received: 0
Thanks: 9
Thanked 0 Times in 0 Posts
|
Quote:
|
|
10/12/2009, 07:55 PM
|
#30 (permalink) |
|
Member
![]() Join Date: Aug 2009
Posts: 28
Likes Received: 0
Thanks: 2
Thanked 2 Times in 1 Post
|
Quick suggestion for the wrapper script. It would be wise to invoke /usr/bin/du once /var hits a minimum amount of room. This way the wrapper will avoid filling up /var and causing more problems than the wrapper solves.
The workaround would be an if/then at the start of the script. I haven't tested this in production for reasons I've said elsewhere. Code:
#!/bin/sh
MINSIZE=50000
if [ `df /var |grep /var | cut -c45-50` -lt $MINSIZE ]
then
/usr/bin/du $*
else
luna-send -n 1 palm://com.palm.applicationManager/running {} 2>&1 |grep findapps >/dev/null
if [ $? == 0 ]
then
echo "0 $2"
else
/usr/bin/du $*
fi
fi
|
10/12/2009, 08:04 PM
|
#31 (permalink) | |
|
Developer
![]() ![]() Join Date: Apr 2003
Location: Adelaide, Australia - follow @webosinternals on Twitter visit www.webos-internals.org and www.facebook.com/webosinternals
Posts: 10,220
Likes Received: 546
Thanks: 90
Thanked 8,534 Times in 2,806 Posts
|
Quote:
Can anyone take a look at using ps to get the process id of LunaSysMgr, and then checking to see if it is the parent of the current process to really make sure that this du invocation is being run from LunaSysMgr ? All people who contribute code will be listed in the copyright at the head of the script and given credit in the first post - please confirm that your contributions may be GPLv2 licensed. -- Rod
__________________
WebOS Internals and Preware Founder and Developer You may wish to donate by Paypal to donations @ webos-internals.org if you find our work useful. All donations go back into development. www.webos-internals.org twitter.com/webosinternals facebook.com/webosinternals |
|
10/13/2009, 03:30 AM
|
#32 (permalink) |
|
Developer
![]() ![]() Join Date: Apr 2003
Location: Adelaide, Australia - follow @webosinternals on Twitter visit www.webos-internals.org and www.facebook.com/webosinternals
Posts: 10,220
Likes Received: 546
Thanks: 90
Thanked 8,534 Times in 2,806 Posts
|
Another update.
There is a secondary limit. Application installation is prevented when there is less than 100MiB (102400 1K blocks) free in /var. -- Rod
__________________
WebOS Internals and Preware Founder and Developer You may wish to donate by Paypal to donations @ webos-internals.org if you find our work useful. All donations go back into development. www.webos-internals.org twitter.com/webosinternals facebook.com/webosinternals |
10/13/2009, 09:33 PM
|
#35 (permalink) |
|
Developer
![]() ![]() Join Date: Apr 2003
Location: Adelaide, Australia - follow @webosinternals on Twitter visit www.webos-internals.org and www.facebook.com/webosinternals
Posts: 10,220
Likes Received: 546
Thanks: 90
Thanked 8,534 Times in 2,806 Posts
|
A new version of Fair Dinkum App Limit has been released - see the homebrew apps thread about it for details.
-- Rod
__________________
WebOS Internals and Preware Founder and Developer You may wish to donate by Paypal to donations @ webos-internals.org if you find our work useful. All donations go back into development. www.webos-internals.org twitter.com/webosinternals facebook.com/webosinternals |
10/14/2009, 11:44 AM
|
#36 (permalink) | |
|
Member
![]() Join Date: Feb 2005
Location: NorCal
Posts: 82
Likes Received: 0
Thanks: 62
Thanked 1 Time in 1 Post
|
Quote:
FWIW, I have been unable to load from APP cat, update thru Preware and have recieved message about too many applications installed. I have 82% use of /var. I have been downloading homebrew apps and a few AppCat (but not many) since day 1 using PreWare WOSQI and fileCoaster. I also rooted my Pre and put in some sort of user directory if I remember correctly. |
|
10/14/2009, 06:05 PM
|
#37 (permalink) | |
|
Developer
![]() ![]() Join Date: Apr 2003
Location: Adelaide, Australia - follow @webosinternals on Twitter visit www.webos-internals.org and www.facebook.com/webosinternals
Posts: 10,220
Likes Received: 546
Thanks: 90
Thanked 8,534 Times in 2,806 Posts
|
Quote:
-- Rod
__________________
WebOS Internals and Preware Founder and Developer You may wish to donate by Paypal to donations @ webos-internals.org if you find our work useful. All donations go back into development. www.webos-internals.org twitter.com/webosinternals facebook.com/webosinternals |
|
10/29/2009, 11:14 AM
|
#38 (permalink) |
|
Member
![]() Join Date: Sep 2009
Posts: 11
Likes Received: 0
Thanks: 6
Thanked 0 Times in 0 Posts
|
I had the same problem. And Fair Dinkum fixed it. Thanks, Rod.
But before installing it I looked at the size of /var. du /var/usr/palm/applications returned about 38MB. This was far below the 256MB size of /var partition and Palm's 64MB limit on total size of all applications. I even tried and deleted several application to bring the size of /var/usr/palm/applications below 32MB, 31.6MB to be exact, and then tried to install a 30KB application from App Catalog. I got the same error message "Sorry, not enough memory." df /var returned 248.0M total, 126.1M used, 121.8M free, 51% used. As I said, after installing Fair Dinkum App Limit I could install new apps from App Catalog again. By the way, I never had problems installing apps from Preware. Just yesterday I removed all patches and the theme, then ran WebOS Repair Utility without patch/theme compatibility mode to restore all system files from WebOS Doctor 1.2.1, after that I installed about 45 patches from Preware (none for App Catalog). So, I have no idea why I had this problem. |
10/31/2009, 07:21 AM
|
#39 (permalink) |
|
Developer
![]() ![]() Join Date: Apr 2003
Location: Adelaide, Australia - follow @webosinternals on Twitter visit www.webos-internals.org and www.facebook.com/webosinternals
Posts: 10,220
Likes Received: 546
Thanks: 90
Thanked 8,534 Times in 2,806 Posts
|
FYI: The functionality of the Fair Dinkum App Limit package has now been incorporated into the latest version of the Package Manager Service (that's 0.9.12). Preware itself is unchanged.
-- Rod
__________________
WebOS Internals and Preware Founder and Developer You may wish to donate by Paypal to donations @ webos-internals.org if you find our work useful. All donations go back into development. www.webos-internals.org twitter.com/webosinternals facebook.com/webosinternals |
![]() |
|
| Thread Tools | |
| Display Modes | |
|
|



