apps8os / contextlogger3

This is a repository for contextlogger3 software that is being built in Aalto University on top of the funf framework (http://code.google.com/p/funf-open-sensing-framework/). This project has originated from and is inspired by the ContextLogger2 project (http://contextlogger.org/) developed at Helsinki Institute for Information Technology (HIIT). All source code in this project is published under MIT open source license (http://opensource.org/licenses/MIT). If you have any questions about the project, please contact Kimmo Karhu (firstname.lastname [at] aalto.fi).
13 stars 2 forks source link

Contextlogger UI crashes occasionally #28

Closed ktkarhu closed 10 years ago

ktkarhu commented 11 years ago

Android 4.2.2: -when app was started for the first time after install it crashed -restarting it worked without problems -some times using on/off switch also caused app to crash

This kind of behaviour we have seen earlier as well with Android 4.1+ versions

ktkarhu commented 11 years ago

Tingan, read these instructions and send a crash report to Chao: https://github.com/sizzlelab/contextlogger3/wiki/How-to-send-a-detailed-crash-report-using-Crash-Report-app-in-Android-device

ktkarhu commented 11 years ago

In my Galaxy Tab 10.1 (Android 4.0.4), logger works without problems and has never crashed.

I suggest that in China we use Android 2.3 - 4.0 devices.

tingan commented 11 years ago

Dear developer,

The crash report for LoggerApp 0.7 on samsung s3 mini:

please find attached a crash log for your app '' (v Unable to identify version).

ADDITIONAL INFORMATION: What did you do when the error occurred?: [...] Can the crash be reproduced, or was is a one-time occurrence?: [...]

PHONE SPECS: Device model: GT-I8190N Firmware version: 4.1.2 Kernel version: 3.0.31-742346 dpi@DELL231) )

2 SMP PREEMPT Sat Dec 22 13:45:22 KST 2012

Build number: JZO54K.I8190NXXALL6

