Closed Bug 1020298 Opened 10 years ago Closed 10 years ago

"Add videos to get started" message is shown when opening Video app

Categories

(Firefox OS Graveyard :: Gaia::UI Tests, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 1024517

People

(Reporter: AndreiH, Assigned: AndreiH)

References

Details

(Whiteboard: [fromAutomation])

Attachments

(2 files)

#STR:

1. Make sure you have a video on your phone (eg. webm  format)
2. Restart your phone
3. Open Video app

#Expected results:
Video list should load without the "Add videos to get started"

#Actual results:
"Add videos to get started. Load videos on to the memory card to get started" message appears before the list is loaded.

Running this from automation with a clean profile means that the message is always shown and sometimes our test even fail because the warning message doesn't disappear after 5-10 seconds.


First saw this fail on Flame v1.4 build:

Gaia      0c16adced7c51f795ef250aebe184f60b6a9b987                         
Gecko     https://hg.mozilla.org/releases/mozilla-b2g30_v1_4/rev/04216748e6c1                                                                       
BuildID   20140604000202                                                   
Version   30.0                                                             
ro.build.version.incremental=94                                            
ro.build.date=Tue May 20 09:29:20 CST 2014 


I could see this being reproduced also on Flame master build:
Gaia      1d4f6f7312882e78b57971152de75d1281a26187                         
Gecko     https://hg.mozilla.org/mozilla-central/rev/668f29cd71b3          
BuildID   20140604040204                                                  
Version   32.0a1                                                           
ro.build.version.incremental=94                                            
ro.build.date=Tue May 20 09:29:20 CST 2014 

And I could also see this happening on Hamachi device.
Whiteboard: [fromAutomation]
Attached image Screenshot.png
This needs to be worked around the test - there's no way we are going to block on this for 1.4 at this point. This is likely a long standing issue as well.
Component: Gaia::Video → Gaia::UI Tests
If this is the case we will increase the timeout for the videos to load and go from there :)
Increase timeout
Attachment #8434206 - Flags: review?(zcampbell)
Attachment #8434206 - Flags: review?(florin.strugariu)
Comment on attachment 8434206 [details] [review]
PR https://github.com/mozilla-b2g/gaia/pull/20018

r-, can you make it against master and then we'll pull it down into v1.4?
Attachment #8434206 - Flags: review?(zcampbell)
Attachment #8434206 - Flags: review?(florin.strugariu)
Attachment #8434206 - Flags: review-
Comment on attachment 8434206 [details] [review]
PR https://github.com/mozilla-b2g/gaia/pull/20018

This is already on master, so no need for changes on that branch.
Should have specified this :)
Attachment #8434206 - Flags: review?(zcampbell)
Attachment #8434206 - Flags: review?(florin.strugariu)
Attachment #8434206 - Flags: review-
Assignee: nobody → andrei.hutusoru
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
This issue reappeared on latest v2.0.
The same steps to reproduce from https://bugzilla.mozilla.org/show_bug.cgi?id=1020298#c0.

When running the test the video thumbnail would not load at all (3gp file). I also checked the sdcard and the file is in the correct location.

http://selenium.qa.mtv2.mozilla.com:8080/view/B2G/job/b2g.flame.mozilla-aurora.ui.smoketest/1/HTML_Report/

The test fails 2/10 on local device.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Seems like this is intermittently failing on Flame.
Sometimes the videos do not load as expected, taking too long or not loading at all.
Keywords: qawanted
I've been able to reproduce this issue on the latest v2.0 build by running test_play_3gp_video.py locally. 
It failed intermittently. 
I was not able to reproduce it manually, by following STR in comment 0. 

I ran the test by adding 'print self.data_layer.video_files': https://pastebin.mozilla.org/, which demonstrates that the video file is in the same location, in both cases (when the test fails and when it passes).
 
After the test failed, I reopened Video app several times, but the video didn't load. 
By connecting my phone to the computer (by usb), I'm able to see the video file in the expected location, even if it doesn't load on Video app. 

Jenkins run: http://selenium.qa.mtv2.mozilla.com:8080/view/B2G%20Flame/job/b2g.flame.mozilla-aurora.ui.smoketest/14/HTML_Report/

Device: Hamachi
Gaia      0f254c92bc44d614ae56a855f18a895a7e4703ad
Gecko     https://hg.mozilla.org/releases/mozilla-aurora/rev/7f309a3a4d3d
BuildID   20140617000201
Version   32.0a2
ro.build.version.incremental=108
ro.build.date=Tue Jun 10 19:40:40 CST 2014
Assignee: andrei.hutusoru → nobody
Keywords: qawanted
This is still reproducing:
http://selenium.qa.mtv2.mozilla.com:8080/view/B2G%20Aurora/job/b2g.flame.mozilla-aurora.ui.smoketest/30/HTML_Report/

Could this be caused by our automated tests?
I'll take this and do more testing.
Assignee: nobody → andrei.hutusoru
Zac suspects a race between push_resource and the video app file scanner.

Here is a run without any change:
http://selenium.qa.mtv2.mozilla.com:8080/job/b2g.flame.mozilla-aurora.ui.adhoc/10/HTML_Report/

Here is a run with a time.sleep(6) after push_resource:
http://selenium.qa.mtv2.mozilla.com:8080/job/b2g.flame.mozilla-aurora.ui.adhoc/12/console

Note: we are also affected by bug 1024517
Status: REOPENED → RESOLVED
Closed: 10 years ago10 years ago
Resolution: --- → DUPLICATE
When I reproduced this I saw the same logcat error as in bug 1024517.

E/GeckoConsole( 5497): [JavaScript Warning: "Media resource blob:7ccb1451-ca8d-451b-837a-f478599b93e7 could not be decoded." {file: "app://video.gaiamobile.org/index.html" line: 0}]
I/OMXNodeInstance(  309): OMX_FreeBuffer for buffer header 0xb76fb218 successful
I/OMXNodeInstance(  309): OMX_FreeBuffer for buffer header 0xb76fb1c8 successful
I/Gecko   ( 5143): 1403792757156	Marionette	INFO	sendToClient: {"from":"0","value":[]}, {96ac59ab-1c91-4ebc-8ce2-439d61b775d2}, {96ac59ab-1c91-4ebc-8ce2-439d61b775d2}
I/OMXNodeInstance(  309): OMX_FreeBuffer for buffer header 0xb76fb178 successful
I/OMXNodeInstance(  309): OMX_FreeBuffer for buffer header 0xb76fb128 successful
I/OMXNodeInstance(  309): OMX_FreeBuffer for buffer header 0xb76e7580 successful
V/GonkBufferQueue( 5497): cancelBuffer: slot=5
I/OMXNodeInstance(  309): OMX_FreeBuffer for buffer header 0xb76e7530 successful
V/GonkBufferQueue( 5497): cancelBuffer: slot=4
I/OMXNodeInstance(  309): OMX_FreeBuffer for buffer header 0xb76e74e0 successful
V/GonkBufferQueue( 5497): cancelBuffer: slot=3
I/OMXNodeInstance(  309): OMX_FreeBuffer for buffer header 0xb76e7490 successful
V/GonkBufferQueue( 5497): cancelBuffer: slot=2
E/GeckoConsole( 5497): Content JS ERROR at app://video.gaiamobile.org/gaia_build_defer_index.js:479 in getMetadata/offscreenVideo.onerror: Can't play video /sdcard/tests/DCIM/100MZLLA/VID_0001.3gp [object XrayWrapper [object Event]]
I/OMXNodeInstance(  309): OMX_FreeBuffer for buffer header 0xb76e7440 successful
V/GonkBufferQueue( 5497): cancelBuffer: slot=1
I/OMXNodeInstance(  309): OMX_FreeBuffer for buffer header 0xb76e73f0 successful
V/GonkBufferQueue( 5497): cancelBuffer: slot=0
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: