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

Sensor tab not stable, causes app to stop #1

Open
johanha opened this issue Dec 15, 2014 · 4 comments
Open

Sensor tab not stable, causes app to stop #1

johanha opened this issue Dec 15, 2014 · 4 comments

Comments

@johanha
Copy link

johanha commented Dec 15, 2014

When I tap the sensor tap on some devices, the HAndroid app will stop. Per device, it seems 100% reproducible. I have experienced this on at least two devices: Sony xperia V and Huawei Mate 7. The message is:

 Sorry

Unfortunately, HAndroid has stopped.
OK

On at least one device the sensor tab works fine: Google Nexus 7.

@DanielMalmgren , have you experienced the above?

@DanielMalmgren
Copy link
Owner

Nope, I've never seen it. Can't say I've tested the app on very many devices though. Any ideas what the common factor with the problematic devices could be? What Android versions?

Could you get a logcat of the crash?

@johanha
Copy link
Author

johanha commented Dec 16, 2014

Ok; I'll look into logcat.

@johanha
Copy link
Author

johanha commented Dec 16, 2014

Ok, below is a logcat filtered for the HAndroid process (tried to attach file, but don't know how to do that...). seems to be an index out of range issue.

12-16 10:49:17.163 29335-29335/se.kolefors.handroid D/dalvikvm? Late-enabling CheckJNI
12-16 10:49:17.263 29335-29335/se.kolefors.handroid I/System.out? Sending WAIT chunk
12-16 10:49:17.263 29335-29335/se.kolefors.handroid W/ActivityThread? Application se.kolefors.handroid is waiting for the debugger on port 8100...
12-16 10:49:26.222 29335-29341/se.kolefors.handroid I/dalvikvm? Debugger is active
12-16 10:49:26.272 29335-29335/se.kolefors.handroid I/System.out? Debugger has connected
12-16 10:49:26.272 29335-29335/se.kolefors.handroid I/System.out? waiting for debugger to settle...
12-16 10:49:26.472 29335-29335/se.kolefors.handroid I/System.out? waiting for debugger to settle...
12-16 10:49:26.683 29335-29335/se.kolefors.handroid I/System.out? waiting for debugger to settle...
12-16 10:49:26.873 29335-29335/se.kolefors.handroid I/System.out? waiting for debugger to settle...
12-16 10:49:27.083 29335-29335/se.kolefors.handroid I/System.out? waiting for debugger to settle...
12-16 10:49:27.283 29335-29335/se.kolefors.handroid I/System.out? waiting for debugger to settle...
12-16 10:49:27.484 29335-29335/se.kolefors.handroid I/System.out? waiting for debugger to settle...
12-16 10:49:27.684 29335-29335/se.kolefors.handroid I/System.out? waiting for debugger to settle...
12-16 10:49:27.874 29335-29335/se.kolefors.handroid I/System.out? debugger has settled (1365)
12-16 10:49:28.344 29335-29335/se.kolefors.handroid W/Resources? Converting to string: TypedValue{t=0x10/d=0xea60 a=-1}
12-16 10:49:28.465 29335-29335/se.kolefors.handroid D/onResume? Setting update interval to 60000.
12-16 10:49:28.485 29335-29335/se.kolefors.handroid D/refreshAllFragments? Updating status of everything!
12-16 10:49:28.595 29335-29335/se.kolefors.handroid D/MainFragment.redraw()? Drawing fragment 1.
12-16 10:49:28.605 29335-29335/se.kolefors.handroid I/downloadAndCompleteRedraw? Fetching XML from http:///api.php?do=devices/get&output=xml
12-16 10:49:28.605 29335-29649/se.kolefors.handroid D/DownloadXmlTask.doInBackground? Fetching from http:///api.php?do=devices/get&output=xml.
12-16 10:49:28.625 29335-29649/se.kolefors.handroid D/DownloadXmlTask? got IOException.
12-16 10:49:28.645 29335-29335/se.kolefors.handroid D/MainFragment.redraw()? Drawing fragment 2.
12-16 10:49:28.645 29335-29335/se.kolefors.handroid I/downloadAndCompleteRedraw? Fetching XML from http:///api.php?do=groups/get&output=xml
12-16 10:49:28.655 29335-29650/se.kolefors.handroid D/DownloadXmlTask.doInBackground? Fetching from http:///api.php?do=groups/get&output=xml.
12-16 10:49:28.665 29335-29650/se.kolefors.handroid D/DownloadXmlTask? got IOException.
12-16 10:49:28.715 29335-29335/se.kolefors.handroid D/libEGL? loaded /vendor/lib/egl/libEGL_adreno.so
12-16 10:49:28.715 29335-29335/se.kolefors.handroid D/libEGL? loaded /vendor/lib/egl/libGLESv1_CM_adreno.so
12-16 10:49:28.725 29335-29335/se.kolefors.handroid D/libEGL? loaded /vendor/lib/egl/libGLESv2_adreno.so
12-16 10:49:28.735 29335-29335/se.kolefors.handroid I/Adreno-EGL? <qeglDrvAPI_eglInitialize:316>: EGL 1.4 QUALCOMM build: LNXBUILD_AU_LINUX_ANDROID_JB_2.6_RB1.04.03.00.144.009+PATCH[ES]_msm8960_JB_2.6_RB1_CL4169980_release_ENGG (CL4169980)
OpenGL ES Shader Compiler Version: 17.01.10.SPL
Build Date: 12/17/13 Tue
Local Branch:
Remote Branch: quic/jb_2.6_rb1.10
Local Patches: 579c35762619098d011c9c2a718d817a52a65028 Merge "Merge e6898912278420151291719929e1eb6163c56cc2 on remote branch"
b075f07ef0d826864515aea57fd03e3d1caed533 Merge e6898912278420151291719929e1eb6163c56cc2 on remote bran
12-16 10:49:28.765 29335-29335/se.kolefors.handroid D/OpenGLRenderer? Enabling debug mode 0
12-16 10:49:28.985 29335-29335/se.kolefors.handroid D/drawOnOffObjects? Doing a complete redraw.
12-16 10:49:28.995 29335-29335/se.kolefors.handroid D/drawOnOffObjects? Doing a complete redraw.
12-16 10:49:34.081 29335-29335/se.kolefors.handroid W/Resources? Converting to string: TypedValue{t=0x10/d=0xea60 a=-1}
12-16 10:50:13.092 29335-29335/se.kolefors.handroid D/MainFragment.onSharedPreferenceChanged()? Notifying fragment 1 about preference changes.
12-16 10:50:13.092 29335-29335/se.kolefors.handroid D/MainFragment.redraw()? Drawing fragment 1.
12-16 10:50:13.092 29335-29335/se.kolefors.handroid I/downloadAndCompleteRedraw? Fetching XML from http://removedwebadress/homeautomation/api.php?do=devices/get&output=xml
12-16 10:50:13.102 29335-29335/se.kolefors.handroid D/MainFragment.onSharedPreferenceChanged()? Notifying fragment 2 about preference changes.
12-16 10:50:13.102 29335-29335/se.kolefors.handroid D/MainFragment.redraw()? Drawing fragment 2.
12-16 10:50:13.102 29335-29335/se.kolefors.handroid I/downloadAndCompleteRedraw? Fetching XML from http://removedwebadress/homeautomation/api.php?do=groups/get&output=xml
12-16 10:50:13.112 29335-29765/se.kolefors.handroid D/DownloadXmlTask.doInBackground? Fetching from http://removedwebadress/homeautomation/api.php?do=devices/get&output=xml.
12-16 10:50:14.233 29335-29765/se.kolefors.handroid D/parse? Parsing XML.
12-16 10:50:14.243 29335-29765/se.kolefors.handroid D/DownloadXmlTask? got XmlPullParserException.
12-16 10:50:14.243 29335-29335/se.kolefors.handroid D/drawOnOffObjects? Doing a complete redraw.
12-16 10:50:14.283 29335-29778/se.kolefors.handroid D/DownloadXmlTask.doInBackground? Fetching from http://removedwebadress/homeautomation/api.php?do=groups/get&output=xml.
12-16 10:50:14.654 29335-29778/se.kolefors.handroid D/parse? Parsing XML.
12-16 10:50:14.664 29335-29778/se.kolefors.handroid D/DownloadXmlTask? got XmlPullParserException.
12-16 10:50:14.754 29335-29335/se.kolefors.handroid D/drawOnOffObjects? Doing a complete redraw.
12-16 10:50:19.049 29335-29335/se.kolefors.handroid D/MainFragment.onSharedPreferenceChanged()? Notifying fragment 1 about preference changes.
12-16 10:50:19.049 29335-29335/se.kolefors.handroid D/MainFragment.redraw()? Drawing fragment 1.
12-16 10:50:19.049 29335-29335/se.kolefors.handroid I/downloadAndCompleteRedraw? Fetching XML from http://removedwebadress/homeautomation/api.php?do=devices/get&output=xml
12-16 10:50:19.049 29335-29335/se.kolefors.handroid D/MainFragment.onSharedPreferenceChanged()? Notifying fragment 2 about preference changes.
12-16 10:50:19.049 29335-29335/se.kolefors.handroid D/MainFragment.redraw()? Drawing fragment 2.
12-16 10:50:19.049 29335-29335/se.kolefors.handroid I/downloadAndCompleteRedraw? Fetching XML from http://removedwebadress/homeautomation/api.php?do=groups/get&output=xml
12-16 10:50:19.069 29335-29650/se.kolefors.handroid D/DownloadXmlTask.doInBackground? Fetching from http://removedwebadress/homeautomation/api.php?do=devices/get&output=xml.
12-16 10:50:19.359 29335-29650/se.kolefors.handroid D/parse? Parsing XML.
12-16 10:50:19.359 29335-29650/se.kolefors.handroid D/DownloadXmlTask? got XmlPullParserException.
12-16 10:50:19.359 29335-29335/se.kolefors.handroid D/drawOnOffObjects? Doing a complete redraw.
12-16 10:50:19.379 29335-29650/se.kolefors.handroid D/DownloadXmlTask.doInBackground? Fetching from http://removedwebadress/homeautomation/api.php?do=groups/get&output=xml.
12-16 10:50:19.709 29335-29650/se.kolefors.handroid D/parse? Parsing XML.
12-16 10:50:19.709 29335-29650/se.kolefors.handroid D/DownloadXmlTask? got XmlPullParserException.
12-16 10:50:19.709 29335-29335/se.kolefors.handroid D/drawOnOffObjects? Doing a complete redraw.
12-16 10:50:30.301 29335-29335/se.kolefors.handroid D/MainFragment.onSharedPreferenceChanged()? Notifying fragment 1 about preference changes.
12-16 10:50:30.301 29335-29335/se.kolefors.handroid D/MainFragment.redraw()? Drawing fragment 1.
12-16 10:50:30.301 29335-29335/se.kolefors.handroid I/downloadAndCompleteRedraw? Fetching XML from http://removedwebadress/homeautomation/api.php?requireslogin=1&login_username=removedusername&login_password=removedpassword&do=devices/get&output=xml
12-16 10:50:30.301 29335-29335/se.kolefors.handroid D/MainFragment.onSharedPreferenceChanged()? Notifying fragment 2 about preference changes.
12-16 10:50:30.301 29335-29778/se.kolefors.handroid D/DownloadXmlTask.doInBackground? Fetching from http://removedwebadress/homeautomation/api.php?requireslogin=1&login_username=removedusername&login_password=removedpassword&do=devices/get&output=xml.
12-16 10:50:30.311 29335-29335/se.kolefors.handroid D/MainFragment.redraw()? Drawing fragment 2.
12-16 10:50:30.311 29335-29335/se.kolefors.handroid I/downloadAndCompleteRedraw? Fetching XML from http://removedwebadress/homeautomation/api.php?requireslogin=1&login_username=removedusername&login_password=removedpassword&do=groups/get&output=xml
12-16 10:50:30.871 29335-29778/se.kolefors.handroid D/parse? Parsing XML.
12-16 10:50:30.901 29335-29335/se.kolefors.handroid D/drawOnOffObjects? Doing a complete redraw.
12-16 10:50:30.901 29335-29649/se.kolefors.handroid D/DownloadXmlTask.doInBackground? Fetching from http://removedwebadress/homeautomation/api.php?requireslogin=1&login_username=removedusername&login_password=removedpassword&do=groups/get&output=xml.
12-16 10:50:30.931 29335-29335/se.kolefors.handroid D/drawOnOffObjects? Skriver namn Bastu
12-16 10:50:30.981 29335-29335/se.kolefors.handroid D/drawOnOffObjects? Skriver namn Innelampor fonster
12-16 10:50:31.001 29335-29335/se.kolefors.handroid D/drawOnOffObjects? Skriver namn julbelysning forrad
12-16 10:50:31.021 29335-29335/se.kolefors.handroid D/drawOnOffObjects? Skriver namn lampa vart sovrum
12-16 10:50:31.041 29335-29335/se.kolefors.handroid D/drawOnOffObjects? Skriver namn lampor ovanvaning
12-16 10:50:31.061 29335-29335/se.kolefors.handroid D/drawOnOffObjects? Skriver namn motorvamare
12-16 10:50:31.081 29335-29335/se.kolefors.handroid D/drawOnOffObjects? Skriver namn Utebelysning
12-16 10:50:31.141 29335-29649/se.kolefors.handroid D/parse? Parsing XML.
12-16 10:50:31.151 29335-29335/se.kolefors.handroid D/drawOnOffObjects? Doing a complete redraw.
12-16 10:50:31.161 29335-29335/se.kolefors.handroid D/drawOnOffObjects? Skriver namn alla
12-16 10:50:36.948 29335-29335/se.kolefors.handroid D/onResume? Setting update interval to 60000.
12-16 10:50:37.218 29335-29335/se.kolefors.handroid D/refreshAllFragments? Updating status of everything!
12-16 10:50:37.218 29335-29335/se.kolefors.handroid D/MainFragment.redraw()? Drawing fragment 1.
12-16 10:50:37.218 29335-29335/se.kolefors.handroid I/downloadAndUpdateStatuses? Fetching XML from http://removedwebadress/homeautomation/api.php?requireslogin=1&login_username=removedusername&login_password=removedpassword&do=devices/get&output=xml
12-16 10:50:37.228 29335-29787/se.kolefors.handroid D/DownloadXmlTask.doInBackground? Fetching from http://removedwebadress/homeautomation/api.php?requireslogin=1&login_username=removedusername&login_password=removedpassword&do=devices/get&output=xml.
12-16 10:50:37.228 29335-29335/se.kolefors.handroid D/MainFragment.redraw()? Drawing fragment 2.
12-16 10:50:37.228 29335-29335/se.kolefors.handroid I/downloadAndUpdateStatuses? Fetching XML from http://removedwebadress/homeautomation/api.php?requireslogin=1&login_username=removedusername&login_password=removedpassword&do=groups/get&output=xml
12-16 10:50:37.358 29335-29335/se.kolefors.handroid V/RenderScript? 0x5ecc64a0 Launching thread(s), CPUs 2
12-16 10:50:38.139 29335-29787/se.kolefors.handroid D/parse? Parsing XML.
12-16 10:50:38.159 29335-29787/se.kolefors.handroid D/DownloadXmlTask.doInBackground? Fetching from http://removedwebadress/homeautomation/api.php?requireslogin=1&login_username=removedusername&login_password=removedpassword&do=groups/get&output=xml.
12-16 10:50:38.419 29335-29787/se.kolefors.handroid D/parse? Parsing XML.
12-16 10:51:07.510 29335-29335/se.kolefors.handroid D/AndroidRuntime? Shutting down VM
12-16 10:51:07.510 29335-29335/se.kolefors.handroid W/dalvikvm? threadid=1: thread exiting with uncaught exception (group=0x419fa8b0)
12-16 10:51:07.550 29335-29335/se.kolefors.handroid E/AndroidRuntime? FATAL EXCEPTION: main
java.lang.IndexOutOfBoundsException: Invalid index 3, size is 2
at java.util.ArrayList.throwIndexOutOfBoundsException(ArrayList.java:255)
at java.util.ArrayList.add(ArrayList.java:147)
at se.kolefors.handroid.MainActivity$SectionsPagerAdapter.getItem(MainActivity.java:200)
at android.support.v13.app.FragmentPagerAdapter.instantiateItem(FragmentPagerAdapter.java:101)
at android.support.v4.view.ViewPager.addNewItem(ViewPager.java:837)
at android.support.v4.view.ViewPager.populate(ViewPager.java:987)
at android.support.v4.view.ViewPager.setCurrentItemInternal(ViewPager.java:555)
at android.support.v4.view.ViewPager.setCurrentItemInternal(ViewPager.java:514)
at android.support.v4.view.ViewPager.setCurrentItem(ViewPager.java:495)
at se.kolefors.handroid.MainActivity.onTabSelected(MainActivity.java:174)
at com.android.internal.app.ActionBarImpl.selectTab(ActionBarImpl.java:572)
at com.android.internal.app.ActionBarImpl$TabImpl.select(ActionBarImpl.java:1098)
at com.android.internal.widget.ScrollingTabContainerView$TabClickListener.onClick(ScrollingTabContainerView.java:547)
at android.view.View.performClick(View.java:4421)
at android.view.View$PerformClick.run(View.java:17903)
at android.os.Handler.handleCallback(Handler.java:730)
at android.os.Handler.dispatchMessage(Handler.java:92)
at android.os.Looper.loop(Looper.java:213)
at android.app.ActivityThread.main(ActivityThread.java:5225)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:525)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:741)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:557)
at dalvik.system.NativeStart.main(Native Method)
12-16 10:51:12.716 29335-29335/se.kolefors.handroid I/Process? Sending signal. PID: 29335 SIG: 9

@DanielMalmgren
Copy link
Owner

Ah! I can reproduce it too. I've just never used the tabs, I simply swipe away. This ONLY happens if the app is started and then the sensors tab is clicked without first going to any of the other ones. I think somehow this tab isn't initialized until too late. Guess I'll have to read up on how these things work :-)

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

2 participants