p4a clean_all
p4a clean_allOk, I managed to get all the libraries and headers which I need, but I ran into another problem. I'm porting existing software which previously successfully used the Crystax Python libraries.
My code looks like this:
LOG("About to start Py_Initialize");
Py_Initialize();
LOG("Done Py_Initialise");
It never displays the second LOG statement, but crashes with:
2019-12-19 19:00:44.955 7787-7787/org.mnemosyne I/pybridge: About to start Py_Initialize
2019-12-19 19:00:44.973 7787-7839/org.mnemosyne A/libc: FORTIFY: pthread_mutex_lock called on a destroyed mutex (0x726a14158850)
2019-12-19 19:00:44.974 7787-7839/org.mnemosyne A/libc: Fatal signal 6 (SIGABRT), code -1 (SI_QUEUE) in tid 7839 (RenderThread), pid 7787 (org.mnemosyne)
Any idea what could cause this, and/or how to debug this better?
Full code here: https://github.com/mnemosyne-proj/mnemosyne/blob/android64/mnemosyne/android/app/src/main/cpp/pybridge.c
Thanks!
I don't have any deep insight, but in my experience crashes during Py_Initialize are usually because the python environment isn't set up right so python doesn't find something it needs (I think usually the stdlib.zip). However, I'm sure there could be many other causes. It may be necessary to get gdb working to really look into it.
I haven't checked exactly what you're doing, but is there any
possibility you could start with something essentially equivalent
to the p4a start.c, and try to adjust it to your needs in steps so
that you can see exactly when it eventually stops working?
--
You received this message because you are subscribed to a topic in the Google Groups "Kivy users support" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/kivy-users/z_V5hLHQJ1w/unsubscribe.
To unsubscribe from this group and all its topics, send an email to kivy-users+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/kivy-users/e90fc581-5c8f-44c7-b98e-5fc5e6a37cc3%40googlegroups.com.