ACRA on Android fetch log before error message posted - android

ACRA loging works fine on my Galaxy S2. I can see reports in GoogleDoc.
Problem is that a log ACRA sends doesn't really have error causing crash.
Example:
What I have in GoogleDoc:
12-06 17:59:03.605 D/CLIPBOARD(10745): Hide Clipboard dialog at Starting input: finished by someone else... !
12-06 17:59:05.380 D/AndroidRuntime(10745): Shutting down VM
12-06 17:59:05.380 W/dalvikvm(10745): threadid=1: thread exiting with uncaught exception (group=0x4001e578)
12-06 17:59:05.380 E/ACRA (10745): ACRA caught a NoSuchMethodError exception for ru.ptl.guidenavigator. Building report.
12-06 17:59:05.545 D/dalvikvm(10745): GC_CONCURRENT freed 278K, 52% free 2762K/5639K, external 123K/513K, paused 2ms+2ms
12-06 17:59:05.725 D/dalvikvm(10745): GC_CONCURRENT freed 399K, 52% free 2839K/5895K, external 123K/513K, paused 1ms+3ms
12-06 17:59:05.790 I/ACRA (10745): READ_LOGS granted! ACRA can include LogCat and DropBox data.
12-06 17:59:05.800 D/ACRA (10745): Retrieving logcat output...
and here is full report:
12-06 17:59:05.545: D/dalvikvm(10745): GC_CONCURRENT freed 278K, 52% free 2762K/5639K, external 123K/513K, paused 2ms+2ms
12-06 17:59:05.725: D/dalvikvm(10745): GC_CONCURRENT freed 399K, 52% free 2839K/5895K, external 123K/513K, paused 1ms+3ms
12-06 17:59:05.790: I/ACRA(10745): READ_LOGS granted! ACRA can include LogCat and DropBox data.
12-06 17:59:05.800: D/ACRA(10745): Retrieving logcat output...
12-06 17:59:06.185: D/ACRA(10745): Writing crash report file 1354816746000.stacktrace.
12-06 17:59:06.195: D/ACRA(10745): About to start ReportSenderWorker from #handleException
12-06 17:59:06.195: D/ACRA(10745): Mark all pending reports as approved.
12-06 17:59:06.195: D/ACRA(10745): Looking for error files in /data/data/ru.ptl.guidenavigator/files
12-06 17:59:06.200: D/ACRA(10745): #checkAndSendReports - start
12-06 17:59:06.200: D/ACRA(10745): Looking for error files in /data/data/ru.ptl.guidenavigator/files
12-06 17:59:06.200: I/ACRA(10745): Sending file 1354816746000-approved.stacktrace
12-06 17:59:06.205: D/ACRA(10745): Waiting for Toast + worker...
12-06 17:59:06.240: D/ACRA(10745): Sending report 2847a23e-569b-400a-9808-2bb5fe08c657
12-06 17:59:06.255: D/dalvikvm(10745): GC_CONCURRENT freed 508K, 53% free 2832K/5959K, external 123K/513K, paused 1ms+3ms
12-06 17:59:06.300: D/dalvikvm(10745): GC_FOR_MALLOC freed 230K, 54% free 2788K/5959K, external 123K/513K, paused 16ms
12-06 17:59:07.295: D/dalvikvm(10745): GC_CONCURRENT freed 430K, 53% free 2841K/5959K, external 123K/513K, paused 7ms+3ms
12-06 17:59:09.455: D/ACRA(10745): #checkAndSendReports - finish
12-06 17:59:09.515: D/ACRA(10745): Wait for Toast + worker ended. Kill Application ? true
12-06 17:59:09.515: E/ACRA(10745): ru.ptl.guidenavigator fatal error : android.widget.Button.addChildrenForAccessibility
12-06 17:59:09.515: E/ACRA(10745): java.lang.NoSuchMethodError: android.widget.Button.addChildrenForAccessibility
12-06 17:59:09.515: E/ACRA(10745): at ru.ptl.guidenavigator.DownloadActivity.onClick(DownloadActivity.java:68)
12-06 17:59:09.515: E/ACRA(10745): at android.view.View.performClick(View.java:2538)
12-06 17:59:09.515: E/ACRA(10745): at android.view.View$PerformClick.run(View.java:9152)
12-06 17:59:09.515: E/ACRA(10745): at android.os.Handler.handleCallback(Handler.java:587)
12-06 17:59:09.515: E/ACRA(10745): at android.os.Handler.dispatchMessage(Handler.java:92)
12-06 17:59:09.515: E/ACRA(10745): at android.os.Looper.loop(Looper.java:130)
12-06 17:59:09.515: E/ACRA(10745): at android.app.ActivityThread.main(ActivityThread.java:3691)
12-06 17:59:09.515: E/ACRA(10745): at java.lang.reflect.Method.invokeNative(Native Method)
12-06 17:59:09.515: E/ACRA(10745): at java.lang.reflect.Method.invoke(Method.java:507)
12-06 17:59:09.515: E/ACRA(10745): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:907)
12-06 17:59:09.515: E/ACRA(10745): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:665)
12-06 17:59:09.515: E/ACRA(10745): at dalvik.system.NativeStart.main(Native Method)
12-06 17:59:09.520: I/Process(10745): Sending signal. PID: 10745 SIG: 9
So the last message acra get is on 12-06 17:59:05.800
But error java.lang.NoSuchMethodError posted on 12-06 17:59:09.515
Any ideas how to fix it?

It's an implementation choice.
Check the STACK_TRACE field and you will get a readable stack trace (including the error you are looking for).
https://github.com/ACRA/acra/issues/67

Related

Android Google Play Service Not Launching

Google Play service to existing projects after adding the library project does not work. As it gives an error.
08-19 12:53:52.863: E/Trace(1977): error opening trace file: No such file or directory (2)
08-19 12:53:52.883: D/dalvikvm(1977): GC_FOR_ALLOC freed 80K, 2% free 10809K/11011K, paused 2ms, total 9ms
08-19 12:53:52.883: I/dalvikvm-heap(1977): Grow heap (frag case) to 12.922MB for 2457612-byte allocation
08-19 12:53:52.895: D/dalvikvm(1977): GC_CONCURRENT freed <1K, 2% free 13209K/13447K, paused 10ms+0ms, total 12ms
08-19 12:53:52.947: D/AndroidRuntime(1977): Shutting down VM
08-19 12:53:52.947: W/dalvikvm(1977): threadid=1: thread exiting with uncaught exception (group=0xa62be288)
08-19 12:53:52.947: E/AndroidRuntime(1977): FATAL EXCEPTION: main
08-19 12:53:52.947: E/AndroidRuntime(1977): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.iloveyou.lovetester/com.iloveyou.lovetester.LoveTestActivity}: android.view.InflateException: Binary XML file line #85: Error inflating class com.google.ads.AdView
08-19 12:53:52.947: E/AndroidRuntime(1977): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2059)
08-19 12:53:52.947: E/AndroidRuntime(1977): at

DashClock worldReadable metadata has no effect

This is my manifest, it works fine in the official dashclock app but not in any other plugin host (i tested sidebar plus and a few similar apps). i always get the same error in logcat: caller is not official dashclock app and extension is not worldReadable.
<service
android:name=".DashClockService"
android:icon="#drawable/ic_dashclock"
android:label="#string/app_name"
android:permission="com.google.android.apps.dashclock.permission.READ_EXTENSION_DATA" >
<intent-filter>
<action android:name="com.google.android.apps.dashclock.Extension" />
</intent-filter>
<meta-data android:name="protocolVersion" android:value="2" />
<meta-data android:name="worldReadable" android:value="true" />
<meta-data android:name="description" android:value="#string/extension_description" />
<meta-data android:name="settingsActivity" android:value=".DashClockSettingsActivity" />
</service>
EDIT: Here is the log.
12-06 14:41:32.667: W/System.err(1735): java.lang.NullPointerException
12-06 14:41:32.683: W/System.err(1735): at com.google.android.apps.dashclock.api.DashClockExtension.publishUpdate(DashClockExtension.java:354)
12-06 14:41:32.683: W/System.err(1735): at com.myapp.DashClockService.update(DashClockService.java:126)
12-06 14:41:32.683: W/System.err(1735): at com.myapp.DashClockService.onCreate(DashClockService.java:41)
12-06 14:41:32.687: W/System.err(1735): at android.app.ActivityThread.handleCreateService(ActivityThread.java:2573)com.myapp12-06 14:41:32.687: W/System.err(1735): at android.app.ActivityThread.access$1700(ActivityThread.java:145)
12-06 14:41:32.687: W/System.err(1735): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1489)
12-06 14:41:32.687: W/System.err(1735): at android.os.Handler.dispatchMessage(Handler.java:102)
12-06 14:41:32.687: W/System.err(1735): at android.os.Looper.loop(Looper.java:137)
12-06 14:41:32.687: W/System.err(1735): at android.app.ActivityThread.main(ActivityThread.java:5062)
12-06 14:41:32.691: W/System.err(1735): at java.lang.reflect.Method.invokeNative(Native Method)
12-06 14:41:32.691: W/System.err(1735): at java.lang.reflect.Method.invoke(Method.java:515)
12-06 14:41:32.691: W/System.err(1735): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:779)
12-06 14:41:32.691: W/System.err(1735): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595)
12-06 14:41:32.691: W/System.err(1735): at dalvik.system.NativeStart.main(Native Method)
12-06 14:41:32.953: E/DashClockExtension(1735): Caller is not official DashClock app and this extension is not world-readable.
12-06 14:41:32.960: W/Binder(1735): Caught a RuntimeException from the binder stub implementation.
12-06 14:41:32.960: W/Binder(1735): java.lang.SecurityException: Caller is not official DashClock app and this extension is not world-readable.
12-06 14:41:32.960: W/Binder(1735): at com.google.android.apps.dashclock.api.DashClockExtension$1.onInitialize(DashClockExtension.java:289)
12-06 14:41:32.960: W/Binder(1735): at com.google.android.apps.dashclock.api.internal.IExtension$Stub.onTransact(IExtension.java:52)
12-06 14:41:32.960: W/Binder(1735): at android.os.Binder.execTransact(Binder.java:404)
12-06 14:41:32.960: W/Binder(1735): at dalvik.system.NativeStart.run(Native Method)
To add some additional info:
The Extension shows up as available, but it won't update or initialize.
The service is running.

Not able to launch Android Hybrid app using Salesforce Mobile SDK

