I'm using a patched version of GeckoView [1] and a different Android example 
project, but I also see a regression. There seems to be a failure during 
initialization in the Gecko side. None of the JavaScript code, needed to 
complete the initialization and display web content, is loading. So nothing 
seems to work. I see no suspect problems in logcat either. I filed a bug to 
track this problem [2]. 

[1] Patches in these bugs: 
https://bugzilla.mozilla.org/show_bug.cgi?id=880119 (improve the GeckoView API) 
https://bugzilla.mozilla.org/show_bug.cgi?id=880121 (add a host callback 
system) 
https://bugzilla.mozilla.org/show_bug.cgi?id=880123 (add a pageload callback 
system) 

[2] https://bugzilla.mozilla.org/show_bug.cgi?id=921792 

----- Original Message -----

> Hi,

> We are really interested in the GeckoView.And we want to use some 3rd-parth
> WebView widget to replace the Android system default WebView,since the
> Android fragment problem,so many different verion of WebView(Webkit).So we
> want to build the consistent user experience on different Android tablets
> with just one build WebView.

> So after some google,we found the GeckoView.And I have some problem about the
> geckoview_library and GeckoViewExample.

> I clone and build the source code for Fennec Android.And also get the
> geckoview_library.So I use this new build library,and run the
> GeckoViewExample, and got the crash exception:

