Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Errors in gallery / mediadb.js

20 views
Skip to first unread message

Stefan Arentz

unread,
Feb 8, 2013, 11:39:44 AM2/8/13
to dev-...@lists.mozilla.org
I just compiled the latest version and flashed my phone but now the Gallery app is not loading. It just hangs in a progress spinner during startup.

In logcat I see the following:

E/GeckoConsole( 447): [JavaScript Error: "TypeError: media.storage.stat is not a function" {file: "app://gallery.gaiamobile.org/shared/js/mediadb.js" line: 486}]

E/GeckoConsole( 447): [JavaScript Error: "TypeError: media.storage.stat is not a function" {file: "app://gallery.gaiamobile.org/shared/js/mediadb.js" line: 486}]

I am on master of git://github.com/mozilla-b2g/B2G.git .. is that the correct branch for a build that is close to production code?

S.

Dale Harvey

unread,
Feb 8, 2013, 11:49:10 AM2/8/13
to Stefan Arentz, dev-...@lists.mozilla.org
I believe this means you are using a new (master) gaia with the older
(b2g18) gecko, in the gecko folder you can $ git branch -a to find out
> _______________________________________________
> dev-gaia mailing list
> dev-...@lists.mozilla.org
> https://lists.mozilla.org/listinfo/dev-gaia
>

Stefan Arentz

unread,
Feb 8, 2013, 11:51:47 AM2/8/13
to Dale Harvey, dev-...@lists.mozilla.org
What is the correct way to do a v1.0 build? I basically followed the instructions on

https://developer.mozilla.org/en-US/docs/Mozilla/Firefox_OS/Preparing_for_your_first_B2G_build

but maybe that builds a 'nightly' ?

Sorry, I'm new to this.

My goal is to test things on a build that is as close to production as possible.

S.

On 2013-02-08, at 11:49 AM, Dale Harvey <da...@arandomurl.com> wrote:

> I believe this means you are using a new (master) gaia with the older (b2g18) gecko, in the gecko folder you can $ git branch -a to find out
>
> On 8 February 2013 16:39, Stefan Arentz <sar...@mozilla.com> wrote:
> I just compiled the latest version and flashed my phone but now the Gallery app is not loading. It just hangs in a progress spinner during startup.
>
> In logcat I see the following:
>
> E/GeckoConsole( 447): [JavaScript Error: "TypeError: media.storage.stat is not a function" {file: "app://gallery.gaiamobile.org/shared/js/mediadb.js" line: 486}]
>
> E/GeckoConsole( 447): [JavaScript Error: "TypeError: media.storage.stat is not a function" {file: "app://gallery.gaiamobile.org/shared/js/mediadb.js" line: 486}]

David Flanagan

unread,
Feb 8, 2013, 1:49:50 PM2/8/13
to Dale Harvey, dev-...@lists.mozilla.org, Stefan Arentz
Its the other way around, actually. You've got a version of Gaia that is
trying to call stat(), which doesn't exist anymore. Your Gaia is a week
or more out of date.

David

Stefan Arentz

unread,
Feb 8, 2013, 1:50:35 PM2/8/13
to David Flanagan, Dale Harvey, dev-...@lists.mozilla.org

On 2013-02-08, at 1:49 PM, David Flanagan <dfla...@mozilla.com> wrote:

> Its the other way around, actually. You've got a version of Gaia that is trying to call stat(), which doesn't exist anymore. Your Gaia is a week or more out of date.

I don't understand. I ran a ./repo sync before I did this build.

S.

David Flanagan

unread,
Feb 8, 2013, 1:54:13 PM2/8/13
to Stefan Arentz, Dale Harvey, dev-...@lists.mozilla.org
The B2G repo and its ./repo command are complete mysteries to me. I use
the Gaia repo and use the makefile in that repo for installing Gaia. So
I've got no idea what is going wrong for you.

Dave Hylands

unread,
Feb 8, 2013, 3:16:54 PM2/8/13
to Stefan Arentz, Dale Harvey, dev-...@lists.mozilla.org, David Flanagan
Hi Stefan,

repo sync doesn't update the B2G repository.

So you should make sure that's up-to-date

git fetch origin
git checkout master (or possibly git checkout origin/master)

I then like to goto https://github.com/mozilla-b2g/B2G and make sure the "latest commit" hash matches the one from

git show HEAD

Once that's all done, then redo your config.sh step.

Dave Hylands

----- Original Message -----
> From: "Stefan Arentz" <sar...@mozilla.com>
> To: "David Flanagan" <dfla...@mozilla.com>
> Cc: "Dale Harvey" <da...@arandomurl.com>, dev-...@lists.mozilla.org
> Sent: Friday, February 8, 2013 10:50:35 AM
> Subject: Re: Errors in gallery / mediadb.js
>
>
> On 2013-02-08, at 1:49 PM, David Flanagan <dfla...@mozilla.com>
> wrote:
>
> > Its the other way around, actually. You've got a version of Gaia
> > that is trying to call stat(), which doesn't exist anymore. Your
> > Gaia is a week or more out of date.
>
> I don't understand. I ran a ./repo sync before I did this build.
>
> S.
>

Stefan Arentz

unread,
Feb 8, 2013, 3:23:17 PM2/8/13
to Dave Hylands, Dale Harvey, dev-...@lists.mozilla.org, David Flanagan

On 2013-02-08, at 3:16 PM, Dave Hylands <dhyl...@mozilla.com> wrote:

> Hi Stefan,
>
> repo sync doesn't update the B2G repository.
>
> So you should make sure that's up-to-date
>
> git fetch origin
> git checkout master (or possibly git checkout origin/master)
>
> I then like to goto https://github.com/mozilla-b2g/B2G and make sure the "latest commit" hash matches the one from
>
> git show HEAD
>
> Once that's all done, then redo your config.sh step.

Are you really sure about that? Asking because https://developer.mozilla.org/en-US/docs/Mozilla/Firefox_OS/Building says to do the following before making a build:

git pull
repo sync

That is what I've been doing to keep my build up to date. So I really hope that is actually correct :-)

S.

Dave Hylands

unread,
Feb 8, 2013, 3:40:57 PM2/8/13
to Stefan Arentz, Dale Harvey, dev-...@lists.mozilla.org, David Flanagan
Hi Stephan,

----- Original Message -----
> From: "Stefan Arentz" <sar...@mozilla.com>
> To: "Dave Hylands" <dhyl...@mozilla.com>
> Cc: "Dale Harvey" <da...@arandomurl.com>, dev-...@lists.mozilla.org, "David Flanagan" <dfla...@mozilla.com>
> Sent: Friday, February 8, 2013 12:23:17 PM
> Subject: Re: Errors in gallery / mediadb.js
>
>
> On 2013-02-08, at 3:16 PM, Dave Hylands <dhyl...@mozilla.com> wrote:
>
> > Hi Stefan,
> >
> > repo sync doesn't update the B2G repository.
> >
> > So you should make sure that's up-to-date
> >
> > git fetch origin
> > git checkout master (or possibly git checkout origin/master)
> >
> > I then like to goto https://github.com/mozilla-b2g/B2G and make
> > sure the "latest commit" hash matches the one from
> >
> > git show HEAD
> >
> > Once that's all done, then redo your config.sh step.
>
> Are you really sure about that? Asking because
> https://developer.mozilla.org/en-US/docs/Mozilla/Firefox_OS/Building
> says to do the following before making a build:
>
> git pull

That will do the same thing if you're not on a branch.

> That is what I've been doing to keep my build up to date. So I really
> hope that is actually correct :-)

Yep - that should work. But I'd still double check that the hash in your B2G repo matches the latest from
https://github.com/mozilla-b2g/B2G

If you're on the right hash, it doesn't really matter how you got there.

Dave Hylands

Dave Hylands

unread,
Feb 8, 2013, 4:25:32 PM2/8/13
to Stefan Arentz, Dale Harvey, dev-...@lists.mozilla.org, David Flanagan
Hi Stefan,

> > Are you really sure about that? Asking because
> > https://developer.mozilla.org/en-US/docs/Mozilla/Firefox_OS/Building
> > says to do the following before making a build:
> >
> > git pull
>
> That will do the same thing if you're not on a branch.
>
> > That is what I've been doing to keep my build up to date. So I
> > really
> > hope that is actually correct :-)
>
> Yep - that should work. But I'd still double check that the hash in
> your B2G repo matches the latest from
> https://github.com/mozilla-b2g/B2G
>
> If you're on the right hash, it doesn't really matter how you got
> there.

You should also do:

./config.sh PHONE

(replacing PHONE as appropriate).

Sometime in the last week or so

./config.sh changed from being

BRANCH=nightly ./config.sh

to being

BRANCH=v1-train ./config.sh

And which branch you're on will impact what repo sync does.

Dave Hylands

Julien Wajsberg

unread,
Feb 11, 2013, 4:34:59 AM2/11/13
to Stefan Arentz, Dale Harvey, dev-...@lists.mozilla.org, David Flanagan
Le 08/02/2013 19:50, Stefan Arentz a écrit :
>
> On 2013-02-08, at 1:49 PM, David Flanagan <dfla...@mozilla.com> wrote:
>
>> Its the other way around, actually. You've got a version of Gaia that is trying to call stat(), which doesn't exist anymore. Your Gaia is a week or more out of date.
>
> I don't understand. I ran a ./repo sync before I did this build.

I may be wrong here but I think that the gecko repository in B2G is
based on git, and that recently the git repository stopped being sync
with the mercurial repository (at least for b2g branches, I'm not sure
for central).

Therefore, the safest is that:

- you clone the b2g18 mercurial repository
(http://hg.mozilla.org/releases/mozilla-b2g18). If you already have a
central repo, you can modify its .hg/hgrc and then "hg pull -u" should
move you.

- you configure a .userconfig with a GECKO_PATH pointing to this
mercurial repository. To make stuff faster when swiching repositories
and VARIANT, I also configure my GECKO_OBJDIR like that :

GECKO_OBJDIR=$GECKO_PATH/objdir-gonk-$VARIANT

- anytime you'll want to update, you'll do |hg pull -u| in the mercurial
repo, and then "git pull && ./repo sync && ./build.sh" in the B2G repo.

Please correct me if I'm wrong somewhere.

--
Julien

David Flanagan

unread,
Feb 11, 2013, 8:49:30 AM2/11/13
to Julien Wajsberg, Dale Harvey, dev-...@lists.mozilla.org, Stefan Arentz
On 2/11/13 1:34 AM, Julien Wajsberg wrote:
> Le 08/02/2013 19:50, Stefan Arentz a écrit :
>> On 2013-02-08, at 1:49 PM, David Flanagan <dfla...@mozilla.com> wrote:
>>
>>> Its the other way around, actually. You've got a version of Gaia that is trying to call stat(), which doesn't exist anymore. Your Gaia is a week or more out of date.
>> I don't understand. I ran a ./repo sync before I did this build.
> I may be wrong here but I think that the gecko repository in B2G is
> based on git, and that recently the git repository stopped being sync
> with the mercurial repository (at least for b2g branches, I'm not sure
> for central).
I have no idea if that is true. But Stefan's problem is that his Gaia is
out of date, not his Gecko, so what you propose won't help this
particular problem.

David
0 new messages