Unfortunately [app-name] has stopped !

139 views
Skip to first unread message

Bachir El Khadir

unread,
May 28, 2016, 2:07:44 AM5/28/16
to Kivy users support
Hello,

I am trying to build a simple application and deploy it to my android phone (s6). The build process works just fine, but the app crashes on my phone as soon as I open it.

Here is the code for the application:
from kivy.app import App


from kivy.uix.scatter import Scatter
from kivy.uix.label import Label
from kivy.uix.floatlayout import FloatLayout


class TutorialApp(App):
   
def build(self):
        f
= FloatLayout()
        s
= Scatter()
        l
= Label(text="Hello!",
                  font_size
=150)


        f
.add_widget(s)
        s
.add_widget(l)
       
return f


if __name__ == "__main__":
   
TutorialApp().run()



I have attached the log for the build process ( buildozer android debug ) and for  the deploy(buildozer android deploy run logcat).


Any help is welcome!
logbuild

Bachir El Khadir

unread,
May 28, 2016, 2:09:29 AM5/28/16
to Kivy users support
For some reason the log for the deploy was not uploaded, I have attached it to this response.
logdeploy

Jason Boyd

unread,
Sep 28, 2016, 12:31:13 AM9/28/16
to Kivy users support
I'm running into essentially the same problem. It's been several months since the poster's question. Any tips on what this is? 

Jason Boyd

unread,
Sep 28, 2016, 1:01:48 AM9/28/16
to Kivy users support
I was able to find the error in the android log, below.

...
09-27 22:58:06.183 342-906/? E/audio_hw_primary: select_devices: enter and usecase(1)
09-27 22:58:06.183 342-906/? E/audio_hw_primary: enable_snd_device: enter  2
09-27 22:58:06.393 10581-10592/? E/art: Failed sending reply to debugger: Broken pipe
09-27 22:58:06.443 10581-10602/? E/art: dlopen("/data/app/org.test.myapp-1/lib/arm/libpython2.7.so", RTLD_LAZY) failed: dlopen failed: cannot locate symbol "exp" referenced by "libpython2.7.so"...
09-27 22:58:06.443 10581-10602/? E/AndroidRuntime: FATAL EXCEPTION: Thread-11063
                                                   Process: org.test.myapp:python, PID: 10581
                                                   java.lang.UnsatisfiedLinkError: dlopen failed: cannot locate symbol "exp" referenced by "libpython2.7.so"...
                                                       at java.lang.Runtime.loadLibrary(Runtime.java:371)
                                                       at java.lang.System.loadLibrary(System.java:988)
                                                       at org.renpy.android.PythonActivity.run(PythonActivity.java:254)
                                                       at java.lang.Thread.run(Thread.java:818)

Bill Janssen

unread,
Sep 28, 2016, 12:44:24 PM9/28/16
to Kivy users support
Looks like the math library "-lm" isn't linked into the Python shared library.

Bill

Jason Boyd

unread,
Sep 28, 2016, 12:48:52 PM9/28/16
to Kivy users support
Ok, how can I fix that? I'm using buildozer android debug to build.

Bill Janssen

unread,
Sep 29, 2016, 4:46:12 PM9/29/16
to Kivy users support
Don't know enough about either buildozer or android to be able to tell you, sorry.

You might try to find the link line in your buildozer build log and post it, though.

Bill
Reply all
Reply to author
Forward
0 new messages