Android Question help with google developer error logs

giggetto71

Active Member
Licensed User
Longtime User
Hi guys,
I am looking for some help trying to understand the meaning of some logs I get in the developer console.
1- Apparently from time to time I get a nullpointer exception

java.lang.NullPointerException:
at org.eclipse.paho.client.mqttv3.internal.ClientComms.shutdownConnection (ClientComms.java:310)
at org.eclipse.paho.client.mqttv3.internal.ClientComms$ConnectBG.run (ClientComms.java:608)
at java.lang.Thread.run (Thread.java:764)



which clearly has to do with mqtt.

2- This one is even stranger and if the above one at least can be related to mqtt this one I really have no idea..

backtrace:
#00 pc 000000000001e668 /system/lib64/libc.so (abort+120)
#00 pc 0000000000008348 /system/lib64/liblog.so (__android_log_assert+296)
#00 pc 0000000000046438 /system/lib64/libhwui.so (android::uirenderer::debug::GlesErrorCheckWrapper::assertNoErrors(char const*)+384)
#00 pc 00000000000883f4 /system/lib64/libhwui.so (android::uirenderer::Caches::flush(android::uirenderer::Caches::FlushMode)+164)
#00 pc 0000000000069bd8 /system/lib64/libhwui.so (android::uirenderer::renderthread::CanvasContext::~CanvasContext()+104)
#00 pc 0000000000069f50 /system/lib64/libhwui.so (android::uirenderer::renderthread::CanvasContext::~CanvasContext()+16)
#00 pc 0000000000073514 /system/lib64/libhwui.so (android::uirenderer::renderthread::Bridge_destroyContext(android::uirenderer::renderthread::destroyContextArgs*)+24)
#00 pc 000000000007547c /system/lib64/libhwui.so (android::uirenderer::renderthread::MethodInvokeRenderTask::run()+24)
#00 pc 0000000000075818 /system/lib64/libhwui.so (android::uirenderer::renderthread::SignalingRenderTask::run()+28)
#00 pc 0000000000076774 /system/lib64/libhwui.so (android::uirenderer::renderthread::RenderThread::threadLoop()+336)
#00 pc 00000000000114e8 /system/lib64/libutils.so (android:?:_threadLoop(void*)+344)
#00 pc 00000000000abcf4 /system/lib64/libandroid_runtime.so (android::AndroidRuntime::javaThreadShell(void*)+136)
#00 pc 000000000007472c /system/lib64/libc.so (__pthread_start(void*)+36)
#00 pc 000000000001fbb4 /system/lib64/libc.so (__start_thread+68)



I made some research and was not able to understand what could be the reason of this crashes. I cannot reproduce them anyhow on any of my Android devices so I am really puzzled.
Does anyone have a clue? thanks!!
 

giggetto71

Active Member
Licensed User
Longtime User
yes.
1599751511107.png
 
Upvote 0

giggetto71

Active Member
Licensed User
Longtime User
it's pretty recurrent but it seems only happening on Android 8.1 and along with the one I sent the other one classified as "abort" is ttached below.
checking on the web it seems something that has to do with hardware acceleration. Should I try to disable it (btw: how?). can I do it only for 8.1 devices?
thanks

*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
pid: 0, tid: 0 >>> gigiosoft.MQTTAlert <<<

backtrace:
#00 pc 000000000001e668 /system/lib64/libc.so (abort+120)
#00 pc 0000000000008348 /system/lib64/liblog.so (__android_log_assert+296)
#00 pc 0000000000046438 /system/lib64/libhwui.so (android::uirenderer::debug::GlesErrorCheckWrapper::assertNoErrors(char const*)+384)
#00 pc 00000000000883f4 /system/lib64/libhwui.so (android::uirenderer::Caches::flush(android::uirenderer::Caches::FlushMode)+164)
#00 pc 00000000000740fc /system/lib64/libhwui.so (android::uirenderer::renderthread::Bridge_destroyHardwareResources(android::uirenderer::renderthread::destroyHardwareResourcesArgs*)+12)
#00 pc 000000000007547c /system/lib64/libhwui.so (android::uirenderer::renderthread::MethodInvokeRenderTask::run()+24)
#00 pc 0000000000075818 /system/lib64/libhwui.so (android::uirenderer::renderthread::SignalingRenderTask::run()+28)
#00 pc 0000000000076774 /system/lib64/libhwui.so (android::uirenderer::renderthread::RenderThread::threadLoop()+336)
#00 pc 00000000000114e8 /system/lib64/libutils.so (android:?:_threadLoop(void*)+344)
#00 pc 00000000000abcf4 /system/lib64/libandroid_runtime.so (android::AndroidRuntime::javaThreadShell(void*)+136)
#00 pc 000000000007472c /system/lib64/libc.so (__pthread_start(void*)+36)
#00 pc 000000000001fbb4 /system/lib64/libc.so (__start_thread+68)
 
Upvote 0

giggetto71

Active Member
Licensed User
Longtime User
I am not using a web view. All the app is doing is to run an automatic foreground service where it connects to a configurable broker and then subscribe to a list of configurable topics comparing, upon receiving the payloads, against configurable values and condition (=,>,<,etc) and if the condition is met it throws notifications and/or play an alarm sound. it also logs in a sql db all the payloads received.
 
Upvote 0

giggetto71

Active Member
Licensed User
Longtime User
sorry to come back to this but despite all the efforts some 8.1 devices are reporting that same signature:

#00 pc 000000000001e668 /system/lib64/libc.so (abort+120)
#00 pc 0000000000008348 /system/lib64/liblog.so (__android_log_assert+296)
#00 pc 0000000000046438 /system/lib64/libhwui.so (android::uirenderer::debug::GlesErrorCheckWrapper::assertNoErrors(char const*)+384)
#00 pc 00000000000883f4 /system/lib64/libhwui.so (android::uirenderer::Caches::flush(android::uirenderer::Caches::FlushMode)+164)
#00 pc 00000000000740fc /system/lib64/libhwui.so (android::uirenderer::renderthread::Bridge_destroyHardwareResources(android::uirenderer::renderthread::destroyHardwareResourcesArgs*)+12)
#00 pc 000000000007547c /system/lib64/libhwui.so (android::uirenderer::renderthread::MethodInvokeRenderTask::run()+24)
#00 pc 0000000000075818 /system/lib64/libhwui.so (android::uirenderer::renderthread::SignalingRenderTask::run()+28)
#00 pc 0000000000076774 /system/lib64/libhwui.so (android::uirenderer::renderthread::RenderThread::threadLoop()+336)
#00 pc 00000000000114e8 /system/lib64/libutils.so (android:?:_threadLoop(void*)+344)
#00 pc 00000000000abcf4 /system/lib64/libandroid_runtime.so (android::AndroidRuntime::javaThreadShell(void*)+136)
#00 pc 000000000007472c /system/lib64/libc.so (__pthread_start(void*)+36)
#00 pc 000000000001fbb4 /system/lib64/libc.so (__start_thread+68)


I would like to give a try disabling the HW acceleration for 8.1 devices. Can I do it for a specific view? I was thinking to do it for the Custom List View I use in this app but I may give a try to disable it for the entire activity..I think I found in the forum how to do it in the manifest for the entire activity. Is there a way to disable it for specific views?
thanks!
 
Upvote 0

Erel

B4X founder
Staff member
Licensed User
Longtime User
This is not a common error so it is likely related to something that you are doing in your app.

Anyway, you can disable it for a specific version with:
B4X:
SetActivityAttribute(Main, android:hardwareAccelerated, "@bool/hardwareAccelerated")
CreateResource(values, bool.xml, 
<resources>
    <bool name="hardwareAccelerated">true</bool>
</resources>
)
CreateResource(values-v26, bool.xml, 
<resources>
    <bool name="hardwareAccelerated">false</bool>
</resources>
)
CreateResource(values-v28, bool.xml, 
<resources>
    <bool name="hardwareAccelerated">true</bool>
</resources>
)
 
Upvote 0
Top