Discussion:
[android-porting] cgroup failures
Nagamani Cherukuri
2018-09-14 05:06:54 UTC
Permalink
Hi All,

When I try to capture an image in AOSP 7.1.2 release, I observed
cgroup failure errors. I'm using kernel 4.16 version. I have seen the same
errors multiple times in logcat. I think the issue is with kernel 4.16. But
let me know how to fix this.

09-11 13:11:29.420 1791 2028 W SchedPolicy: add_tid_to_cgroup failed to
write '2207' (Permission denied); fd=21
09-11 13:11:29.420 1791 2028 W ActivityManager: Failed setting process
group of 2207 to 0
09-11 13:11:29.420 1791 2028 W System.err:
java.lang.IllegalArgumentException: Invalid argument: 2207
09-11 13:11:29.420 1791 2028 W System.err: at
android.os.Process.setProcessGroup(Native Method)
09-11 13:11:29.420 1791 2028 W System.err: at
com.android.server.am.ActivityManagerService.applyOomAdjLocked(ActivityManagerService.java:20476)
09-11 13:11:29.420 1791 2028 W System.err: at
com.android.server.am.ActivityManagerService.updateOomAdjLocked(ActivityManagerService.java:20824)
09-11 13:11:29.420 1791 2028 W System.err: at
com.android.server.am.ActivityManagerService.updateOomAdjLocked(ActivityManagerService.java:20902)
09-11 13:11:29.420 1791 2028 W System.err: at
com.android.server.am.ActiveServices.removeConnectionLocked(ActiveServices.java:2170)
09-11 13:11:29.420 1791 2028 W System.err: at
com.android.server.am.ActiveServices.unbindServiceLocked(ActiveServices.java:1163)
09-11 13:11:29.420 1791 2028 W System.err: at
com.android.server.am.ActivityManagerService.unbindService(ActivityManagerService.java:17341)
09-11 13:11:29.420 1791 2028 W System.err: at
android.app.ContextImpl.unbindService(ContextImpl.java:1486)
09-11 13:11:29.420 1791 2028 W System.err: at
com.android.server.print.RemotePrintSpooler.unbindLocked(RemotePrintSpooler.java:657)
09-11 13:11:29.420 1791 2028 W System.err: at
com.android.server.print.RemotePrintSpooler.onAllPrintJobsHandled(RemotePrintSpooler.java:589)
09-11 13:11:29.420 1791 2028 W System.err: at
com.android.server.print.RemotePrintSpooler.-wrap1(RemotePrintSpooler.java)
09-11 13:11:29.420 1791 2028 W System.err: at
com.android.server.print.RemotePrintSpooler$PrintSpoolerClient.onAllPrintJobsHandled(RemotePrintSpooler.java:949)
09-11 13:11:29.420 1791 2028 W System.err: at
android.print.IPrintSpoolerClient$Stub.onTransact(IPrintSpoolerClient.java:79)
09-11 13:11:29.420 1791 2028 W System.err: at
android.os.Binder.execTransact(Binder.java:565)
09-11 13:11:29.462 2752 2772 W FA : Callable skipped the worker
queue.
09-11 13:11:30.388 1791 1791 W SchedPolicy: add_tid_to_cgroup failed to
write '2752' (Permission denied); fd=3
09-11 13:11:30.388 1791 1791 W ActivityManager: Failed setting process
group of 2752 to 1
09-11 13:11:30.388 1791 1791 W System.err:
java.lang.IllegalArgumentException: Invalid argument: 2752
09-11 13:11:30.388 1791 1791 W System.err: at
android.os.Process.setProcessGroup(Native Method)
09-11 13:11:30.388 1791 1791 W System.err: at
com.android.server.am.ActivityManagerService.applyOomAdjLocked(ActivityManagerService.java:20476)
09-11 13:11:30.388 1791 1791 W System.err: at
com.android.server.am.ActivityManagerService.updateOomAdjLocked(ActivityManagerService.java:21048)
09-11 13:11:30.388 1791 1791 W System.err: at
com.android.server.am.ActiveServices.realStartServiceLocked(ActiveServices.java:1800)
09-11 13:11:30.388 1791 1791 W System.err: at
com.android.server.am.ActiveServices.bringUpServiceLocked(ActiveServices.java:1720)
09-11 13:11:30.388 1791 1791 W System.err: at
com.android.server.am.ActiveServices.bindServiceLocked(ActiveServices.java:1046)
09-11 13:11:30.388 1791 1791 W System.err: at
com.android.server.am.ActivityManagerService.bindService(ActivityManagerService.java:17334)
09-11 13:11:30.388 1791 1791 W System.err: at
android.app.ContextImpl.bindServiceCommon(ContextImpl.java:1463)
09-11 13:11:30.388 1791 1791 W System.err: at
android.app.ContextImpl.bindServiceAsUser(ContextImpl.java:1430)
09-11 13:11:30.388 1791 1791 W System.err: at
com.android.server.job.JobServiceContext.executeRunnableJob(JobServiceContext.java:195)
09-11 13:11:30.388 1791 1791 W System.err: at
com.android.server.job.JobSchedulerService.assignJobsToContextsLocked(JobSchedulerService.java:1504)
09-11 13:11:30.388 1791 1791 W System.err: at
com.android.server.job.JobSchedulerService.-wrap3(JobSchedulerService.java)
09-11 13:11:30.388 1791 1791 W System.err: at
com.android.server.job.JobSchedulerService$JobHandler.maybeRunPendingJobsH(JobSchedulerService.java:1342)
09-11 13:11:30.388 1791 1791 W System.err: at
com.android.server.job.JobSchedulerService$JobHandler.handleMessage(JobSchedulerService.java:1128)
09-11 13:11:30.388 1791 1791 W System.err: at
android.os.Handler.dispatchMessage(Handler.java:102)
09-11 13:11:30.388 1791 1791 W System.err: at
android.os.Looper.loop(Looper.java:154)
09-11 13:11:30.389 1791 1791 W System.err: at
com.android.server.SystemServer.run(SystemServer.java:355)
09-11 13:11:30.389 1791 1791 W System.err: at
com.android.server.SystemServer.main(SystemServer.java:222)
09-11 13:11:30.389 1791 1791 W System.err: at
java.lang.reflect.Method.invoke(Native Method)
09-11 13:11:30.389 1791 1791 W System.err: at
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:890)
09-11 13:11:30.389 1791 1791 W System.err: at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:780)
09-11 13:11:30.389 1791 1805 W SchedPolicy: add_tid_to_cgroup failed to
write '2752' (Permission denied); fd=21
09-11 13:11:30.389 1791 1805 W ActivityManager: Failed setting process
group of 2752 to 0
09-11 13:11:30.389 1791 1805 W System.err:
java.lang.IllegalArgumentException: Invalid argument: 2752
09-11 13:11:30.389 1791 1805 W System.err: at
android.os.Process.setProcessGroup(Native Method)
09-11 13:11:30.389 1791 1805 W System.err: at
com.android.server.am.ActivityManagerService.applyOomAdjLocked(ActivityManagerService.java:20476)
09-11 13:11:30.389 1791 1805 W System.err: at
com.android.server.am.ActivityManagerService.updateOomAdjLocked(ActivityManagerService.java:21048)
09-11 13:11:30.389 1791 1805 W System.err: at
com.android.server.am.BroadcastQueue.processCurBroadcastLocked(BroadcastQueue.java:274)
09-11 13:11:30.389 1791 1805 W System.err: at
com.android.server.am.BroadcastQueue.processNextBroadcast(BroadcastQueue.java:1225)
09-11 13:11:30.389 1791 1805 W System.err: at
com.android.server.am.BroadcastQueue$BroadcastHandler.handleMessage(BroadcastQueue.java:172)
09-11 13:11:30.389 1791 1805 W System.err: at
android.os.Handler.dispatchMessage(Handler.java:102)
09-11 13:11:30.389 1791 1805 W System.err: at
android.os.Looper.loop(Looper.java:154)
09-11 13:11:30.389 1791 1805 W System.err: at
android.os.HandlerThread.run(HandlerThread.java:61)
09-11 13:11:30.389 1791 1805 W System.err: at
com.android.server.ServiceThread.run(ServiceThread.java:46)
09-11 13:11:32.287 2523 2846 E RequestThread-0: Timed out while waiting
for request to complete.
09-11 13:11:34.026 1791 1805 I ActivityManager: Waited long enough for:
ServiceRecord{af459dc u0 com.android.calendar/.alerts.InitAlarmsService}
09-11 13:11:35.237 1791 1823 I InputDispatcher: Application is not
responding: Window{9d9f63c u0
com.android.camera2/com.android.camera.CameraActivity}. It has been
5006.0ms since event, 5005.5ms since wait started. Reason: Waiting to send
non-key event because the touched window has not finished processing
certain input events that were delivered to it over 500.0ms ago. Wait
queue length: 42. Wait queue head age: 5917.9ms.
09-11 13:11:35.240 1791 1823 I WindowManager: Input event dispatching
timed out sending to
com.android.camera2/com.android.camera.CameraActivity. Reason: Waiting to
send non-key event because the touched window has not finished processing
certain input events that were delivered to it over 500.0ms ago. Wait
queue length: 42. Wait queue head age: 5917.9ms.
09-11 13:11:35.248 1791 1805 I Process : Sending signal. PID: 2523 SIG: 3
09-11 13:11:35.248 2523 2529 I art :
Thread[3,tid=2529,WaitingInMainSignalCatcherLoop,Thread*=0x72bd3cc96400,peer=0x12c26940,"Signal
Catcher"]: reacting to signal 3
09-11 13:11:35.248 2523 2529 I art :
09-11 13:11:35.256 2523 2523 I com.android.camera2: type=1400
audit(0.0:629): avc: denied { map } for comm=5369676E616C2043617463686572
path="/system/lib64/libart.so" dev="loop1" ino=4294
scontext=u:r:untrusted_app:s0:c512,c768 tcontext=u:object_r:system_file:s0
tclass=file permissive=1

Thanks and Regards,
Nagamani.Ch
--
--
unsubscribe: android-porting+***@googlegroups.com
website: http://groups.google.com/group/android-porting

---
You received this message because you are subscribed to the Google Groups "android-porting" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-porting+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Loading...