On Friday, November 2, 2012 11:38:17 AM UTC+1, ARMageddon wrote:
> Hi,
>
> I am building B2G on a 64-bit freshly installed Kubuntu 12.10 on a Ivy-Bridge
> system with 16 GB Ram.
>
>
>
> The compilation runs fine, but when I launch ./run-emulator the emulator
> starts but something seems to hang and I get black screen.
>
>
>
> I tried many suggestions I found googling around but none has resolved the
> issue so I suspect it might be a new one.
>
>
>
> I also tried to switch to mozilla-aurora b2g but nothing has changed.
>
>
>
> I noticed the following error during starting:
>
> E/GeckoConsole( 43): [JavaScript Error: "this.webapps[msg.id] is undefined"
> {file: "resource://gre/modules/Webapps.jsm" line: 636}]
>
>
>
> and clicking on certain spots(invisible UI parts?) on the black screen
> triggers this error in the log:
>
> E/GeckoConsole( 43): [JavaScript Error: "NS_ERROR_XPC_BAD_CONVERT_JS: Could
> not convert JavaScript argument arg 0 [nsIDOMWindow.getComputedStyle]" {file:
> "chrome://global/content/BrowserElementChild.js" line: 905}]
>
>
>
> Can anyone help me?
>
> Thank you in advance,
>
> Riccardo
>
>
>
> Full emulator and logcat output:
>
> B2GBUILD/B2G$ ./run-emulator.sh
>
> emulator: autoconfig: -system ./out/target/product/generic//system.img
>
> emulator: autoconfig: -ramdisk ./out/target/product/generic//ramdisk.img
>
> emulator: autoconfig: -datadir ./out/target/product/generic/
>
> emulator: Found target ABI=armeabi-v7a, architecture=arm
>
> emulator: Found target API level: 15
>
> emulator: using core hw config path:
> ./out/target/product/generic//hardware-qemu.ini
>
> emulator: keyset loaded from: /home/droidcoder/.android/default.keyset
>
> emulator: trying to load skin file
> './development/tools/emulator/skins/HVGA/layout'
>
> emulator: skin network speed: 'full'
>
> emulator: skin network delay: 'none'
>
> emulator: Using initial system image: ./out/target/product/generic//system.img
>
> emulator: autoconfig: -initdata ./out/target/product/generic//userdata.img
>
> emulator: autoconfig: -sdcard ./out/target/product/generic//system.img
>
> emulator: Physical RAM size: 512MB
>
>
>
> emulator: Auto-config: -qemu -cpu cortex-a8
>
> Content of hardware configuration file:
>
> hw.cpu.arch = arm
>
> hw.cpu.model = cortex-a8
>
> hw.ramSize = 512
>
> hw.screen = touch
>
> hw.mainKeys = yes
>
> hw.trackBall = yes
>
> hw.keyboard = no
>
> hw.keyboard.lid = no
>
> hw.keyboard.charmap = qwerty2
>
> hw.dPad = yes
>
> hw.gsmModem = yes
>
> hw.gps = yes
>
> hw.battery = yes
>
> hw.accelerometer = yes
>
> hw.audioInput = yes
>
> hw.audioOutput = yes
>
> hw.sdCard = yes
>
> hw.sdCard.path = ./out/target/product/generic//system.img
>
> disk.cachePartition = yes
>
> disk.cachePartition.size = 66m
>
> hw.lcd.width = 320
>
> hw.lcd.height = 480
>
> hw.lcd.depth = 16
>
> hw.lcd.density = 160
>
> hw.lcd.backlight = yes
>
> hw.gpu.enabled = yes
>
> hw.camera.back = emulated
>
> hw.camera.front = none
>
> vm.heapSize = 48
>
> hw.sensors.proximity = yes
>
> hw.sensors.magnetic_field = yes
>
> hw.sensors.orientation = yes
>
> hw.sensors.temperature = yes
>
> kernel.path = ./prebuilts/qemu-kernel/arm/kernel-qemu-armv7
>
> kernel.parameters = android.checkjni=1
>
> disk.ramdisk.path = ./out/target/product/generic//ramdisk.img
>
> disk.systemPartition.initPath = ./out/target/product/generic//system.img
>
> disk.systemPartition.size = 512m
>
> disk.dataPartition.path =
> ./out/target/product/generic//./out/target/product/generic/userdata.img
>
> disk.dataPartition.size = 512m
>
> avd.name = <build>
>
> .
>
> QEMU options list:
>
> emulator: argv[00] = "./out/host/linux-x86/bin/emulator64-arm"
>
> emulator: argv[01] = "-cpu"
>
> emulator: argv[02] = "cortex-a8"
>
> emulator: argv[03] = "-android-hw"
>
> emulator: argv[04] = "./out/target/product/generic//hardware-qemu.ini"
>
> Concatenated QEMU options:
>
> ./out/host/linux-x86/bin/emulator64-arm -cpu cortex-a8 -android-hw
> ./out/target/product/generic//hardware-qemu.ini
>
> emulator: registered 'boot-properties' qemud service
>
> emulator: nand_add_dev:
> system,size=0x20000000,initfile=./out/target/product/generic//system.img
>
> emulator: mapping 'system' NAND image to
> /tmp/android-droidcoder/emulator-yM90p0
>
> emulator: rounding devsize up to a full eraseunit, now 20004000
>
>
>
> WARNING: Data partition already in use. Changes will not persist!
>
> emulator: nand_add_dev: userdata,size=0x20000000
>
> emulator: mapping 'userdata' NAND image to
> /tmp/android-droidcoder/emulator-4UphxS
>
> emulator: rounding devsize up to a full eraseunit, now 20004000
>
>
>
> emulator: registered 'boot-properties' qemud service
>
> emulator: Adding boot property: 'dalvik.vm.heapsize' = '48m'
>
> emulator: Adding boot property: 'qemu.sf.lcd_density' = '160'
>
> emulator: Adding boot property: 'qemu.hw.mainkeys' = '1'
>
> emulator: Adding boot property: 'qemu.sf.fake_camera' = 'back'
>
> emulator: nand_add_dev: cache,size=0x4200000
>
> emulator: mapping 'cache' NAND image to
> /tmp/android-droidcoder/emulator-vs1BEK
>
> emulator: Initializing hardware OpenGLES emulation support
>
> emulator: Kernel parameters: qemu.gles=1 qemu=1 console=ttyS0
> android.qemud=ttyS1 android.checkjni=1 ndns=1
>
> emulator: Trace file name is not set
>
>
>
> emulator: autoconfig: -scale 1
>
> emulator: Found ro.adb.qemud build property: 1
>
> emulator: control console listening on port 5554, ADB on port 5555
>
> emulator: sent '0012host:emulator:5555' to ADB server
>
> emulator: ping program: /home/developer/B2G/out/host/linux-x86/bin/ddms
>
> emulator: ping command: /home/developer/B2G/out/host/linux-x86/bin/ddms ping
> emulator 20.0 "Intel Open Source Technology Center" "Mesa DRI Intel(R)
> Ivybridge Desktop " "3.0 Mesa 9.0"
>
> goldfish_fb_get_pixel_format:167: 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
>
>
>
>
>
> B2G/out/host/linux-x86/bin$ ./adb logcat
>
> I/qemu-props( 33): connected to 'boot-properties' qemud service.
>
> I/qemu-props( 33): receiving..
>
> I/qemu-props( 33): received: dalvik.vm.heapsize=48m
>
> I/DEBUG ( 35): debuggerd: Nov 2 2012 00:24:18
>
> I/Vold ( 32): Vold 2.1 (the revenge) firing up
>
> D/Vold ( 32): Volume sdcard state changing -1 (Initializing) -> 0
> (No-Media)
>
> I/qemu-props( 33): receiving..
>
> I/qemu-props( 33): received: qemu.sf.lcd_density=160
>
> I/qemu-props( 33): receiving..
>
> I/qemu-props( 33): received: qemu.hw.mainkeys=1
>
> I/qemu-props( 33): receiving..
>
> I/qemu-props( 33): received: qemu.sf.fake_camera=back
>
> I/qemu-props( 33): receiving..
>
> I/qemu-props( 33): exiting (4 properties set).
>
> I/Netd ( 34): Netd 1.0 starting
>
> D/Vold ( 32): Volume sdcard state changing 0 (No-Media) -> 1
> (Idle-Unmounted)
>
> E/Netd ( 34): Unable to bind netlink socket: No such file or directory
>
> E/Netd ( 34): Unable to open quota2 logging socket
>
> I/ ( 37): ServiceManager: 0x18910
>
> I/ ( 38): ServiceManager: 0xf958
>
> I/AudioFlinger( 38): Loaded primary audio interface from LEGACY Audio HW
> HAL (audio)
>
> I/AudioFlinger( 38): Using 'LEGACY Audio HW HAL' (audio.primary) as the
> primary audio interface
>
> D/AudioHardwareInterface( 38): setMode(NORMAL)
>
> I/CameraService( 38): CameraService started (pid=38)
>
> D/EmulatedCamera_QemuClient( 38): Emulated camera list:
>
> D/EmulatedCamera_FakeCamera( 38): Initialize: Fake camera is facing back
>
> V/EmulatedCamera_Factory( 38): 1 cameras are being emulated. Fake camera ID
> is 0
>
> I/AudioFlinger( 38): AudioFlinger's thread 0x10fa8 ready to run
>
> W/AudioFlinger( 38): Thread AudioOut_1 cannot connect to the power manager
> service
>
> I/AudioPolicyService( 38): Loaded audio policy from LEGACY Audio Policy HAL
> (audio_policy)
>
> E/profiler( 43): Registering start signal
>
> D/ ( 43): HostConnection::get() New Host Connection established
> 0x430f07d0, tid 43
>
> I/Gonk ( 43): Socket open for RIL
>
> I/VolumeManager( 43): changing state from 'Uninitialized' to 'Starting'
>
> I/VolumeManager( 43): Connected to vold
>
> D/VoldCmdListener( 32): volume list
>
> I/VolumeManager( 43): Volume sdcard: changing state from Init to Idle (1
> observers)
>
> I/VolumeManager( 43): changing state from 'Starting' to 'Volumes Ready'
>
> E/AutoMounter( 43): Unable to open file
> '/sys/devices/virtual/usb_composite/usb_mass_storage/enable' for reading
>
> E/AutoMounter( 43): Unable to open file
> '/sys/devices/virtual/switch/usb_configuration/state' for reading
>
> I/AutoMounter( 43): UpdateState: umsAvail:0 umsEnabled:0 mode:0
> usbCablePluggedIn:0 tryToShare:0
>
> I/AutoMounter( 43): UpdateState: Volume sdcard is Idle and inserted
>
> D/VoldCmdListener( 32): volume mount sdcard
>
> I/Vold ( 32): /dev/block/vold/179:0 being considered for volume sdcard
>
> D/Vold ( 32): Volume sdcard state changing 1 (Idle-Unmounted) -> 3
> (Checking)
>
> W/Vold ( 32): Skipping fs checks
>
> I/VolumeManager( 43): Volume sdcard: changing state from Idle to Checking
> (3 observers)
>
> E/Vold ( 32): /dev/block/vold/179:0 failed to mount via VFAT (Invalid
> argument)
>
> E/Vold ( 32): Volume sdcard found no suitable devices for mounting :(
>
> D/Vold ( 32): Volume sdcard state changing 3 (Checking) -> 1
> (Idle-Unmounted)
>
> I/VolumeManager( 43): Volume sdcard: changing state from Checking to Idle
> (3 observers)
>
> W/Vold ( 32): Returning OperationFailed - no handler for errno 22
>
> E/AutoMounter( 43): Command 'volume mount sdcard' failed: 400 'volume
> operation failed (Invalid argument)'
>
> E/AutoMounter( 43): Unable to open file
> '/sys/devices/virtual/usb_composite/usb_mass_storage/enable' for reading
>
> E/AutoMounter( 43): Unable to open file
> '/sys/devices/virtual/switch/usb_configuration/state' for reading
>
> I/AutoMounter( 43): UpdateState: umsAvail:0 umsEnabled:0 mode:0
> usbCablePluggedIn:0 tryToShare:0
>
> I/AutoMounter( 43): UpdateState: Volume sdcard is Idle and inserted
>
> D/VoldCmdListener( 32): volume mount sdcard
>
> I/Vold ( 32): /dev/block/vold/179:0 being considered for volume sdcard
>
> D/Vold ( 32): Volume sdcard state changing 1 (Idle-Unmounted) -> 3
> (Checking)
>
> I/VolumeManager( 43): Volume sdcard: changing state from Idle to Checking
> (3 observers)
>
> W/Vold ( 32): Skipping fs checks
>
> E/Vold ( 32): /dev/block/vold/179:0 failed to mount via VFAT (Invalid
> argument)
>
> E/Vold ( 32): Volume sdcard found no suitable devices for mounting :(
>
> D/Vold ( 32): Volume sdcard state changing 3 (Checking) -> 1
> (Idle-Unmounted)
>
> I/VolumeManager( 43): Volume sdcard: changing state from Checking to Idle
> (3 observers)
>
> W/Vold ( 32): Returning OperationFailed - no handler for errno 22
>
> E/AutoMounter( 43): Command 'volume mount sdcard' failed: 400 'volume
> operation failed (Invalid argument)'
>
> E/AutoMounter( 43): Unable to open file
> '/sys/devices/virtual/usb_composite/usb_mass_storage/enable' for reading
>
> E/AutoMounter( 43): Unable to open file
> '/sys/devices/virtual/switch/usb_configuration/state' for reading
>
> I/AutoMounter( 43): UpdateState: umsAvail:0 umsEnabled:0 mode:0
> usbCablePluggedIn:0 tryToShare:0
>
> I/AutoMounter( 43): UpdateState: Volume sdcard is Idle and inserted
>
> D/VoldCmdListener( 32): volume mount sdcard
>
> I/Vold ( 32): /dev/block/vold/179:0 being considered for volume sdcard
>
> D/Vold ( 32): Volume sdcard state changing 1 (Idle-Unmounted) -> 3
> (Checking)
>
> I/VolumeManager( 43): Volume sdcard: changing state from Idle to Checking
> (3 observers)
>
> W/Vold ( 32): Skipping fs checks
>
> E/Vold ( 32): /dev/block/vold/179:0 failed to mount via VFAT (Invalid
> argument)
>
> E/Vold ( 32): Volume sdcard found no suitable devices for mounting :(
>
> D/Vold ( 32): Volume sdcard state changing 3 (Checking) -> 1
> (Idle-Unmounted)
>
> I/VolumeManager( 43): Volume sdcard: changing state from Checking to Idle
> (3 observers)
>
> W/Vold ( 32): Returning OperationFailed - no handler for errno 22
>
> E/AutoMounter( 43): Command 'volume mount sdcard' failed: 400 'volume
> operation failed (Invalid argument)'
>
> I/Gonk ( 43): Unable to open file
> /sys/class/android_usb/android0/f_rndis/ethaddr.
>
> I/Gonk ( 43): fail to give rndis interface an address
>
> I/Gonk ( 43): Connected to netd
>
> I/EventHub( 43): New device: id=1, fd=81, path='/dev/input/event0',
> name='qwerty2', classes=0x2d, configuration='/system/usr/idc/qwerty2.idc',
> keyLayout='/system/usr/keylayout/qwerty.kl',
> keyCharacterMap='/system/usr/keychars/qwerty2.kcm', builtinKeyboard=true
>
> E/EventHub( 43): could not get driver version for /dev/input/mouse0, Not a
> typewriter
>
> E/EventHub( 43): could not get driver version for /dev/input/mice, Not a
> typewriter
>
> I/InputReader( 43): Device reconfigured: id=0, name='qwerty2', surface size
> is now 320x480, mode is 1
>
> I/InputReader( 43): Device added: id=0, name='qwerty2', sources=0x00011307
>
> E/GeckoConsole( 43): [JavaScript Warning: "Unknown property
> '-moz-align-self'. Declaration dropped." {file:
> "resource://gre-resources/ua.css" line: 44}]
>
> I/nsVolumeService( 43): UpdateVolume: 'sdcard' state Idle
>
> I/nsVolumeService( 43): UpdateVolume: 'sdcard' state Checking
>
> I/nsVolumeService( 43): UpdateVolume: 'sdcard' state Idle
>
> I/nsVolumeService( 43): UpdateVolume: 'sdcard' state Checking
>
> I/nsVolumeService( 43): UpdateVolume: 'sdcard' state Idle
>
> I/nsVolumeService( 43): UpdateVolume: 'sdcard' state Checking
>
> I/nsVolumeService( 43): UpdateVolume: 'sdcard' state Idle
>
> I/FMRadio ( 43): FMRadio is initialized.
>
> I/GeckoDump( 43): Opened socket on 9999
>
> I/Gecko ( 43): RIL Worker: DateTimeZone string
> 12/11/02:10:13:36+4:0:posix!Europe!Vatican
>
> W/AudioFlinger( 38): Thread AudioOut_1 cannot connect to the power manager
> service
>
> I/Gecko ( 43): [AccessFu] INFO attach
>
> D/NetUtils( 43): failed to remove default route for tiwlan0: No such device
>
> E/GeckoConsole( 43): [JavaScript Error: "this.webapps[msg.id] is undefined"
> {file: "resource://gre/modules/Webapps.jsm" line: 636}]
>
> E/profiler( 141): Registering start signal
>
> E/GeckoConsole( 141): [JavaScript Warning: "Unknown property
> '-moz-align-self'. Declaration dropped." {file:
> "resource://gre-resources/ua.css" line: 44}]
>
> E/GeckoConsole( 43): [JavaScript Warning: "Unknown property
> '-moz-align-self'. Declaration dropped." {file:
> "resource://gre-resources/ua.css" line: 44}]
>
> E/WifiHW ( 43): Cannot open "/system/etc/wifi/wpa_supplicant.conf": No
> such file or directory
>
> E/WifiHW ( 43): Wi-Fi will not be enabled
>
> I/IdleService( 43): DailyCallback started
>
> I/IdleService( 43): DailyCallback running
>
> I/IdleService( 43): DailyCallback registering Idle observer
>
> I/IdleService( 43): Register idle observer 425603c0 for 300 seconds
>
> I/IdleService( 43): Register: adjusting next switch from -1 to 300 seconds
>
> I/IdleService( 43): next timeout 1351851526952903 usec (299995 msec from
> now)
>
> I/IdleService( 43): SetTimerExpiryIfBefore: next timeout 1351851526952903
> usec
>
> I/IdleService( 43): reset timer expiry from 0 usec to 1351851526962903 usec
>
> E/GeckoConsole( 43): [JavaScript Error: "NS_ERROR_XPC_BAD_CONVERT_JS: Could
> not convert JavaScript argument arg 0 [nsIDOMWindow.getComputedStyle]" {file:
> "chrome://global/content/BrowserElementChild.js" line: 905}]
Got exactly the same problem.
My system is running within a VirtualBox environment on Ubuntu 12.04 x64 with
an x86 emulator. Build went fine - when I launch the emulator I get only a
black screen. I ran a x86 Android image in the emulator to test if that part
works - runs fine.
Furthermore I built B2G on an MacOS system with an ARM emulator - exactly the
same behavior there - build went fine, emulator just shows a black screen.
I can connect via ADB to the emulator.
_______________________________________________
dev-b2g mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-b2g