아래 목록 중 한가지라도 해당이 된다면 이 포스팅의 내용이 해결책이 될 수 있음.

1. Fatal Signal 6 (SIGABRT) 
2. 
android INVOKE_INTERFACE || instr_code == Instruction::INVOKE_INTERFACE_RANGE Unexpected call into interface trampoline: invoke-virtual
3. ART Runtime ArrayIndexOutOfBoundsException
4. Retrofit을 사용중인 경우.

.........

이번 오류는 Retrofit과 gradle version으로 인한 것으로, Retrofit interface를 사용하여 rest통신을 실행할 때 예외가 발생하였다.
주 된 오류는 다음과 같다.

A/art: art/runtime/thread.cc:1344] Throwing new exception 'length=248; index=1273' with unexpected pending exception: java.lang.ArrayIndexOutOfBoundsException: length=248; index=1273

Check failed: count_ == 0 (count_=-1, 0=0) Attempted to destroy barrier with non zero count
A/libc: Fatal signal 6 (SIGABRT), code -6 in tid 21705

위와 같은 오류가 발생한다면 다음의 사항을 의심해보아도 좋다.


1. Retrofit을 사용중이거나 최근에 버전을 업데이트 하였음.
2. Android Project Level의 Build.gradle 내용 중 com.android.tools.build:gradle:x.x.x 의 버전을 수정하였다.

해결책

from classpath 'com.android.tools.build:gradle:2.0.0-alpha8' to classpath 'com.android.tools.build:gradle:2.0.0-alpha3' // 2.0.0-alpha3 이하 버전으로 수정.