-
Notifications
You must be signed in to change notification settings - Fork 136
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
Fatal signal 11 (SIGSEGV) when importing cartopy #1300
Comments
The build log includes the following wheels you built yourself, so the error is probably in one of them:
This "Debug trace" is simply a disassembly of an Android error reporting function, and doesn't provide any useful information. Please post the full error along with any other relevant logcat messages. |
Thanks for your quick response. |
Hi Malcolm.
I have a question: crash occurs on libc, but searching inside apk I don't
find any libc.so file.
So, from where libc should comes from? is it included in other lib? adding
snapshot of chaquopy libs.
PS: I've updated issue, I don't know if you have time to spend on it.
BR
Yves
Le jeu. 28 nov. 2024 à 14:27, Malcolm Smith ***@***.***> a
écrit :
… The build log includes the following wheels you built yourself, so the
error is probably in one of them:
Processing /home/ytrem/miniconda3/chaquopy-eccodes-14.0.2/server/pypi/dist/eccodes/eccodes-2.33.0-0-py3-none-android_21_arm64_v8a.whl
Processing /home/ytrem/miniconda3/chaquopy-eccodes-14.0.2/server/pypi/dist/cfgrib/cfgrib-0.9.10.4-0-cp310-cp310-android_21_arm64_v8a.whl
Processing /home/ytrem/miniconda3/chaquopy-eccodes-14.0.2/server/pypi/dist/cartopy/cartopy-0.22.0-0-cp310-cp310-android_21_arm64_v8a.whl
Processing /home/ytrem/miniconda3/chaquopy-eccodes-14.0.2/server/pypi/dist/libaec/libaec-1.1.2-0-py3-none-android_21_arm64_v8a.whl
This "Debug trace" is simply a disassembly of an Android error reporting
function, and doesn't provide any useful information. Please post the full
error along with any other relevant logcat messages.
—
Reply to this email directly, view it on GitHub
<#1300 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ATPJC4HKCEQSJ2VDVYMMHFT2C4K4JAVCNFSM6AAAAABSTPGE6GVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKMBWGEZDQNZVGY>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
libc is provided by the device itself. It's involved in reporting the crash, but it's unlikely to be the cause of the problem. This log still doesn't contain any more information about the crash. There should be a native backtrace that looks something like the ones in #1209 (comment). To find it in the logcat, you may need to display all messages rather than just the ones from your own app. |
got it. I'm willing to update github.
Seems due to unreadable libs.
Thx
Yves
Le mer. 4 déc. 2024 à 18:40, Malcolm Smith ***@***.***> a
écrit :
… libc is provided by the device itself. It's involved in reporting the
crash, but it's unlikely to be the cause of the problem.
This log still doesn't contain any more information about the crash. There
should be a native backtrace that looks something like the ones in #1209
(comment)
<#1209 (comment)>.
To find it in the logcat, you may need to display all messages rather than
just the ones from your own app.
—
Reply to this email directly, view it on GitHub
<#1300 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ATPJC4DTQKN256YP2B5NEVD2D45BDAVCNFSM6AAAAABSTPGE6GVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKMJYGEYTSMRQGQ>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Adding full logcat |
Thanks very much. Unfortunately this still doesn't give a clear indication of the cause, except that it involves I don't really understand what you're saying at the top of this issue about Chaquopy 14.0.2 and 16.0.0. But if you built these .whl files using build-wheel from the 14.0.2 tag, then you will have used NDK version 22, with the old libc++ version. The new version is supposed to be backward compatible with the old one, and it works with almost all the existing packages, but we had to rebuild a couple which experienced native crashes (#1171). It's possible one of your packages has a similar issue. To make sure your app uses the old
However, we've fixed lots of bugs since then, so I recommend you try updating your app to Chaquopy 16.0.0, and rebuilding the .whl files with the current version of build-wheel (i.e. the head of the master branch, not the 16.0.0 tag). This produces .whl files with an API level of 24, so your app's |
hi.
Using chaquopy-libcxx==11000 fix the issue.
I already attempt to use chaquopy 16.0.0 but I face to an issue (
<#1287 (comment)>)
The new NDK(ie 27.1) seems involved.
I'll retry with chaquopy 16.0.0.later on.
Yves Trémaré
06 38 32 19 95
Le mer. 4 déc. 2024 à 19:42, Malcolm Smith ***@***.***> a
écrit :
… Thanks very much. Unfortunately this still doesn't give a clear indication
of the cause, except that it involves libc++, which we released a new
version of recently.
The new version is supposed to be backward compatible with the old one,
and it works with almost all the existing packages, but we had to rebuild a
couple which experienced native crashes (#1171
<#1171>). It's possible one of
your packages has a similar issue.
I don't really understand what you're saying at the top of this issue
about Chaquopy 14.0.2 and 16.0.0. If you built these .whl files using
build-wheel from the 14.0.2 tag, then you will have used NDK version 22,
with the old libc++ version. To make sure your app uses the same version at
runtime, you can add install "chaquopy-libcxx==11000" to your
build.gradle file.
However, we've fixed lots of bugs since then, so I recommend you try
updating your app to Chaquopy 16.0.0, and rebuilding the .whl files with
the current version of build-wheel (i.e. the head of the master branch,
*not* the 16.0.0 tag). This produces .whl files with an API level of 24,
so your app's minSdk will need to be 24 or greater.
—
Reply to this email directly, view it on GitHub
<#1300 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ATPJC4CGK2K6Q33KRBZL5FT2D5EJHAVCNFSM6AAAAABSTPGE6GVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKMJYGI2TKMRYGU>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Fixed chaquopy-libcxx==11000. |
App crash with fatal error in libc.
Fork is available at: https://github.com/ytremare/chaquopy-16.0.0
note that chaquopy-16.0.0 is the chaquopy version of chaquopy (github people told me it wasn't possible to have 2 forks of the same repository ) but packages are up to date and the build version is 14.0.2.
Chaquopy version com.chaquo.python:gradle:14.0.2'
Debug trace below
Crash occurs on the following instruction:
import cartopy.feature as cf
import cartopy provides also libc crash
App without any change was working on my previous laptop. I've checked a lot of things but didn't succeed to find what is wrongly set or configured on the laptop. I also copied cartopy from old laptop to the new one, result is the same.
Wheels are correctly generated generated .
My guess is there some mistake at laptop side , but I'm unable to find it.
You'll find also attached build.gradle.log file.
build.gradle-log.txt
The text was updated successfully, but these errors were encountered: