Closed
Bug 984307
Opened 11 years ago
Closed 11 years ago
[hamachi] Wrong screen and touch rotation problem in games
Categories
(Firefox OS Graveyard :: Vendcom, defect)
Firefox OS Graveyard
Vendcom
Tracking
(tracking-b2g:backlog)
RESOLVED
WORKSFORME
tracking-b2g | backlog |
People
(Reporter: zrzut01, Unassigned)
Details
(Whiteboard: [POVB])
Attachments
(1 file, 2 obsolete files)
User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:27.0) Gecko/20100101 Firefox/27.0 (Beta/Release)
Build ID: 20140212131424
Steps to reproduce:
1. Run game i.e. Slice Fruits
Actual results:
Everything in game is upside down - image and touch events.
Expected results:
It should be in right order to be able to play the game.
The example of an issue:
http://www.youtube.com/watch?v=fZsmy7gCSxA&feature=youtu.be
Found on:
Alcatel One Touch Fire production (got from T-mobile Poland)
B2G version: 1.4.0.0-prerelease master
Platform version: 30.0a1
Build Identifier: 20140316040201
Git commit info: 2014-03-15 11:08:47 70978988
Comment 3•11 years ago
|
||
Michael, it looks like we are not setting the screen orientation properly. Anything that rings a bell for you in gonk widgetry?
Flags: needinfo?(mwu)
One of users has provided more info on this bug:
https://bugzilla.mozilla.org/show_bug.cgi?id=957756
Yes, it works properly when hwc was turned off. Device had been restarted after disabling hwc, before the test.
I checked on b2g v1.3 reference ICS device but I do not see the issue with "Slice Fruits" game. Is it reported on b2g v1.3 or v1.4 ? Is it possible for you to test on b2g v1.3 once ?
Comment 8•11 years ago
|
||
It seems that the phone is flashed by "./flash.sh -f". I assume the problem does not happen if the phone was flashed correctly(update only gecko and gaia).
The problem typically happen when hamachi is flashed by "./flash.sh -f" and then show OpenGL rendered app in portrait mode. When content is rendered by OpenGL, the content is rendered by upside down. HwComposer need to handle it correctly. I know that hamachi's hw composer that built from b2g caf's source does not handle this situation correctly. But on hamachi, "./flash.sh -f" is not recommended. So, this should not be a problem.
Comment 9•11 years ago
|
||
I seems to understand the problem. In moz build, "TARGET_USES_MDP3" is not defined. Then the following code is not enabled. It causes the problem. By enabling the code, I confirmed the problem is fixed on master hamachi. But it happens only on moz build ROM and flash by './flash.sh -f'.
https://www.codeaurora.org/cgit/quic/la/platform/hardware/qcom/display/tree/libhwcomposer/a-family/hwcomposer.cpp?h=b2g_ics_1.2#n1559
Comment 10•11 years ago
|
||
Yes, please enable this driver version flag in your build config. It is used in ICS based HAL.
Comment 11•11 years ago
|
||
"TARGET_USES_MDP3 := true" is defined under "ifeq ($(QC_PROP),true)". But it seems too late to enable all "ifeq ($(QC_PROP),true)". It might be better to add only "TARGET_USES_MDP3 := true" to moz build.
Comment 12•11 years ago
|
||
Confirmed the problem is fixed on master hamachi.
Comment 13•11 years ago
|
||
It seems better to change hamachi specific file. It is managed under mozilla-b2g. attachment 8392616 [details] [diff] [review] is not.
Comment 14•11 years ago
|
||
Changed to hamachi specific file.
Updated•11 years ago
|
Attachment #8392616 -
Attachment is obsolete: true
Updated•11 years ago
|
Status: UNCONFIRMED → NEW
Ever confirmed: true
Comment 15•11 years ago
|
||
(In reply to mac from comment #2)
> Found on:
>
> Alcatel One Touch Fire production (got from T-mobile Poland)
> B2G version: 1.4.0.0-prerelease master
> Platform version: 30.0a1
> Build Identifier: 20140316040201
> Git commit info: 2014-03-15 11:08:47 70978988
mac, how did you flashed your device? Is it using moz build rom or partner built rom?
Flags: needinfo?(zrzut01)
Updated•11 years ago
|
Assignee: nobody → sotaro.ikeda.g
Comment 16•11 years ago
|
||
Attachment #8392619 -
Attachment is obsolete: true
Comment 17•11 years ago
|
||
Comment on attachment 8392869 [details]
link to pull request
mwu, can you review the pull request?
Attachment #8392869 -
Flags: review?(mwu)
Updated•11 years ago
|
Component: Gaia::System → Vendcom
Reporter | ||
Comment 18•11 years ago
|
||
(In reply to Sotaro Ikeda [:sotaro] from comment #15)
> (In reply to mac from comment #2)
> > Found on:
> >
> > Alcatel One Touch Fire production (got from T-mobile Poland)
> > B2G version: 1.4.0.0-prerelease master
> > Platform version: 30.0a1
> > Build Identifier: 20140316040201
> > Git commit info: 2014-03-15 11:08:47 70978988
>
> mac, how did you flashed your device? Is it using moz build rom or partner
> built rom?
The base was my own build:
OS Version: 1.4.0-prerelease
Build identifier: 20140308210648
Platform version: 30.0a1
Git info commit: 2014-03-08 10:15:36 efde3979
fastboot flash system and userdata with it.
Then I made several FOTAs up to the version I reported.
Flags: needinfo?(zrzut01)
Comment 19•11 years ago
|
||
Comment on attachment 8392869 [details]
link to pull request
Thanks!
Attachment #8392869 -
Flags: review?(mwu) → review+
Comment 20•11 years ago
|
||
Comment 21•11 years ago
|
||
>
> The base was my own build:
>
> OS Version: 1.4.0-prerelease
> Build identifier: 20140308210648
> Platform version: 30.0a1
> Git info commit: 2014-03-08 10:15:36 efde3979
>
> fastboot flash system and userdata with it.
It updates hw composer hal implementation by own build.
Comment 22•11 years ago
|
||
I locally confirmed the problem is fixed.
Just "update source code & build" might not update the image correctly. It might be better to delete intermediate file under "./out" before built.
Updated•11 years ago
|
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Reporter | ||
Comment 23•11 years ago
|
||
Issue occurs again, tested on:
Alcatel One Touch Fire production (got from T-mobile Poland)
B2G version: 1.4.0.0-prerelease master
Platform version: 30.0a2
Build Identifier: 20140321000202
Git commit info: 2014-03-20 22:21:45 b09bf796
It worked well on exactly previous FOTA build with git info 2014-03-19 53edbf08
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Updated•11 years ago
|
Whiteboard: [POVB]
Comment 24•11 years ago
|
||
Bug confirmed on:
Alcatel One Touch Fire (T-mobile Poland)
B2G version: 1.4.0.0-prerelease master
Platform version: 30.0a2
Build Identifier: 20140323000204
Git commit info: 2014-03-22 00:39:53 73067095
and
Build Identifier: 20140324000202
Git commit info: 2014-03-22 00:39:53 73067095
and
Build Identifier: 20140325000201
Git commit info: 2014-03-24 19:00:48 a2a88d06
Comment 25•11 years ago
|
||
(In reply to mac from comment #23)
> Issue occurs again, tested on:
>
> Alcatel One Touch Fire production (got from T-mobile Poland)
> B2G version: 1.4.0.0-prerelease master
> Platform version: 30.0a2
> Build Identifier: 20140321000202
> Git commit info: 2014-03-20 22:21:45 b09bf796
It seems that the rom is v1.4. The change is applied only to master. To fix the problem need to apply to v1.4 branch. I am not sure this could get 1.4+ flag.
Updated•11 years ago
|
blocking-b2g: --- → 1.4?
Comment 26•11 years ago
|
||
Set 1.4? flag. This is a moz build specific problem. This problem could affect to mozilla's product's evaluation.
Comment 27•11 years ago
|
||
QA Wanted - Can we reproduce this on the Moz side with the latest base image?
Keywords: qawanted
Comment 28•11 years ago
|
||
(In reply to Jason Smith [:jsmith] from comment #27)
> QA Wanted - Can we reproduce this on the Moz side with the latest base image?
This issue does *not* reproduce for me on the 03/26/14 1.4 build using the latest base image.
Device: Buri v1.4 MOZ RIL
BuildID: 20140326000201
Gaia: 7e705dd4718d528974d99ac31866318d7e201152
Gecko: 4889124accfa
Version: 30.0a2
Firmware Version: v1.2-device.cfg
Keywords: qawanted
QA Contact: mvaughan
Comment 29•11 years ago
|
||
Okay - that implies this is a problem with an older base image being used here then, so this isn't a blocker.
blocking-b2g: 1.4? → backlog
Comment 30•11 years ago
|
||
From Comment 29, I unassign myself from this bug.
Assignee: sotaro.ikeda.g → nobody
Reporter | ||
Comment 31•11 years ago
|
||
Failed again, same issue. I've compiled current:
Alcatel One Touch Fire production (got from T-mobile Poland)
B2G version: 1.4.0.0-prerelease master
Platform version: 30.0a2
Build Identifier: 20140329183709
Git commit info: 2014-03-28 17:32:10 4c3b2f57
then flashed system and userdata from the build but same issue occurs again.
Then I've used FOTA to upgrade to:
Alcatel One Touch Fire production (got from T-mobile Poland)
B2G version: 1.4.0.0-prerelease master
Platform version: 30.0a2
Build Identifier: 20140329160202
Git commit info: 2014-03-28 17:32:10 4c3b2f57
with same result, issue occurs.
What is interesting, by mistake I've build 1.5.0 and flashed the device with system and userdata. On 1.5.0 it worked properly.
Reporter | ||
Comment 32•11 years ago
|
||
I made also gaia-reset on:
Alcatel One Touch Fire production (got from T-mobile Poland)
B2G version: 1.4.0.0-prerelease master
Platform version: 30.0a2
Build Identifier: 20140329160202
Git commit info: 2014-03-28 17:32:10 4c3b2f57
but it still fails.
Reporter | ||
Comment 33•11 years ago
|
||
Works on 2.0. Won't work on 1.4 as along as build will be done with default config (not taken from vendor).
Tested on:
Alcatel One Touch Fire production (got from T-mobile Poland)
B2G version: 2.0.0.0-prerelease master
Platform version: 32.0a1
Build Identifier: 20140608040204
Git commit info: 2014-06-07 03:42:38 2e5636e8
Status: REOPENED → RESOLVED
Closed: 11 years ago → 11 years ago
Resolution: --- → WORKSFORME
Assignee | ||
Updated•10 years ago
|
blocking-b2g: backlog → ---
tracking-b2g:
--- → backlog
You need to log in
before you can comment on or make changes to this bug.
Description
•