joaoventura / pybridge

Reuse Python code in native Android applications
215 stars 56 forks source link

SIGSEGV #20

Closed gmli closed 4 years ago

gmli commented 6 years ago

Hi,

has anyone tested it recently ?

It used to send stderr to logcat correctly, permitting us to debug an app easily, but it's not the case anymore. If there is a problem in my Python code (improper code, exception raised), now the call terminates with this error :

I/pybridge: Initializing the Python interpreter I/pybridge: Call into Python interpreter A/libc: Fatal signal 11 (SIGSEGV), code 1, fault addr 0x4 in tid 9120 (.jventura.pyapp), pid 9120 (.jventura.pyapp) Disconnected from the target VM, address: 'localhost:8601', transport: 'socket'

With no log of what went wrong.

I use Android Studio 3.1.4 (linux) and crystax-ndk-10.3.2 (but this version of crystax used to work).

Any idea ?

Regards.

joaoventura commented 6 years ago

I have an application in production which has not seen any problems, but it was compiled with a older version of the Android SDK.

Has anyone else have a similar problem?

gmli commented 6 years ago

This week-end I've tested with Android 3.1.2 on Ubuntu 18.04 and the problem is the same.

joaoventura commented 4 years ago

This project uses a Python library compiled for armv7, I don't know if it runs on the Android emulator..