Closed Bug 786950 Opened 12 years ago Closed 12 years ago

B2G emulator build 08/29/12 error

Categories

(Firefox OS Graveyard :: General, defect)

x86
macOS
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED INVALID

People

(Reporter: onecyrenus, Unassigned)

Details

Attachments

(1 file)

Otoro Emulator daily build is throwing an error on my ubuntu vm box. 

Need to know asap if this is a known issue, and / or what the remedy is. 

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-mozilla/emulator-LrSyfI
emulator: Initializing hardware OpenGLES emulation support
failed to create drawable
failed to create drawable
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
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
failed to create drawable
Just to reiterate this error is occurring on the daily emulator build 08/29/12
blocking-basecamp: --- → ?
Adding more details: 

1) Virtual Machine 
Linux ubuntu 2.6.38-11-generic #50-Ubuntu SMP Mon Sep 12 21:17:25 UTC 2011 x86_64 x86_64 x86_64 GNU/Linux

2) Vmware Fusion and 3d graphics on linux don't seem to play well.
While having the emulator working is important, we're only blocking Basecamp on Otoro-related issues.
blocking-basecamp: ? → -
Attached file logcat output
Andrew: my understanding is anything that blocks CI framework execution or CI test development in general is considered a basecamp+.

If "framework breakage is a basecamp+" has changed, I need to discuss that with someone. If the emulator isn't working, that's a hard testblock for us on both permissions and functionality testing.

I'm renominating, and cc'ing jgriffin for his comments on whether this is an environment issue or general breakage.
blocking-basecamp: - → ?
"otoro emulator" makes no sense. Either it happens on the otoro, or the emulator, or on both. This seems to be just an emulator issue, but you're not at all describing the symptoms.
Summary: Error otoro daily emulator build 08/29/12 → B2G emulator build 08/29/12 error
Jonathan says CI ran that night. I'm inclined to think this might be a local problem. 

Assigning qa-contact and blocking on input for David Clarke to clarify symptoms or let us know if it turns out to be a local-only issue. 

Would appreciate it if we hold nom open until we figure out if this is a broad issue or not. Broad issue would, IMO, qualify for bc+.
QA Contact: dclarke
Whiteboard: [blocked-on-input David Clarke]
Philipp: otoro emulator was just a mistake, this is just android emulator.

Symptom: 
The android subsystem loads, but the homescreen doesn't load. 
As in I can adb shell in stop and start b2g, but nothing shows up in the emulator window. 

My initial thought was someone would just say, well i am using the emulator daily builds and it works for me.
Removing blocker.
Whiteboard: [blocked-on-input David Clarke]
(In reply to dclarke@mozilla.com  [:onecyrenus] from comment #8)
> Philipp: otoro emulator was just a mistake, this is just android emulator.
> 
> Symptom: 
> The android subsystem loads, but the homescreen doesn't load. 
> As in I can adb shell in stop and start b2g, but nothing shows up in the
> emulator window. 
> 
> My initial thought was someone would just say, well i am using the emulator
> daily builds and it works for me.

I just tried the nightly emulator build from 08/31 and it ran fine for me.  Can you see if this version works for you?
Awaiting David's input as to whether this is still broken.
Whiteboard: [blocked-on-input David Clarke]
jgriffin: could you explain works fine for me ? 

My steps are fairly reproducible: 

1) Download QA Ubuntu 11 VM from the intranet (My host os is Mac OSX 10.8)
2) Install the emulator from the nightly run
3) Black screen. 

Could you give some information on your environment ? 

This still occurs for me.
It's likely some environment difference.  I'm using Ubuntu 11.10, with all the packages needed to build the emulator.  See https://source.android.com/source/initializing.html for a list.  

One issue I see in your logcat is this error:

E/GeckoConsole(   41): [JavaScript Error: "NS_ERROR_UNEXPECTED: Component returned failure code: 0x8000ffff (NS_ERROR_UNEXPECTED) [nsIPrefBranch.getCharPref]" {file: "chrome://browser/content/shell.js" line: 87}]

This is an odd error which I don't see.  It could cause Gaia not to appear.

If none of this helps, could you give me a pointer to the VM you download?  I can try to debug it.
This error:

E/GeckoConsole(   41): [JavaScript Error: "NS_ERROR_UNEXPECTED: Component returned failure code: 0x8000ffff (NS_ERROR_UNEXPECTED) [nsIPrefBranch.getCharPref]" {file: "chrome://browser/content/shell.js" line: 87}]

means that the pref browser.homescreenURL is not found, so we can't load gaia. It is usually set up in user.js by |make profile| or |make install-gaia|.
http://fs2.office.mozilla.org/public/QA/Virtualization/Ubuntu-11.10-32-bit-Jan-19-12.tgz

Is there any other possible step between downloading the emulator and running ./run-emulator.sh ?
Whiteboard: [blocked-on-input David Clarke]
(In reply to dclarke@mozilla.com  [:onecyrenus] from comment #15)
> http://fs2.office.mozilla.org/public/QA/Virtualization/
> 
> linux ubuntu 32 bit 11

The nightly builds are made on a 64-bit VM.  Could you try running it on http://fs2.office.mozilla.org/public/QA/Virtualization/Ubuntu-11.10-64-bit-Jan-19-12.tgz instead?
(In reply to Jonathan Griffin (:jgriffin) from comment #17)

> The nightly builds are made on a 64-bit VM.  Could you try running it on
> http://fs2.office.mozilla.org/public/QA/Virtualization/Ubuntu-11.10-64-bit-
> Jan-19-12.tgz instead?

We don't typically create the test VMs with a lot of disk space (they're really only meant to hold Firefox) so it may need to have the virtual partition expanded out first.
I had initially tried things on the 64 bit ubuntu, but then switched to the 32 bit version. 

so it is not working on both for me.
This seems like just an environment problem.  In its default state, the QA Ubuntu 11.10 64-bit image (http://fs2.office.mozilla.org/public/QA/Virtualization/Ubuntu-11.10-64-bit-Jan-19-12.tgz) isn't capable of even launching the emulator.  However, I was able to get it completely working (Gaia apps and all) by doing the following:

sudo apt-get update
sudo apt-get upgrade
sudo apt-get install gcc-multilib g++-multilib libg1-mesa-dev libx11-dev libx11-dev:i386 ia32-libs-sdl

The emulator I used was https://releases.mozilla.com/b2g/2012-09-05/emulator-arm_linux_2012-09-05.zip

Note that if you're developing tests on this VM, you'll get better performance out of it by increasing the amount of RAM from its default 1GB (I'd recommend at least 2).  Increasing the number of cores from 1 to 2 is also helpful, but neither of these things is necessary simply to run the emulator.
(In reply to Jonathan Griffin (:jgriffin) from comment #20)

> Jan-19-12.tgz) isn't capable of even launching the emulator.  However, I was
> able to get it completely working (Gaia apps and all) by doing the following:

Thanks for these instructions!
Jonathan, 
  Thanks for these instructions, trying them out now.
blocking-basecamp: ? → ---
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 libx11-dev : Depends: libxau-dev (>= 1:1.0.0-1) but it is not going to be installed
              Depends: libxdmcp-dev (>= 1:1.0.0-1) but it is not going to be installed
              Depends: libxcb1-dev but it is not going to be installed
              Conflicts: libx11-dev:i386 but 2:1.4.4-2ubuntu1 is to be installed
 libx11-dev:i386 : Conflicts: libx11-dev but 2:1.4.4-2ubuntu1 is to be installed
E: Unable to correct problems, you have held broken packages.
mozilla@ubuntu:~$ 

And you didn't receive any of these issues ?
No, I didn't get any of those errors.  Those errors can happen when older packages have been installed with deps that haven't been upgraded.  I recommend starting with a fresh VM.
Also there was a typo when listing the libraries: 

libg1-mesa-dev <--- this should be libgl1-mesa-dev ? 
This is a fresh vm :( 

Resolved the dependency issue by doing the following. 

sudo apt-get install gcc-multilib g++-multilib libgl1-mesa-dev
sudo apt-get install ia32-libs-sdl
sudo apt-get install libx11-dev:i386
sudo apt-get autoremove
sudo apt-get install libx11-dev
Now up and running.

Thanks !!! a ton !
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: