Message from discussion
force close on running a python script
Received: by 10.101.29.26 with SMTP id g26mr577444anj.13.1307046466483;
Thu, 02 Jun 2011 13:27:46 -0700 (PDT)
X-BeenThere: android-scripting@googlegroups.com
Received: by 10.150.213.9 with SMTP id l9ls1447543ybg.4.gmail; Thu, 02 Jun
2011 13:27:44 -0700 (PDT)
Received: by 10.236.78.169 with SMTP id g29mr587708yhe.65.1307046464445;
Thu, 02 Jun 2011 13:27:44 -0700 (PDT)
Received: by 10.150.27.1 with SMTP id a1msyba;
Thu, 2 Jun 2011 13:22:14 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.68.4.33 with SMTP id h1mr82981pbh.62.1307046134017; Thu, 02
Jun 2011 13:22:14 -0700 (PDT)
Received: by l2g2000prg.googlegroups.com with HTTP; Thu, 2 Jun 2011 13:22:13
-0700 (PDT)
Date: Thu, 2 Jun 2011 13:22:13 -0700 (PDT)
In-Reply-To: <4DDA6BD8.1000509@gmail.com>
References: <7ebb4a8b-3aa7-4904-8f13-bfc9e33c13ec@f31g2000pri.googlegroups.com>
<4DDA6BD8.1000509@gmail.com>
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.13)
Gecko/20101206 Ubuntu/10.04 (lucid) Firefox/3.6.13,gzip(gfe)
Message-ID: <36f793b8-8b8c-49a2-9bb4-5428fd06b185@l2g2000prg.googlegroups.com>
Subject: Re: force close on running a python script
From: Ellen Zhang <ellen.zh...@deltamobile.com>
To: android-scripting <android-scripting@googlegroups.com>
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
I have exactly the same issue on TI PandaBoard with Android 2.2
Let me describe my problem with more details:
1. sl4a_r4.apk was installed by adb install successfully
2. PythonForAndroid_r4.apk was installed by adb install successfully
3. On PandaBoard, if you start the sl4a and get into Python
interpreter console, python commands work just fine.
4. If you start the sl4a and create a new python script, then "save &
run" from the script, it works fine. (At this point, I would say sl4a
probably is running just fine)
5. The problem is here: if you try to run an existing script by
clicking it from the file list, then sl4a crashes. Logcat is attached
below. This issue happens with every script, Python, Lua or Perl
(these are the only interpreters I installed).
By looking at the logcat message, it seems when sl4a fails when trying
to create that gray view for user to choose how to run the script.
Some background .png file could not be found when creating the gray
stripe view. But by checking the android file system, the /system/
framework/framewor-res.apk does have that .png file compiled in. I
kinda doubt maybe the problem is at Android file system side.
Please help to solve. Any input is greatly appreciated!
Regards,
Ellen
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D
W/ResourceType( 1748): Failure getting entry for 0x7f020023 (t=3D1 e=3D35)
in package 0: 0xffffffb5
D/AndroidRuntime( 1748): Shutting down VM
W/dalvikvm( 1748): threadid=3D1: thread exiting with uncaught exception
(group=3D0x4001d8b0)
--------- beginning of /dev/log/system
E/AndroidRuntime( 1748): FATAL EXCEPTION: main
E/AndroidRuntime( 1748): android.view.InflateException: Binary XML
file line #6: Error inflating class <unknown>
E/AndroidRuntime( 1748): at
android.view.LayoutInflater.createView(LayoutInflater.java:513)
E/AndroidRuntime( 1748): at
com.android.internal.policy.impl.PhoneLayoutInflater.onCreateView(PhoneLayo=
utInfla
ter.java:56)
E/AndroidRuntime( 1748): at
android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:563)
E/AndroidRuntime( 1748): at
android.view.LayoutInflater.rInflate(LayoutInflater.java:618)
E/AndroidRuntime( 1748): at
android.view.LayoutInflater.inflate(LayoutInflater.java:407)
E/AndroidRuntime( 1748): at
android.view.LayoutInflater.inflate(LayoutInflater.java:320)
E/AndroidRuntime( 1748): at
android.view.LayoutInflater.inflate(LayoutInflater.java:276)
E/AndroidRuntime( 1748): at
net.londatiga.android.QuickAction.<init>(QuickAction.java:59)
E/AndroidRuntime( 1748): at
com.googlecode.android_scripting.activity.ScriptManager.onListItemClick(Scr=
iptMana
ger.java:374)
E/AndroidRuntime( 1748): at android.app.ListActivity
$2.onItemClick(ListActivity.java:321)
E/AndroidRuntime( 1748): at
android.widget.AdapterView.performItemClick(AdapterView.java:284)
E/AndroidRuntime( 1748): at
android.widget.ListView.performItemClick(ListView.java:3385)
E/AndroidRuntime( 1748): at android.widget.AbsListView
$PerformClick.run(AbsListView.java:1696)
E/AndroidRuntime( 1748): at
android.os.Handler.handleCallback(Handler.java:587)
E/AndroidRuntime( 1748): at
android.os.Handler.dispatchMessage(Handler.java:92)
E/AndroidRuntime( 1748): at android.os.Looper.loop(Looper.java:
123)
E/AndroidRuntime( 1748): at
android.app.ActivityThread.main(ActivityThread.java:4627)
E/AndroidRuntime( 1748): at
java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime( 1748): at
java.lang.reflect.Method.invoke(Method.java:521)
E/AndroidRuntime( 1748): at com.android.internal.os.ZygoteInit
$MethodAndArgsCaller.run(ZygoteInit.java:858)
E/AndroidRuntime( 1748): at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
E/AndroidRuntime( 1748): at
dalvik.system.NativeStart.main(Native Method)
E/AndroidRuntime( 1748): Caused by:
java.lang.reflect.InvocationTargetException
E/AndroidRuntime( 1748): at
android.widget.FrameLayout.<init>(FrameLayout.java:79)
E/AndroidRuntime( 1748): at
java.lang.reflect.Constructor.constructNative(Native Method)
E/AndroidRuntime( 1748): at
java.lang.reflect.Constructor.newInstance(Constructor.java:446)
E/AndroidRuntime( 1748): at
android.view.LayoutInflater.createView(LayoutInflater.java:500)
E/AndroidRuntime( 1748): ... 21 more
E/AndroidRuntime( 1748): Caused by: android.content.res.Resources
$NotFoundException: File res/drawable-hdpi/editbox_d
ropdown_background_dark.9.png from drawable resource ID #0x7f020023
E/AndroidRuntime( 1748): at
android.content.res.Resources.loadDrawable(Resources.java:1714)
E/AndroidRuntime( 1748): at
android.content.res.TypedArray.getDrawable(TypedArray.java:601)
E/AndroidRuntime( 1748): at android.view.View.<init>(View.java:
1885)
E/AndroidRuntime( 1748): at
android.view.ViewGroup.<init>(ViewGroup.java:291)
E/AndroidRuntime( 1748): at
android.widget.FrameLayout.<init>(FrameLayout.java:83)
E/AndroidRuntime( 1748): ... 25 more
E/AndroidRuntime( 1748): Caused by: java.io.FileNotFoundException: res/
drawable-hdpi/editbox_dropdown_background_dark
.9.png
E/AndroidRuntime( 1748): at
android.content.res.AssetManager.openNonAssetNative(Native Method)
E/AndroidRuntime( 1748): at
android.content.res.AssetManager.openNonAsset(AssetManager.java:405)
E/AndroidRuntime( 1748): at
android.content.res.Resources.loadDrawable(Resources.java:1706)
E/AndroidRuntime( 1748): ... 29 more
W/ActivityManager( 1375): Force finishing activity
com.googlecode.android_scripting/.activity.ScriptManager
I/SurfaceFlinger( 1375):
I/SurfaceFlinger( 1375): SurfaceFlinger::createSurface() : layer-
>mIdentity=3D43, LayerName=3D Sorry!
I/SurfaceFlinger( 1375): SurfaceFlinger::createSurface() : layer-
>clientIndex=3D2, surfaceHandle->mToken=3D0x2
W/ActivityManager( 1375): Activity pause timeout for
HistoryRecord{46356df0 com.googlecode.android_scripting/.activit
y.ScriptManager}
I/SurfaceFlinger( 1375):
I/SurfaceFlinger( 1375): SurfaceFlinger::createSurface() : layer-
>mIdentity=3D44, LayerName=3D com.android.launcher/com.a
ndroid.launcher2.Launcher
On May 23, 9:14=A0am, Manuel Naranjo <naranjo.man...@gmail.com> wrote:
> Please provide with adb logcat output when you run PY4A