-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
dlopen failed: cannot locate symbol "_ZNSt12length_errorD1Ev" while loading matplotlib/_path.so on Android 12 #2675
Comments
Hi @Epicwow ! Can you please post the full runtime log? |
Hi @misl6 Apologies for the Late Reply. |
Also post kivy log of App [/data/user/0/org.test.myapp/files/app/.kivy/logs/kivy_22-09-26_0.txt] |
Thank you for the runtime logs! Can you delete your |
Hi @misl6 |
Did you have the chance to test it on another device? Can you share the APK? |
Hello, I have a similar issue, Android 11 on a OnePlus 8T:
I also deleted the .buildozer directory in my app's directory, with no change. |
FWIW, I switched to tag v2022.07.20 and got a bit different error:
|
Google Drive or something similar is fine :) |
Wait, I may have an idea. Will ping you back soon. |
@gorgonaut04 @Epicwow |
Dear I have the same issue. I have built the testapp mentioned above. There is a readme.md how to build the docker containers and how to build the app. Do not forget to clear cache folders in you home dir when rebuilding. There are two apks in the bin folder: One build is using ubuntu 20.04 as base, the other ubuntu 22.04. |
Thank you for the APK! Has been super-helpful. How
How it should look like:
Will setup a test environ with an older version of the NDK + Ubuntu. Did you tried to use NDK 25? ( |
Dear I have build the testapp with a buildozer based on current master buildozer (b8575fd, but using python-for-android develop branch. (fork: 0c6752b Still the same problem. apk: https://documents.tymeli.be/s/27zR6Dr7MoQ5E5D hope this helps you forward. |
same issue here |
I wonder if this error is equivalent to trying to run matplotlib>3.1.3 on PC/mac without png module installed? Might be why it works with <= 3.1.3 on android, but beyond that has issues (where the lack of png/"_png" causes issues on PC/mac). If someone wants to experiment you could try adding "png" to the list of modules in buildozer.spec. |
I tried with |
In previous recipe (matplotlib==3.1.3) I changed the line 128 in recipy.py file for .need_stl_shared = True to solve this issue (p4a version 2020.03.30) |
in which file? |
I did that 2 year ago....so I'm not 100% sure |
I see we were seeing 2 different branches, I was using develop, in there init.py is smaller than 108 lines, anyway which is the strategy? Buildozer for example downloads these files, including recipes, so how to "patch" it?
Does it work like this? |
if I correctly remember. I did a first buildozer build. |
I wasn't able to use branch v2020.06.02, tells me something about compatibility:
I used develop, to avoid cache issue I removed |
can you used matplotib 3.5.2 like in matplotlib recipe. |
also for ft2font.so issue, have you install "apt install python-openssl" in your environnement. |
I got again same issue on matplotlib/_path.so
|
OMG it's seem very complicated to make it work. I stopped 2 years making APK because it was hard for me to keep some app up to date with all android version and p4a changes. If you find something, let me know. FYI this was my reported issue 2 years ago with similar problem #2059. |
I tried to build https://github.com/mp-007/kivy_matplotlib_widget/tree/main/example_basic but I get the same error as stated here, I also tried @mp-007 's workaround with a clean build, but it throws the same error. +1 |
Hi @KritikaVersha, all After a lot of searching we (me and @robgar2001) were able to build the testapp (above) and another app using matplotlib. Both are running as they should. However, the build needed to be executed on native debian bullseye using buildozer 1.5.0 and python-for-android v2023.01.28. We will try to figure out the differences between debian and ubuntu |
The platform used to cross-compile the package should not change the result. Do you have a full log to share with me? |
Dear We have been investigating the issue and believe we have found the cause. Hence indeed, there is host library leakage into the build chain. I have not dug any deeper into why ccache does this, nor how to solve it. |
Hi all, These are the build logs: native_build_(works).log The docker_build log file was a build from scratch, all cache was removed beforehand (all .buildozer folders in both directories). By searching in the log files for "environment matplotlib recipe" all the flags of the matplotlib recipe are found. It was noticed by us that ccache was not present in the working build on my native system. After removing the ccache package from the dockerfile the docker build also worked fine. Don't hesitate to ask for further information. With kind regards, robgar2001 |
Thanks, I had the same issue on the following system and it is working fine after uninstalling ccache |
And if I'm not using dockerfile, but I have the same error. What can I do? |
But Uninstalling cache gives me an error when I build the app |
As |
This issue has been automatically closed because there has been no response to our request for more information from the original author. With only the information that is currently in the issue, we don't have the means to take action. Please reach out if you have or find the answers we need so that we can investigate further. |
Hi,
I have writing an test app with matplotlib. but it don't work on my Android phone (Android 12)
Below is the test app
Adb logcat show failed reason:
buildozer.spec
buildozer Logs with command [buildozer android debug deploy ]
buildozer.log
The text was updated successfully, but these errors were encountered: