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

Sensibility app autostart problem #18

Open
choksi81 opened this issue Jun 3, 2014 · 1 comment
Open

Sensibility app autostart problem #18

choksi81 opened this issue Jun 3, 2014 · 1 comment

Comments

@choksi81
Copy link

choksi81 commented Jun 3, 2014

Dennis Mirante reports that after restarting his Samsung Galaxy Note 2, the Sensibility app fails to restart. I can replicate the problem on a Samsung GT-P3110 running Android 4.1.2. From my logcat output (cf. Dennis' Google Play crash report):
E/AndroidRuntime( 1951): FATAL EXCEPTION: AsyncTask #1
E/AndroidRuntime( 1951): java.lang.RuntimeException: An error occured while executing doInBackground()
E/AndroidRuntime( 1951): at android.os.AsyncTask$3.done(AsyncTask.java:299)
E/AndroidRuntime( 1951): at java.util.concurrent.FutureTask$Sync.innerSetException(FutureTask.java:273)
E/AndroidRuntime( 1951): at java.util.concurrent.FutureTask.setException(FutureTask.java:124)
E/AndroidRuntime( 1951): at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:307)
E/AndroidRuntime( 1951): at java.util.concurrent.FutureTask.run(FutureTask.java:137)
E/AndroidRuntime( 1951): at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:230)
E/AndroidRuntime( 1951): at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1076)
E/AndroidRuntime( 1951): at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:569)
E/AndroidRuntime( 1951): at java.lang.Thread.run(Thread.java:856)
E/AndroidRuntime( 1951): Caused by: java.lang.NullPointerException
E/AndroidRuntime( 1951): at com.sensibilitytestbed.ScriptActivity.getSeattlePath(ScriptActivity.java:127)
E/AndroidRuntime( 1951): at com.sensibilitytestbed.AutostartListener$AsyncStart.doInBackground(AutostartListener.java:31)
E/AndroidRuntime( 1951): at com.sensibilitytestbed.AutostartListener$AsyncStart.doInBackground(AutostartListener.java:1)
E/AndroidRuntime( 1951): at android.os.AsyncTask$2.call(AsyncTask.java:287)
E/AndroidRuntime( 1951): at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:305)
E/AndroidRuntime( 1951): ... 5 more
Looks like some checking and waiting around ScriptActivity.getSeattlePath is required.

@choksi81
Copy link
Author

choksi81 commented Jun 3, 2014

I was unable to replicate the problem (My Nexus 5 only has system storage, so external storage (i.e. on flash memory) is already ready when the system starts). My patch adds a wait to see if the external storage media is ready to be read/written to before attempting to start the nodemanager/softwareupdater. Albert, could you please review and check if it fixes the problem on your device?
https://seattle.poly.edu/attachment/ticket/1409/AutostartListener.java.patch

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

1 participant