When I run a project created using forcedroid, I am getting following error in logcat of my ADT.
12-06 05:57:48.176: D/HttpAccess:constructor(833): User-Agent string: SalesforceMobileSDK/2.1.0 android mobile/4.2.2 (sdk) moapp/1.0 Hybrid
12-06 05:57:48.876: I/SalesforceDroidGapActivity.onCreate(833): onCreate called
12-06 05:57:49.026: I/ClientManager:peekRestClient(833): No user account found
12-06 05:57:49.026: I/ClientManager:peekRestClient(833): com.salesforce.androidsdk.rest.ClientManager$AccountInfoNotFoundException: No user account found
12-06 05:57:49.026: I/ClientManager:peekRestClient(833): at com.salesforce.androidsdk.rest.ClientManager.peekRestClient(ClientManager.java:140)
12-06 05:57:49.026: I/ClientManager:peekRestClient(833): at com.salesforce.androidsdk.ui.sfhybrid.SalesforceDroidGapActivity.onCreate(SalesforceDroidGapActivity.java:118)
12-06 05:57:49.026: I/ClientManager:peekRestClient(833): at android.app.Activity.performCreate(Activity.java:5104)
12-06 05:57:49.026: I/ClientManager:peekRestClient(833): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1080)
12-06 05:57:49.026: I/ClientManager:peekRestClient(833): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2144)
12-06 05:57:49.026: I/ClientManager:peekRestClient(833): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2230)
12-06 05:57:49.026: I/ClientManager:peekRestClient(833): at android.app.ActivityThread.access$600(ActivityThread.java:141)
12-06 05:57:49.026: I/ClientManager:peekRestClient(833): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1234)
12-06 05:57:49.026: I/ClientManager:peekRestClient(833): at android.os.Handler.dispatchMessage(Handler.java:99)
12-06 05:57:49.026: I/ClientManager:peekRestClient(833): at android.os.Looper.loop(Looper.java:137)
12-06 05:57:49.026: I/ClientManager:peekRestClient(833): at android.app.ActivityThread.main(ActivityThread.java:5041)
12-06 05:57:49.026: I/ClientManager:peekRestClient(833): at java.lang.reflect.Method.invokeNative(Native Method)
12-06 05:57:49.026: I/ClientManager:peekRestClient(833): at java.lang.reflect.Method.invoke(Method.java:511)
12-06 05:57:49.026: I/ClientManager:peekRestClient(833): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793)
12-06 05:57:49.026: I/ClientManager:peekRestClient(833): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:560)
12-06 05:57:49.026: I/ClientManager:peekRestClient(833): at dalvik.system.NativeStart.main(Native Method)
12-06 05:57:49.146: D/dalvikvm(833): GC_CONCURRENT freed 279K, 13% free 2623K/3004K, paused 27ms+24ms, total 192ms
12-06 05:57:49.296: I/SalesforceDroidGapActivity.onResumeNotLoggedIn(833): Should authenticate / online - authenticating
12-06 05:57:49.296: I/SalesforceDroidGapActivity.authenticate(833): authenticate called
12-06 05:57:49.296: I/ClientManager:getRestClient(833): No account of type com.salesforce.androisdk found
12-06 05:57:49.936: D/gralloc_goldfish(833): Emulator without GPU emulation detected.
12-06 05:57:50.096: E/Trace(857): error opening trace file: No such file or directory (2)
12-06 05:57:51.318: D/HttpAccess:constructor(857): User-Agent string: SalesforceMobileSDK/2.1.0 android mobile/4.2.2 (sdk) mobilapp/1.0 Hybrid
12-06 05:58:09.306: D/LockChecker:run(833): isLocked:true elapsedSinceLastActivity:20 timeout:0
My json.config file looks like this
{
"remoteAccessConsumerKey": "3MVG9Iu66FKeHhINkB1l7xt7kR8czFcCTUhgoA8Ol2Ltf1eYHOU4SqQRSEitYFDUpqRWcoQ2.dBv_a1Dyu5xa",
"oauthRedirectURI": "testsfdc:///mobilesdk/detect/oauth/done",
"oauthScopes": ["web", "api"],
"isLocal": false,
"startPage": "helloWorld",
"errorPage": "error.html",
"shouldAuthenticate": true,
"attemptOfflineLoad": false,
"androidPushNotificationClientId": ""
}
Please help me to resolve this error
I had the same problem. You need to set manifestmerger.enabled=true in your project.properties in order to merge the manifest file from salesforceSDK.
The AuthenticatorService from that manifest fixes the problem.

Android - Settings.ACTION_DEVICE_INFO_SETTINGS crashes on android 4.1.1

