Skip to content
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

Core dump on loading python3.7 when using futures in requirements #1945

Closed
akshayaurora opened this issue Jul 30, 2019 · 3 comments
Closed

Comments

@akshayaurora
Copy link
Member

akshayaurora commented Jul 30, 2019

Versions

  • Python:3.7
  • OS:
  • Kivy:
  • Cython:

Core dump on loading python3.7 when using futures in requirements

I was in the process of moving my app from a old py2 build to the python3 one in p4a master when the app would simply crash with a core dump on android.

buildozer.spec

Just add futures as a requirement with python3

Command: buildozer android debug deploy run logcat

Logs

http://paste.opensuse.org/view//88462490

on some successive failures I used the get the following line at the end of the crash dump

#01 pc 001c8db8  /data/app/org.pydatadelhi.conf2019-3LJ2kxGuga_dks0fo6JWGw==/lib/arm/libpython3.7m.so (offset 0x84000)
07-24 16:10:15.017 13895 13916 E LB      : fail to open file: No such file or directory

Futures is of-course a lib that is in standard library. Main issue is not with future itself but with the fact that we for what ever reason, don't give a informative output, there is just a core dump.

@ghost
Copy link

ghost commented Jul 31, 2019

My intuitive reaction to this is that the best solution would be if the people writing the futures library changed it such that it won't crash a py3 interpreter but rather make it spit out an ImportError. (which likely means making a bug on the official python bugtracker about this might be helpful)

Because wouldn't this possibly happen on desktop as well with this crash? It just doesn't seem to me like p4a is a good general place to solve this, as much as this sucks porting python 2 stuff to python 3 stuff

@inclement
Copy link
Member

Does this happen the same way on the desktop? I don't understand what's the actual reason for the crash, could it be that we are setting up the pythonpath in such a way that it overrides a builtin or something (whereas it wouldn't normally)?

@akshayaurora
Copy link
Member Author

akshayaurora commented Aug 1, 2019

Just checked on desktop, python3 -m pip install futures does not lead to a error.

There are 2 issues here

  1. pip installs futures on python3 ....it shouldn't? Maybe a upstream bug. You have been able to install/upgrade standard modules with pip, so futures is no different?
  2. This installed futures lib causes Python3 to crash on p4a. Does not result in a crash on desktops.
  • Further investigation needed for this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants