Android Question App crash without filter logs

Emme Developer

Well-Known Member
Licensed User
Longtime User
Hi to all! I've an application that crashes in some devices. I tried to understand where is the problem, but without success. I tried to put a log in Application_Error on starter service, but this is never handled. I tried to check the log, but i don't get any crash in the log.
By analizing the unfiltered log, i discovered this, but i don't understand where can be the problem. What this log means? I never use Animation library, and i don't use SetLayoutAnimated..
Many thanks


B4X:
....
art/runtime/check_jni.cc:65] JNI DETECTED ERROR IN APPLICATION: obj == null
art/runtime/check_jni.cc:65]     in call to CallVoidMethodV
art/runtime/check_jni.cc:65]     from void android.animation.PropertyValuesHolder.nCallFloatMethod(java.lang.Object, long, float)
art/runtime/check_jni.cc:65] "main" prio=5 tid=1 Runnable
art/runtime/check_jni.cc:65]   | group="main" sCount=0 dsCount=0 obj=0x73f47000 self=0xb8329090
art/runtime/check_jni.cc:65]   | sysTid=16419 nice=0 cgrp=default sched=0/0 handle=0xb6f63ec8
art/runtime/check_jni.cc:65]   | state=R schedstat=( 2542743225 56133323 694 ) utm=213 stm=41 core=1 HZ=100
art/runtime/check_jni.cc:65]   | stack=0xbe083000-0xbe085000 stackSize=8MB
art/runtime/check_jni.cc:65]   | held mutexes= "mutator lock"(shared held)
art/runtime/check_jni.cc:65]   native: #00 pc 00004c58  /system/lib/libbacktrace_libc++.so (UnwindCurrent::Unwind(unsigned int, ucontext*)+23)
art/runtime/check_jni.cc:65]   native: #01 pc 000034c1  /system/lib/libbacktrace_libc++.so (Backtrace::Unwind(unsigned int, ucontext*)+8)
art/runtime/check_jni.cc:65]   native: #02 pc 002458bd  /system/lib/libart.so (art::DumpNativeStack(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, int, char const*, art::mirror::ArtMethod*)+68)
art/runtime/check_jni.cc:65]   native: #03 pc 0022acaf  /system/lib/libart.so (art::Thread::Dump(std::__1::basic_ostream<char, std::__1::char_traits<char> >&) const+146)
art/runtime/check_jni.cc:65]   native: #04 pc 000b00ef  /system/lib/libart.so (art::JniAbort(char const*, char const*)+582)
art/runtime/check_jni.cc:65]   native: #05 pc 000b081f  /system/lib/libart.so (art::JniAbortF(char const*, char const*, ...)+58)
art/runtime/check_jni.cc:65]   native: #06 pc 0019b9a3  /system/lib/libart.so (art::JNI::CallVoidMethodV(_JNIEnv*, _jobject*, _jmethodID*, std::__va_list)+674)
art/runtime/check_jni.cc:65]   native: #07 pc 00062e8f  /system/lib/libandroid_runtime.so (???)
art/runtime/check_jni.cc:65]   native: #08 pc 0007156d  /data/dalvik-cache/arm/system@[email protected] (Java_android_animation_PropertyValuesHolder_nCallFloatMethod__Ljava_lang_Object_2JF+132)
art/runtime/check_jni.cc:65]   at android.animation.PropertyValuesHolder.nCallFloatMethod(Native method)
art/runtime/check_jni.cc:65]   at android.animation.PropertyValuesHolder.access$400(PropertyValuesHolder.java:38)
art/runtime/check_jni.cc:65]   at android.animation.PropertyValuesHolder$FloatPropertyValuesHolder.setAnimatedValue(PropertyValuesHolder.java:1296)
art/runtime/check_jni.cc:65]   at android.animation.ObjectAnimator.animateValue(ObjectAnimator.java:952)
art/runtime/check_jni.cc:65]   at android.animation.ValueAnimator.animationFrame(ValueAnimator.java:1207)
art/runtime/check_jni.cc:65]   at android.animation.ValueAnimator.doAnimationFrame(ValueAnimator.java:1248)
art/runtime/check_jni.cc:65]   at android.animation.ValueAnimator$AnimationHandler.doAnimationFrame(ValueAnimator.java:659)
art/runtime/check_jni.cc:65]   at android.animation.ValueAnimator$AnimationHandler.run(ValueAnimator.java:682)
art/runtime/check_jni.cc:65]   at android.view.Choreographer$CallbackRecord.run(Choreographer.java:795)
art/runtime/check_jni.cc:65]   at android.view.Choreographer.doCallbacks(Choreographer.java:598)
art/runtime/check_jni.cc:65]   at android.view.Choreographer.doFrame(Choreographer.java:566)
art/runtime/check_jni.cc:65]   at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:781)
art/runtime/check_jni.cc:65]   at android.os.Handler.handleCallback(Handler.java:810)
art/runtime/check_jni.cc:65]   at android.os.Handler.dispatchMessage(Handler.java:99)
art/runtime/check_jni.cc:65]   at android.os.Looper.loop(Looper.java:189)
art/runtime/check_jni.cc:65]   at android.app.ActivityThread.main(ActivityThread.java:5529)
art/runtime/check_jni.cc:65]   at java.lang.reflect.Method.invoke!(Native method)
art/runtime/check_jni.cc:65]   at java.lang.reflect.Method.invoke(Method.java:372)
art/runtime/check_jni.cc:65]   at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:950)
art/runtime/check_jni.cc:65]   at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:745)
art/runtime/check_jni.cc:65]
Fatal signal 6 (SIGABRT), code -6 in tid 16419 (hey.bubblebrain)
Suppressing debuggerd output because prctl(PR_GET_DUMPABLE)==0
channel 'ea8ea4b com.hey.bubblebrain/com.hey.bubblebrain.main (server)' ~ Consumer closed input channel or an error occurred.  events=0x9
channel 'ea8ea4b com.hey.bubblebrain/com.hey.bubblebrain.main (server)' ~ Channel is unrecoverably broken and will be disposed!
[GuiExtS] binder of dump tunnel(RB-0xb83cab68) died
[com.hey.bubblebrain/com.hey.bubblebrain.main](this:0xb70a87b0,id:222,api:1,p:-1,c:135) disconnect(P): api 1
[com.hey.bubblebrain/com.hey.bubblebrain.main](this:0xb70a87b0,id:222,api:1,p:-1,c:135) getReleasedBuffers: returning mask 0xffffffffffffffff
 closing because is_eof=1 r=0 s->fde.force_eof=0
entered. LS(104) fd=21
Process 16419 exited due to signal (6)
EventThread Client Pid (16419) disconnected by (135)
EventThread Client Pid (16419) disconnected by (135)
Display listener for pid 16419 died.
Client connection lost with reason: 4
WIN DEATH: Window{371fe2e6 u0 Toast EXITING}
Process com.hey.bubblebrain (pid 16419) has died
notify app switch quit packageName=com.hey.bubblebrain
notifyAppSwitch resumed: false; pkg:com.hey.bubblebrain
WIN DEATH: Window{ea8ea4b u0 com.hey.bubblebrain/com.hey.bubblebrain.main}
Attempted to unregister already unregistered input channel 'ea8ea4b com.hey.bubblebrain/com.hey.bubblebrain.main (server)'
SVC-UNBIND_SERVICE handled : 0 / BindServiceData{token=android.os.BinderProxy@4fe47a1 intent=Intent { act=com.google.firebase.auth.api.gms.service.START pkg=com.google.android.gms }}
Scheduling restart of crashed service com.hey.bubblebrain/.starter in 1000ms
Scheduling restart of crashed service com.hey.bubblebrain/.sendnotification in 1000ms
......
 

Emme Developer

Well-Known Member
Licensed User
Longtime User
Are you able to reproduce it?

The layouts themselves use animation, unless you set the animation duration to 0. Though I don't remember seeing any report such as this one.
I'm able to reproduce it only on some devices, but i don't know which is the problem because it happens at first activity.
I tried also to set animation to 0 in all layouts, but without luck
 
Upvote 0

Emme Developer

Well-Known Member
Licensed User
Longtime User
That's good. You should add some log messages to better understand when it happens.

If it happens when the app starts then try to comment out some of the code until you find what causes it.
I finally figured out in what is the problem.
B4X:
jo.RunMethod("setStateListAnimator", Array(Null))
I don't know why app crashes, because StateListAnimator was introduced in API 21, my device has sdk 21 and this is the code that i use..

B4X:
Sub setElevation (b As View ,f As Float)
    Dim sdk As Phone
    Dim jo As JavaObject = b
    If sdk.SdkVersion > 20 Then
        jo.RunMethod("setElevation",Array As Object(f))
        jo.RunMethod("setStateListAnimator", Array(Null))
    End If
End Sub

So i'm trying to remove the shadow in another way
 
Upvote 0
Top