建议使用以下浏览器,以获得最佳体验。 IE 9.0+以上版本 Chrome 31+ 谷歌浏览器 Firefox 30+ 火狐浏览器
设置昵称

在此一键设置昵称,即可参与社区互动!

确定
我再想想
选择版块
鲲鹏BoostKit 主题:997帖子:2659

问题处理中

【问题求助】

【ARM模拟器】【安卓模拟器】ARM原生上跑安卓模拟器崩溃问题

Kaylieoooo... 2021/9/23 661

【安卓模拟器】


安卓AVD模拟器在运行过程中,打开APP没多久就会重启安卓系统

【运行环境:鲲鹏服务器】

OS
Linux version 4.15.18 (root@test58) (gcc version 7.5.0 (Ubuntu/Linaro 7.5.0-3ubuntu1~18.04)) 
Android系统:

android-sdk-linux_920
GPU:

AMD WX5100

端口转发:

Nginx

【操作步骤&问题现象】

1、AIRTEST远程连接AVD

2、打开AVD

3、打开APP,运行一会

4、出现闪退,系统重启


【截图信息】


【日志信息】(报错LOG-附件)


    errorLog.txt 144.6 KB,下载次数:1

回复6

cheney666
2 0
2021/9/24 09:19

1 确认安卓模拟器版本来源,是否是按照最新的编译指导构建的版本
2 请提供使用的应用名称以及对应的版本,下载来源

KaylieooooU-plus

2021-9-24 11:22

1、安卓模拟器版本来源:https://mirrors.huaweicloud.com/kunpeng/archive/kunpeng_solution/native/android-sdk-linux_920.tar.gz 华为鲲鹏服务器指导里提供的,网址如下: https://support.huaweicloud.com/dpmg-kunpengcps/kunpengandroid_03_0002.html ------------------------------------------------------ 最新的编译指导是指什么?https://support.huaweicloud.com/dpmg-kunpengcps/kunpengcps920_02_0005.html 按照这个文档吗? - 这个没有构造,直接用上面下载后的文件构造的AVD。。
... 展开

hw_tututu

2021-9-26 10:18

请问这个问题现在有进展了吗?或者还需要提供哪些信息
... 展开
2021/9/24 11:51
> 2 请提供使用的应用名称以及对应的版本,下载来源 > APP名称: 腾讯视频,TencentVideo_V8.4.45.26356_20563.apk 来源:官网, 地址:https://v.qq.com/download.html#Android APP名称:知乎 943f550e9b7f056492b7e09ba0257c8d.apk 来源:百度手机助手 地址:https://shouji.baidu.com/software/30177769.html APP名称:爱奇艺 iqiyi_20236.apk 来源:爱奇艺应用商店 地址:https://store.iqiyi.com/ APP名称:美团外卖 7d437553515b6c0a1249b154c57107d6.apk 来源:百度手机助手 地址: https://shouji.baidu.com/software/30154265.html APP名称:百度 baidusearch_AndroidPhone_757p.apk 来源:百度官网 地址:http://mo.baidu.com/ 以上APP使用一会儿后,都会崩溃,重启模拟器...
2021/9/24 17:21

又拿到一个模拟器运行过程中的kernal log。。。好像是每次读电池时重启了。。

    kmsg.txt 5.32 KB,下载次数:0

hw_tututu
0 0
2021/9/27 09:38

请在x86环境下按照如下链接编译Android镜像,并在按照链接指导在ARM系统上替换Android镜像:

https://support.huaweicloud.com/dpmg-kunpengcps/kunpengcps920_02_0008.html

2021/9/28 17:18
- 按照https://support.huaweicloud.com/dpmg-kunpengcps/kunpengcps920_02_0008.html编译内核时,报错。 - 请帮忙看下,是怎么回事? - 执行的是以下make -j64命令 ![image.png](https://bbs-img.huaweicloud.com/data/forums/attachment/forum/202109/28/171638vvwovghbqxk4lbiy.png) - 报错信息: ```bash root@ubuntu:/home/mykernel/goldfish# make -j64 scripts/kconfig/conf --silentoldconfig Kconfig CHK include/config/kernel.release CHK include/generated/uapi/linux/version.h CHK include/generated/utsrelease.h CHK scripts/mod/devicetable-offsets.h CHK include/generated/timeconst.h CHK include/generated/bounds.h CC arch/arm64/kernel/asm-offsets.s In file included from ./arch/arm64/include/asm/spinlock.h:21:0, from include/linux/spinlock.h:87, from include/linux/seqlock.h:35, from include/linux/time.h:5, from include/uapi/linux/timex.h:56, from include/linux/timex.h:56, from include/linux/sched.h:19, from arch/arm64/kernel/asm-offsets.c:21: ./arch/arm64/include/asm/processor.h:184:1: error: expected identifier or '(' before '<<' token <<<<<<< ^ In file included from ./arch/arm64/include/asm/spinlock.h:21:0, from include/linux/spinlock.h:87, from include/linux/seqlock.h:35, from include/linux/time.h:5, from include/uapi/linux/timex.h:56, from include/linux/timex.h:56, from include/linux/sched.h:19, from arch/arm64/kernel/asm-offsets.c:21: ./arch/arm64/include/asm/processor.h:28:0: error: unterminated #ifdef #ifdef __KERNEL__ ^ ./arch/arm64/include/asm/processor.h:19:0: error: unterminated #ifndef #ifndef __ASM_PROCESSOR_H ^ In file included from include/linux/seqlock.h:39:0, from include/linux/time.h:5, from include/uapi/linux/timex.h:56, from include/linux/timex.h:56, from include/linux/sched.h:19, from arch/arm64/kernel/asm-offsets.c:21: ./arch/arm64/include/asm/processor.h:28:0: error: unterminated #ifdef #ifdef __KERNEL__ ^ ./arch/arm64/include/asm/processor.h:19:0: error: unterminated #ifndef #ifndef __ASM_PROCESSOR_H ^ In file included from include/linux/mutex.h:19:0, from include/linux/notifier.h:13, from include/linux/memory_hotplug.h:6, from include/linux/mmzone.h:740, from include/linux/topology.h:32, from include/linux/sched.h:42, from arch/arm64/kernel/asm-offsets.c:21: ./arch/arm64/include/asm/processor.h:28:0: error: unterminated #ifdef #ifdef __KERNEL__ ^ ./arch/arm64/include/asm/processor.h:19:0: error: unterminated #ifndef #ifndef __ASM_PROCESSOR_H ^ In file included from include/linux/sched.h:64:0, from arch/arm64/kernel/asm-offsets.c:21: ./arch/arm64/include/asm/processor.h:28:0: error: unterminated #ifdef #ifdef __KERNEL__ ^ ./arch/arm64/include/asm/processor.h:19:0: error: unterminated #ifndef #ifndef __ASM_PROCESSOR_H ^ In file included from include/linux/mm.h:67:0, from arch/arm64/kernel/asm-offsets.c:22: ./arch/arm64/include/asm/processor.h:28:0: error: unterminated #ifdef #ifdef __KERNEL__ ^ ./arch/arm64/include/asm/processor.h:19:0: error: unterminated #ifndef #ifndef __ASM_PROCESSOR_H ^ In file included from ./arch/arm64/include/asm/stat.h:23:0, from include/linux/stat.h:5, from include/linux/sysfs.h:21, from include/linux/kobject.h:21, from include/linux/device.h:17, from include/linux/dma-mapping.h:6, from arch/arm64/kernel/asm-offsets.c:23: ./arch/arm64/include/asm/compat.h:319:19: error: redefinition of 'is_aarch32_compat_task' static inline int is_aarch32_compat_task(void) ^ ./arch/arm64/include/asm/compat.h:310:19: note: previous definition of 'is_aarch32_compat_task' was here static inline int is_aarch32_compat_task(void) ^ ./arch/arm64/include/asm/compat.h:328:19: error: redefinition of 'is_aarch32_compat_task' static inline int is_aarch32_compat_task(void) ^ ./arch/arm64/include/asm/compat.h:319:19: note: previous definition of 'is_aarch32_compat_task' was here static inline int is_aarch32_compat_task(void) ^ ./arch/arm64/include/asm/compat.h:346:19: error: redefinition of 'is_exagear_compat_task' static inline int is_exagear_compat_task(void) ^ ./arch/arm64/include/asm/compat.h:339:19: note: previous definition of 'is_exagear_compat_task' was here static inline int is_exagear_compat_task(void) ^ ./arch/arm64/include/asm/compat.h:353:19: error: redefinition of 'is_exagear_compat_task' static inline int is_exagear_compat_task(void) ^ ./arch/arm64/include/asm/compat.h:346:19: note: previous definition of 'is_exagear_compat_task' was here static inline int is_exagear_compat_task(void) ^ make[1]: *** [arch/arm64/kernel/asm-offsets.s] Error 1 make: *** [prepare0] Error 2 ```

KaylieooooU-plus

2021-9-28 17:36

其中有个补丁,我是从https://code.opensource.huaweicloud.com/Kunpeng/Native/files?ref=master&tab=content下的,不知道对不对,请核实下。
... 展开

KaylieooooU-plus

2021-9-28 17:38

系统:Ubuntu 16.04.3操作系统。 下载地址:http://old-releases.ubuntu.com/releases/16.04.3/ubuntu-16.04.3-server-amd64.iso
... 展开

KaylieooooU-plus

2021-9-28 17:39

命令行的步骤: mkdir -p /home/test/AndroidToolChain/arm64 cd /home/test/android-ndk-r16b/ ./build/tools/make_standalone_toolchain.py --arch arm64 --api 24 --install /home/test/AndroidToolChain/arm64 --force export ARM64=/home/test/AndroidToolChain/arm64/bin/ export PATH=$ARM64:$PATH export ARCH=arm64 export CROSS_COMPILE=aarch64-linux-android- export LD=aarch64-linux-android-ld cp -r goldfish-4.4-dev.patch /home/mykernel/goldfish/ cd /home/mykernel/goldfish/ patch -p1 -m < goldfish-4.4-dev.patch //32 bit 转码补丁合入 make ARCH=arm64 ranchu64_defconfig make -j64
... 展开
2021/9/28 17:34
- 前面的步骤是: - 系统Ubuntu 16.04.3操作系统。 - 下载地址:[link](#) - 编译步骤: ```BASH mkdir -p /home/test/AndroidToolChain/arm64 cd /home/test/android-ndk-r16b/ ./build/tools/make_standalone_toolchain.py --arch arm64 --api 24 --install /home/test/AndroidToolChain/arm64 --force export ARM64=/home/test/AndroidToolChain/arm64/bin/ export PATH=$ARM64:$PATH export ARCH=arm64 export CROSS_COMPILE=aarch64-linux-android- export LD=aarch64-linux-android-ld # 补丁下载地址: https://code.opensource.huaweicloud.com/Kunpeng/Native/files?ref=master&tab=content # 不确定补丁对不对,请核实。 cp -r goldfish-4.4-dev.patch /home/mykernel/goldfish/ cd /home/mykernel/goldfish/ patch -p1 -m < goldfish-4.4-dev.patch //32 bit 转码补丁合入 make ARCH=arm64 ranchu64_defconfig make -j64 ``` > ------------------------------------------------ 已解决。
上划加载中
直达楼层
标签
您还可以添加5个标签
  • 没有搜索到和“关键字”相关的标签
  • 云产品
  • 解决方案
  • 技术领域
  • 通用技术
  • 平台功能
取消

采纳成功

您已采纳当前回复为最佳回复

KaylieooooU

发帖: 1粉丝: 0

发消息 + 关注

发表于2021年09月23日 19:00:16 661 6
直达本楼层的链接
楼主
显示全部楼层
[问题求助] 【ARM模拟器】【安卓模拟器】ARM原生上跑安卓模拟器崩溃问题

【安卓模拟器】


安卓AVD模拟器在运行过程中,打开APP没多久就会重启安卓系统

【运行环境:鲲鹏服务器】

OS
Linux version 4.15.18 (root@test58) (gcc version 7.5.0 (Ubuntu/Linaro 7.5.0-3ubuntu1~18.04)) 
Android系统:

android-sdk-linux_920
GPU:

AMD WX5100

端口转发:

Nginx

【操作步骤&问题现象】

1、AIRTEST远程连接AVD

2、打开AVD

3、打开APP,运行一会

4、出现闪退,系统重启


【截图信息】


【日志信息】(报错LOG-附件)


errorLog.txt 144.6 KB,下载次数:1

ARM

举报
分享

分享文章到朋友圈

分享文章到微博

采纳成功

您已采纳当前回复为最佳回复

cheney666

发帖: 2粉丝: 1

级别 : 版主,版块专家

发消息 + 关注

发表于2021年09月24日 09:19:21
直达本楼层的链接
沙发
显示全部楼层

1 确认安卓模拟器版本来源,是否是按照最新的编译指导构建的版本
2 请提供使用的应用名称以及对应的版本,下载来源

评论
KaylieooooU-plus 2021-9-24 11:22 评论

1、安卓模拟器版本来源:https://mirrors.huaweicloud.com/kunpeng/archive/kunpeng_solution/native/android-sdk-linux_920.tar.gz 华为鲲鹏服务器指导里提供的,网址如下: https://support.huaweicloud.com/dpmg-kunpengcps/kunpengandroid_03_0002.html ------------------------------------------------------ 最新的编译指导是指什么?https://support.huaweicloud.com/dpmg-kunpengcps/kunpengcps920_02_0005.html 按照这个文档吗? - 这个没有构造,直接用上面下载后的文件构造的AVD。。

... 查看全部
hw_tututu 2021-9-26 10:18 评论

请问这个问题现在有进展了吗?或者还需要提供哪些信息

... 查看全部
点赞 评论 引用 举报

采纳成功

您已采纳当前回复为最佳回复
发表于2021年09月24日 11:51:59
直达本楼层的链接
板凳
显示全部楼层

> 2 请提供使用的应用名称以及对应的版本,下载来源 > APP名称: 腾讯视频,TencentVideo_V8.4.45.26356_20563.apk 来源:官网, 地址:https://v.qq.com/download.html#Android APP名称:知乎 943f550e9b7f056492b7e09ba0257c8d.apk 来源:百度手机助手 地址:https://shouji.baidu.com/software/30177769.html APP名称:爱奇艺 iqiyi_20236.apk 来源:爱奇艺应用商店 地址:https://store.iqiyi.com/ APP名称:美团外卖 7d437553515b6c0a1249b154c57107d6.apk 来源:百度手机助手 地址: https://shouji.baidu.com/software/30154265.html APP名称:百度 baidusearch_AndroidPhone_757p.apk 来源:百度官网 地址:http://mo.baidu.com/ 以上APP使用一会儿后,都会崩溃,重启模拟器...
点赞 评论 引用 举报

采纳成功

您已采纳当前回复为最佳回复
发表于2021年09月24日 17:21:31
直达本楼层的链接
地板
显示全部楼层

又拿到一个模拟器运行过程中的kernal log。。。好像是每次读电池时重启了。。

kmsg.txt 5.32 KB,下载次数:0

点赞 评论 引用 举报

采纳成功

您已采纳当前回复为最佳回复

hw_tututu

发帖: 32粉丝: 7

发消息 + 关注

发表于2021年09月27日 09:38:00
直达本楼层的链接
5#
显示全部楼层

请在x86环境下按照如下链接编译Android镜像,并在按照链接指导在ARM系统上替换Android镜像:

https://support.huaweicloud.com/dpmg-kunpengcps/kunpengcps920_02_0008.html

点赞 评论 引用 举报

采纳成功

您已采纳当前回复为最佳回复
发表于2021年09月28日 17:18:30
直达本楼层的链接
6#
显示全部楼层
- 按照https://support.huaweicloud.com/dpmg-kunpengcps/kunpengcps920_02_0008.html编译内核时,报错。 - 请帮忙看下,是怎么回事? - 执行的是以下make -j64命令 ![image.png](https://bbs-img.huaweicloud.com/data/forums/attachment/forum/202109/28/171638vvwovghbqxk4lbiy.png) - 报错信息: ```bash root@ubuntu:/home/mykernel/goldfish# make -j64 scripts/kconfig/conf --silentoldconfig Kconfig CHK include/config/kernel.release CHK include/generated/uapi/linux/version.h CHK include/generated/utsrelease.h CHK scripts/mod/devicetable-offsets.h CHK include/generated/timeconst.h CHK include/generated/bounds.h CC arch/arm64/kernel/asm-offsets.s In file included from ./arch/arm64/include/asm/spinlock.h:21:0, from include/linux/spinlock.h:87, from include/linux/seqlock.h:35, from include/linux/time.h:5, from include/uapi/linux/timex.h:56, from include/linux/timex.h:56, from include/linux/sched.h:19, from arch/arm64/kernel/asm-offsets.c:21: ./arch/arm64/include/asm/processor.h:184:1: error: expected identifier or '(' before '<<' token <<<<<<< ^ In file included from ./arch/arm64/include/asm/spinlock.h:21:0, from include/linux/spinlock.h:87, from include/linux/seqlock.h:35, from include/linux/time.h:5, from include/uapi/linux/timex.h:56, from include/linux/timex.h:56, from include/linux/sched.h:19, from arch/arm64/kernel/asm-offsets.c:21: ./arch/arm64/include/asm/processor.h:28:0: error: unterminated #ifdef #ifdef __KERNEL__ ^ ./arch/arm64/include/asm/processor.h:19:0: error: unterminated #ifndef #ifndef __ASM_PROCESSOR_H ^ In file included from include/linux/seqlock.h:39:0, from include/linux/time.h:5, from include/uapi/linux/timex.h:56, from include/linux/timex.h:56, from include/linux/sched.h:19, from arch/arm64/kernel/asm-offsets.c:21: ./arch/arm64/include/asm/processor.h:28:0: error: unterminated #ifdef #ifdef __KERNEL__ ^ ./arch/arm64/include/asm/processor.h:19:0: error: unterminated #ifndef #ifndef __ASM_PROCESSOR_H ^ In file included from include/linux/mutex.h:19:0, from include/linux/notifier.h:13, from include/linux/memory_hotplug.h:6, from include/linux/mmzone.h:740, from include/linux/topology.h:32, from include/linux/sched.h:42, from arch/arm64/kernel/asm-offsets.c:21: ./arch/arm64/include/asm/processor.h:28:0: error: unterminated #ifdef #ifdef __KERNEL__ ^ ./arch/arm64/include/asm/processor.h:19:0: error: unterminated #ifndef #ifndef __ASM_PROCESSOR_H ^ In file included from include/linux/sched.h:64:0, from arch/arm64/kernel/asm-offsets.c:21: ./arch/arm64/include/asm/processor.h:28:0: error: unterminated #ifdef #ifdef __KERNEL__ ^ ./arch/arm64/include/asm/processor.h:19:0: error: unterminated #ifndef #ifndef __ASM_PROCESSOR_H ^ In file included from include/linux/mm.h:67:0, from arch/arm64/kernel/asm-offsets.c:22: ./arch/arm64/include/asm/processor.h:28:0: error: unterminated #ifdef #ifdef __KERNEL__ ^ ./arch/arm64/include/asm/processor.h:19:0: error: unterminated #ifndef #ifndef __ASM_PROCESSOR_H ^ In file included from ./arch/arm64/include/asm/stat.h:23:0, from include/linux/stat.h:5, from include/linux/sysfs.h:21, from include/linux/kobject.h:21, from include/linux/device.h:17, from include/linux/dma-mapping.h:6, from arch/arm64/kernel/asm-offsets.c:23: ./arch/arm64/include/asm/compat.h:319:19: error: redefinition of 'is_aarch32_compat_task' static inline int is_aarch32_compat_task(void) ^ ./arch/arm64/include/asm/compat.h:310:19: note: previous definition of 'is_aarch32_compat_task' was here static inline int is_aarch32_compat_task(void) ^ ./arch/arm64/include/asm/compat.h:328:19: error: redefinition of 'is_aarch32_compat_task' static inline int is_aarch32_compat_task(void) ^ ./arch/arm64/include/asm/compat.h:319:19: note: previous definition of 'is_aarch32_compat_task' was here static inline int is_aarch32_compat_task(void) ^ ./arch/arm64/include/asm/compat.h:346:19: error: redefinition of 'is_exagear_compat_task' static inline int is_exagear_compat_task(void) ^ ./arch/arm64/include/asm/compat.h:339:19: note: previous definition of 'is_exagear_compat_task' was here static inline int is_exagear_compat_task(void) ^ ./arch/arm64/include/asm/compat.h:353:19: error: redefinition of 'is_exagear_compat_task' static inline int is_exagear_compat_task(void) ^ ./arch/arm64/include/asm/compat.h:346:19: note: previous definition of 'is_exagear_compat_task' was here static inline int is_exagear_compat_task(void) ^ make[1]: *** [arch/arm64/kernel/asm-offsets.s] Error 1 make: *** [prepare0] Error 2 ```
评论
KaylieooooU-plus 2021-9-28 17:36 评论

其中有个补丁,我是从https://code.opensource.huaweicloud.com/Kunpeng/Native/files?ref=master&tab=content下的,不知道对不对,请核实下。

... 查看全部
KaylieooooU-plus 2021-9-28 17:38 评论

系统:Ubuntu 16.04.3操作系统。 下载地址:http://old-releases.ubuntu.com/releases/16.04.3/ubuntu-16.04.3-server-amd64.iso

... 查看全部
KaylieooooU-plus 2021-9-28 17:39 评论

命令行的步骤: mkdir -p /home/test/AndroidToolChain/arm64 cd /home/test/android-ndk-r16b/ ./build/tools/make_standalone_toolchain.py --arch arm64 --api 24 --install /home/test/AndroidToolChain/arm64 --force export ARM64=/home/test/AndroidToolChain/arm64/bin/ export PATH=$ARM64:$PATH export ARCH=arm64 export CROSS_COMPILE=aarch64-linux-android- export LD=aarch64-linux-android-ld cp -r goldfish-4.4-dev.patch /home/mykernel/goldfish/ cd /home/mykernel/goldfish/ patch -p1 -m < goldfish-4.4-dev.patch //32 bit 转码补丁合入 make ARCH=arm64 ranchu64_defconfig make -j64

... 查看全部
点赞 评论 引用 举报

采纳成功

您已采纳当前回复为最佳回复
发表于2021年09月28日 17:34:13
直达本楼层的链接
7#
显示全部楼层
- 前面的步骤是: - 系统Ubuntu 16.04.3操作系统。 - 下载地址:[link](#) - 编译步骤: ```BASH mkdir -p /home/test/AndroidToolChain/arm64 cd /home/test/android-ndk-r16b/ ./build/tools/make_standalone_toolchain.py --arch arm64 --api 24 --install /home/test/AndroidToolChain/arm64 --force export ARM64=/home/test/AndroidToolChain/arm64/bin/ export PATH=$ARM64:$PATH export ARCH=arm64 export CROSS_COMPILE=aarch64-linux-android- export LD=aarch64-linux-android-ld # 补丁下载地址: https://code.opensource.huaweicloud.com/Kunpeng/Native/files?ref=master&tab=content # 不确定补丁对不对,请核实。 cp -r goldfish-4.4-dev.patch /home/mykernel/goldfish/ cd /home/mykernel/goldfish/ patch -p1 -m < goldfish-4.4-dev.patch //32 bit 转码补丁合入 make ARCH=arm64 ranchu64_defconfig make -j64 ``` > ------------------------------------------------ 已解决。
点赞 评论 引用 举报

采纳成功

您已采纳当前回复为最佳回复

hw_tututu

发帖: 32粉丝: 7

发消息 + 关注

发表于2021年09月28日 18:47:15
直达本楼层的链接
8#
显示全部楼层

点赞 评论 引用 举报

游客

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

邀请回答
您可以邀请3位专家

结贴

您对问题的回复是否满意?
满意度
非常满意 满意 一般 不满意
我要反馈
0/200