Firefly开源社区

打印 上一主题 下一主题

[Android] [已经解决]android 8.1 点击设置-系统报错

143

积分

0

威望

0

贡献

技术小白

积分
143

[已经解决]android 8.1 点击设置-系统报错

发表于 2019-2-13 16:21:07      浏览:12824 | 回复:9        打印      只看该作者   [复制链接] 楼主
本帖最后由 hiking 于 2019-2-25 09:44 编辑

自己编译好的8.1固件,点击设置里面的系统报错:
官方固件8.1正常;
logcat :
  1. --------- beginning of system
  2. 01-18 09:19:05.303   238   889 E AudioHardwareTiny: vicent r 44100  c 2  ps 512 pc 6
  3. 01-18 09:19:05.305   238   889 E AudioHardwareTiny: PCM_CARD=4, error index
  4. 01-18 09:19:05.305   439  1518 E ActivityManager: getPackageFerformanceMode--ComponentInfo{com.android.settings/com.android.settings.Sets
  5. 01-18 09:19:05.305   238   889 E AudioHardwareTiny: start_output_stream() >>>> PCM_CARD_HDMI:0, PCM_CARD:-1, HdmiIn_snd_config.config:4<
  6. 01-18 09:19:05.306   238   889 E alsa_route: get_route_config() route_table is NULL!
  7. 01-18 09:19:05.306   238   889 E alsa_route: route_pcm_open() Can not get config of route
  8. 01-18 09:19:05.319   439   450 E ActivityManager: getPackageFerformanceMode--ComponentInfo{com.android.settings/com.android.settings.Sets
  9. --------- beginning of crash
  10. 01-18 09:19:05.399  1503  1503 E AndroidRuntime: FATAL EXCEPTION: main
  11. 01-18 09:19:05.399  1503  1503 E AndroidRuntime: Process: com.android.settings, PID: 1503
  12. 01-18 09:19:05.399  1503  1503 E AndroidRuntime: java.lang.RuntimeException: Unable to start activity ComponentInfo{com.android.settingsd
  13. 01-18 09:19:05.399  1503  1503 E AndroidRuntime:        at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2778)
  14. 01-18 09:19:05.399  1503  1503 E AndroidRuntime:        at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2856)
  15. 01-18 09:19:05.399  1503  1503 E AndroidRuntime:        at android.app.ActivityThread.-wrap11(Unknown Source:0)
  16. 01-18 09:19:05.399  1503  1503 E AndroidRuntime:        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1589)
  17. 01-18 09:19:05.399  1503  1503 E AndroidRuntime:        at android.os.Handler.dispatchMessage(Handler.java:106)
  18. 01-18 09:19:05.399  1503  1503 E AndroidRuntime:        at android.os.Looper.loop(Looper.java:164)
  19. 01-18 09:19:05.399  1503  1503 E AndroidRuntime:        at android.app.ActivityThread.main(ActivityThread.java:6494)
  20. 01-18 09:19:05.399  1503  1503 E AndroidRuntime:        at java.lang.reflect.Method.invoke(Native Method)
  21. 01-18 09:19:05.399  1503  1503 E AndroidRuntime:        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:)
  22. 01-18 09:19:05.399  1503  1503 E AndroidRuntime:        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:807)
  23. 01-18 09:19:05.399  1503  1503 E AndroidRuntime: Caused by: java.lang.RuntimeException: Only one Looper may be created per thread
  24. 01-18 09:19:05.399  1503  1503 E AndroidRuntime:        at android.os.Looper.prepare(Looper.java:95)
  25. 01-18 09:19:05.399  1503  1503 E AndroidRuntime:        at android.os.Looper.prepare(Looper.java:90)
  26. 01-18 09:19:05.399  1503  1503 E AndroidRuntime:        at com.android.settings.system.ConnectToPcPreferenceController.<init>(ConnectToP)
  27. 01-18 09:19:05.399  1503  1503 E AndroidRuntime:        at com.android.settings.system.SystemDashboardFragment.buildPreferenceController)
  28. 01-18 09:19:05.399  1503  1503 E AndroidRuntime:        at com.android.settings.system.SystemDashboardFragment.getPreferenceControllers()
  29. 01-18 09:19:05.399  1503  1503 E AndroidRuntime:        at com.android.settings.dashboard.DashboardFragment.onAttach(DashboardFragment.j)
  30. 01-18 09:19:05.399  1503  1503 E AndroidRuntime:        at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:1223)
  31. 01-18 09:19:05.399  1503  1503 E AndroidRuntime:        at android.app.FragmentManagerImpl.addAddedFragments(FragmentManager.java:2407)
  32. 01-18 09:19:05.399  1503  1503 E AndroidRuntime:        at android.app.FragmentManagerImpl.executeOpsTogether(FragmentManager.java:2186)
  33. 01-18 09:19:05.399  1503  1503 E AndroidRuntime:        at android.app.FragmentManagerImpl.removeRedundantOperationsAndExecute(FragmentM)
  34. 01-18 09:19:05.399  1503  1503 E AndroidRuntime:        at android.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:2043)
  35. 01-18 09:19:05.399  1503  1503 E AndroidRuntime:        at android.app.FragmentManagerImpl.executePendingTransactions(FragmentManager.ja)
  36. 01-18 09:19:05.399  1503  1503 E AndroidRuntime:        at com.android.settings.SettingsActivity.switchToFragment(SettingsActivity.java:)
  37. 01-18 09:19:05.399  1503  1503 E AndroidRuntime:        at com.android.settings.SettingsActivity.launchSettingFragment(SettingsActivity.)
  38. 01-18 09:19:05.399  1503  1503 E AndroidRuntime:        at com.android.settings.SettingsActivity.onCreate(SettingsActivity.java:322)
  39. 01-18 09:19:05.399  1503  1503 E AndroidRuntime:        at android.app.Activity.performCreate(Activity.java:7036)
  40. 01-18 09:19:05.399  1503  1503 E AndroidRuntime:        at android.app.Activity.performCreate(Activity.java:7027)
  41. 01-18 09:19:05.399  1503  1503 E AndroidRuntime:        at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1214)
  42. 01-18 09:19:05.399  1503  1503 E AndroidRuntime:        at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2731)
  43. 01-18 09:19:05.399  1503  1503 E AndroidRuntime:        ... 9 more
  44. 01-18 09:19:05.905   439   454 E ActivityManager: getPackageFerformanceMode--ComponentInfo{com.android.launcher3/com.android.launcher3.L3
  45. 01-18 09:19:11.140   238   889 E AudioHardwareTiny: vicent r 44100  c 2  ps 512 pc 6
复制代码

麻烦指导一下,谢谢
回复

使用道具 举报

742

积分

68

威望

68

贡献

技术大神

Rank: 3Rank: 3

积分
742
QQ
发表于 2019-2-13 17:02:27        只看该作者  沙发
不好意思,这个问题已经修复了,可能还没有更新上去,你可以
git revert f3edcdb3192034688b0451ac36ae753362aad576

然后按照如下 补丁修改
0001-Android-Settings-fix-setting-search-crash.patch.tar.gz (701 Bytes, 下载次数: 14)

回复

使用道具 举报

143

积分

0

威望

0

贡献

技术小白

积分
143
发表于 2019-2-13 18:12:55        只看该作者  板凳
本帖最后由 hiking 于 2019-2-13 18:43 编辑

git revert f3edcdb3192034688b0451ac36ae753362aad576
fatal: bad object f3edcdb3192034688b0451ac36ae753362aad576
提示这个错误;

我昨晚执行过
git pull gitlab firefly-rk3399:firefly-rk3399

看了一下日志:

git log
commit 58dc19abf46d58add13c931776ce8336f759fe28
Author: lkd <service@t-firefly.com>
Date:   Mon Jan 28 16:12:15 2019 +0800

    SDK: 1.add AIO-3399C support. 2.fix earphone no working issue. 3. fix setting search issue

commit 8034582b4cf130132af20b212af7854af5746bcc
Author: T-Firefly <account@t-firefly.com>
Date:   Mon Oct 22 15:23:05 2018 +0800

    SDK: 1.support ROC-3399-PC.
    2.fix TP issue.
    3.support PCIE
    4.support EC20 4G dongle.
    5.add firefly driver demo
    6.disable verity partition

commit 7a08ca7e865dacbdbb0c45d03519d0a675b581eb
Author: Firefly <service@t-firefly.com>
Date:   Wed Jun 20 15:11:56 2018 +0800

    Init Firefly-RK3399/AIO-3399J Android8.1 SDK



是不是继续git pull gitlab firefly-rk3399:firefly-rk3399?


回复

使用道具 举报

2965

积分

12

威望

22

贡献

高级创客

Rank: 6Rank: 6

积分
2965
发表于 2019-2-14 09:22:07        只看该作者  地板
hiking 发表于 2019-2-13 18:12
git revert f3edcdb3192034688b0451ac36ae753362aad576
fatal: bad object f3edcdb3192034688b0451ac36ae ...

是的,继续更新一次
回复

使用道具 举报

143

积分

0

威望

0

贡献

技术小白

积分
143
发表于 2019-2-15 07:51:46        只看该作者  5#
本帖最后由 hiking 于 2019-2-15 08:07 编辑
leung先森 发表于 2019-2-14 09:22
是的,继续更新一次


更新后,make -j8 出现这个错误;
Clean step: rm -rf out/target/product/ROC_RK3399_PC/obj_arm/APPS/*
Clean step: rm -rf out/target/product/ROC_RK3399_PC/obj_arm/APPS/*/package-res.apk
[1/1065] including out/soong/Android-ROC_RK3399_PC.mk ...
build/core/main.mk:426: error: out/soong/Android-ROC_RK3399_PC.mk: No such file or directory
07:43:33 ckati failed with: exit status 1
build/core/main.mk:21: recipe for target 'run_soong_ui' failed
make: *** [run_soong_ui] Error 1


//////////////////////////
./FFTools/make.sh -j8 出现下面的错误:

BUILD_ID=OPM6.171019.030.B1
OUT_DIR=out
============================================
[44/44] bootstrap out/soong/.minibootstrap/build.ninja.in
[4/4] out/soong/.bootstrap/bin/minibp out/soong/.bootstrap/build.ninja
[851/852] glob vendor/*/*/Android.bp
[54/54] out/soong/.bootstrap/bin/soong_build out/soong/build.ninja
out/build-rk3399_firefly_mid.ninja is missing, regenerating...
[3/1066] including ./2/bionic/Android.mk ...
build/core/binary.mk:374: error: 2/bionic/tests/Android.mk: bionic-compile-time-tests-g++: LOCAL_CLANG is set to false.
08:02:41 ckati failed with: exit status 1


/////////////////////////////
git log
commit b34db9406aa0ceabefec1cd23d5f2d8a41a61ece
Author: lkd <service@t-firefly.com>
Date:   Wed Feb 13 17:57:22 2019 +0800

    Android->Setting: refix setting system crash issue

commit 58dc19abf46d58add13c931776ce8336f759fe28
Author: lkd <service@t-firefly.com>
Date:   Mon Jan 28 16:12:15 2019 +0800

    SDK: 1.add AIO-3399C support. 2.fix earphone no working issue. 3. fix setting search issue

................
回复

使用道具 举报

2965

积分

12

威望

22

贡献

高级创客

Rank: 6Rank: 6

积分
2965
发表于 2019-2-15 11:32:25        只看该作者  6#
hiking 发表于 2019-2-15 07:51
更新后,make -j8 出现这个错误;
Clean step: rm -rf out/target/product/ROC_RK3399_PC/obj_arm/APPS ...

你是不是修改过makefile文件了
查一下临时修改文件。
回复

使用道具 举报

143

积分

0

威望

0

贡献

技术小白

积分
143
发表于 2019-2-18 09:40:50        只看该作者  7#
leung先森 发表于 2019-2-15 11:32
你是不是修改过makefile文件了
查一下临时修改文件。

这几天又重新编译了一次,同步了源码,
ROC-RK3399-PC 8.1最新源码默认编译后无法启动。


git log
commit b34db9406aa0ceabefec1cd23d5f2d8a41a61ece
Author: lkd <service@t-firefly.com>
Date:   Wed Feb 13 17:57:22 2019 +0800

    Android->Setting: refix setting system crash issue

commit 58dc19abf46d58add13c931776ce8336f759fe28
Author: lkd <service@t-firefly.com>
Date:   Mon Jan 28 16:12:15 2019 +0800

    SDK: 1.add AIO-3399C support. 2.fix earphone no working issue. 3. fix setting search issue

commit 8034582b4cf130132af20b212af7854af5746bcc
Author: T-Firefly <account@t-firefly.com>
Date:   Mon Oct 22 15:23:05 2018 +0800

    SDK: 1.support ROC-3399-PC.
    2.fix TP issue.
    3.support PCIE
    4.support EC20 4G dongle.
    5.add firefly driver demo
    6.disable verity partition

commit 7a08ca7e865dacbdbb0c45d03519d0a675b581eb
Author: Firefly <service@t-firefly.com>
Date:   Wed Jun 20 15:11:56 2018 +0800

    Init Firefly-RK3399/AIO-3399J Android8.1 SDK


////////////////
Debug输出:
[    1.738427] mmc_host mmc2: Bus speed (slot 0) = 400000Hz (slot req 400000Hz,)
[    1.751841] dwmmc_rockchip fe310000.dwmmc: 1 slots initialized               
[    1.753155] rt5640 1-001c: rt5640 have no aux_det_adc_value defined         
[    1.753425] rt5640 1-001c: Can not read property hp-con-gpio                 
[    1.753491] rt5640 1-001c: Can not read property: linein-mute.               
[    1.762143] asoc-simple-card spdif-sound: dit-hifi <-> ff870000.spdif mappink
[    1.765760] rk-hdmi-dp-sound hdmi-dp-sound: control 3:0:0:ELD:0 is already pt
[    1.765910] hdmi-audio-codec hdmi-audio-codec.10.auto: ASoC: Failed to add E6
[    1.767407] rk-hdmi-dp-sound hdmi-dp-sound: multicodec <-> ff8a0000.i2s mappk
[    1.767622] hdmi-audio-codec hdmi-audio-codec.10.auto: ASoC: Failed to create
[    1.771748] rt5640 1-001c: rt5640 have no aux_det_adc_value defined         
[    1.772048] rt5640 1-001c: Can not read property hp-con-gpio                 
[    1.772113] rt5640 1-001c: Can not read property: linein-mute.               
[    1.774852] mmc_host mmc2: Bus speed (slot 0) = 300000Hz (slot req 300000Hz,)
[    1.776140] rk808-rtc rk808-rtc: setting system clock to 2013-01-18 08:50:03)
[    1.778635] It doesn't contain Rogue gpu                                    
[    1.811669] mmc_host mmc2: Bus speed (slot 0) = 200000Hz (slot req 200000Hz,)
u�   
麻烦看看到底怎么回事?谢谢;
回复

使用道具 举报

2965

积分

12

威望

22

贡献

高级创客

Rank: 6Rank: 6

积分
2965
发表于 2019-2-18 14:15:02        只看该作者  8#
hiking 发表于 2019-2-18 09:40
这几天又重新编译了一次,同步了源码,
ROC-RK3399-PC 8.1最新源码默认编译后无法启动。

附件形式把整个log发出来
回复

使用道具 举报

2965

积分

12

威望

22

贡献

高级创客

Rank: 6Rank: 6

积分
2965
发表于 2019-2-18 14:30:30        只看该作者  9#
hiking 发表于 2019-2-18 09:40
这几天又重新编译了一次,同步了源码,
ROC-RK3399-PC 8.1最新源码默认编译后无法启动。

烧写官方最新固件试试,然后反馈给他们
回复

使用道具 举报

3

积分

0

威望

0

贡献

吃瓜的群众

积分
3
发表于 2023-8-18 09:47:52        只看该作者  10#
非常感谢
回复

使用道具 举报

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

本版积分规则

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