webOS Nation Forums >  Homebrew >  WebOS Internals > Killing an app.
Killing an app.

  Reply
 
LinkBack Thread Tools Display Modes
Old 09/28/2011, 03:18 PM   #1 (permalink)
Member
 
Join Date: Jul 2011
Posts: 26
Likes Received: 0
Thanks: 0
Thanked 0 Times in 0 Posts
Default Killing an app.

Is there a tool to kill an app completely.

Flipping it off the WebOs screen does NOT fully shut the app down - it remembers stuff abotu where it was and what it was doing. Which means it remembers stuff it's doing wrong! At the moment the only option appears to be a full shutdown and re-start of the tablet which takes the best part of five minutes!

The browser occasionally jams up, at which point it won't work properly in some websites, not least Gmail and Facebook.

And this week I had Kindle jam up - it would let me flip past the first few pages of a book then show a blank white screen. Flip-off re-starting it would let me start over - and it'd end the same. AFTER i ranted at amazon to refund me for a book coz I assumed the file was corrupt, I found it was failing on all files, and a reboot of the tablet fixed it.

So - how to "kill -9" an app?
ccomley is offline   Reply With Quote
Old 09/28/2011, 03:52 PM   #2 (permalink)
Moderator
 
Cantaffordit's Avatar
 
Join Date: Jan 2010
Posts: 15,150
Likes Received: 958
Thanks: 3,804
Thanked 3,911 Times in 2,777 Posts
Default

did you install Jstop from preware?
Cantaffordit is offline   Reply With Quote
Old 09/28/2011, 05:05 PM   #3 (permalink)
Member
 
Join Date: Jul 2011
Posts: 26
Likes Received: 0
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by Cantaffordit View Post
did you install Jstop from preware?
Nope. I'll go look for it...

Cheers.
ccomley is offline   Reply With Quote
Old 09/28/2011, 06:13 PM   #4 (permalink)
Member
 
wayne@angrygoat's Avatar
 
Join Date: May 2010
Posts: 397
Likes Received: 17
Thanks: 13
Thanked 63 Times in 57 Posts
Default

As a developer, I can tell you that flicking away an app does kill it completely, unless the app uses PDK plugin or possibly a JavaScript service. If either of those things are the cause of the problem, then jstop probably wouldn't help.

An app may remember what it's doing by saving it's when it exits, that doesn't mean the app hasn't stopped.

-- Sent from my HP TouchPad using Communities
__________________
--------------------
Apps for webOS
http://www.angrygoatapps.com
Twitter: angrygoatapps
wayne@angrygoat is offline   Reply With Quote
Old 09/28/2011, 06:45 PM   #5 (permalink)
Member
 
fxspec06's Avatar
 
Join Date: Sep 2010
Location: central ma
Posts: 1,452
Likes Received: 249
Thanks: 697
Thanked 388 Times in 247 Posts
Default

You don't kill apps.

You assassinate them (by flicking them away).
__________________
clearview - clear card app for HP TOUCHPAD
Wild'n Video Poker* - NOW AVAILABLE FOR ALL WEBOS DEVICES! | follow me on twitter for latest updates - @fxspec06
*Powered by Villo

pre plus / 2.1.0
pre 2 / 2.1.0

Last edited by fxspec06; 09/28/2011 at 06:56 PM.
fxspec06 is offline   Reply With Quote
Old 09/28/2011, 07:03 PM   #6 (permalink)
Member
 
Join Date: Aug 2011
Posts: 1,923
Likes Received: 205
Thanks: 21
Thanked 196 Times in 143 Posts
Default

I throw them with a giant rubber band andhear a weeeeee sound

-- Sent from my HP TouchPad using Communities
__________________
GVoice for all webOS devices - for PlayBook - GVoiceA for Android
XO - The Subsonic Media Commander - webOS Demo and Full version and PlayBook full version available
- Ask500, the webOS polling app


(1:39:33 PM) halfhalo: Android multitasking is like sticking your fingers into a blender
eblade is offline   Reply With Quote
Old 09/28/2011, 07:08 PM   #7 (permalink)
Member
 
Join Date: Feb 2009
Location: Seattle
Posts: 57
Likes Received: 3
Thanks: 5
Thanked 3 Times in 3 Posts
Default

I have noticed some apps seem to continue running in the background eating battery life faster than normal after flipping away, facebook being the worst offender. When i notice that some rogue process is draining the battery faster than normal i have to do a luna restart to clear whatever it is out.
__________________
USRobotics Palm Pilot -> Palm 3e -> Treo 180 ->Treo 600 -> Treo 650 -> Centro -> Palm Pre
errhead is offline   Reply With Quote
Old 09/28/2011, 09:31 PM   #8 (permalink)
Member

 
Grabber5.0's Avatar
 
Join Date: Dec 2008
Location: Kansas City, MO
Posts: 1,742
Likes Received: 86
Thanks: 198
Thanked 362 Times in 291 Posts
Default

Facebook does not continue running, it periodically launches a background process to check for updates, then closes again. That frequency is set in the settings for the app. The OS only gives your app an instant to clean up before it is terminated.
__________________
Matt Williams

Developer of: SMS Auto Forward/Reply, GPS Viewer,
Keyring converters for CSV, eWallet, & CodeWallet
Grabber5.0 is offline   Reply With Quote
Old 09/29/2011, 01:49 AM   #9 (permalink)
Member
 
Join Date: Jul 2011
Posts: 26
Likes Received: 0
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Well, in that case, I guess I'm stuffed.

The two problems encoutered so far are

- the BROWSER - I don't use the Facebook app it's too fiddly by far - sometimes the browser gets itself into a state such that, even if you wait patiently for the page to load *completely*, some of the buttons on a Facebook or Gmail (or, presumably, others) do nothing. I assume the "on-click" code hasn't been loaded or something, I dunno. But re-loading the page doesn't help. Flickign away the browser and re-starting it, doesn't help.

- just this week, Kindle decided to "white-screen" and lock up on me a couple of pages in toa book. Again, flicking it away would recover but only to the cover-page of the book which as soon as I started turning pages would lock up again... a reboot fixed it.

If these issues are possibly based on the failure of a system module, I guess it's too fiddly to find out what that might be and how it may be re-initialised without rebooting the tablet.
ccomley is offline   Reply With Quote
Old 09/29/2011, 01:50 AM   #10 (permalink)
Member
 
Join Date: Aug 2011
Posts: 1,923
Likes Received: 205
Thanks: 21
Thanked 196 Times in 143 Posts
Default

Overclocking CPU?

-- Sent from my HP TouchPad using Communities
__________________
GVoice for all webOS devices - for PlayBook - GVoiceA for Android
XO - The Subsonic Media Commander - webOS Demo and Full version and PlayBook full version available
- Ask500, the webOS polling app


(1:39:33 PM) halfhalo: Android multitasking is like sticking your fingers into a blender
eblade is offline   Reply With Quote
Old 09/29/2011, 05:33 AM   #11 (permalink)
Member
 
Join Date: Jul 2011
Posts: 26
Likes Received: 0
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Bog-standard. The only thing HP would not recognise and approve of that I have done is to use impostah to de-re-register it so I could access Kindle from the USAnian download zone, then switch back to the original profile. (And, of course, installed the devkit so I can install Preware in order to run Impostah).

I don't demand enough of it to need it to be faster! The only thing that is slow is a hard reboot, whicH I try to avoid needing to to!
ccomley is offline   Reply With Quote
Old 01/04/2012, 04:23 PM   #12 (permalink)
Member
 
Join Date: Jul 2011
Posts: 26
Likes Received: 0
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by wayne@angrygoat View Post
As a developer, I can tell you that flicking away an app does kill it completely, unless the app uses PDK plugin or possibly a JavaScript service. If either of those things are the cause of the problem, then jstop probably wouldn't help.

An app may remember what it's doing by saving it's when it exits, that doesn't mean the app hasn't stopped.

-- Sent from my HP TouchPad using Communities

Not true. I have several examples now of where an app gets so tangled up you have to re-start the tablet. So either the app doesn't completely die when flicked away, or some apps have hooks into the OS and leave footprints which are not cleared/ reset/ whatever when you close the app.

As there appears to be no solution to this aside from hope the app author fixes it, it's a good job it doesn't do it too often...
ccomley is offline   Reply With Quote
Old 01/04/2012, 04:28 PM   #13 (permalink)
Member
 
Join Date: Jul 2011
Posts: 26
Likes Received: 0
Thanks: 0
Thanked 0 Times in 0 Posts
Default

BTW - warning - if you use the built-in browser to play an internet radio station, tap "STOP" before you flick the browser app away, or ou won't be able to stop the stream playing except by rebooting the tablet!
ccomley is offline   Reply With Quote
Old 01/12/2012, 11:07 PM   #14 (permalink)
Member
 
wayne@angrygoat's Avatar
 
Join Date: May 2010
Posts: 397
Likes Received: 17
Thanks: 13
Thanked 63 Times in 57 Posts
Default

Quote:
Not true. I have several examples now of where an app gets so tangled up you have to re-start the tablet. So either the app doesn't completely die when flicked away, or some apps have hooks into the OS and leave footprints which are not cleared/ reset/ whatever when you close the app.

As there appears to be no solution to this aside from hope the app author fixes it, it's a good job it doesn't do it too often...
yes, some buggy apps do seem to leave stuff behind when they exit, but that's a bug and not the part of the normal operation of webOS which is what you are implying in your first post.
__________________
--------------------
Apps for webOS
http://www.angrygoatapps.com
Twitter: angrygoatapps
wayne@angrygoat is offline   Reply With Quote
Old 01/12/2012, 11:20 PM   #15 (permalink)
Member
 
appsotutely's Avatar
 
Join Date: Aug 2010
Posts: 628
Likes Received: 22
Thanks: 80
Thanked 153 Times in 122 Posts
Default

As mentioned before, JsTop will help you better identify the issue. Apps continue to run in Exhibition mode if they were the last running app when you exit Exhibition, so that's one way an app could continue to maintain state even if you toss away the main app card. Another is by having a dashboard component that is still alive. In either case, JsTop will show you if a particular app still has processes running even after you've tossed away the main card.
__________________
Appsotutely's Apps & Patches:
Paid: Slide RSS | Multi Pane | Trip Traq BART | Wall Switch | Slide Master
Free: Pane Free | Trip Traq HBLR | Nightstand
Twitter: @appsotutely
Paypal: Tip Jar
appsotutely is offline   Reply With Quote
Old 01/13/2012, 03:07 AM   #16 (permalink)
Member
 
Join Date: Jul 2011
Posts: 26
Likes Received: 0
Thanks: 0
Thanked 0 Times in 0 Posts
Default

It's not a question of "implying" what is "intended" in the OS, I was reporting what was actually happening, which is actually annoying.
ccomley is offline   Reply With Quote
Old 01/13/2012, 03:40 AM   #17 (permalink)
Member
 
toaste's Avatar
 
Join Date: Mar 2009
Location: Colorado
Posts: 200
Likes Received: 7
Thanks: 78
Thanked 10 Times in 10 Posts
Default

I had read in another post, can't find it right quick, that said to ensure the app was closed you needed to do the "pull down and release" (like you do when the TP is upside down and you get the angry bird sound) vs just flicking it closed. I'll post it if I can find it again.
toaste is offline   Reply With Quote
Old 01/13/2012, 04:28 AM   #18 (permalink)
Member
 
Join Date: Jul 2011
Posts: 26
Likes Received: 0
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by toaste View Post
I had read in another post, can't find it right quick, that said to ensure the app was closed you needed to do the "pull down and release" (like you do when the TP is upside down and you get the angry bird sound) vs just flicking it closed. I'll post it if I can find it again.
Appreciate it.

Wonder if it works if you re-start then re-kill the app, as clearly if you've already killed it...

Why is nothing ever simple? :-)
ccomley is offline   Reply With Quote
Reply

 

Thread Tools
Display Modes



 


Content Relevant URLs by vBSEO 3.6.0