Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Android app crashing when ended and on_stop is not executed #384

Closed
mrhubbs opened this issue May 26, 2015 · 3 comments
Closed

Android app crashing when ended and on_stop is not executed #384

mrhubbs opened this issue May 26, 2015 · 3 comments

Comments

@mrhubbs
Copy link

mrhubbs commented May 26, 2015

My app is crashing when I end it and the code in on_stop is not being run. The logcat shows the error:

I/ActivityManager( 777): Killing 13468:crown.test.test:python/u0a241 (adj 9): remove task
E/audit ( 1832): type=1701 msg=audit(1432319840.786:234): auid=4294967295 uid=10241 gid=10241 ses=4294967295 subj=u:r:untrusted_app:s0 pid=13468 comm="est.test:python" reason="memory violation" sig=11

This crash message looks somewhat similar to the one I was getting from this issue:

E/audit ( 1832): type=1701 msg=audit(1432320584.076:236): auid=4294967295 uid=10241 gid=10241 ses=4294967295 subj=u:r:untrusted_app:s0 pid=15912 comm="est.test:python" reason="memory violation" sig=11
I/ActivityManager( 777): Process crown.test.test:python (pid 15912)(adj 0) has died(69,329)

The fix for that issue doesn't help this issue.

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

@mrhubbs mrhubbs changed the title Android app crashing when ended and not running on_stop Android app crashing when ended and on_stop is not executed May 26, 2015
@kived
Copy link
Contributor

kived commented May 26, 2015

Please provide a full log of your application run, and try with the most recent version of p4a.

@mrhubbs
Copy link
Author

mrhubbs commented May 27, 2015

I've re-run with the most recent p4a and am experiencing the same problem. See the log here. The error messages seems to be on lines 812-813.

The application is very simple:

from kivy.app import App
from kivy.uix.button import Button

class TestApp(App):
    def build(self):
         return Button(text='hello')

    def on_pause(self):
        print('pausing')
        return True

    def on_stop(self):
         print('goodbye !!!!!! . . . . ')
         return True

if __name__ == '__main__':
    TestApp().run()

@inclement
Copy link
Member

I think this doesn't happen any more. It can be reopened if necessary.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants