Closed Bug 1071197 Opened 10 years ago Closed 10 years ago

Pass aIsSynthesized = false to cwu.sendMouseEventToWindow in _sendMouseEvent

Categories

(Firefox for Android Graveyard :: General, defect)

All
Android
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
Firefox 36

People

(Reporter: bnicholson, Assigned: chunmin, Mentored)

References

Details

(Whiteboard: [lang=js][good first bug])

Attachments

(1 file, 1 obsolete file)

(In reply to Kartikaya Gupta (email:kats@mozilla.com) from https://bugzilla.mozilla.org/show_bug.cgi?id=788073#c24)
> Based on what happened in
> http://hg.mozilla.org/mozilla-central/rev/f890a8991588 (specifically the
> change to TabChild) I think the aIsSynthesized argument to this function
> should be set to false. That should go into a separate bug that blocks
> 891882 though.
Mentor: bugmail.mozilla
Whiteboard: [lang=js][good first bug]
Hi, I am searching my first bug now.
I wonder if I might ask more information and take this bug?
Flags: needinfo?(bugmail.mozilla)
Hi Chun-Min, this would be a great bug to start on. It's a simple one-line change, but first you need to get Firefox for Android building and running on your device. Please follow the instructions at https://wiki.mozilla.org/Mobile/Fennec/Android to build and install the code, and let me know once you have that working. Then I'll assign the bug to you and provide more details on what needs to be changed.

Getting Firefox built and installed can be a little tricky sometimes so please don't hesitate to ask questions here on the bug, via email, or on IRC if you run into any problems.
Flags: needinfo?(bugmail.mozilla)
Hi, Kartikaya,

Really thank you for your suggestions and help. 
Today I follow the instructions at https://wiki.mozilla.org/Mobile/Fennec/Android basically, but there is an error occur when installing firefox into Android simulator. 
========================= Error ==========================
$ ./mach install
chun-min@chunmin-ubuntu:path/to/MOZ_CEN$ sudo ./mach install
 0:00.08 /usr/bin/make -C . -j8 -s -w install
 0:05.22 make: Entering directory `/home/chun-min/Work/firefox/obj-arm-linux-androideabi'
 0:16.82 3066 KB/s (36151315 bytes in 11.511s)
 0:18.02     pkg: /data/local/tmp/fennec-36.0a1.en-US.android-arm.apk
 0:18.59 Failure [INSTALL_FAILED_INVALID_APK]
 0:19.01 make: Leaving directory `/home/chun-min/Work/firefox/obj-arm-linux-androideabi'
chun-min@chunmin-ubuntu:path/to/MOZ_CEN$ sudo adb install obj-arm-linux-androideabi/dist/fennec-36.0a1.en-US.android-arm.apk
adb server is out of date.  killing...
* daemon started successfully *
3026 KB/s (36151315 bytes in 11.664s)
    pkg: /data/local/tmp/fennec-36.0a1.en-US.android-arm.apk
Failure [INSTALL_FAILED_INVALID_APK]
=> Fail !!
==========================================================
Note:MOZ_CEN is the folder of mozilla-central

I wonder if you may have some ideas about this error. 
I will appreciate it if you can share your opinions.

The following script is my installation note. I think it might be helpful so I attach it to here directly.


============== installation note ===================

Install Java
$ sudo add-apt-repository ppa:webupd8team/java
$ sudo apt-get update
$ sudo apt-get install oracle-java7-installer
$ sudo apt-get install oracle-java7-set-default
# Check the java version
$ java -version
java version "1.7.0_72"
Java(TM) SE Runtime Environment (build 1.7.0_72-b14)
Java HotSpot(TM) 64-Bit Server VM (build 24.72-b04, mixed mode)
# Ubuntu 64-bit, you'll also want to install ia32-libs at this point
$ apt-get update
$ apt-get install -y ia32-libs

Install ant
$ sudo apt-get install ant

Install Gecko Requirements
$ sudo apt-get install mercurial ccache
$ sudo apt-get build-dep firefox
Install Android NDK
$ wget http://dl.google.com/android/ndk/android-ndk-r8e-darwin-x86_64.tar.bz2
$ tar -xjf android-ndk-r8e-darwin-x86_64.tar.bz2
Install Android SDK
$ ./adt-bundle-linux/sdk/tools/android update sdk -u
 ./adt-bundle-linux/sdk/tools/android update adb
# ensure that the jarsigner executable from the JDK is in your path
$ locate jarsigner

Getting source
# already exist
Setup Fennec mozconfig
$ vim MOZ_CEN/mozconfig
-------------------------------------- mozconfig -------------------------------------------
# Add the correct paths here:
ac_add_options --with-android-ndk="$HOME/Work/android-ndk-r8e"
ac_add_options --with-android-sdk="$HOME/Work/adt-bundle-linux-x86_64-20140702/sdk/platforms/android-21"

# android options
ac_add_options --enable-application=mobile/android
ac_add_options --target=arm-linux-androideabi

# others
ac_add_options --with-ccache
ac_add_options --enable-debug-symbol
------------------------------------------------------------------------------------------

Run Emulator
$ cd path/to//adt-bundle-linux-x86_64-20140702/sdk/tools
$ ./android
click Tools on the bar -> Manage AVDs -> Create…….After the adv has been created, click start
(or $ ./emulator @DEVICE_NAME)
# Test for the connection
$ adb devices
List of devices attached
emulator-5554    device


Building and Deploying Code (With Android 5.0 API 21 Simulator) 
$ cd MOZ_CEN
$ ./mach build
$ ./mach package
$ ./mach install
=> Fail !!
chun-min@chunmin-ubuntu:path/to/MOZ_CEN$ sudo ./mach install
 0:00.08 /usr/bin/make -C . -j8 -s -w install
 0:05.22 make: Entering directory `/home/chun-min/Work/firefox/obj-arm-linux-androideabi'
 0:16.82 3066 KB/s (36151315 bytes in 11.511s)
 0:18.02     pkg: /data/local/tmp/fennec-36.0a1.en-US.android-arm.apk
 0:18.59 Failure [INSTALL_FAILED_INVALID_APK]
 0:19.01 make: Leaving directory `/home/chun-min/Work/firefox/obj-arm-linux-androideabi'
chun-min@chunmin-ubuntu:path/to/MOZ_CEN$ sudo adb install obj-arm-linux-androideabi/dist/fennec-36.0a1.en-US.android-arm.apk
adb server is out of date.  killing...
* daemon started successfully *
3026 KB/s (36151315 bytes in 11.664s)
    pkg: /data/local/tmp/fennec-36.0a1.en-US.android-arm.apk
Failure [INSTALL_FAILED_INVALID_APK]
Hm, it's not obvious to me from that what's going wrong. You definitely shouldn't need to use sudo to build or install firefox at all. Can you confirm that the AVD that you created is an ARM AVD rather than an Intel/x86 AVD? That might be one possible problem, since the Fennec you built was for ARM.

Also it would be good to get the logcat from the emulator after the install fails using |adb logcat -v time| and see if there are any errors there related to the installation, as it will provide hints as to what went wrong.
It's seems that there are two errors after AndroidRuntime starting
1) Couldn't load memtrack module (No such file or directory)
2) Failed to parse package at /data/local/tmp/fennec-36.0a1.en-US.android-arm.apk: android.content.pm.PackageParser$PackageParserException: Invalid manifest package: 
bad character '-'

Should I rename it and change the manifest file?


Detail
-------------------------

$ adb logcat -v time | more
...
...
...

11-18 01:35:33.268 D/PhoneStatusBar(  411): disable: < expand icons alerts system_info back home* recent* clock search* >
11-18 01:35:33.294 I/Choreographer(  411): Skipped 106 frames!  The application may be doing too much work on its main thread.
11-18 01:35:33.782 I/Choreographer(  411): Skipped 30 frames!  The application may be doing too much work on its main thread.
11-18 01:35:37.477 D/InitAlarmsService(  974): Clearing and rescheduling alarms.
11-18 01:35:52.306 D/AndroidRuntime( 1065): 
11-18 01:35:52.306 D/AndroidRuntime( 1065): >>>>>> AndroidRuntime START com.android.internal.os.RuntimeInit <<<<<<
11-18 01:35:52.320 D/AndroidRuntime( 1065): CheckJNI is ON
11-18 01:35:52.661 E/memtrack( 1065): Couldn't load memtrack module (No such file or directory)
11-18 01:35:52.662 E/android.os.Debug( 1065): failed to load memtrack module: -2
11-18 01:35:52.831 D/AndroidRuntime( 1065): Calling main entry com.android.commands.pm.Pm
11-18 01:35:52.977 I/ActivityManager(  312): Start proc com.android.defcontainer for service com.android.defcontainer/.DefaultContainerService: pid=1076 uid=10003 gids={50003, 9997, 1028, 1015, 1023, 2001,
 1035} abi=armeabi-v7a
11-18 01:35:53.204 W/DefContainer( 1076): Failed to parse package at /data/local/tmp/fennec-36.0a1.en-US.android-arm.apk: android.content.pm.PackageParser$PackageParserException: Invalid manifest package: 
bad character '-'
11-18 01:35:53.349 I/art     (  312): Explicit concurrent mark sweep GC freed 19868(2MB) AllocSpace objects, 1(16KB) LOS objects, 33% free, 6MB/9MB, paused 1.826ms total 133.183ms
11-18 01:35:53.359 D/AndroidRuntime( 1065): Shutting down VM
11-18 01:35:53.879 I/MediaFocusControl(  312):  AudioFocus  abandonAudioFocus() from android.media.AudioManager@3d9151d7com.android.music.MediaPlaybackService$3@21198ac4
11-18 01:36:24.278 D/LightsService(  312): Excessive delay setting light: 54ms



ADV setting
----------------------------------------
http://goo.gl/XEjum5
Device: Nexus 7
Target: Android 5.0 - API Level21
CPU: ARM (armeabi-v7a)
SD Card: 2GB
I rename the .apk file and install it, but it doesn't work.
$ mv fennec-36.0a1.en-US.android-arm.apk fennec.apk
$ adb install fennec.apk
..
..
Failure [INSTALL_FAILED_INVALID_APK]
..


$ adb logcat
...
>>>>>> AndroidRuntime START com.android.internal.os.RuntimeInit <<<<<<
D/AndroidRuntime( 1351): CheckJNI is ON
E/memtrack( 1351): Couldn't load memtrack module (No such file or directory)
E/android.os.Debug( 1351): failed to load memtrack module: -2
D/AndroidRuntime( 1351): Calling main entry com.android.commands.pm.Pm
W/DefContainer( 1299): Failed to parse package at /data/local/tmp/fennec.apk: android.content.pm.PackageParser$PackageParserException: Invalid manifest package: bad character '-'
I/art     (  339): Explicit concurrent mark sweep GC freed 17031(1979KB) AllocSpace objects, 0(0B) LOS objects, 33% free, 6MB/9MB, paused 1.435ms total 117.058ms
D/AndroidRuntime( 1351): Shutting down VM
Did you make any changes to the code at all? You check using "hg status" in your mozilla-central directory to see if hg reports any uncommitted changes. "hg id" should report the version of mozilla-central that you cloned from (or if you updated since then, the version you updated to).
I make change once when I apply the access of try server.

$ hg status
...
...
M ...xxxx...
R ...xxxx...
...
...
? UNUSED_FILE

$ rm UNUSED_FILE

$ hg addremove

$ hg id
2b9a3992beac+cbe6afcae26c+ qtip/tryServerTest


Does it might be the reason of the installing error?
I notice some error message when building
$ ./mach build
…
...
13:47.81    15339 AndroidManifest.xml (OK - compressed)
13:47.81    16300 resources.arsc (OK)
13:47.81    16920 classes.dex (OK)
13:47.81 Verification succesful
13:47.81 Packaging quitter@mozilla.org.xpi...
13:47.82 background-junit3.jar
13:47.89 /home/chun-min/Work/firefox/obj-arm-linux-androideabi/mobile/android/tests/background/junit3/AndroidManifest.xml:11: Tag <uses-permission> attribute name has invalid character '-'.
13:47.89 /home/chun-min/Work/firefox/obj-arm-linux-androideabi/mobile/android/tests/background/junit3/AndroidManifest.xml:12: Tag <uses-permission> attribute name has invalid character '-'.
13:47.89 /home/chun-min/Work/firefox/obj-arm-linux-androideabi/mobile/android/tests/background/junit3/AndroidManifest.xml:13: Tag <uses-permission> attribute name has invalid character '-'.
13:47.89 /home/chun-min/Work/firefox/obj-arm-linux-androideabi/mobile/android/tests/background/junit3/AndroidManifest.xml:22: Tag <instrumentation> attribute targetPackage has invalid character '-'.
13:52.73   adding: classes.dex (stored 0%)
13:53.18 Verifying alignment of background-junit3-debug.apk (4)...
13:53.18       50 META-INF/MANIFEST.MF (OK - compressed)
13:53.18      460 META-INF/ANDROIDD.SF (OK - compressed)
13:53.18      936 META-INF/ANDROIDD.RSA (OK - compressed)
13:53.18     2050 res/layout/main.xml (OK - compressed)
13:53.18     2372 AndroidManifest.xml (OK - compressed)
13:53.18     3208 resources.arsc (OK)
13:53.18     4348 res/drawable-hdpi/icon.png (OK)
13:53.18    11948 res/drawable-ldpi/icon.png (OK)
13:53.18    15072 res/drawable-mdpi/icon.png (OK)
13:53.18    19656 classes.dex (OK)
13:53.18 Verification succesful
13:53.19 browser-junit3.jar
13:53.21 /home/chun-min/Work/firefox/obj-arm-linux-androideabi/mobile/android/tests/browser/junit3/AndroidManifest.xml:11: Tag <uses-permission> attribute name has invalid character '-'.
13:53.21 /home/chun-min/Work/firefox/obj-arm-linux-androideabi/mobile/android/tests/browser/junit3/AndroidManifest.xml:12: Tag <uses-permission> attribute name has invalid character '-'.
13:53.21 /home/chun-min/Work/firefox/obj-arm-linux-androideabi/mobile/android/tests/browser/junit3/AndroidManifest.xml:13: Tag <uses-permission> attribute name has invalid character '-'.
13:53.21 /home/chun-min/Work/firefox/obj-arm-linux-androideabi/mobile/android/tests/browser/junit3/AndroidManifest.xml:22: Tag <instrumentation> attribute targetPackage has invalid character '-'.
13:55.30   adding: classes.dex (stored 0%)
13:55.73 Verifying alignment of browser-junit3-debug.apk (4)...
13:55.73       50 META-INF/MANIFEST.MF (OK - compressed)
13:55.73      459 META-INF/ANDROIDD.SF (OK - compressed)
13:55.73      934 META-INF/ANDROIDD.RSA (OK - compressed)
13:55.73     2047 res/layout/main.xml (OK - compressed)
13:55.73     2369 AndroidManifest.xml (OK - compressed)
13:55.73     3208 resources.arsc (OK)
13:55.73     4344 res/drawable-hdpi/icon.png (OK)
13:55.73    11944 res/drawable-ldpi/icon.png (OK)
13:55.73    15068 res/drawable-mdpi/icon.png (OK)
13:55.73    19652 classes.dex (OK)
13:55.73 Verification succesful
13:55.78 492 compiler warnings present.
13:56.85 Overall system resources - Wall time: 836s; CPU: 79%; Read bytes: 474804224; Write bytes: 5480296448; Read time: 702332; Write time: 10179792
13:57.16 ccache (direct) hit rate: 55.0%; (preprocessed) hit rate: 5.3%; miss rate: 39.7%
13:57.25 We know it took a while, but your build finally finished successfully!
To view resource usage of the build, run |mach resource-usage|.


$ vim /home/chun-min/Work/firefox/obj-arm-linux-androideabi/mobile/android/tests/browser/junit3/AndroidManifest.xml
------------------------------

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="org.mozilla.gecko.browser.tests"
    sharedUserId="org.mozilla.fennec_chun-min.sharedID"
    android:versionCode="1"
    android:versionName="1.0" >

    <uses-sdk android:minSdkVersion="8"
              android:targetSdkVersion="21" />

    <uses-permission android:name="org.mozilla.fennec_chun-min.permissions.BROWSER_PROVIDER"/>
    <uses-permission android:name="org.mozilla.fennec_chun-min.permissions.FORMHISTORY_PROVIDER"/>
    <uses-permission android:name="org.mozilla.fennec_chun-min.permissions.PASSWORD_PROVIDER"/>

    <application
        android:debuggable="true"
        android:icon="@drawable/icon"
        android:label="Fennec chun-min Browser Tests">
        <uses-library android:name="android.test.runner" />
    </application>

    <instrumentation
        android:label="@string/app_name"
        android:name="org.mozilla.gecko.harness.BrowserInstrumentationTestRunner"
        android:targetPackage="org.mozilla.fennec_chun-min" />
</manifest>
------------------------

My account have a dash(chun-min). This might cause the parser error.
I rename this account now, but all environment need to be re-setup.
(In reply to Chun-Min Chang[:chunminchang] from comment #9)

> My account have a dash(chun-min). This might cause the parser error.
> I rename this account now, but all environment need to be re-setup.

Yes, that's the issue. We should probably account for this in the build, rather than having you work around it. I filed Bug 1100750.
After renaming my account and resetting all my environment, I can install the application into the android emulator whose name is "fennec MyAcountName".

$ ./mach install
 0:00.10 /usr/bin/make -C . -j8 -s -w install
 0:05.17 make: Entering directory `/home/chunmin/Work/moz_cen/obj-arm-linux-androideabi'
 0:18.42 2686 KB/s (36198461 bytes in 13.159s)
 0:19.81 	pkg: /data/local/tmp/fennec-36.0a1.en-US.android-arm.apk
 1:31.55 Success
 1:32.11 make: Leaving directory `/home/chunmin/Work/moz_cen/obj-arm-linux-androideabi'


However, every time I click the "fennec MyAcountName" app on the android emulator, it will be terminated unexpectedly. I think it's abnormal but I don't know how to find out the cause.
After checking out the log, I find the possible error might be caused by GPU emulation

-------------------------------------------------------------
$ adb catlog -v time | more
STARTUP PERFORMANCE WARNING: un-official build: purging the startup (JavaScript) caches.
....
11-19 07:30:22.361 I/Choreographer( 1446): Skipped 33 frames!  The application may be doing too much work on its main thread.
11-19 07:30:22.523 D/gralloc_goldfish( 1446): Emulator without GPU emulation detected.
11-19 07:30:22.674 I/ActivityManager(  339): Displayed org.mozilla.fennec_chunmin/.App: +4s199ms
11-19 07:30:22.943 I/GeckoConsole( 1446): Could not read chrome manifest 'file:///data/data/org.mozilla.fennec_chunmin/chrome.manifest'.
...
...
11-19 07:30:23.976 D/AndroidRuntime( 1446): Shutting down VM
11-19 07:30:23.978 E/GeckoCrashHandler( 1446): >>> REPORTING UNCAUGHT EXCEPTION FROM THREAD 1 ("main")
11-19 07:30:23.978 E/GeckoCrashHandler( 1446): org.mozilla.gecko.gfx.GLController$GLControllerException: No available EGL configurations Error 12288
11-19 07:30:23.978 E/GeckoCrashHandler( 1446):     at org.mozilla.gecko.gfx.GLController.AttemptPreallocateEGLSurfaceForCompositor(GLController.java:290)
…
…
11-19 07:30:25.394 I/WindowState(  339): WIN DEATH: Window{8462f97 u0 org.mozilla.fennec_chunmin/org.mozilla.fennec_chunmin.App}
11-19 07:30:25.395 W/WindowManager(  339): Force-removing child win Window{1b1d30ab u0 SurfaceView} from container Window{8462f97 u0 org.mozilla.fennec_chunmin/org.mozilla.fennec_chunmin.App}
11-19 07:30:25.412 I/Zygote  (   69): Process 1446 exited cleanly (11)
11-19 07:30:25.521 W/WindowManager(  339): Failed looking up window
...
...
11-19 07:30:25.521 I/WindowState(  339): WIN DEATH: null
11-19 07:30:25.526 I/ActivityManager(  339): Process org.mozilla.fennec_chunmin (pid 1446) has died
11-19 07:30:25.531 W/ActivityManager(  339): Force removing ActivityRecord{2eda5978 u0 org.mozilla.fennec_chunmin/.App t6}: app died, no saved state
11-19 07:30:25.679 W/InputMethodManagerService(  339): Got RemoteException sending setActive(false) notification to pid 1446 uid 10053










Detail
-------------------------------------------------
$ adb catlog -v time | more
11-19 07:30:17.916 I/ActivityManager(  339): START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10000000 cmp=org.mozilla.fennec_chunmin/.App (has extras)} from uid 10007
on display 0
11-19 07:30:18.601 I/art     ( 1446): Not late-enabling -Xcheck:jni (already on)
11-19 07:30:18.632 I/ActivityManager(  339): Start proc org.mozilla.fennec_chunmin for activity org.mozilla.fennec_chunmin/.App: pid=1446 uid=10053 gids={50053, 9997, 3003, 1028, 1015} abi=armeabi-v7a
11-19 07:30:19.836 D/GeckoApp( 1446): Enabling Android StrictMode
11-19 07:30:19.897 I/art     ( 1446): Background partial concurrent mark sweep GC freed 456(54KB) AllocSpace objects, 1(16KB) LOS objects, 49% free, 1026KB/2MB, paused 6.597ms total 85.821ms
11-19 07:30:19.916 D/GeckoSharedPrefs( 1446): Current version = 1, prefs version = 1
11-19 07:30:19.998 D/GeckoLoader( 1446): Gecko environment env0: null
11-19 07:30:20.007 D/GeckoScreenOrientation( 1446): updating to new orientation PORTRAIT_PRIMARY
11-19 07:30:20.039 E/GeckoLibLoad( 1446): Load sqlite start
11-19 07:30:20.148 W/GeckoLinker( 1446): /data/app/org.mozilla.fennec_chunmin-1/base.apk!/assets/armeabi-v7a/libnss3.so: unhandled flags #8 not handled
11-19 07:30:20.231 E/GeckoLibLoad( 1446): Load sqlite done
11-19 07:30:20.242 E/GeckoLibLoad( 1446): Load nss start
11-19 07:30:20.242 E/GeckoLibLoad( 1446): Load nss done
11-19 07:30:20.247 W/GeckoLinker( 1446): /data/app/org.mozilla.fennec_chunmin-1/base.apk!/assets/armeabi-v7a/libxul.so: unhandled flags #8 not handled
11-19 07:30:20.250 W/GeckoLinker( 1446): /data/app/org.mozilla.fennec_chunmin-1/base.apk!/assets/armeabi-v7a/libmozalloc.so: unhandled flags #8 not handled
11-19 07:30:21.118 W/GeckoLinker( 1446): /data/app/org.mozilla.fennec_chunmin-1/base.apk!/assets/armeabi-v7a/libxul.so: Relocation to NULL @0x01e89e94
11-19 07:30:21.178 W/GeckoLinker( 1446): /data/app/org.mozilla.fennec_chunmin-1/base.apk!/assets/armeabi-v7a/libxul.so: Relocation to NULL @0x01e8afc8 for symbol "__cxa_begin_cleanup"
11-19 07:30:21.179 W/GeckoLinker( 1446): /data/app/org.mozilla.fennec_chunmin-1/base.apk!/assets/armeabi-v7a/libxul.so: Relocation to NULL @0x01e8afcc for symbol "__cxa_type_match"
11-19 07:30:21.253 D/GeckoSessInfo( 1446): Building SessionInformation from prefs: 1416382108739, 0, false, false
11-19 07:30:21.258 D/GeckoProfile( 1446): Found profile dir.
11-19 07:30:21.258 D/GeckoApp( 1446): OS locale is en_US, app locale is null
11-19 07:30:21.261 D/GeckoHealthRec( 1446): Initializing. Dispatcher is org.mozilla.gecko.EventDispatcher@2e6512fe
11-19 07:30:21.322 W/art     ( 1446): Suspending all threads took: 13.135ms
11-19 07:30:21.339 D/GeckoHealthRec( 1446): Initializing profile cache.
11-19 07:30:21.340 D/GeckoHealthRec( 1446): Looking for /data/data/org.mozilla.fennec_chunmin/files/mozilla/n6sogsnc.default/times.json
11-19 07:30:21.340 D/GeckoHealthRec( 1446): Using times.json for profile creation time.
11-19 07:30:21.349 I/art     ( 1446): Background sticky concurrent mark sweep GC freed 432(62KB) AllocSpace objects, 1(16KB) LOS objects, 4% free, 1961KB/2MB, paused 17.320ms total 81.281ms
11-19 07:30:21.376 D/GeckoHealthRec( 1446): Incorporating environment: times.json profile creation = 1416382075763
11-19 07:30:21.380 D/GeckoHardwareUtils( 1446): HardwareUtils already inited.
11-19 07:30:21.434 D/TaskPersister(  339): removeObsoleteFile: deleting file=5_task.xml
11-19 07:30:21.604 I/art     ( 1446): Background partial concurrent mark sweep GC freed 735(101KB) AllocSpace objects, 0(0B) LOS objects, 39% free, 2MB/3MB, paused 4.030ms total 219.813ms
11-19 07:30:21.632 D/GeckoHealthRec( 1446): Running post-distribution task: health recorder.
11-19 07:30:21.632 D/GeckoDistribution( 1446): Getting file from distribution.
11-19 07:30:21.632 D/GeckoHealthRec( 1446): Requesting all add-ons and FHR prefs from Gecko.
11-19 07:30:21.677 V/NFC     ( 1446): this device does not have NFC support
11-19 07:30:21.695 D/GeckoHardwareUtils( 1446): System memory: 731MB.
11-19 07:30:21.827 I/MediaRouter( 1446): Found default route: MediaRouter.RouteInfo{ uniqueId=android/.support.v7.media.SystemMediaRouteProvider:DEFAULT_ROUTE, name=Phone, description=null, enabled=true, c
onnecting=false, playbackType=0, playbackStream=3, volumeHandling=1, volume=11, volumeMax=15, presentationDisplayId=-1, extras=null, providerPackageName=android }
11-19 07:30:21.847 E/GeckoLibLoad( 1446): Loaded libs in 1604ms total, 520ms(1270ms) user, 150ms(220ms) system, 0(0) faults
11-19 07:30:21.877 W/GeckoThread( 1446): zerdatime 438935 - runGecko
11-19 07:30:21.878 I/GeckoThread( 1446): RunGecko - args =  -P default
11-19 07:30:21.896 D/GeckoSessInfo( 1446): Recording start of session: 1416382221895
11-19 07:30:21.948 D/StrictMode( 1446): StrictMode policy violation; ~duration=1991 ms: android.os.StrictMode$StrictModeDiskReadViolation: policy=31 violation=2
11-19 07:30:21.948 D/StrictMode( 1446):     at android.os.StrictMode$AndroidBlockGuardPolicy.onReadFromDisk(StrictMode.java:1137)
…
…
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:899)
11-19 07:30:21.949 D/StrictMode( 1446):     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:694)
11-19 07:30:21.950 D/GeckoBrowserApp( 1446): onLocaleReady: en_US
11-19 07:30:22.063 W/GeckoAppShell( 1446): STARTUP PERFORMANCE WARNING: un-official build: purging the startup (JavaScript) caches.
11-19 07:30:22.064 D/GeckoAppShell( 1446): GeckoLoader.nativeRun /data/app/org.mozilla.fennec_chunmin-1/base.apk -greomni /data/app/org.mozilla.fennec_chunmin-1/base.apk  -P default -purgecaches -width 800
 -height 1216
11-19 07:30:22.361 I/Choreographer( 1446): Skipped 33 frames!  The application may be doing too much work on its main thread.
11-19 07:30:22.523 D/gralloc_goldfish( 1446): Emulator without GPU emulation detected.
11-19 07:30:22.674 I/ActivityManager(  339): Displayed org.mozilla.fennec_chunmin/.App: +4s199ms
11-19 07:30:22.943 I/GeckoConsole( 1446): Could not read chrome manifest 'file:///data/data/org.mozilla.fennec_chunmin/chrome.manifest'.
11-19 07:30:23.014 I/GeckoAxis( 1446): Prefs: 0.85,0.97,10.0,0.04,0.04,0.3,0.5
11-19 07:30:23.422 I/Gecko:DumpUtils( 1446): Fifo watcher disabled via pref.
11-19 07:30:23.682 D/GeckoActivityChooserModel( 1446): Running post-distribution task: quickshare.
11-19 07:30:23.776 D/GeckoTabs( 1446): Setting about: tab favicon inline.
11-19 07:30:23.807 E/SQLiteLog( 1446): (283) recovered 56 frames from WAL file /data/data/org.mozilla.fennec_chunmin/files/mozilla/n6sogsnc.default/browser.db-wal
11-19 07:30:23.929 D/StrictMode( 1446): StrictMode policy violation; ~duration=266 ms: android.os.StrictMode$StrictModeDiskReadViolation: policy=31 violation=2
11-19 07:30:23.929 D/StrictMode( 1446):     at android.os.StrictMode$AndroidBlockGuardPolicy.onReadFromDisk(StrictMode.java:1137)
…
...
11-19 07:30:23.930 D/StrictMode( 1446):     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:694)
11-19 07:30:23.970 I/art     ( 1446): Background partial concurrent mark sweep GC freed 6142(637KB) AllocSpace objects, 1(16KB) LOS objects, 39% free, 2MB/4MB, paused 12.687ms total 232.751ms
11-19 07:30:23.976 D/AndroidRuntime( 1446): Shutting down VM
11-19 07:30:23.978 E/GeckoCrashHandler( 1446): >>> REPORTING UNCAUGHT EXCEPTION FROM THREAD 1 ("main")
11-19 07:30:23.978 E/GeckoCrashHandler( 1446): org.mozilla.gecko.gfx.GLController$GLControllerException: No available EGL configurations Error 12288
11-19 07:30:23.978 E/GeckoCrashHandler( 1446):     at org.mozilla.gecko.gfx.GLController.AttemptPreallocateEGLSurfaceForCompositor(GLController.java:290)
…
…
11-19 07:30:23.978 E/GeckoCrashHandler( 1446):     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:694)
11-19 07:30:25.394 I/WindowState(  339): WIN DEATH: Window{8462f97 u0 org.mozilla.fennec_chunmin/org.mozilla.fennec_chunmin.App}
11-19 07:30:25.395 W/WindowManager(  339): Force-removing child win Window{1b1d30ab u0 SurfaceView} from container Window{8462f97 u0 org.mozilla.fennec_chunmin/org.mozilla.fennec_chunmin.App}
11-19 07:30:25.412 I/Zygote  (   69): Process 1446 exited cleanly (11)
11-19 07:30:25.521 W/WindowManager(  339): Failed looking up window
11-19 07:30:25.521 W/WindowManager(  339): java.lang.IllegalArgumentException: Requested window android.os.BinderProxy@34342e33 does not exist
11-19 07:30:25.521 W/WindowManager(  339):     at com.android.server.wm.WindowManagerService.windowForClientLocked(WindowManagerService.java:8409)
11-19 07:30:25.521 W/WindowManager(  339):     at com.android.server.wm.WindowManagerService.windowForClientLocked(WindowManagerService.java:8400)
11-19 07:30:25.521 W/WindowManager(  339):     at com.android.server.wm.WindowState$DeathRecipient.binderDied(WindowState.java:1113)
11-19 07:30:25.521 W/WindowManager(  339):     at android.os.BinderProxy.sendDeathNotice(Binder.java:534)
11-19 07:30:25.521 I/WindowState(  339): WIN DEATH: null
11-19 07:30:25.526 I/ActivityManager(  339): Process org.mozilla.fennec_chunmin (pid 1446) has died
11-19 07:30:25.531 W/ActivityManager(  339): Force removing ActivityRecord{2eda5978 u0 org.mozilla.fennec_chunmin/.App t6}: app died, no saved state
11-19 07:30:25.679 W/InputMethodManagerService(  339): Got RemoteException sending setActive(false) notification to pid 1446 uid 10053
(In reply to Chun-Min Chang[:chunminchang] from comment #12)
I can run fennec on the android emulator now after clicking the options "Use host GPU" and turn on it again
Great! Glad to see you got it working :)

