Open johanha opened 9 years ago
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?
Ok; I'll look into logcat.
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?
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 :-)
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:
Unfortunately, HAndroid has stopped. OK
On at least one device the sensor tab works fine: Google Nexus 7.
@DanielMalmgren , have you experienced the above?