Closed Bug 927242 Opened 11 years ago Closed 11 years ago

Crash while parsing mp3 files

Categories

(Firefox OS Graveyard :: General, defect, P1)

ARM
Gonk (Firefox OS)
defect

Tracking

(blocking-b2g:koi+)

RESOLVED DUPLICATE of bug 924678
blocking-b2g koi+

People

(Reporter: bhargavg1, Assigned: cajbir)

References

Details

(Whiteboard: [JIRA:1885])

Crash Data

Attachments

(3 files)

Observed crash while starting the music app with the following clip

https://docs.google.com/file/d/0B0zTAnPOpx-xR0J0N1d3dDNmV0E/edit?usp=sharing

the crash wont happen always would happen only when enumerating the DB for the first time.

Observed the crash around the following build,

Gaia:  9e21b6bea92fdafcb6787120a8cde0eb25a50495
Gecko: 2476b6aaae1047642646ba5c442b2aa9fd18bf8f
blocking-b2g: --- → koi?
Crash Signature: [@ PR_EnterMonitor | android::OmxDecoder::NotifyDataArrived(char const*, unsigned int, long long) | mozilla::Omx DecoderNotifyDataArrivedRunnable::Run() | nsThread::ProcessNextEvent(bool, bool*) ]
Flags: needinfo?(sotaro.ikeda.g)
Priority: -- → P1
Whiteboard: [JIRA:1885]
blocking-b2g: koi? → koi+
the issue can be easily reproduced if the above mentioned clip is the only one to enumerate
Component: Gaia::Music → General
Flags: needinfo?(sotaro.ikeda.g)
I is a bug of series of mp3 regression like Bug 923451, Bug 926125, Bug 924678, Bug 914870, Bug 922334, Bug 922953.
The crash might be related to Bug 924678. But it is not clear.
The stack trace looks like a duplicate of bug 924678.
I cannot access the file on Google docs. Can you send it to me by mail?
Flags: needinfo?(bhargavg1)
(In reply to Thomas Zimmermann [:tzimmermann] [:tdz] from comment #5)
> I cannot access the file on Google docs. Can you send it to me by mail?

Sent the invite, you should be able to now
Flags: needinfo?(bhargavg1)
I cannot reproduce this bug on the Unagi.

Gaia: bc2fb252092af20050551ecbd7c5a3edab77b58e
Gecko: m-c 423b9c30c73d
Blocks: 927884
(In reply to Thomas Zimmermann [:tzimmermann] [:tdz] from comment #7)
> I cannot reproduce this bug on the Unagi.
> 
> Gaia: bc2fb252092af20050551ecbd7c5a3edab77b58e
> Gecko: m-c 423b9c30c73d

It is easily reproducible if the file is the only one to be enumerated after erasing the internal DB.
(In reply to Thomas Zimmermann [:tzimmermann] [:tdz] from comment #7)
> I cannot reproduce this bug on the Unagi.
> 
> Gaia: bc2fb252092af20050551ecbd7c5a3edab77b58e
> Gecko: m-c 423b9c30c73d

Checked this on latest version easily reproduced,
Gecko: 5ef3535021286ccab7af639897feaaf5955720a0
Gaia: 1b2f9fa87dbb4c9bfbf009539cf813fa2841472b
Attached file mp3_issue.log
adb log attached
How can I get access to the file that causes the issue?
Flags: needinfo?(bhargavg1)
Assignee: nobody → chris.double
(In reply to Chris Double (:doublec) from comment #11)
> How can I get access to the file that causes the issue?

You should be able to access now, sent and invite
Flags: needinfo?(bhargavg1)
(In reply to bhargavg1 from comment #12)
> (In reply to Chris Double (:doublec) from comment #11)
> > How can I get access to the file that causes the issue?
> 
> You should be able to access now, sent and invite

Thanks, got it. Attempting to reproduce now.
Status: NEW → ASSIGNED
(In reply to bhargavg1 from comment #9)
> Gecko: 5ef3535021286ccab7af639897feaaf5955720a0

What repository is this hash from? From my 'gecko' directory that resulted from a "./config.sh unagi", this commmit ID doesn't exist. Am I doing something wrong?
(In reply to Chris Double (:doublec) from comment #14)
> (In reply to bhargavg1 from comment #9)
> > Gecko: 5ef3535021286ccab7af639897feaaf5955720a0
> 
> What repository is this hash from? From my 'gecko' directory that resulted
> from a "./config.sh unagi", this commmit ID doesn't exist. Am I doing
> something wrong?

n/m worked it out. That's a Gaia commit and the commit labeled as Gecko is the gaia one.
(In reply to Chris Double (:doublec) from comment #15)
> (In reply to Chris Double (:doublec) from comment #14)
> > (In reply to bhargavg1 from comment #9)
> > > Gecko: 5ef3535021286ccab7af639897feaaf5955720a0
> > 
> > What repository is this hash from? From my 'gecko' directory that resulted
> > from a "./config.sh unagi", this commmit ID doesn't exist. Am I doing
> > something wrong?
> 
> n/m worked it out. That's a Gaia commit and the commit labeled as Gecko is
> the gaia one.

oops Sorry for the copy/paste error
I finally managed to reproduce the problem. Could you test the attached fix? It's from bug 924678 and seems to work for me.
Attachment #818946 - Flags: feedback?(bhargavg1)
(In reply to Thomas Zimmermann [:tzimmermann] [:tdz] from comment #17)
> Created attachment 818946 [details] [diff] [review]
> 0001-Bug-924678-Explicitly-clear-OmxDecoder-mDecoder-r-do.patch
> 
> I finally managed to reproduce the problem. Could you test the attached fix?
> It's from bug 924678 and seems to work for me.

Yes works for me too. Don't see the crash anymore
(In reply to Thomas Zimmermann [:tzimmermann] [:tdz] from comment #17)
> Created attachment 818946 [details] [diff] [review]
> 0001-Bug-924678-Explicitly-clear-OmxDecoder-mDecoder-r-do.patch
> 
> I finally managed to reproduce the problem. Could you test the attached fix?
> It's from bug 924678 and seems to work for me.

Is this issue only specific to VBR clips dont see this issue for regular mp3 clips?
Is it the case that uplifting bug 924678 to 1.2 fixes this?
Flags: needinfo?(tzimmermann)
Yes, bug 924678 seems to fix the problem.
Flags: needinfo?(tzimmermann)
Hi

(In reply to bhargavg1 from comment #18)
> (In reply to Thomas Zimmermann [:tzimmermann] [:tdz] from comment #17)
> > Created attachment 818946 [details] [diff] [review]
> > 0001-Bug-924678-Explicitly-clear-OmxDecoder-mDecoder-r-do.patch
> > 
> > I finally managed to reproduce the problem. Could you test the attached fix?
> > It's from bug 924678 and seems to work for me.
> 
> Yes works for me too. Don't see the crash anymore

Bug 924678 has been uplifted into 1.2. Maybe you can do another test, and then close this bug as duplicate? Thanks.
Flags: needinfo?(bhargavg1)
will mark as duplicate of bug 924678, if we see any issues shall re-open this again
Flags: needinfo?(bhargavg1)
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → DUPLICATE
Attachment #818946 - Flags: feedback?(bhargavg1)
(In reply to Thomas Zimmermann [:tzimmermann] [:tdz] from comment #22)
> Hi
> 
> (In reply to bhargavg1 from comment #18)
> > (In reply to Thomas Zimmermann [:tzimmermann] [:tdz] from comment #17)
> > > Created attachment 818946 [details] [diff] [review]
> > > 0001-Bug-924678-Explicitly-clear-OmxDecoder-mDecoder-r-do.patch
> > > 
> > > I finally managed to reproduce the problem. Could you test the attached fix?
> > > It's from bug 924678 and seems to work for me.
> > 
> > Yes works for me too. Don't see the crash anymore
> 
> Bug 924678 has been uplifted into 1.2. Maybe you can do another test, and
> then close this bug as duplicate? Thanks.

With the clip mentioned in Description see that the timeline shown isn't correct, first we calculate the time as 04:54 and when the clip reaches to 02:54 we stop playing updating our time to be 04:54. Can you please check this on the latest builds
Flags: needinfo?(tzimmermann)
Will raise a new bug for this
Flags: needinfo?(tzimmermann)
(In reply to bhargavg1 from comment #25)
> With the clip mentioned in Description see that the timeline shown isn't
> correct, first we calculate the time as 04:54 and when the clip reaches to
> 02:54 we stop playing updating our time to be 04:54. Can you please check
> this on the latest builds

Please CC myself and Edwin Flores on your new bug when you create it please bhargavg1, and make sure you include steps to reproduce the problem, and a link to a file which exhibits this problem.

Edwin is working on improving the duration estimate in bug 918135. He's determined that most MP3 players are able to estimate the duration by reading metadata tags and/or data in the first frame. So we should soon have a more accurate MP3 duration that doesn't change as we read more MP3 frames.
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: