Android Question [Solved] App isn't responding...

JakeBullet70

Well-Known Member
Licensed User
This one is killing me. About 1 minute after my app starts I get this message. It is happening on 2 tablets in debug and release mode. It worked fine yesterday but after 4 hours of beating my head against the computer screen... I have tried to find the traces log file but cannot find them on either tablet. One tablet is rooted (V4.4.2) and one is not (V4.2.2)

Anybody?

Unfiltered log.

[1] 5.onFinished: Installation state replication succeeded.
void cb_onMotion(uint16_t)
void cb_onMotion(uint16_t)
Timeout executing service: ServiceRecord{42a6d558 u0

com.sadLogic.KitchenCentral/anywheresoftware.b4a.samples.httputils2.httputils2service}
Sending signal. PID: 4741 SIG: 3
threadid=3: reacting to signal 3
Wrote stack traces to '/data/anr/traces.txt'
Sending signal. PID: 512 SIG: 3
threadid=3: reacting to signal 3
poll() failed (Interrupted system call)
Wrote stack traces to '/data/anr/traces.txt'
Sending signal. PID: 795 SIG: 3
threadid=3: reacting to signal 3
Wrote stack traces to '/data/anr/traces.txt'
Sending signal. PID: 674 SIG: 3
threadid=3: reacting to signal 3
Wrote stack traces to '/data/anr/traces.txt'
GC_FOR_ALLOC freed 351K, 19% free 9146K/11184K, paused 46ms, total 46ms
mLidState=1 mLidOpenRotation=0 mDockMode=0 mAllowAllRotations=1
Class not found: sadLogic.eHome.customlistview, trying: com.sadLogic.KitchenCentral.customlistview
Class not found: sadLogic.eHome.customlistview, trying: com.sadLogic.KitchenCentral.customlistview
Class not found: sadLogic.eHome.customlistview, trying: com.sadLogic.KitchenCentral.customlistview
Class not found: sadLogic.eHome.customlistview, trying: com.sadLogic.KitchenCentral.customlistview
Class not found: sadLogic.eHome.customlistview, trying: com.sadLogic.KitchenCentral.customlistview
Class not found: sadLogic.eHome.customlistview, trying: com.sadLogic.KitchenCentral.customlistview
GC_CONCURRENT freed 1072K, 16% free 7053K/8368K, paused 2ms+4ms, total 32ms
GC_FOR_ALLOC freed 205K, 14% free 7391K/8560K, paused 20ms, total 20ms
GC_EXPLICIT freed 1110K, 16% free 9459K/11184K, paused 3ms+6ms, total 68ms
Page created 2
Page created 2
Sending signal. PID: 1570 SIG: 3
threadid=3: reacting to signal 3
Wrote stack traces to '/data/anr/traces.txt'
ANR in com.sadLogic.KitchenCentral
PID: 4741
Reason: Executing service com.sadLogic.KitchenCentral/anywheresoftware.b4a.samples.httputils2.httputils2service
Load: 0.61 / 1.0 / 0.78
CPU usage from 7881ms to 0ms ago with 99% awake:
3.8% 512/system_server: 2.6% user + 1.1% kernel
3.5% 4741/com.sadLogic.KitchenCentral: 2.9% user + 0.6% kernel / faults: 72 minor
1.9% 67/kinteractiveup: 0% user + 1.9% kernel
0.5% 103/surfaceflinger: 0.1% user + 0.3% kernel
1.2% 2366/kworker/0:2: 0% user + 1.2% kernel
1% 87/dhd_dpc: 0% user + 1% kernel
0.5% 1570/anywheresoftware.b4a.b4abridge_gg: 0.1% user + 0.3% kernel / faults: 2 minor
0.3% 4658/kworker/1:0: 0.3% user + 0% kernel
0.1% 4660/irq/182-host_sp: 0% user + 0.1% kernel
0% 51/kworker/u:1: 0% user + 0% kernel
0.1% 86/dhd_watchdog: 0.1% user + 0% kernel
0.1% 658/wpa_supplicant: 0% user + 0.1% kernel
7.4% TOTAL: 4.3% user + 2.7% kernel + 0.3% softirq
CPU usage from 1466ms to 1985ms later:
7.5% 512/system_server: 3.7% user + 3.7% kernel / faults: 2 minor
5.6% 530/ActivityManager: 1.8% user + 3.7% kernel
1.8% 525/SensorService: 0% user + 1.8% kernel
1.8% 808/Binder_4: 1.8% user + 0% kernel
3.7% 4741/com.sadLogic.KitchenCentral: 3.7% user + 0% kernel / faults: 16 minor
3.7% 4741/.KitchenCentral: 3.7% user + 0% kernel
1.3% 67/kinteractiveup: 0% user + 1.3% kernel
1.3% 86/dhd_watchdog: 1.3% user + 0% kernel
1.5% 1570/anywheresoftware.b4a.b4abridge_gg: 1.5% user + 0% kernel / faults: 9 minor
5.7% TOTAL: 3.8% user + 1.9% kernel
GC_FOR_ALLOC freed 388K, 19% free 9106K/11184K, paused 45ms, total 45ms
Grow heap (frag case) to 9.108MB for 146663-byte allocation
GC_FOR_ALLOC freed <1K, 19% free 9250K/11328K, paused 44ms, total 44ms
GC_FOR_ALLOC freed 2K, 19% free 9247K/11328K, paused 43ms, total 43ms
Grow heap (frag case) to 9.385MB for 293308-byte allocation
GC_FOR_ALLOC freed 0K, 18% free 9534K/11616K, paused 44ms, total 44ms
GC_FOR_ALLOC freed 154K, 20% free 9396K/11616K, paused 46ms, total 46ms
Grow heap (frag case) to 9.532MB for 295382-byte allocation
GC_FOR_ALLOC freed 3K, 19% free 9681K/11908K, paused 43ms, total 43ms
GC_FOR_ALLOC freed 288K, 22% free 9394K/11908K, paused 54ms, total 54ms
** Service (svrcheckweb) Start **
** Service (svrcheckweb) Start **
virtual int MPLSensor::setDelay(int32_t, int64_t)
 

KMatle

Expert
Licensed User
Seems that you app takes too long for something. Are you able to locate that position (loops anywhere?)

What is this?: "Reason: Executing service com.sadLogic.KitchenCentral/anywheresoftware.b4a.samples.httputils2.httputils2service"
 

JakeBullet70

Well-Known Member
Licensed User
Thanks KMatie

No loop. its just sitting at my main screen. I myself do not use httputils2 at all but I know it is used by some of my libs. The thing that's killing me was it was working yesterday....
 

JakeBullet70

Well-Known Member
Licensed User
The log file should be in /data/anr/.

You can use adb to pull it:
adb pull /data/anr/traces.txt
After ALL day of trying to get the adb - USB debugging working... It's finally working. (I got it working with ADB Konnect from the app store.)
Anyway, can someone give me a hand reading the trace file.

Thanks
 

Attachments

Last edited:

JakeBullet70

Well-Known Member
Licensed User
Update.
Problem was with a job in HttpUtils2 being called twice before the 1st one was finished.

Thanks to Erel who is always ready to give us a hand!
 

Touch

Active Member
Licensed User
Update.
Problem was with a job in HttpUtils2 being called twice before the 1st one was finished.

Thanks to Erel who is always ready to give us a hand!
I have the same problem.
I Use the modules HttpUtils2 and Downloadservice.
Without these modules the application works well.
Could you tell me how you solved in detail?
 

JakeBullet70

Well-Known Member
Licensed User
I found the code that was making the call by remarking it out and I had no error.
I then used the LOG statement to see where and how many times it was being called.

So basically, the same job was called a 2nd time before the 1st one finished.

Also remember to call Job.release in the job complete event.
 
Top