Android "Shutting down VM" with no stacktrace - android

I have recently faced this issue a lot and I am not able to find any solution to it.
I am constantly getting Shutting down VM and logcat doesn't show any trace of this issue.
06-08 20:34:25.288 20416-20416/my.package.dev D/app_BaseRecyclerView﹕ onCreateViewHolder begins
06-08 20:34:25.324 20416-20416/my.package.dev D/AndroidRuntime﹕ Shutting down VM
06-08 20:34:30.969 20416-20425/my.package.dev I/art﹕ Thread[5,tid=20425,WaitingInMainSignalCatcherLoop,Thread*=0xb4a33800,peer=0x12c000a0,"Signal Catcher"]: reacting to signal 3
06-08 20:34:30.969 20416-20425/my.package.dev I/art﹕ [ 06-08 20:34:31.169 617: 639 I/Process ]
Sending signal. PID: 617 SIG: 3
Do you know how to make the stacktrace visible?

If you are using Google Analytics, try to disable ExceptionReporting if it is set to true

Related

Fatal signal 6 (SIGABRT) at 0x000002ef (code=0) while using Retrofit

Application sometimes crashes when calling API with retrofit and doing some UI interactions. I'm using Retrofit version 1.7.0.
Logcat shows:
I/dalvikvm﹕ threadid=3: reacting to signal 3
I/dalvikvm﹕ Wrote stack traces to '/data/anr/traces.txt'
A/libc﹕ Fatal signal 6 (SIGABRT) at 0x000002ef (code=0), thread 8653
How to resolve this issue?

Amazon-Android Registration Error(601): SERVICE_NOT_AVAILABLE

Today I tried to implement the Amazon push notification into my android app.
I followed this instruction: http://docs.aws.amazon.com/sns/latest/dg/mobile-push-gcm.html
But at the third step when I start the "AndroidMobilePushApp" there comes no Registration ID in the LogCat there are just these lines:
10-25 20:39:44.313: D/dalvikvm(601): Not late-enabling CheckJNI (already on)
10-25 20:39:45.144: I/dalvikvm(601): threadid=3: reacting to signal 3
10-25 20:39:45.394: E/dalvikvm(601): Unable to open stack trace file '/data/anr/traces.txt': Is a directory
10-25 20:39:45.653: I/dalvikvm(601): threadid=3: reacting to signal 3
10-25 20:39:45.713: I/dalvikvm(601): Wrote stack traces to '/data/anr/traces.txt'
10-25 20:39:45.743: I/onResume(601): no missed messages
10-25 20:39:45.993: I/onResume(601): no missed messages
10-25 20:39:46.053: D/gralloc_goldfish(601): Emulator without GPU emulation detected.
10-25 20:39:52.413: I/Registration Error(601): SERVICE_NOT_AVAILABLE
I hope you can help me.
This means the GCM service is currently unavailable and should be retried. checkout How to fix Google Cloud Messaging Registration error: SERVICE_NOT_AVAILABLE?

Android app random crash in Samsung S4 device when Backpressed or Finish the activity?

android application random crash in Galaxy S4 and Nexus 5. On other device is working file.
The crash happen mostly when I back pressed or finish the activity.
And I got the error in log
E/ViewRootImpl( 7168): sendUserActionEvent() mView == null
W/ApplicationPackageManager( 7168): getCSCPackageItemText()
W/Resources( 7168): Converting to int: TypedValue{t=0x3/d=0xcd6 "60" a=3 r=0x7f090170}
W/Resources( 7168): Converting to int: TypedValue{t=0x3/d=0xcd5 "500" a=3 r=0x7f09016f}
W/Resources( 7168): Converting to int: TypedValue{t=0x3/d=0xcd7 "30" a=3 r=0x7f090171}
F/libc ( 7168): invalid address or address of corrupt block 0x73880968 passed to dlfree
D/dalvikvm( 7168): [SWE] ### S.LSI JIT optimization list BEGIN ###
D/dalvikvm( 7168): [SWE] ### S.LSI JIT optimization list END ###
F/libc ( 7168): Fatal signal 11 (SIGSEGV) at 0xdeadbaad (code=1), thread 7183 (AsyncTask #1)
D/dalvikvm( 7770): Late-enabling CheckJNI
I/dalvikvm( 7770): Enabling JNI app bug workarounds for target SDK version 9...
can any one help me on this issue , how to resolve or any workaround ...

Fail to add Spongycastle as provider in android

I am trying to make use of spongycastle and followed all the help I could get to include it but when the application execute it crashes at the code where I add it as a provider:
static {
Security.addProvider(new org.spongycastle.jce.provider.BouncyCastleProvider());
}
I add scprov-jdk15-1.46.99.3-UNOFFICIAL-ROBERTO-RELEASE.jar as an external JAR to my project and eclipse does not report any errors.
Any ideas?
The stacktrace:
08-11 12:41:56.653: W/ActivityThread(683): Application com.ljbrits.test4 is waiting for the debugger on port 8100...
08-11 12:41:56.723: I/System.out(683): Sending WAIT chunk
08-11 12:41:56.723: I/dalvikvm(683): Debugger is active
08-11 12:41:56.914: I/System.out(683): Debugger has connected
08-11 12:41:56.914: I/System.out(683): waiting for debugger to settle...
08-11 12:41:57.113: I/System.out(683): waiting for debugger to settle...
08-11 12:41:57.153: I/dalvikvm(683): threadid=3: reacting to signal 3
08-11 12:41:57.203: I/dalvikvm(683): Wrote stack traces to '/data/anr/traces.txt'
:
08-11 12:41:59.344: I/System.out(683): waiting for debugger to settle...
08-11 12:41:59.546: I/System.out(683): debugger has settled (1437)
08-11 12:41:59.693: I/dalvikvm(683): threadid=3: reacting to signal 3
08-11 12:41:59.824: I/dalvikvm(683): Wrote stack traces to '/data/anr/traces.txt'
08-11 12:42:00.173: I/dalvikvm(683): threadid=3: reacting to signal 3
08-11 12:42:00.183: I/dalvikvm(683): Wrote stack traces to '/data/anr/traces.txt'
08-11 12:42:00.193: D/dalvikvm(683): threadid=1: still suspended after undo (sc=1 dc=1)
08-11 12:42:00.283: E/dalvikvm(683): Could not find class 'org.spongycastle.jce.provider.BouncyCastleProvider', referenced from method com.ljbrits.test4.Test4Activity.<clinit>
08-11 12:42:00.283: W/dalvikvm(683): VFY: unable to resolve new-instance 417 (Lorg/spongycastle/jce/provider/BouncyCastleProvider;) in Lcom/ljbrits/test4/Test4Activity;
08-11 12:42:00.283: D/dalvikvm(683): VFY: replacing opcode 0x22 at 0x0000
08-11 12:42:00.363: D/dalvikvm(683): DexOpt: unable to opt direct call 0x07d8 at 0x02 in Lcom/ljbrits/test4/Test4Activity;.<clinit>
08-11 12:42:00.683: I/dalvikvm(683): threadid=3: reacting to signal 3
08-11 12:42:00.714: D/dalvikvm(683): threadid=1: still suspended after undo (sc=1 dc=1)
08-11 12:42:00.714: I/dalvikvm(683): Wrote stack traces to '/data/anr/traces.txt'
:
08-11 12:42:06.233: I/dalvikvm(683): Wrote stack traces to '/data/anr/traces.txt'
08-11 12:42:08.719: W/dalvikvm(683): Exception Ljava/lang/NoClassDefFoundError; thrown while initializing Lcom/ljbrits/test4/Test4Activity;
08-11 12:42:08.719: W/dalvikvm(683): Class init failed in newInstance call (Lcom/ljbrits/test4/Test4Activity;)
The NoClassDefFoundError thrown here suggests that the SpongyCastle classes are not being included in your deployed apk file - try unzipping the apk to check this). This could be caused by a few things, make sure you do a clean build (are you builiding with ant or eclipse?) and if the problem persists, it's likely a proguard issue - ProGuard may be stripping out classes it thinks are unused - could you post your proguard.cfg?

LinearAlloc exceeded capacity (5242880), last=1092 Error while installing on my Samsung Tablet Device

Am continuously getting, this errors in logcat
DexOpt: not resolving ambiguous class 'Lorg/apache/http/client/utils/URLEncodedUtils;'
12-07 05:26:01.085: ERROR/dalvikvm(4620): LinearAlloc exceeded capacity (5242880), last=1092
12-07 05:26:01.085: ERROR/dalvikvm(4620): VM aborting
12-07 05:26:01.187: INFO/DEBUG(2373): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
12-07 05:26:01.187: INFO/DEBUG(2373): Build fingerprint: 'samsung/SGH-T849/SGH-T849/SGH-T849:2.2/FROYO/UVJJB:user/release-keys'
12-07 05:26:01.187: INFO/DEBUG(2373): pid: 4620, tid: 4620 >>> /system/bin/dexopt <<<
12-07 05:26:01.187: INFO/DEBUG(2373): signal 11 (SIGSEGV), fault addr deadd00d
............etc
12-07 05:26:01.347: INFO/dalvikvm(2494): threadid=3: reacting to signal 3
12-07 05:26:01.358: INFO/dalvikvm(2494): Wrote stack traces to '/data/anr/traces.txt'
12-07 05:26:01.551: INFO/dalvikvm(2578): threadid=3: reacting to signal 3
12-07 05:26:02.866: ERROR/dalvikvm(4581): Failed to write stack traces to /data/anr/traces.txt (1370 of 2089): No such file or directory
12-07 05:26:25.976: ERROR/installd(2383): dexopt failed on '/data/dalvik-cache/data#app#com.check.careerbuilder-1.apk#classes.dex' res = 11
12-07 05:26:26.050: WARN/PackageManager(2494): Package couldn't be installed in /data/app/com.check.careerbuilder-1.apk
and While at Console
Installation error: INSTALL_FAILED_DEXOPT
Please check logcat output for more details.
Launch canceled!
I tried, cleaning the project, restarting device, adb killing and starting server,
and I found WipeUserData to be checked , but how to wipeuserdata for realdevice?
How to resolve this issue and install my apk on samsung tablet?
It's a limitation in Dalvik triggered on unusually complex interface hierarchies.
http://code.google.com/p/android/issues/detail?id=22586
See the details for ideas on working around. Simple answer might be to try using different libraries that are less complex.
A fix has been merged into Android AOSP.
https://android-review.googlesource.com/#/c/30900/
One potential solution is to use Proguard to trim any unused method/classes from your app.
If you are using libraries this can quite significantly cut down the size of the app and the number of objects that need to be allocated thereby sidestepping the problem (at least up to a certain size app).

Categories

Resources