Android Studio AVD:启动AVD时出现“分段错误”

4

我查看了之前有关分段错误的帖子,但它们似乎没有解决我的问题。我尝试禁用GPU仿真,并将RAM大小更改为论坛中提到的值。我在想为什么启动AVD时会出现分段错误。

  1. I had to go ahead with ARM build because my X86 processor does not support virtualization.

  2. The output of uname -a as below

    Linux Jill-HP-Pavilion-dv6-Notebook-PC 3.16.0-36-generic #48-    Ubuntu SMP Tue Apr 14 20:07:19 UTC 2015 i686 i686 i686 GNU/Linux
    
  3. lsb-release:

    DISTRIB_ID=Ubuntu
    DISTRIB_RELEASE=14.10
    DISTRIB_CODENAME=utopic
    DISTRIB_DESCRIPTION="Ubuntu 14.10"
    
以下是日志记录:
./emulator-arm -avd Nexus_5_API_22_ARM -verbose
emulator: found SDK root at /home/jill/Android/Sdk
emulator: Android virtual device file at: /home/jill/.android/avd/Nexus_5_API_22_ARM.ini
emulator: virtual device content at /home/jill/.android/avd/Nexus_5_API_22_ARM.avd
emulator: virtual device config file: /home/jill/.android/avd/Nexus_5_API_22_ARM.avd/config.ini
emulator: using core hw config path: /home/jill/.android/avd/Nexus_5_API_22_ARM.avd/hardware-qemu.ini
emulator: Found AVD target API level: 22
emulator: Read property file at /home/jill/Android/Sdk/system-images/android-22/google_apis/armeabi-v7a//build.prop
emulator: No boot.prop property file found.
emulator: found skin 'nexus_5' in directory: /opt/android-studio/plugins/android/lib/device-art-resources
emulator: autoconfig: -skin nexus_5
emulator: autoconfig: -skindir /opt/android-studio/plugins/android/lib/device-art-resources
emulator: keyset loaded from: /home/jill/.android/default.keyset
emulator: trying to load skin file '/opt/android-studio/plugins/android/lib/device-art-resources/nexus_5/layout'
emulator: autoconfig: -kernel /home/jill/Android/Sdk/system-images/android-22/google_apis/armeabi-v7a//kernel-qemu
emulator: Auto-detect: Kernel image requires legacy device naming scheme.
emulator: Auto-detect: Kernel does not support YAFFS2 partitions.
emulator: autoconfig: -ramdisk /home/jill/Android/Sdk/system-images/android-22/google_apis/armeabi-v7a//ramdisk.img
emulator: Using initial system image: /home/jill/Android/Sdk/system-images/android-22/google_apis/armeabi-v7a//system.img
emulator: autoconfig: -data /home/jill/.android/avd/Nexus_5_API_22_ARM.avd/userdata-qemu.img
emulator: autoconfig: -initdata /home/jill/.android/avd/Nexus_5_API_22_ARM.avd/userdata.img
emulator: autoconfig: -cache /home/jill/.android/avd/Nexus_5_API_22_ARM.avd/cache.img
emulator: autoconfig: -sdcard /home/jill/.android/avd/Nexus_5_API_22_ARM.avd/sdcard.img
emulator: Physical RAM size: 768MB

emulator: GPU emulation is disabled
emulator: WARNING: CPU acceleration only works with x86/x86_64 system images.

硬件配置文件的内容:
  hw.cpu.arch = arm
  hw.cpu.model = cortex-a8
  hw.ramSize = 768
  hw.screen = touch
  hw.mainKeys = no
  hw.trackBall = no
  hw.keyboard = yes
  hw.keyboard.lid = no
  hw.keyboard.charmap = qwerty2
  hw.dPad = no
  hw.gsmModem = yes
  hw.gps = yes
  hw.battery = yes
  hw.accelerometer = yes
  hw.audioInput = yes
  hw.audioOutput = yes
  hw.sdCard = yes
  hw.sdCard.path = /home/jill/.android/avd/Nexus_5_API_22_ARM.avd/sdcard.img
  disk.cachePartition = yes
  disk.cachePartition.path = /home/jill/.android/avd/Nexus_5_API_22_ARM.avd/cache.img
  disk.cachePartition.size = 66m
  hw.lcd.width = 1080
  hw.lcd.height = 1920
  hw.lcd.depth = 16
  hw.lcd.density = 480
  hw.lcd.backlight = yes
  hw.gpu.enabled = no
  hw.initialOrientation = portrait
  hw.camera.back = none
  hw.camera.front = none
  vm.heapSize = 64
  hw.sensors.proximity = yes
  hw.sensors.magnetic_field = yes
  hw.sensors.orientation = yes
  hw.sensors.temperature = yes
  hw.useext4 = yes
  kernel.path = /home/jill/Android/Sdk/system-images/android-22/google_apis/armeabi-v7a//kernel-qemu
  kernel.parameters =  android.checkjni=1
  kernel.newDeviceNaming = no
  kernel.supportsYaffs2 = no
  disk.ramdisk.path = /home/jill/Android/Sdk/system-images/android-22/google_apis/armeabi-v7a//ramdisk.img
  disk.systemPartition.initPath = /home/jill/Android/Sdk/system-images/android-22/google_apis/armeabi-v7a//system.img
  disk.systemPartition.size = 550m
  disk.dataPartition.path = /home/jill/.android/avd/Nexus_5_API_22_ARM.avd/userdata-qemu.img
  disk.dataPartition.size = 550m
  avd.name = Nexus_5_API_22_ARM

QEMU选项列表:

emulator: argv[00] = "./emulator-arm"
emulator: argv[01] = "-android-hw"
emulator: argv[02] = "/home/jill/.android/avd/Nexus_5_API_22_ARM.avd/hardware-qemu.ini"
Concatenated QEMU options:
 ./emulator-arm -android-hw /home/jill/.android/avd/Nexus_5_API_22_ARM.avd/hardware-qemu.ini
emulator: registered 'boot-properties' qemud service
emulator: Using kernel serial device prefix: ttyS
emulator: Ramdisk image contains fstab.goldfish file
emulator: Found format of system partition: 'ext4'
emulator: Found format of userdata partition: 'ext4'
emulator: Found format of cache partition: 'ext4'
emulator: system partition format: ext4
emulator: Mapping 'system' partition image to /tmp/android-jill/emulator-EfqElj
emulator: nand_add_dev: system,size=0x22600000,file=/tmp/android-jill/emulator-EfqElj,initfile=/home/jill/Android/Sdk/system-images/android-22/google_apis/armeabi-v7a//system.img,pagesize=512,extrasize=0
emulator: userdata partition format: ext4
emulator: nand_add_dev: userdata,size=0x22600000,file=/home/jill/.android/avd/Nexus_5_API_22_ARM.avd/userdata-qemu.img,pagesize=512,extrasize=0
emulator: cache partition format: ext4
emulator: nand_add_dev: cache,size=0x4200000,file=/home/jill/.android/avd/Nexus_5_API_22_ARM.avd/cache.img,pagesize=512,extrasize=0
emulator: registered 'boot-properties' qemud service
emulator: Adding boot property: 'dalvik.vm.heapsize' = '64m'
emulator: Adding boot property: 'qemu.sf.lcd_density' = '480'
emulator: Adding boot property: 'qemu.hw.mainkeys' = '0'
emulator: Adding boot property: 'qemu.sf.fake_camera' = 'none'
emulator: Kernel parameters: qemu.gles=0 qemu=1 console=ttyS0 android.qemud=ttyS1 android.checkjni=1 ndns=2
emulator: autoconfig: -scale 0.303119
emulator: Forcing ro.adb.qemud to "0".
emulator: control console listening on port 5554, ADB on port 5555
emulator: can't connect to ADB server: Transport endpoint is not connected (errno = 107)
emulator: ping program: /home/jill/Android/Sdk/tools/ddms
emulator: ping command: /home/jill/Android/Sdk/tools/ddms ping emulator standalone "" "" ""
goldfish_fb_get_pixel_format:170: display surface,pixel format:
  bits/pixel:  16
  bytes/pixel: 2
  depth:       16
  red:         bits=5 mask=0xf800 shift=11 max=0x1f
  green:       bits=6 mask=0x7e0 shift=5 max=0x3f
  blue:        bits=5 mask=0x1f shift=0 max=0x1f
  alpha:       bits=0 mask=0x0 shift=0 max=0x0

段错误(核心已转储)

1个回答

0

使用$ adb start-server命令来重启adb服务器

这将解决错误代码errno = 107的问题


网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接