I'm assigning the bug to you. The only thing you need to do to fix this bug is to change the parameter "true" to "false" at [1]. Then test to make sure that clicking on things still works normally. Once you have done that you can follow the instructions at [2] to create a patch and attach it to this bug.

[1] http://mxr.mozilla.org/mozilla-central/source/mobile/android/chrome/content/browser.js?rev=2ca6377a2a16#5178
[2] https://developer.mozilla.org/en-US/docs/Creating_a_patch_that_can_be_checked_in
Assignee: nobody → cchang
Attached patch bug-1071197-fix.patch (obsolete) — Splinter Review
Attachment #8525834 - Flags: review?(bugmail.mozilla)
Comment on attachment 8525834 [details] [diff] [review]
bug-1071197-fix.patch

Review of attachment 8525834 [details] [diff] [review]:
-----------------------------------------------------------------

Chun-min, the patch looks great (and thanks again for catching my mistake - the existing "true" parameter is not aIsSynthesized as I thought). The only change that is needed is to the commit message. Usually our commit messages should look like this:

Bug <number> - <short description>.

The description you give to the patch should generally try to describe what the patch is accomplishing, and is usually different from just the bug's title. In this case I would suggest something like:

Bug 1071197 - Ensure user-triggered mouse events are not treated as synthesized.

Can you make that change and upload a new version of the patch? Then it will be ready to check in. Thanks!
Attachment #8525834 - Flags: review?(bugmail.mozilla) → feedback+
Attachment #8525834 - Attachment is obsolete: true
Hi, Kartikaya
Your hint helped me a lot to find the small piece needed to be modified. I already change the commit of the patch and upload it. Please review it when you have time(Should I update patch again after finishing review and add "r=kats" last in the commit?). 

Thanks again for your help.
Comment on attachment 8526468 [details] [diff] [review]
bug-1071197-fix.patch - v2

Review of attachment 8526468 [details] [diff] [review]:
-----------------------------------------------------------------

Perfect, thanks! No need to upload a new version with r=kats, I can add that when I land the patch in a bit.
Attachment #8526468 - Flags: review+
Landed on fx-team: https://hg.mozilla.org/integration/fx-team/rev/7ccab96d5abd

The bug will be marked fixed once it gets merged to mozilla-central. Thanks Chun-Min!
https://hg.mozilla.org/mozilla-central/rev/7ccab96d5abd
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 36
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in before you can comment on or make changes to this bug.