I made the helloworld project of renderscript, that is, the example at
http://developer.android.com/
I know that the renderscript has hardware dependency.
So, I run the helloworld programs in honeycomb devices, not an
emulator.
but, it returned unexpected errors.
I considered it the reason not to compile RenderScript bytecode to
target machine code related to write-permission of cache directiory.
I changed the permission of the directory, "/data/data/
com.example.renderscript.helloworld/cache", to 777 (a+rwx)
However, the problem was not changed.
If you can solve it or know a hint,
please let me know it.
The followings are logs of unexpected running of the rendscript
helloworld program.
{{{
01-05 03:03:56.290: DEBUG/AndroidRuntime(11617): >>>>>> AndroidRuntime
START com.android.internal.os.RuntimeInit <<<<<<
01-05 03:03:56.290: DEBUG/AndroidRuntime(11617): CheckJNI is ON
01-05 03:03:56.410: DEBUG/AndroidRuntime(11617): Calling main entry
com.android.commands.pm.Pm
01-05 03:03:56.410: DEBUG/AndroidRuntime(11617): Shutting down VM
01-05 03:03:56.420: DEBUG/dalvikvm(11617): GC_CONCURRENT freed 112K,
87% free 335K/2560K, paused 1ms+1ms
01-05 03:03:56.420: DEBUG/jdwp(11617): Got wake-up signal, bailing out
of select
01-05 03:03:56.420: DEBUG/dalvikvm(11617): Debugger has detached;
object registry had 1 entries
01-05 03:03:56.470: DEBUG/dalvikvm(6140): GC_EXPLICIT freed 574K, 10%
free 6962K/7687K, paused 3ms+2ms
01-05 03:03:56.550: DEBUG/AndroidRuntime(11627): >>>>>> AndroidRuntime
START com.android.internal.os.RuntimeInit <<<<<<
01-05 03:03:56.550: DEBUG/AndroidRuntime(11627): CheckJNI is ON
01-05 03:03:56.670: DEBUG/AndroidRuntime(11627): Calling main entry
com.android.commands.am.Am
01-05 03:03:56.670: DEBUG/SurfaceFlinger(111): screenshot: sw=225,
sh=135, minZ=0, maxZ=21020
01-05 03:03:56.670: INFO/ActivityManager(111): Starting: Intent
{ act=android.intent.action.MAIN
cat=[android.intent.category.LAUNCHER] flg=0x10000000
cmp=com.example.renderscript.helloworld/.HelloWorld } from pid 11627
01-05 03:03:56.680: DEBUG/SurfaceFlinger(111): screenshot: result = OK
01-05 03:03:56.700: INFO/ActivityManager(111): Start proc
com.example.renderscript.helloworld for activity
com.example.renderscript.helloworld/.HelloWorld: pid=11635 uid=10058
gids={}
01-05 03:03:56.740: DEBUG/dalvikvm(11635): Debugger has detached;
object registry had 1 entries
01-05 03:03:56.750: DEBUG/AndroidRuntime(11627): Shutting down VM
01-05 03:03:56.750: INFO/AndroidRuntime(11627): NOTE: attach of thread
'Binder Thread #3' failed
01-05 03:03:56.760: VERBOSE/RenderScript(11635): rsContextCreateGL
0x1375b0
01-05 03:03:56.760: VERBOSE/RenderScript(11635): RS Launching
thread(s), reported CPU count 2
01-05 03:03:56.760: VERBOSE/RenderScript(11635): initGLThread start
0x1375d0
01-05 03:03:56.760: VERBOSE/RenderScript(11635): 0x1375d0 initEGL
start
01-05 03:03:56.760: DEBUG/libEGL(11635): loaded /system/lib/egl/
libGLES_android.so
01-05 03:03:56.770: DEBUG/libEGL(11635): loaded /system/lib/egl/
libEGL_tegra.so
01-05 03:03:56.770: DEBUG/dalvikvm(11627): GC_CONCURRENT freed 113K,
86% free 359K/2560K, paused 1ms+1ms
01-05 03:03:56.770: DEBUG/jdwp(11627): Got wake-up signal, bailing out
of select
01-05 03:03:56.770: DEBUG/dalvikvm(11627): Debugger has detached;
object registry had 1 entries
01-05 03:03:56.790: DEBUG/libEGL(11635): loaded /system/lib/egl/
libGLESv1_CM_tegra.so
01-05 03:03:56.800: DEBUG/libEGL(11635): loaded /system/lib/egl/
libGLESv2_tegra.so
01-05 03:03:56.830: VERBOSE/RenderScript(11635): initGLThread end
0x1375d0
01-05 03:03:56.830: VERBOSE/RenderScript(11635): rsContextCreateGL ret
0x1375d0
01-05 03:03:56.830: VERBOSE/ScriptC(11635): Create script for resource
= com.example.renderscript.helloworld:raw/helloworld
01-05 03:03:56.830: INFO/bcc(11635): LIBBCC BUILD: Feb 6 2011
10:43:55
01-05 03:03:56.850: DEBUG/StopWatch(11635): StopWatch calcFileSHA1
time (us): 14472
01-05 03:03:56.850: VERBOSE/RenderScript(11635): Cache file for
'com.example.renderscript.helloworld:raw/helloworld' '.oBCC' is '/data/
data/com.example.renderscript.helloworld/cache/
@com.example.renderscript.helloworld:[email protected]'
01-05 03:03:56.850: WARN/bcc(11635): Unable to open /data/data/
com.example.renderscript.helloworld/cache/
@com.example.renderscript.helloworld:[email protected] in read
mode. (reason: No such file or directory)
01-05 03:03:56.850: ERROR/bcc(11635): Unable to readBC,
bitcode=0x173dc0, size=1084
01-05 03:03:56.850: DEBUG/StopWatch(11635): StopWatch bcc:
PrepareExecutable time (us): 1490
01-05 03:03:56.850: ERROR/RenderScript(11635): bcc: FAILS to prepare
executable
01-05 03:03:56.850: DEBUG/RenderScript(11635): >>>> ~ScriptC
bccDisposeScript(0x174310)
01-05 03:03:56.850: ERROR/RenderScript(11635): rsAssert failed: !
mUserRefCount, in frameworks/base/libs/rs/rsObjectBase.cpp at 63
01-05 03:03:56.850: DEBUG/AndroidRuntime(11635): Shutting down VM
01-05 03:03:56.850: WARN/dalvikvm(11635): threadid=1: thread exiting
with uncaught exception (group=0x4029f760)
01-05 03:03:56.850: ERROR/AndroidRuntime(11635): FATAL EXCEPTION: main
01-05 03:03:56.850: ERROR/AndroidRuntime(11635):
java.lang.RuntimeException: Unable to start activity
ComponentInfo{com.example.renderscript.helloworld/
com.example.renderscript.helloworld.HelloWorld}:
android.renderscript.RSRuntimeException: Loading of ScriptC script
failed.
01-05 03:03:56.850: ERROR/AndroidRuntime(11635): at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:
1736)
01-05 03:03:56.850: ERROR/AndroidRuntime(11635): at
android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:
1752)
01-05 03:03:56.850: ERROR/AndroidRuntime(11635): at
android.app.ActivityThread.access$1500(ActivityThread.java:123)
01-05 03:03:56.850: ERROR/AndroidRuntime(11635): at
android.app.ActivityThread$H.handleMessage(ActivityThread.java:993)
01-05 03:03:56.850: ERROR/AndroidRuntime(11635): at
android.os.Handler.dispatchMessage(Handler.java:99)
01-05 03:03:56.850: ERROR/AndroidRuntime(11635): at
android.os.Looper.loop(Looper.java:126)
01-05 03:03:56.850: ERROR/AndroidRuntime(11635): at
android.app.ActivityThread.main(ActivityThread.java:3997)
01-05 03:03:56.850: ERROR/AndroidRuntime(11635): at
java.lang.reflect.Method.invokeNative(Native Method)
01-05 03:03:56.850: ERROR/AndroidRuntime(11635): at
java.lang.reflect.Method.invoke(Method.java:491)
01-05 03:03:56.850: ERROR/AndroidRuntime(11635): at
com.android.internal.os.ZygoteInit
$MethodAndArgsCaller.run(ZygoteInit.java:841)
01-05 03:03:56.850: ERROR/AndroidRuntime(11635): at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:599)
01-05 03:03:56.850: ERROR/AndroidRuntime(11635): at
dalvik.system.NativeStart.main(Native Method)
01-05 03:03:56.850: ERROR/AndroidRuntime(11635): Caused by:
android.renderscript.RSRuntimeException: Loading of ScriptC script
failed.
01-05 03:03:56.850: ERROR/AndroidRuntime(11635): at
android.renderscript.ScriptC.<init>(ScriptC.java:60)
01-05 03:03:56.850: ERROR/AndroidRuntime(11635): at
com.example.renderscript.helloworld.ScriptC_helloworld.<init>(ScriptC_helloworld.java:
32)
01-05 03:03:56.850: ERROR/AndroidRuntime(11635): at
com.example.renderscript.helloworld.HelloWorldRS.initRS(HelloWorldRS.java:
46)
01-05 03:03:56.850: ERROR/AndroidRuntime(11635): at
com.example.renderscript.helloworld.HelloWorldRS.init(HelloWorldRS.java:
37)
01-05 03:03:56.850: ERROR/AndroidRuntime(11635): at
com.example.renderscript.helloworld.HelloWorldView.ensureRenderScript(HelloWorldView.java:
27)
01-05 03:03:56.850: ERROR/AndroidRuntime(11635): at
com.example.renderscript.helloworld.HelloWorldView.<init>(HelloWorldView.java:
16)
01-05 03:03:56.850: ERROR/AndroidRuntime(11635): at
com.example.renderscript.helloworld.HelloWorld.onCreate(HelloWorld.java:
17)
01-05 03:03:56.850: ERROR/AndroidRuntime(11635): at
android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:
1048)
01-05 03:03:56.850: ERROR/AndroidRuntime(11635): at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:
1700)
01-05 03:03:56.850: ERROR/AndroidRuntime(11635): ... 11 more
01-05 03:03:56.850: WARN/ActivityManager(111): Force finishing
activity com.example.renderscript.helloworld/.HelloWorld
01-05 03:03:56.870: DEBUG/SurfaceFlinger(111): screenshot: sw=225,
sh=135, minZ=0, maxZ=21025
01-05 03:03:56.880: DEBUG/SurfaceFlinger(111): screenshot: result = OK
01-05 03:03:57.390: WARN/ActivityManager(111): Activity pause timeout
for ActivityRecord{40ac9778
com.example.renderscript.helloworld/.HelloWorld}
01-05 03:03:57.440: INFO/ActivityManager(111): No longer want
com.android.camera (pid 8077): hidden #16
01-05 03:04:05.060: DEBUG/dalvikvm(4564): GC_EXPLICIT freed 256K, 10%
free 6293K/6983K, paused 6ms+2ms
01-05 03:04:07.440: WARN/ActivityManager(111): Activity destroy
timeout for ActivityRecord{40ac9778
com.example.renderscript.helloworld/.HelloWorld}
01-05 03:04:34.560: DEBUG/BatteryService(111): level:43 scale:100
status:2 health:2 present:true voltage: 3951 temperature: 310
technology: Li-ion AC powered:true USB powered:false icon:17302697
invalid charger:0
01-05 03:04:34.560: DEBUG/WifiService(111): ACTION_BATTERY_CHANGED
pluggedType: 1
01-05 03:04:34.560: DEBUG/PowerUI(175): closing low battery warning:
level=43
01-05 03:04:34.590: DEBUG/dalvikvm(242): GC_EXPLICIT freed 132K, 7%
free 6632K/7111K, paused 2ms+2ms
01-05 03:05:02.260: INFO/Process(11635): Sending signal. PID: 11635
SIG: 9
01-05 03:05:02.270: WARN/InputManagerService(111): Window already
focused, ignoring focus gain of:
com.android.internal.view.IInputMethodClient$Stub$Proxy@41dde8e0
01-05 03:05:02.280: INFO/ActivityManager(111): Process
com.example.renderscript.helloworld (pid 11635) has died.
01-05 03:05:02.320: DEBUG/dalvikvm(205): GC_EXPLICIT freed 42K, 44%
free 11030K/19463K, paused 3ms+4ms
01-05 03:05:08.170: DEBUG/GTalkService(242):
[com.google.android.gsf.gtalkservice.GTalkConnection@4093cef0]
connect: [email protected], state=CONNECTING
01-05 03:05:08.210: DEBUG/dalvikvm(242): GC_EXPLICIT freed 15K, 7%
free 6623K/7111K, paused 6ms+2ms
01-05 03:05:08.260: DEBUG/GTalkService/c(242):
[com.google.android.gsf.gtalkservice.GTalkConnection@4093cef0]
doConnect: making main connection for [email protected]
01-05 03:05:08.260: DEBUG/Smack(242):
[org.jivesoftware.smack.SSLXMPPConnection@40958390] create socket
connection(mtalk.google.com, 5228)
01-05 03:05:09.380: WARN/GTalkService(242):
[com.google.android.gsf.gtalkservice.GTalkConnection@4093cef0]
doConnect: caught XMPPError connecting to mtalk.google.com:5228.:
(502)
01-05 03:05:09.380: WARN/GTalkService(242): -- caused by:
javax.net.ssl.SSLHandshakeException:
com.android.org.bouncycastle.jce.exception.ExtCertPathValidatorException:
Could not validate certificate: current time: Mon Jan 05 03:05:09 GMT
+00:00 2009, validation time: Mon Jun 08 20:43:27 GMT+00:00 2009
01-05 03:05:09.380: DEBUG/GTalkService(242):
[com.google.android.gsf.gtalkservice.GTalkConnection@4093cef0]
handleDoConnectError for [email protected], error=2, xmppError=null
01-05 03:05:09.380: DEBUG/GTalkService(242): [ReonnectMgr] ### report
Inet condition: status=false, networkType=1
01-05 03:05:09.380: ERROR/GTalkService(242): ???
addConnectionClosedEvent: mConnectionUptime=0
01-05 03:05:09.380: DEBUG/ConnectivityService(111):
reportNetworkCondition(1, 0)
01-05 03:05:09.380: DEBUG/ConnectivityService(111): Inet connectivity
change, net=1, condition=0,mActiveDefaultNetwork=1
01-05 03:05:09.380: DEBUG/ConnectivityService(111): starting a change
hold
01-05 03:05:12.380: DEBUG/ConnectivityService(111): Inet hold end,
net=1, condition =0, published condition =0
01-05 03:05:12.380: DEBUG/ConnectivityService(111): no change in
condition - aborting
01-05 03:05:13.290: DEBUG/dalvikvm(845): GC_EXPLICIT freed 23K, 7%
free 6675K/7175K, paused 2ms+2ms
01-05 03:05:14.810: INFO/power(111): *** set_screen_state 0
01-05 03:05:14.820: DEBUG/Sensors(111): ====== set_sensor_onoff 0
01-05 03:05:14.820: DEBUG/SurfaceFlinger(111): screenshot: sw=225,
sh=135, minZ=0, maxZ=21020
01-05 03:05:14.840: DEBUG/SurfaceFlinger(111): screenshot: result = OK
01-05 03:05:14.840: DEBUG/WifiService(111): ACTION_SCREEN_OFF
01-05 03:05:14.850: DEBUG/SurfaceFlinger(111): About to give-up
screen, flinger = 0x136368
01-05 03:05:14.890: DEBUG/dalvikvm(205): GC_EXPLICIT freed 6K, 44%
free 11031K/19463K, paused 2ms+4ms
01-05 03:05:14.900: DEBUG/dalvikvm(111): GC_FOR_ALLOC freed 1906K, 61%
free 17909K/45063K, paused 54ms
01-05 03:05:15.000: DEBUG/UnlockScreen(111): landscape mode
01-05 03:05:15.000: DEBUG/dalvikvm(11458): GC_EXPLICIT freed 871K, 18%
free 9206K/11143K, paused 3ms+3ms
01-05 03:05:15.070: DEBUG/dalvikvm(111): GC_FOR_ALLOC freed 229K, 57%
free 19727K/45063K, paused 47ms
01-05 03:05:15.080: DEBUG/UnlockScreen(111): mode normal
01-05 03:05:15.090: INFO/TabletStatusBar(175): DISABLE_CLOCK: yes
01-05 03:05:15.100: INFO/TabletStatusBar(175): DISABLE_EXPAND: yes
01-05 03:05:15.100: INFO/TabletStatusBar(175): DISABLE_NAVIGATION: yes
01-05 03:05:15.190: DEBUG/dalvikvm(111): GC_CONCURRENT freed 50K, 57%
free 19737K/45063K, paused 2ms+8ms
01-05 03:05:15.210: DEBUG/UnlockScreen(111): mode normal
01-05 03:05:15.210: INFO/TabletStatusBar(175): DISABLE_BACK: yes
01-05 03:05:20.140: DEBUG/dalvikvm(6140): GC_EXPLICIT freed 7K, 10%
free 6955K/7687K, paused 2ms+1ms
01-05 03:05:25.170: DEBUG/dalvikvm(4564): GC_EXPLICIT freed 230K, 10%
free 6295K/6983K, paused 6ms+2ms
01-05 03:05:34.740: DEBUG/BatteryService(111): level:43 scale:100
status:2 health:2 present:true voltage: 3995 temperature: 310
technology: Li-ion AC powered:true USB powered:false icon:17302697
invalid charger:0
01-05 03:05:34.740: DEBUG/WifiService(111): ACTION_BATTERY_CHANGED
pluggedType: 1
01-05 03:05:34.740: DEBUG/PowerUI(175): closing low battery warning:
level=43
01-05 03:06:34.920: DEBUG/BatteryService(111): level:44 scale:100
status:2 health:2 present:true voltage: 3998 temperature: 320
technology: Li-ion AC powered:true USB powered:false icon:17302697
invalid charger:0
01-05 03:06:34.930: DEBUG/WifiService(111): ACTION_BATTERY_CHANGED
pluggedType: 1
01-05 03:06:34.940: DEBUG/PowerUI(175): closing low battery warning:
level=44
01-05 03:06:34.960: DEBUG/dalvikvm(242): GC_EXPLICIT freed 153K, 7%
free 6638K/7111K, paused 3ms+2ms
01-05 03:07:35.050: DEBUG/BatteryService(111): level:44 scale:100
status:2 health:2 present:true voltage: 4000 temperature: 320
technology: Li-ion AC powered:true USB powered:false icon:17302697
invalid charger:0
01-05 03:07:35.050: DEBUG/WifiService(111): ACTION_BATTERY_CHANGED
pluggedType: 1
01-05 03:07:35.050: DEBUG/PowerUI(175): closing low battery warning:
level=44
01-05 03:07:35.080: DEBUG/dalvikvm(242): GC_EXPLICIT freed 15K, 7%
free 6624K/7111K, paused 2ms+3ms
01-05 03:07:42.810: DEBUG/dalvikvm(4629): GC_CONCURRENT freed 377K, 8%
free 6388K/6919K, paused 5ms+3ms
}}}
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en