vieuxcarre44 / android-scripting

Automatically exported from code.google.com/p/android-scripting
0 stars 0 forks source link

Crash on failing to create scripts directory #444

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What device(s) are you experiencing the problem on?

Android emulator 1.6, 2.1-update1 and 2.2

What firmware version are you running on the device?

N/A

What steps will reproduce the problem?
1. Install Android SDK and update to latest version (2010-09-22)
2. Install SL4A-r2 apk file using adb.exe on emulator OR build SL4A from source 
in Eclipse.
3. Attempt to start the SL4A application on the Emulator.

What is the expected output? What do you see instead?

Error: 

The application SL4A (process com.googlecode.android_scripting) has stopped 
unexpectedly. Please try again.

Logcat errors:

After successful boot:

E/vold    (   26): Error opening switch name path '/sys/class/switch/test' (No 
such file or directory)
E/vold    (   26): Error bootstrapping switch '/sys/class/switch/test' (No such 
file or directory)
E/vold    (   26): Error opening switch name path '/sys/class/switch/test2' (No 
such file or directory)
E/vold    (   26): Error bootstrapping switch '/sys/class/switch/test2' (No 
such file or directory)
E/BatteryService(   53): usbOnlinePath not found
E/BatteryService(   53): batteryVoltagePath not found
E/BatteryService(   53): batteryTemperaturePath not found
E/SurfaceFlinger(   53): Couldn't open /sys/power/wait_for_fb_sleep or 
/sys/power/wait_for_fb_wake
E/EventHub(   53): could not get driver version for /dev/input/mouse0, Not a 
typewriter
E/EventHub(   53): could not get driver version for /dev/input/mice, Not a 
typewriter
E/System  (   53): Failure starting core service
E/System  (   53): java.lang.SecurityException
E/System  (   53):      at android.os.BinderProxy.transact(Native Method)
E/System  (   53):      at 
android.os.ServiceManagerProxy.addService(ServiceManagerNative.java:146)
E/System  (   53):      at 
android.os.ServiceManager.addService(ServiceManager.java:72)
E/System  (   53):      at 
com.android.server.ServerThread.run(SystemServer.java:176)
E/AndroidRuntime(   53): Crash logging skipped, no checkin service
E/ActivityThread(   95): Failed to find provider info for android.server.checkin
E/ActivityThread(   95): Failed to find provider info for android.server.checkin
E/ActivityThread(   95): Failed to find provider info for android.server.checkin
E/vold    (   26): Cannot start volume '/sdcard' (volume is not bound)
E/MediaPlayerService(   30): Couldn't open fd for 
content://settings/system/notification_sound
E/MediaPlayer(   53): Unable to to create media player

After trying to launch SL4A:

E/sl4a.FileUtils:121(  190): Failed to create directory.
E/AndroidRuntime(  190): Uncaught handler: thread main exiting due to uncaught 
exception
E/AndroidRuntime(  190): java.lang.RuntimeException: Unable to start activity 
ComponentInfo{com.googlecode.android_scripting/com.googlecode.android_scripting.
activity.ScriptManager}: java.lang.RuntimeException: Failed to create scripts 
directory.
E/AndroidRuntime(  190):        at 
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2496)
E/AndroidRuntime(  190):        at 
android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2512)
E/AndroidRuntime(  190):        at 
android.app.ActivityThread.access$2200(ActivityThread.java:119)
E/AndroidRuntime(  190):        at 
android.app.ActivityThread$H.handleMessage(ActivityThread.java:1863)
E/AndroidRuntime(  190):        at 
android.os.Handler.dispatchMessage(Handler.java:99)
E/AndroidRuntime(  190):        at android.os.Looper.loop(Looper.java:123)
E/AndroidRuntime(  190):        at 
android.app.ActivityThread.main(ActivityThread.java:4363)
E/AndroidRuntime(  190):        at 
java.lang.reflect.Method.invokeNative(NativeMethod)
E/AndroidRuntime(  190):        at 
java.lang.reflect.Method.invoke(Method.java:521)
E/AndroidRuntime(  190):        at 
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:860)
E/AndroidRuntime(  190):        at 
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)
E/AndroidRuntime(  190):        at dalvik.system.NativeStart.main(Native Method)

E/AndroidRuntime(  190): Caused by: java.lang.RuntimeException: Failed to 
create scripts directory.
E/AndroidRuntime(  190):        at 
com.googlecode.android_scripting.activity.ScriptManager.onCreate(ScriptManager.j
ava:112)
E/AndroidRuntime(  190):        at 
android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
E/AndroidRuntime(  190):        at 
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2459)
E/AndroidRuntime(  190):        ... 11 more
E/dalvikvm(  190): Unable to open stack trace file '/data/anr/traces.txt': 
Permission denied

What version of the product are you using? On what operating system?

Windows 7 64 bit. JDK 6u21 64 bit.

Please provide any additional information below.

Original issue reported on code.google.com by lindstro...@gmail.com on 22 Sep 2010 at 7:09

GoogleCodeExporter commented 9 years ago
It sounds like your emulator image may not have an SD card. It's failing to 
create the scripts directory on startup.

Admittedly, it shouldn't crash in this case. I'll leave the bug open with the 
updated summary until that's fixed.

Original comment by damonkoh...@gmail.com on 25 Sep 2010 at 9:17

GoogleCodeExporter commented 9 years ago
No, I've got an SD card on the emulator. I downgraded to R1 and everything 
worked so it's something in the R2 release.

Original comment by lindstro...@gmail.com on 26 Sep 2010 at 4:51

GoogleCodeExporter commented 9 years ago

Original comment by damonkoh...@gmail.com on 11 Nov 2010 at 9:30