CRASH LOG: --------- beginning of /dev/log/main 03-26 06:35:05.875 I/dalvikvm(28151): Turning on JNI app bug workarounds for target SDK version 4... 03-26 06:35:05.975 D/ProgressBar(28151): setProgress = 0 03-26 06:35:05.975 D/ProgressBar(28151): setProgress = 0, fromUser = false 03-26 06:35:05.975 D/ProgressBar(28151): mProgress = 0mIndeterminate = false, mMin = 0, mMax = 100 03-26 06:35:06.005 D/AbsListView(28151): Get MotionRecognitionManager 03-26 06:35:06.015 D/ProgressBar(28151): setProgress = 0 03-26 06:35:06.015 D/ProgressBar(28151): setProgress = 0, fromUser = false 03-26 06:35:06.015 D/ProgressBar(28151): mProgress = 0mIndeterminate = false, mMin = 0, mMax = 100 03-26 06:35:06.105 I/webclipboard(28151): clipservice: android.sec.clipboard.ClipboardExManager@4180c328 03-26 06:35:06.155 D/ProgressBar(28151): setProgress = 0 03-26 06:35:06.155 D/ProgressBar(28151): setProgress = 0, fromUser = false 03-26 06:35:06.155 D/ProgressBar(28151): mProgress = 0mIndeterminate = false, mMin = 0, mMax = 10000 03-26 06:35:06.185 V/webkit (28151): BrowserFrame constructor: this=Handler (android.webkit.BrowserFrame) {41805e10} 03-26 06:35:06.205 D/dalvikvm(28151): GC_CONCURRENT freed 177K, 10% free 9608K/10567K, paused 13ms+4ms, total 47ms 03-26 06:35:06.205 D/dalvikvm(28151): WAIT_FOR_CONCURRENT_GC blocked 13ms 03-26 06:35:06.205 D/dalvikvm(28151): WAIT_FOR_CONCURRENT_GC blocked 13ms 03-26 06:35:06.225 W/ResourceType(28151): Failure getting entry for 0x010802c8 (t=7 e=712) in package 0 (error -75) 03-26 06:35:06.315 D/WebView (28151): onSizeChanged - w:480 h:762 03-26 06:35:06.345 W/System.err(28151): android.content.pm.PackageManager$NameNotFoundException: 03-26 06:35:06.355 W/System.err(28151): at android.app.ApplicationPackageManager.getApplicationInfo(ApplicationPackageManager.java:222) 03-26 06:35:06.355 W/System.err(28151): at com.greatbytes.crashreport.CrashReport.getAppIcon(CrashReport.java:207) 03-26 06:35:06.355 W/System.err(28151): at com.greatbytes.crashreport.CrashReport.processDeviceLog(CrashReport.java:511) 03-26 06:35:06.355 W/System.err(28151): at com.greatbytes.crashreport.CrashReport$CollectLogTask.onPostExecute(CrashReport.java:416) 03-26 06:35:06.355 W/System.err(28151): at com.greatbytes.crashreport.CrashReport$CollectLogTask.onPostExecute(CrashReport.java:1) 03-26 06:35:06.355 W/System.err(28151): at android.os.AsyncTask.finish(AsyncTask.java:631) 03-26 06:35:06.355 W/System.err(28151): at android.os.AsyncTask.access$600(AsyncTask.java:177) 03-26 06:35:06.355 W/System.err(28151): at android.os.AsyncTask$InternalHandler.handleMessage(AsyncTask.java:644) 03-26 06:35:06.355 W/System.err(28151): at android.os.Handler.dispatchMessage(Handler.java:99) 03-26 06:35:06.355 W/System.err(28151): at android.os.Looper.loop(Looper.java:137) 03-26 06:35:06.355 W/System.err(28151): at android.app.ActivityThread.main(ActivityThread.java:4856) 03-26 06:35:06.355 W/System.err(28151): at java.lang.reflect.Method.invokeNative(Native Method) 03-26 06:35:06.355 W/System.err(28151): at java.lang.reflect.Method.invoke(Method.java:511) 03-26 06:35:06.355 W/System.err(28151): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1007) 03-26 06:35:06.355 W/System.err(28151): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:774) 03-26 06:35:06.355 W/System.err(28151): at dalvik.system.NativeStart.main(Native Method) 03-26 06:35:06.355 I/com.greatbytes.crashreport(28151): ========================= No crashed apps found 03-26 06:35:08.037 D/WebView (28151): onSizeChanged - w:800 h:442 03-26 06:35:23.552 I/dalvikvm(28151): threadid=3: reacting to signal 3 03-26 06:35:23.612 I/dalvikvm(28151): Wrote stack traces to '/data/anr/traces.txt' 03-26 06:35:47.805 W/IInputConnectionWrapper(28151): showStatusIcon on inactive InputConnection 03-26 06:36:23.922 D/WebView (28151): onSizeChanged - w:480 h:762 03-26 06:36:23.952 D/dalvikvm(28151): GC_CONCURRENT freed 190K, 10% free 9867K/10887K, paused 15ms+3ms, total 60ms 03-26 06:36:25.294 D/ProgressBar(28151): setProgress = 0 03-26 06:36:25.294 D/ProgressBar(28151): setProgress = 0, fromUser = false 03-26 06:36:25.304 D/ProgressBar(28151): mProgress = 0mIndeterminate = false, mMin = 0, mMax = 10000 03-26 06:36:25.334 W/ResourceType(28151): Failure getting entry for 0x010802c8 (t=7 e=712) in package 0 (error -75) 03-26 06:36:25.354 I/webclipboard(28151): clipservice: android.sec.clipboard.ClipboardExManager@4180c328 03-26 06:36:25.354 V/webkit (28151): BrowserFrame constructor: this=Handler (android.webkit.BrowserFrame) {41819968} 03-26 06:36:25.364 I/com.greatbytes.crashreport(28151): =========================CLICK DESCR 03-26 06:36:25.364 I/com.greatbytes.crashreport(28151): Download started... 03-26 06:36:26.264 I/com.greatbytes.crashreport(28151): error 03-26 06:36:26.264 I/com.greatbytes.crashreport(28151): error 03-26 06:36:26.264 I/com.greatbytes.crashreport(28151): Error getting email-address! 03-26 06:36:26.294 W/ResourceType(28151): Failure getting entry for 0x010802c8 (t=7 e=712) in package 0 (error -75) 03-26 06:36:26.325 I/com.greatbytes.crashreport(28151): Download finished! 03-26 06:36:26.325 D/dalvikvm(28151): GC_CONCURRENT freed 449K, 12% free 9933K/11207K, paused 3ms+13ms, total 51ms 03-26 06:36:26.395 D/webviewglue(28151): nativeDestroy view: 0x5e706d28 03-26 06:36:29.448 D/ProgressBar(28151): setProgress = 0 03-26 06:36:29.448 D/ProgressBar(28151): setProgress = 0, fromUser = false 03-26 06:36:29.448 D/ProgressBar(28151): mProgress = 0mIndeterminate = false, mMin = 0, mMax = 10000 03-26 06:36:29.458 W/ResourceType(28151): Failure getting entry for 0x010802c8 (t=7 e=712) in package 0 (error -75) 03-26 06:36:29.468 W/System.err(28151): android.content.pm.PackageManager$NameNotFoundException: 03-26 06:36:29.468 W/System.err(28151): at android.app.ApplicationPackageManager.getApplicationInfo(ApplicationPackageManager.java:222) 03-26 06:36:29.468 W/System.err(28151): at com.greatbytes.crashreport.CrashReport.getAppLabel(CrashReport.java:223) 03-26 06:36:29.468 W/System.err(28151): at com.greatbytes.crashreport.CrashReport.generateSendIntent(CrashReport.java:977) 03-26 06:36:29.468 W/System.err(28151): at com.greatbytes.crashreport.CrashReport$DownloadFile$2$1$1.onClick(CrashReport.java:884) 03-26 06:36:29.468 W/System.err(28151): at com.android.internal.app.AlertController$ButtonHandler.handleMessage(AlertController.java:167) 03-26 06:36:29.468 W/System.err(28151): at android.os.Handler.dispatchMessage(Handler.java:99) 03-26 06:36:29.468 W/System.err(28151): at android.os.Looper.loop(Looper.java:137) 03-26 06:36:29.468 W/System.err(28151): at android.app.ActivityThread.main(ActivityThread.java:4856) 03-26 06:36:29.468 W/System.err(28151): at java.lang.reflect.Method.invokeNative(Native Method) 03-26 06:36:29.468 W/System.err(28151): at java.lang.reflect.Method.invoke(Method.java:511) 03-26 06:36:29.468 W/System.err(28151): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1007) 03-26 06:36:29.468 W/System.err(28151): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:774) 03-26 06:36:29.468 W/System.err(28151): at dalvik.system.NativeStart.main(Native Method) 03-26 06:36:29.718 D/AbsListView(28151): Get MotionRecognitionManager 03-26 06:36:29.748 W/ResourceType(28151): Failure getting entry for 0x010802c8 (t=7 e=712) in package 0 (error -75) 03-26 06:36:29.808 D/libEGL (28151): loaded /system/lib/egl/libEGL_mali.so 03-26 06:36:29.818 D/libEGL (28151): loaded /system/lib/egl/libGLESv1_CM_mali.so 03-26 06:36:29.818 D/libEGL (28151): loaded /system/lib/egl/libGLESv2_mali.so 03-26 06:36:29.838 D/OpenGLRenderer(28151): Enabling debug mode 0 03-26 06:36:36.534 D/ProgressBar(28151): setProgress = 0 03-26 06:36:36.534 D/ProgressBar(28151): setProgress = 0, fromUser = false 03-26 06:36:36.534 D/ProgressBar(28151): mProgress = 0mIndeterminate = false, mMin = 0, mMax = 100 03-26 06:36:36.534 D/AbsListView(28151): Get MotionRecognitionManager 03-26 06:36:36.544 D/ProgressBar(28151): setProgress = 0 03-26 06:36:36.544 D/ProgressBar(28151): setProgress = 0, fromUser = false 03-26 06:36:36.544 D/ProgressBar(28151): mProgress = 0mIndeterminate = false, mMin = 0, mMax = 100 03-26 06:36:36.565 V/webkit (28151): BrowserFrame constructor: this=Handler (android.webkit.BrowserFrame) {418e8678} 03-26 06:36:36.565 I/webclipboard(28151): clipservice: android.sec.clipboard.ClipboardExManager@418e8ed8 03-26 06:36:36.585 D/dalvikvm(28151): GCCONCURRENT freed 142K, 9% free 10259K/11207K, paused 22ms+10ms, total 88ms 03-26 06:36:36.605 D/AbsListView(28151): [unregisterDoubleTapMotionListener] 03-26 06:36:36.605 I/MotionRecognitionManager(28151): .unregisterListener : / listener count = 0->0, ubvf 9budiwrd5ordgfl5BakTrklMrfo$,@,/e_a-( 03-26 06:36:36.615 D/ProgressBar(28151): setProgress = 0 03-26 06:36:36.615 D/ProgressBar(28151): setProgress = 0, fromUser = false 03-26 06:36:36.615 D/ProgressBar(28151): mProgress = 0mIndeterminate = false, mMin = 0, mMax = 10000 03-26 06:36:36.635 D/AbsListView(28151): [unregisterDoubleTapMotionListener] 03-26 06:36:36.635 I/MotionRecognitionManager(28151): .unregisterListener : / listener count = 0->0, ubvf 9budiwrd5ordgfl5BakTrklMrfo$,@,*/f)8.8 03-26 06:36:36.655 W/ResourceType(28151): Failure getting entry for 0x010802c8 (t=7 e=712) in package 0 (error -75) 03-26 06:36:36.685 D/webviewglue(28151): nativeDestroy view: 0x5cee11b0

Thank you for your help in debugging this issue!

Best regards, Your app's user and the Crash Report App-Team

On Mon, Mar 25, 2013 at 1:57 PM, Kimmo Karhu notifications@github.comwrote:

In my Galaxy Tab 10.1 (Android 4.0.4), logger works without problems and has never crashed.

I suggest that in China we use Android 2.3 - 4.0 devices.

— Reply to this email directly or view it on GitHubhttps://github.com/sizzlelab/contextlogger3/issues/28#issuecomment-15389099 .

ktkarhu commented 11 years ago

This seems to relate to problems in Funf old version 0.3 in which there are several services and in start up phase that causes to many transactions (there is 1MB for all applications in the device). This problem seems to appear in 4.1+ devices.

It seems that we should refactor to use the new Funf 0.4 which has only one background service.

chaow commented 11 years ago

Within current clientframework (relying on funf 0.3), the easiest way to prevent ContextLogger3 been crash on Android 4.1+ devices is disabling the funf logging feature, and we only show UI on those newer devices.