> I/ActivityStack( 198): START {act=android.intent.action.MAIN
> cat=[android.intent.category.LAUNCHER] flg=0x10200000
> pkg=org.stully.geckoviewexample cmp=org.stully.geckoviewexample/.Main} from
> pid 581
> V/ActivityStack( 198): Prepare open transition: starting
> ActivityRecord{41987f90 org.stully.geckoviewexample/.Main}
> V/ActivityStack( 198): Prepare open transition: prev=ActivityRecord{41987748
> com.amazon.kindle.otter/.activities.AppsLibraryActivity}
> D/dalvikvm(21279): Late-enabling CheckJNI
> I/ActivityManager( 198): Start proc org.stully.geckoviewexample for activity
> org.stully.geckoviewexample/.Main: pid=21279 uid=10043 gids={3003}
> D/libEGL (21279): loaded /system/lib/egl/libGLES_android.so
> D/libEGL (21279): loaded /vendor/lib/egl/libEGL_POWERVR_SGX544_112.so
> D/dalvikvm(21279): Trying to load lib
> /data/data/org.stully.geckoviewexample/lib/libmozglue.so 0x41961c20
> D/libEGL (21279): loaded /vendor/lib/egl/libGLESv1_CM_POWERVR_SGX544_112.so
> D/dalvikvm(21279): Added shared lib
> /data/data/org.stully.geckoviewexample/lib/libmozglue.so 0x41961c20
> D/dalvikvm(21279): No JNI_OnLoad found in
> /data/data/org.stully.geckoviewexample/lib/libmozglue.so 0x41961c20,
> skipping init
> D/libEGL (21279): loaded /vendor/lib/egl/libGLESv2_POWERVR_SGX544_112.so
> D/dalvikvm(21279): GC_CONCURRENT freed 178K, 2% free 14906K/15175K, paused
> 5ms+1ms
> D/ActivityManager( 198): Trim memory level = TRIM_MEMORY_COMPLETE is
> scheduled for application: com.amazon.device.crashmanager
> D/ActivityManager( 198): Trim memory level = TRIM_MEMORY_MODERATE is
> scheduled for application: com.android.gallery3d
> I/GeckoAxis(21279): Prefs: 0.85,0.97,10.0,0.04,0.04,0.3,0.5
> D/ActivityManager( 198): Trim memory level = TRIM_MEMORY_BACKGROUND is
> scheduled for application: com.amazon.dcp
> W/ResourceType(21279): Requesting resource 0x7f080001 failed because it is
> complex
> D/AndroidRuntime(21279): Shutting down VM
> W/dalvikvm(21279): threadid=1: thread exiting with uncaught exception
> (group=0x40b051f8)
> E/AndroidRuntime(21279): FATAL EXCEPTION: main
> E/AndroidRuntime(21279): java.lang.RuntimeException: Unable to start activity
> ComponentInfo{org.stully.geckoviewexample/org.stully.geckoviewexample.Main}:
> android.view.InflateException: Binary XML file line #28: Error inflating
> class org.mozilla.gecko.GeckoView
> E/AndroidRuntime(21279): at
> android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2031)
> E/AndroidRuntime(21279): at
> android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2056)
> E/AndroidRuntime(21279): at
> android.app.ActivityThread.access$600(ActivityThread.java:127)
> E/AndroidRuntime(21279): at
> android.app.ActivityThread$H.handleMessage(ActivityThread.java:1177)
> E/AndroidRuntime(21279): at
> android.os.Handler.dispatchMessage(Handler.java:99)
> E/AndroidRuntime(21279): at android.os.Looper.loop(Looper.java:137)
> E/AndroidRuntime(21279): at
> android.app.ActivityThread.main(ActivityThread.java:4533)
> E/AndroidRuntime(21279): at java.lang.reflect.Method.invokeNative(Native
> Method)
> E/AndroidRuntime(21279): at java.lang.reflect.Method.invoke(Method.java:511)
> E/AndroidRuntime(21279): at
> com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784)
> E/AndroidRuntime(21279): at
> com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)
> E/AndroidRuntime(21279): at dalvik.system.NativeStart.main(Native Method)
> E/AndroidRuntime(21279): Caused by: android.view.InflateException: Binary XML
> file line #28: Error inflating class org.mozilla.gecko.GeckoView
> E/AndroidRuntime(21279): at
> android.view.LayoutInflater.createView(LayoutInflater.java:606)
> E/AndroidRuntime(21279): at
> android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:680)
> E/AndroidRuntime(21279): at
> android.view.LayoutInflater.rInflate(LayoutInflater.java:739)
> E/AndroidRuntime(21279): at
> android.view.LayoutInflater.inflate(LayoutInflater.java:489)
> E/AndroidRuntime(21279): at
> android.view.LayoutInflater.inflate(LayoutInflater.java:396)
> E/AndroidRuntime(21279): at
> android.view.LayoutInflater.inflate(LayoutInflater.java:352)
> E/AndroidRuntime(21279): at
> com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:268)
> E/AndroidRuntime(21279): at
> android.app.Activity.setContentView(Activity.java:1881)
> E/AndroidRuntime(21279): at
> org.stully.geckoviewexample.Main.onCreate(Main.java:19)
> E/AndroidRuntime(21279): at
> android.app.Activity.performCreate(Activity.java:4637)
> E/AndroidRuntime(21279): at
> android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1049)
> E/AndroidRuntime(21279): at
> android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1995)
> E/AndroidRuntime(21279): ... 11 more
> E/AndroidRuntime(21279): Caused by:
> java.lang.reflect.InvocationTargetException
> E/AndroidRuntime(21279): at
> java.lang.reflect.Constructor.constructNative(Native Method)
> E/AndroidRuntime(21279): at
> java.lang.reflect.Constructor.newInstance(Constructor.java:417)
> E/AndroidRuntime(21279): at
> android.view.LayoutInflater.createView(LayoutInflater.java:586)
> E/AndroidRuntime(21279): ... 22 more
> E/AndroidRuntime(21279): Caused by:
> android.content.res.Resources$NotFoundException: Resource ID #0x7f080001
> E/AndroidRuntime(21279): at
> android.content.res.Resources.getValue(Resources.java:1018)
> E/AndroidRuntime(21279): at
> android.content.res.Resources.getColor(Resources.java:748)
> E/AndroidRuntime(21279): at
> org.mozilla.gecko.gfx.LayerRenderer.<init>(LayerRenderer.java:140)
> E/AndroidRuntime(21279): at
> org.mozilla.gecko.gfx.LayerView.initializeView(LayerView.java:119)
> E/AndroidRuntime(21279): at
> org.mozilla.gecko.GeckoView.<init>(GeckoView.java:76)
> E/AndroidRuntime(21279): ... 25 more
> W/ActivityManager( 198): Force finishing activity
> org.stully.geckoviewexample/.Mai

> _______________________________________________
> mobile-firefox-dev mailing list
> [email protected]
> https://mail.mozilla.org/listinfo/mobile-firefox-dev
_______________________________________________
mobile-firefox-dev mailing list
[email protected]
https://mail.mozilla.org/listinfo/mobile-firefox-dev

Reply via email to