Firefly开源社区

打印 上一主题 下一主题

不停打开camera,出现cameraserver被kill,camera黑屏

145

积分

0

威望

0

贡献

技术小白

积分
145

不停打开camera,出现cameraserver被kill,camera黑屏

发表于 2018-12-10 15:39:08      浏览:8553 | 回复:8        打印      只看该作者   [复制链接] 楼主
使用脚本不停的打开关闭camera,出现cameraserver被kill,camera黑屏
[ 4382.347906] init: Service 'cameraserver' (pid 280) killed by signal 11
[ 4382.348106] init: Service 'cameraserver' (pid 280) killing any children in process group

使用脚本
  1. #!/system/bin/sh
  2. i=0;
  3. while [ i -le 10000000000000 ];
  4. do echo $i;
  5. i=$(($i+1));
  6.     am start -n com.android.camera2/com.android.camera.CameraLauncher;
  7.     sleep 5;
  8.     input keyevent KEYCODE_BACK;
  9.     sleep 1;
  10.     input keyevent KEYCODE_BACK;
  11.     sleep 1;
  12. done
复制代码
回复

使用道具 举报

145

积分

0

威望

0

贡献

技术小白

积分
145
发表于 2018-12-10 16:06:14        只看该作者  沙发
使用lsof查看,发现media_profiles.xml打开的次数一直在增加
cameraser   283 cameraserv  199r      REG             179,13     25574      17590 /data/camera/media_profiles.xml
回复

使用道具 举报

145

积分

0

威望

0

贡献

技术小白

积分
145
发表于 2018-12-11 09:34:51        只看该作者  板凳
已解决
回复

使用道具 举报

35

积分

0

威望

0

贡献

技术小白

积分
35
发表于 2018-12-11 09:40:32        只看该作者  地板
怎么解决的呢?我的也出现了。
[  200.534991] init: Service 'surfaceflinger' (pid 9725) killed by signal 6
[  200.535019] init: Service 'surfaceflinger' (pid 9725) killing any children in process group
[  200.535048] init: Service 'zygote' is being killed...
[  200.538127] init: Service 'zygote' (pid 9724) killed by signal 9
[  200.538168] init: Service 'zygote' (pid 9724) killing any children in process group
[  200.538251] init: write_file: Unable to open '/sys/android_power/request_state': No such file or directory
[  200.538299] init: write_file: Unable to write to '/sys/power/state': Invalid argument
[  200.538319] init: Service 'audioserver' is being killed...
[  200.538424] init: Service 'cameraserver' is being killed...
[  200.538467] init: Service 'media' is being killed...
[  200.538511] init: Service 'netd' is being killed...
[  200.542682] init: Service 'audioserver' (pid 9494) killed by signal 9
[  200.542738] init: Service 'audioserver' (pid 9494) killing any children in process group
[  200.545863] init: Service 'cameraserver' (pid 9495) killed by signal 9
[  200.545921] init: Service 'cameraserver' (pid 9495) killing any children in process group
回复

使用道具 举报

145

积分

0

威望

0

贡献

技术小白

积分
145
发表于 2018-12-11 09:44:45        只看该作者  5#
你这个是服务全被kill了,现象不一样
回复

使用道具 举报

145

积分

0

威望

0

贡献

技术小白

积分
145
发表于 2018-12-11 09:48:31        只看该作者  6#
我的cameraserver(只有这个被kill,其他服务正常)被kill的原因是media_profiles.xml打开了没有关闭导致
回复

使用道具 举报

35

积分

0

威望

0

贡献

技术小白

积分
35
发表于 2018-12-11 09:56:03        只看该作者  7#
我想将这些服务全关了,不知在哪里关闭的
回复

使用道具 举报

64

积分

0

威望

0

贡献

技术小白

积分
64
QQ
发表于 2020-2-12 18:42:00        只看该作者  8#
molabo 发表于 2018-12-11 09:40
怎么解决的呢?我的也出现了。
[  200.534991] init: Service 'surfaceflinger' (pid 9725) killed by sig ...

我遇到同样的问题  您的问题解决了嘛?
回复

使用道具 举报

16

积分

0

威望

0

贡献

技术小白

积分
16
发表于 2023-7-21 16:48:43        只看该作者  9#
pashanpp 发表于 2018-12-10 16:06
使用lsof查看,发现media_profiles.xml打开的次数一直在增加
cameraser   283 cameraserv  199r      REG  ...

大佬可以加下qq交流一下吗:qq   1219387577
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

友情链接 : 爱板网 电子发烧友论坛 云汉电子社区 粤ICP备14022046号-2
快速回复 返回顶部 返回列表