I have an app where users can click on certain buttons in my app and it will launch specific settings page from Android to the user. I uses the android API from their website http://developer.android.com/reference/android/provider/Settings.html
Intent intent = new Intent(Settings.ACTION_SECURITY_SETTINGS);
currentContext.startActivity(intent);
Intent intent = new Intent(Settings.ACTION_DISPLAY_SETTINGS);
currentContext.startActivity(intent);
These are some of the settings pages that my app will open. So far I have no problem launching these two intents from my app. However, when I try to launch the "About tablet" page with the code below, the Settings process crashes.
Intent intent = new Intent(Settings.ACTION_DEVICE_INFO_SETTINGS);
currentContext.startActivity(intent);
It crashes on android 4.1.1 but it works fine on android 3.2. I'm still new to Android and I am at a lost on why it crashes. I'm new to StackOverflow as well. Hopefully I am able to get some answers here and nice to meet you all.
Here's my logcat:
09-19 09:50:12.830: I/ActivityManager(270): START {act=android.settings.DEVICE_INFO_SETTINGS cmp=com.android.settings/.Settings$DeviceInfoSettingsActivity u=0} from pid 1627
09-19 09:50:12.910: D/dalvikvm(270): GC_FOR_ALLOC freed 738K, 13% free 11824K/13575K, paused 62ms, total 62ms
09-19 09:50:13.010: W/System.err(1675): Removed 2131231183
09-19 09:50:13.020: W/System.err(1675): Removed 2131231190
09-19 09:50:13.060: D/LocalBluetoothProfileManager(1675): LocalBluetoothProfileManager construction complete
09-19 09:50:13.060: D/AndroidRuntime(1675): Shutting down VM
09-19 09:50:13.060: W/dalvikvm(1675): threadid=1: thread exiting with uncaught exception (group=0x40d4c300)
09-19 09:50:13.060: E/AndroidRuntime(1675): FATAL EXCEPTION: main
09-19 09:50:13.060: E/AndroidRuntime(1675): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.android.settings/com.android.settings.Settings$DeviceInfoSettingsActivity}: java.lang.NullPointerException
09-19 09:50:13.060: E/AndroidRuntime(1675): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2059)
09-19 09:50:13.060: E/AndroidRuntime(1675): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2084)
09-19 09:50:13.060: E/AndroidRuntime(1675): at android.app.ActivityThread.access$600(ActivityThread.java:130)
09-19 09:50:13.060: E/AndroidRuntime(1675): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1195)
09-19 09:50:13.060: E/AndroidRuntime(1675): at android.os.Handler.dispatchMessage(Handler.java:99)
09-19 09:50:13.060: E/AndroidRuntime(1675): at android.os.Looper.loop(Looper.java:137)
09-19 09:50:13.060: E/AndroidRuntime(1675): at android.app.ActivityThread.main(ActivityThread.java:4745)
09-19 09:50:13.060: E/AndroidRuntime(1675): at java.lang.reflect.Method.invokeNative(Native Method)
09-19 09:50:13.060: E/AndroidRuntime(1675): at java.lang.reflect.Method.invoke(Method.java:511)
09-19 09:50:13.060: E/AndroidRuntime(1675): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:786)
09-19 09:50:13.060: E/AndroidRuntime(1675): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
09-19 09:50:13.060: E/AndroidRuntime(1675): at dalvik.system.NativeStart.main(Native Method)
09-19 09:50:13.060: E/AndroidRuntime(1675): Caused by: java.lang.NullPointerException
09-19 09:50:13.060: E/AndroidRuntime(1675): at com.android.settings.Settings.onCreate(Settings.java:167)
09-19 09:50:13.060: E/AndroidRuntime(1675): at android.app.Activity.performCreate(Activity.java:5008)
09-19 09:50:13.060: E/AndroidRuntime(1675): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1079)
09-19 09:50:13.060: E/AndroidRuntime(1675): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2023)
09-19 09:50:13.060: E/AndroidRuntime(1675): ... 11 more
09-19 09:50:13.090: W/ActivityManager(270): Force finishing activity com.android.settings/.Settings$DeviceInfoSettingsActivity
09-19 09:50:13.090: W/ActivityManager(270): Force finishing activity com.panasonic.tbexperience/.view.templates.TwoColumnsControlActivity
09-19 09:50:13.100: W/InputMethodManagerService(270): Window already focused, ignoring focus gain of: com.android.internal.view.IInputMethodClient$Stub$Proxy#41811de8 attribute=null
09-19 09:50:13.130: D/dalvikvm(1675): GC_CONCURRENT freed 187K, 4% free 6233K/6471K, paused 12ms+5ms, total 60ms
09-19 09:50:13.610: W/ActivityManager(270): Activity pause timeout for ActivityRecord{417ea2e0 com.android.settings/.Settings$DeviceInfoSettingsActivity}
09-19 09:50:13.820: D/dalvikvm(445): GC_FOR_ALLOC freed 1020K, 33% free 14790K/22023K, paused 41ms, total 41ms
09-19 09:50:13.960: D/dalvikvm(445): GC_FOR_ALLOC freed 1057K, 30% free 15633K/22023K, paused 39ms, total 39ms
09-19 09:50:14.010: D/dalvikvm(445): GC_FOR_ALLOC freed 362K, 24% free 16871K/22023K, paused 32ms, total 32ms
09-19 09:50:14.060: D/dalvikvm(445): GC_CONCURRENT freed 1289K, 20% free 17622K/22023K, paused 3ms+7ms, total 39ms
09-19 09:50:14.060: D/dalvikvm(445): WAIT_FOR_CONCURRENT_GC blocked 29ms
09-19 09:50:14.060: D/dalvikvm(445): WAIT_FOR_CONCURRENT_GC blocked 17ms
09-19 09:50:14.100: D/dalvikvm(445): GC_FOR_ALLOC freed 1693K, 25% free 16723K/22023K, paused 31ms, total 31ms
09-19 09:50:14.190: D/dalvikvm(445): GC_CONCURRENT freed 1126K, 21% free 17585K/22023K, paused 14ms+9ms, total 64ms
09-19 09:50:14.190: D/dalvikvm(445): WAIT_FOR_CONCURRENT_GC blocked 50ms
09-19 09:50:14.390: I/dalvikvm(270): Jit: resizing JitTable from 8192 to 16384
09-19 09:50:16.870: I/Process(1675): Sending signal. PID: 1675 SIG: 9
09-19 09:50:16.890: I/ActivityManager(270): Process com.android.settings (pid 1675) has died.
09-19 09:50:16.890: W/ActivityManager(270): Force removing ActivityRecord{4166f668 com.android.settings/.Settings$DeviceInfoSettingsActivity}: app died, no saved state
09-19 09:50:16.890: W/InputMethodManagerService(270): Window already focused, ignoring focus gain of: com.android.internal.view.IInputMethodClient$Stub$Proxy#415f2878 attribute=null
09-19 09:50:32.250: D/dalvikvm(1552): GC_CONCURRENT freed 424K, 9% free 6942K/7559K, paused 12ms+3ms, total 39ms
Also, I tried to directly set the classname for this api...
Intent intent = new Intent();
intent.setClassName("com.android.settings", "com.android.settings.Settings$DeviceInfoSettingsActivity");
currentContext.startActivity(intent);
Same thing happens.It works for android 3.2 but doesn't work in 4.1.1. I've got a feeling that maybe I did not get the right class name for the 4.1.1 version. Does anyone know the direct class name to open the "About Tablet" page or whether is it possible to open that page programmatically?
Regards,
shuwen
android api doc say:
In some cases, a matching Activity may not exist, so ensure you safeguard against this.
so you should check this intent or catch this exception yourself.

Android: How to load an image from gallery into the OpenCv Mat variable?

I'm currently try to run some opencv filters (i.e find egde, Median, ...) on images which are stored in the image gallery folder.
But I get error for loading image. My device is galaxy tab 10.1 with android 3.2, my opencv - API level 8.
I have the following source on a Button:
#Override
public void onClick(View v) {
Bitmap myBitmap = BitmapFactory.decodeFile("/sdcard/image1.jpg");
Bitmap myBitmap32 = myBitmap.copy(Bitmap.Config.ARGB_8888, true);
Mat pic1 = Utils.bitmapToMat(myBitmap32);
}
Here is LogCat:
02-07 12:31:27.290: I/System.out(16522): Not a DRM File, opening notmally
02-07 12:31:27.290: I/System.out(16522): buffer returned
02-07 12:31:27.310: D/dalvikvm(16522): GC_FOR_ALLOC freed 11K, 21% free 6975K/8775K, paused 19ms
02-07 12:31:27.320: I/dalvikvm-heap(16522): Grow heap (frag case) to 12.918MB for 6291472-byte allocation
02-07 12:31:27.340: D/dalvikvm(16522): GC_FOR_ALLOC freed <1K, 13% free 13119K/14983K, paused 19ms
02-07 12:31:27.380: D/dalvikvm(16522): GC_CONCURRENT freed 0K, 13% free 13119K/14983K, paused 2ms+2ms
02-07 12:31:27.710: D/dalvikvm(16522): GC_FOR_ALLOC freed 55K, 13% free 13063K/14983K, paused 20ms
02-07 12:31:27.730: I/dalvikvm-heap(16522): Grow heap (frag case) to 24.864MB for 12582928-byte allocation
02-07 12:31:27.780: D/dalvikvm(16522): GC_FOR_ALLOC freed 0K, 8% free 25351K/27335K, paused 21ms
02-07 12:31:27.830: D/dalvikvm(16522): GC_CONCURRENT freed <1K, 8% free 25351K/27335K, paused 2ms+3ms
02-07 12:31:27.890: W/dalvikvm(16522): Exception Ljava/lang/UnsatisfiedLinkError; thrown while initializing Lorg/opencv/android/Utils;
02-07 12:31:27.890: D/AndroidRuntime(16522): Shutting down VM
02-07 12:31:27.890: W/dalvikvm(16522): threadid=1: thread exiting with uncaught exception (group=0x400fc760)
02-07 12:31:27.890: E/AndroidRuntime(16522): FATAL EXCEPTION: main
02-07 12:31:27.890: E/AndroidRuntime(16522): java.lang.ExceptionInInitializerError
02-07 12:31:27.890: E/AndroidRuntime(16522): at photo.klu.PhotoKLUActivity$1.onClick(PhotoKLUActivity.java:82)
02-07 12:31:27.890: E/AndroidRuntime(16522): at android.view.View.performClick(View.java:3127)
02-07 12:31:27.890: E/AndroidRuntime(16522): at android.view.View$PerformClick.run(View.java:12025)
02-07 12:31:27.890: E/AndroidRuntime(16522): at android.os.Handler.handleCallback(Handler.java:587)
02-07 12:31:27.890: E/AndroidRuntime(16522): at android.os.Handler.dispatchMessage(Handler.java:92)
02-07 12:31:27.890: E/AndroidRuntime(16522): at android.os.Looper.loop(Looper.java:132)
02-07 12:31:27.890: E/AndroidRuntime(16522): at android.app.ActivityThread.main(ActivityThread.java:4126)
02-07 12:31:27.890: E/AndroidRuntime(16522): at java.lang.reflect.Method.invokeNative(Native Method)
02-07 12:31:27.890: E/AndroidRuntime(16522): at java.lang.reflect.Method.invoke(Method.java:491)
02-07 12:31:27.890: E/AndroidRuntime(16522): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:844)
02-07 12:31:27.890: E/AndroidRuntime(16522): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:602)
02-07 12:31:27.890: E/AndroidRuntime(16522): at dalvik.system.NativeStart.main(Native Method)
02-07 12:31:27.890: E/AndroidRuntime(16522): Caused by: java.lang.UnsatisfiedLinkError: Couldn't load opencv_java: findLibrary returned null
02-07 12:31:27.890: E/AndroidRuntime(16522): at java.lang.Runtime.loadLibrary(Runtime.java:425)
02-07 12:31:27.890: E/AndroidRuntime(16522): at java.lang.System.loadLibrary(System.java:554)
02-07 12:31:27.890: E/AndroidRuntime(16522): at org.opencv.android.Utils.<clinit>(Utils.java:86)
02-07 12:31:27.890: E/AndroidRuntime(16522): ... 12 more
02-07 12:31:30.010: I/dalvikvm(16522): threadid=4: reacting to signal 3
02-07 12:31:30.010: I/dalvikvm(16522): Wrote stack traces to '/data/anr/traces.txt'
02-07 12:31:37.470: I/Process(16522): Sending signal. PID: 16522 SIG: 9
Any ideas?
Thank you.
The openCV library is not attached to your application. Please do the following (i assume that the openCV library is imported to your workspace). On Package Explorer > Right click on the application project > properties > under Library click Add > select openCV Be sure that on Java Build Path you don't have anything related to openCV

Categories

Resources