dexapier / android-scripting

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

Force close on all scripts, Galaxy S i9000, Android 2.2.1 #587

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What device(s) are you experiencing the problem on?
Samsung Galaxy S i9000
What firmware version are you running on the device?
Firmware Version 2.2.1 
Kernel Version 2.6.32.9 root@SE-S608 #1
Build number ULTIMOBILE JPX 2.2.1
What steps will reproduce the problem?
1.Install SL4A (r16)
2.Install Python for Android (Interpreter 2.6.2)
3.Attempt to run any example script either in background or in terminal.

What is the expected output? What do you see instead?
For hello_world.py expected output is window to be drawn and print 'Hello 
world!' statement to be executed. Affects all example scripts and any manually 
loaded scripts. Scripts can be edited, but not run. On run in terminal or 
otherwise receive dialog "The application SL4A (process 
com.googlecode.android_scripting) has stopped unexpectedly. Please try again. 
[Force close]"

What version of the product are you using? On what operating system?
Please see above or email for more information. Logcat posted below.

Please provide any additional information below.
New at developing for android, some experience in Python.

Original issue reported on code.google.com by Incredib...@gmail.com on 15 Nov 2011 at 7:45

Attachments:

GoogleCodeExporter commented 9 years ago
sl4a_r4.apk is SL4A version, sorry for typo. It is the most current version.

Original comment by Incredib...@gmail.com on 15 Nov 2011 at 7:55

GoogleCodeExporter commented 9 years ago
Problem seems to be here:
E/sl4a.SimpleServer:146(20232): java.net.UnknownHostException: localhost

I seem to recall seeing something about this... it may be worth playing with 
the Ipv6 settings, if there are any.

Original comment by rjmatthews62 on 24 Nov 2011 at 10:25

GoogleCodeExporter commented 9 years ago
No settings on my i9000 for ipv6 to play with unfortunately. Although it 
wouldn't surprise me if it has something to do with it. ipv6 has given me 
nothing but headaches on other systems. I also can't seem to find any sort of a 
hosts file on it. I thought it might be worth a try to add an entry for 
localhost with 127.0.0.1 or 198.168.0.1 but seems the stock rom doesn't feel I 
need to be able to find that file though. Can't find any of the files I could 
edit to disable ipv6 either, I know they're there, it just doesn't allow me to 
see them. Reluctant to root or flash to another rom until my warranty runs out. 
I will do some googling regarding your suggestion though. Thanks. 

Original comment by Incredib...@gmail.com on 24 Nov 2011 at 11:42

GoogleCodeExporter commented 9 years ago
May try to see if I have any better luck finding hosts file via USB debug later.

Original comment by Incredib...@gmail.com on 24 Nov 2011 at 11:57

GoogleCodeExporter commented 9 years ago
Have not found a way to access /system on non-rooted phone. Due to this cannot 
verify hosts file contains proper entry for localhost. Can't imagine why it 
wouldn't, but all the same cannot verify that it does. Would like to be sure 
following lines exist:
127.0.0.1   localhost
(for ipv6:)
::1     localhost ip6-localhost ip6-loopback
I will continue to google regarding this. Output from lsmod in terminal does 
not return anything regarding ipv6 however, docs suggest ipv6 is enabled by 
default and /proc/net/if_inet6 does exist and was located via terminal. Would 
like to disable ipv6 in order to see if that resolves issue but have not yet 
determined how to do so. There are no settings to configure and cannot directly 
edit files (configuration file of kernel module loader) as I would usually do 
on *NIX based systems due to not having access to /system via USB. It's worth 
noting that although I cannot access /system via USB, I am able to navigate to 
the directory via terminal on the phone. So if anyone can suggest a vim or nano 
like command line text editor I may be able to make use of that. Have not found 
anything on the market in the searches I've done. Will update if I am able to 
make any progress with this.

Original comment by Incredib...@gmail.com on 27 Nov 2011 at 1:15