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

时间:2015-05-07 07:05:46

标签: android android-studio avd

我查看了以前关于分段错误的帖子。但他们似乎并不清楚我的问题。我尝试禁用GPU仿真,将RAM大小更改为其中一个论坛中提到的值。我想知道为什么在我启动AVD时会出现分段错误

  1. 我不得不继续使用ARM构建,因为我的X86处理器不支持虚拟化。

  2. uname -a的输出如下

    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释放:

    DISTRIB_ID=Ubuntu
    DISTRIB_RELEASE=14.10
    DISTRIB_CODENAME=utopic
    DISTRIB_DESCRIPTION="Ubuntu 14.10"
    
  4. 日志如下

    ./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 :(得分:0)

使用$ adb start-server重新启动adb服务器

这将解决问题errno = 107

相关问题