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

E/linker: site-packages/android/_android.so too small to be an ELF executable #768

Closed
Fak3 opened this issue Jun 8, 2016 · 5 comments
Closed

Comments

@Fak3
Copy link
Contributor

Fak3 commented Jun 8, 2016

Hi. I built and installed app on my adndroid phone. It seems to work fine, but i noticed an error in the log running

$ adb logcat *:W
E/linker  (13751): load_library(linker.cpp:771): too small to be an ELF executable: /data/data/org.spbelect.myy/files/lib/python2.7/site-packages/android/_android.so

I built an app with these commands:

p4a create --dist_name=testsdl2 --bootstrap=sdl2 --requirements=sdl2,python2,kivy,pil
p4a apk --private /home/z/pproj/mykivy/ --package=org.spbelect.myy --name="myy" --version=0.8 --dist-name testsdl2
@inclement
Copy link
Member

inclement commented Jun 8, 2016

Does anything seem to actually go wrong? I mean, as in the app not working.

@Fak3
Copy link
Contributor Author

Fak3 commented Jun 10, 2016

@inclement: my current problem is that my kivy app does not display numeric keyboard with TextInput of type 'number'. The keyboard is always standard alphabetic. But when i use Kivy Launcher app - it correctly displays numeric keyboard. The app itself is trivial:

# -*- coding: utf-8 -*-

import kivy
kivy.require('1.0.6')

from kivy.app import App
from kivy.uix.boxlayout import BoxLayout

from kivy.lang import Builder

Builder.load_string('''
<MyWin>:
    TextInput:
        height: 30
        input_type: 'number'
        multiline: False
''')


class MyWin(BoxLayout):
    pass


class MyApp(App):
    def build(self):
        return MyWin()

if __name__ == '__main__':
    MyApp().run()

I thought the missing _android.so may affect this, but no idea how to fix that.

Full adb logcat:

W/ResourceType(  781): No known package when getting name for resource number 0x9c000202
W/ResourceType(  781): No known package when getting name for resource number 0x9c000202
W/asset   (  566): AssetManager-->addDefaultAssets CIP path not exsit!
W/ActivityManager(  566): [LTK] pid, app, 3d=781, 9576448, 120680448
W/ActivityManager(  566): Unable to write /sys/module/mlog/parameters/do_mlog
E/Trace   ( 1342): error opening trace file: No such file or directory (2)
W/asset   ( 1342): AssetManager-->addDefaultAssets CIP path not exsit!
E/linker  ( 1342): load_library(linker.cpp:759): library "libmaliinstr.so" not found
E/        ( 1342): appName=org.spbelect.myy, acAppName=com.android.cts.openglperf
E/        ( 1342): 0
E/        ( 1342): appName=org.spbelect.myy, acAppName=com.android.browser
E/        ( 1342): 0
W/ActivityManager(  566): Unable to write /sys/module/mlog/parameters/do_mlog
W/hwcomposer(  129): [COMP] [0x41e2ae28][id:-33] Buffer is reallocated, handle=0x421cbec8, va=0x42a68000, mva=0xc80000
W/hwcomposer(  129): [COMP] [0x41e2ae28][id:-33] Buffer is reallocated, handle=0x417929e0, va=0x41793000, mva=0x900000
W/hwcomposer(  129): [COMP] [0x41e2ae28][id:-33] Buffer is reallocated, handle=0x421c3420, va=0x423a4000, mva=0xac0000
E/linker  ( 1342): load_library(linker.cpp:759): library "/data/data/org.spbelect.myy/lib/libAGifEncoder.so" not found
E/linker  ( 1342): load_library(linker.cpp:771): too small to be an ELF executable: /data/data/org.spbelect.myy/files/lib/python2.7/site-packages/android/_android.so
E/        ( 1342): appName=org.spbelect.myy, acAppName=com.android.cts.openglperf
E/        ( 1342): 0
E/        ( 1342): appName=org.spbelect.myy, acAppName=com.android.browser
E/        ( 1342): 0
W/ctxmgr  (  851): [AclManager]checkPermissionTypeStatus: no inject permission for { uid=10026, packageName=com.google.android.gms }. Returned permission was: PACKAGE_NOT_WHITELISTED for context name=POWER_CONNECTION, account=account#-517948760#
W/ctxmgr  (  851): [AclManager]checkPermissionTypeStatus: no inject permission for { uid=10026, packageName=com.google.android.gms }. Returned permission was: PACKAGE_NOT_WHITELISTED for context name=POWER_CONNECTION, account=account#-517948760#
E/ctxmgr  (  851): [PowerConnectionProducer]Could not write powerInfo=Plug state: 2 BatteryLevel: 0.84, status=Status{statusCode=unknown status code: 7503, resolution=null}


###### this is output when i clicked textinput, that should be numeric
W/AmanattoDataUpdater(  748): Amanatto data needs to be removed but session is null. The data will be removed by removing all personalized dictionary files.
W/asset   (  566): AssetManager-->addDefaultAssets CIP path not exsit!

@Fak3
Copy link
Contributor Author

Fak3 commented Jun 10, 2016

Update: I created pygame distribution and compiled app with it - and numeric keyboard showed up! So this is sdl2-only issue.

Pygame distro creation command I used:

python-for-android create --dist_name=testpygame --bootstrap=pygame --requirements=pygame,python2,kivy,pil

@Fak3
Copy link
Contributor Author

Fak3 commented Jun 10, 2016

There are my two distros:

Distributions currently installed are:
        testsdl2: includes recipes (hostpython2, jpeg, png, sdl2_image, sdl2_mixer, sdl2_ttf, python2, pil, sdl2, six, android, pyjnius, kivy), built for archs (armeabi)
        testpygame: includes recipes (hostpython2, jpeg, png, pygame_bootstrap_components, python2, pil, sdl, six, pygame, pyjnius, android, kivy), built for archs (armeabi)

@inclement
Copy link
Member

I'm not sure if the original reported problem is a bug or just relating to the 0-size .so files due to our packaging their symbols in a single libpymodules.so. However, the numeric keyboard problem is a definite bug. For these reasons, I'm going to close this (but it can be reopened if the .so size thing appears to be an issue) and make another issue for the keyboard.

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

No branches or pull requests

2 participants