Dear Richard Newman, Thanks very much for your quick help.I have added the scrollbar.png in res/drawable-mdpi/ folder. And it works, now I can see the GeckoView start correctly. However, the app will crash in about 3 seconds with a fatal error as below: 12-30 18:21:07.263: E/AndroidRuntime(6904): FATAL EXCEPTION: GeckoBackgroundThread12-30 18:21:07.263: E/AndroidRuntime(6904): android.content.res.Resources$NotFoundException: Resource ID #0x7f0a002a12-30 18:21:07.263: E/AndroidRuntime(6904): at android.content.res.Resources.getValue(Resources.java:1014)12-30 18:21:07.263: E/AndroidRuntime(6904): at android.content.res.Resources.getDimension(Resources.java:522)12-30 18:21:07.263: E/AndroidRuntime(6904): at org.mozilla.gecko.ThumbnailHelper.<init>(ThumbnailHelper.java:56)12-30 18:21:07.263: E/AndroidRuntime(6904): at org.mozilla.gecko.ThumbnailHelper.getInstance(ThumbnailHelper.java:41)12-30 18:21:07.263: E/AndroidRuntime(6904): at org.mozilla.gecko.Tab$5.run(Tab.java:674)12-30 18:21:07.263: E/AndroidRuntime(6904): at android.os.Handler.handleCallback(Handler.java:725)12-30 18:21:07.263: E/AndroidRuntime(6904): at android.os.Handler.dispatchMessage(Handler.java:92)12-30 18:21:07.263: E/AndroidRuntime(6904): at android.os.Looper.loop(Looper.java:137)12-30 18:21:07.263: E/AndroidRuntime(6904): at org.mozilla.gecko.util.GeckoBackgroundThread.run(GeckoBackgroundThread.java:32) For the build of the basic GeckoVeiw browser, should I add any permissions in the AndroidManifest.xml file?And from the catlog I also find a error: 12-30 18:20:59.872: E/GeckoConsole(6904): Could not read chrome manifest 'file:///data/data/com.starkravingfinkle.geckobrowser/chrome.manifest'.12-30 18:21:00.653: E/GeckoConsole(6904): While creating services from category 'profile-after-change', could not create service for entry 'Disk Space Watcher Service', contract ID '@mozilla.org/toolkit/disk-space-watcher;1' Is there something I missed again? My phone is Nexus S with CM Android 4.2.2. Below is the whole catlog info. Thanks very much for your help. 12-30 18:20:58.825: D/libEGL(6904): loaded /vendor/lib/egl/libEGL_POWERVR_SGX540_120.so12-30 18:20:58.845: D/libEGL(6904): loaded /vendor/lib/egl/libGLESv1_CM_POWERVR_SGX540_120.so12-30 18:20:58.856: D/libEGL(6904): loaded /vendor/lib/egl/libGLESv2_POWERVR_SGX540_120.so12-30 18:20:58.864: D/dalvikvm(6904): Trying to load lib /data/app-lib/com.starkravingfinkle.geckobrowser-2/libmozglue.so 0x4156473012-30 18:20:58.880: D/dalvikvm(6904): Added shared lib /data/app-lib/com.starkravingfinkle.geckobrowser-2/libmozglue.so 0x4156473012-30 18:20:58.880: D/dalvikvm(6904): No JNI_OnLoad found in /data/app-lib/com.starkravingfinkle.geckobrowser-2/libmozglue.so 0x41564730, skipping init12-30 18:20:58.903: I/GeckoAxis(6904): Prefs: 0.85,0.97,10.0,0.04,0.04,0.3,0.512-30 18:20:58.954: W/GeckoProfile(6904): requested profile directory missing: null12-30 18:20:58.954: D/GeckoProfile(6904): Found profile dir: /data/data/com.starkravingfinkle.geckobrowser/files/mozilla/75wbguwb.default12-30 18:20:58.970: D/GeckoLoader(6904): Gecko environment env0: null12-30 18:20:58.993: E/GeckoLibLoad(6904): Load sqlite start12-30 18:20:59.009: E/GeckoLinker(6904): /data/app/com.starkravingfinkle.geckobrowser-2.apk!/assets/libnss3.so: Warning: unhandled flags #8 not handled12-30 18:20:59.036: E/GeckoLinker(6904): /data/app/com.starkravingfinkle.geckobrowser-2.apk!/assets/libnss3.so: Warning: relocation to NULL @0x0018dc2412-30 18:20:59.048: E/GeckoLinker(6904): /data/app/com.starkravingfinkle.geckobrowser-2.apk!/assets/libnss3.so: Warning: relocation to NULL @0x0018dfdc for symbol "__cxa_begin_cleanup"12-30 18:20:59.048: E/GeckoLinker(6904): /data/app/com.starkravingfinkle.geckobrowser-2.apk!/assets/libnss3.so: Warning: relocation to NULL @0x0018dfe0 for symbol "__cxa_type_match"12-30 18:20:59.079: D/OpenGLRenderer(6904): Enabling debug mode 012-30 18:20:59.079: W/GeckoGLController(6904): GLController::serverSurfaceChanged(480, 589)12-30 18:20:59.083: E/GeckoLibLoad(6904): Load sqlite done12-30 18:20:59.083: E/GeckoLibLoad(6904): Load nss start12-30 18:20:59.083: E/GeckoLibLoad(6904): Load nss done12-30 18:20:59.106: E/GeckoLinker(6904): /data/app/com.starkravingfinkle.geckobrowser-2.apk!/assets/libxul.so: Warning: unhandled flags #8 not handled12-30 18:20:59.110: E/GeckoLinker(6904): /data/app/com.starkravingfinkle.geckobrowser-2.apk!/assets/libmozalloc.so: Warning: unhandled flags #8 not handled12-30 18:20:59.114: E/GeckoLinker(6904): /data/app/com.starkravingfinkle.geckobrowser-2.apk!/assets/libmozalloc.so: Warning: relocation to NULL @0x00002f8012-30 18:20:59.114: E/GeckoLinker(6904): /data/app/com.starkravingfinkle.geckobrowser-2.apk!/assets/libmozalloc.so: Warning: relocation to NULL @0x00002fdc for symbol "__cxa_begin_cleanup"12-30 18:20:59.114: E/GeckoLinker(6904): /data/app/com.starkravingfinkle.geckobrowser-2.apk!/assets/libmozalloc.so: Warning: relocation to NULL @0x00002fe0 for symbol "__cxa_type_match"12-30 18:20:59.224: W/GeckoGLController(6904): GLController::updateCompositor with mCompositorCreated=false12-30 18:20:59.224: D/GeckoHardwareUtils(6904): System memory: 396MB.12-30 18:20:59.247: W/GeckoGLController(6904): done GLController::updateCompositor12-30 18:20:59.626: E/GeckoLibLoad(6904): Loaded libs in 543ms total, 242ms(289ms) user, 70ms(117ms) system, 0(3) faults12-30 18:20:59.630: W/GeckoThread(6904): zerdatime 175712703 - runGecko12-30 18:20:59.630: W/GeckoProfile(6904): requested profile directory missing: null12-30 18:20:59.630: I/GeckoThread(6904): RunGecko - args = -P default12-30 18:20:59.653: E/Profiler(6904): BEGIN mozilla_sampler_init12-30 18:20:59.657: E/Profiler(6904): BPUnw: [1 total] thread_register_for_profiling(me=0x52968d90, stacktop=0x53808ada)12-30 18:20:59.657: E/Profiler(6904): SPS:12-30 18:20:59.657: E/Profiler(6904): SPS: Unwind mode = combined12-30 18:20:59.657: E/Profiler(6904): SPS: Sampling interval = 0 ms (zero means "platform default")12-30 18:20:59.657: E/Profiler(6904): SPS: Entry store size = 0 (zero means "platform default")12-30 18:20:59.657: E/Profiler(6904): SPS: UnwindStackScan = 0 (max dubious frames per unwind).12-30 18:20:59.657: E/Profiler(6904): SPS: Use env var MOZ_PROFILER_MODE=help for further information.12-30 18:20:59.657: E/Profiler(6904): SPS:12-30 18:20:59.657: E/Profiler(6904): Registering start signal12-30 18:20:59.692: E/Profiler(6904): BPUnw: [2 total] thread_register_for_profiling(me=0x51fc7e18, stacktop=0x5d031def)12-30 18:20:59.763: I/Gecko:MemoryInfoDumper(6904): Fifo watcher disabled via pref.12-30 18:20:59.872: E/GeckoConsole(6904): Could not read chrome manifest 'file:///data/data/com.starkravingfinkle.geckobrowser/chrome.manifest'.12-30 18:21:00.653: E/GeckoConsole(6904): While creating services from category 'profile-after-change', could not create service for entry 'Disk Space Watcher Service', contract ID '@mozilla.org/toolkit/disk-space-watcher;1'12-30 18:21:00.677: I/IdleService(6904): Registering Idle observer callback12-30 18:21:00.677: I/IdleService(6904): Register idle observer 5fc6e900 for 180 seconds12-30 18:21:00.677: I/IdleService(6904): Register: adjusting next switch from -1 to 180 seconds12-30 18:21:00.681: I/IdleService(6904): next timeout 179999 msec from now12-30 18:21:00.681: I/IdleService(6904): SetTimerExpiryIfBefore: next timeout 179998 msec from now12-30 18:21:00.681: I/IdleService(6904): reset timer expiry to 180008 msec from now12-30 18:21:00.681: I/IdleService(6904): Register idle observer 5fb3c730 for 15 seconds12-30 18:21:00.681: I/IdleService(6904): Register: adjusting next switch from 180 to 15 seconds12-30 18:21:00.681: I/IdleService(6904): next timeout 14997 msec from now12-30 18:21:00.681: I/IdleService(6904): SetTimerExpiryIfBefore: next timeout 14996 msec from now12-30 18:21:00.681: I/IdleService(6904): reset timer expiry to 15006 msec from now12-30 18:21:00.794: W/ResourceType(6904): Too many attribute references, stopped at: 0x0101009912-30 18:21:01.177: E/Profiler(6904): BPUnw: [3 total] thread_register_for_profiling(me=0x52525b10, stacktop=0x605ffdef)12-30 18:21:01.177: E/Profiler(6904): BPUnw: [4 total] thread_register_for_profiling(me=0x52525b50, stacktop=0x606ffdef)12-30 18:21:02.360: E/GeckoConsole(6904): zerdatime 1388427662364 - browser chrome startup finished.12-30 18:21:02.392: D/GeckoEventDispatcher(6904): dispatchEvent: no listeners registered for event 'LightweightTheme:Disable'12-30 18:21:02.434: D/GeckoEventDispatcher(6904): dispatchEvent: no listeners registered for event 'CharEncoding:State'12-30 18:21:02.481: D/GeckoEventDispatcher(6904): dispatchEvent: no listeners registered for event 'Accessibility:Ready'12-30 18:21:02.481: E/Profiler(6904): BPUnw: [5 total] thread_register_for_profiling(me=0x4ec62a18, stacktop=0x60cffc87)12-30 18:21:02.763: E/GeckoLinker(6904): /data/app/com.starkravingfinkle.geckobrowser-2.apk!/assets/libsoftokn3.so: Warning: unhandled flags #8 not handled12-30 18:21:02.770: E/GeckoLinker(6904): /data/app/com.starkravingfinkle.geckobrowser-2.apk!/assets/libfreebl3.so: Warning: unhandled flags #8 not handled12-30 18:21:02.927: E/GeckoLinker(6904): /data/app/com.starkravingfinkle.geckobrowser-2.apk!/assets/libnssckbi.so: Warning: unhandled flags #8 not handled12-30 18:21:02.942: D/GeckoLayerClient(6904): Screen-size changed to (480,800)12-30 18:21:02.942: D/GeckoLayerClient(6904): Window-size changed to (480,589)12-30 18:21:02.946: I/GeckoBrowser(6904): Gecko is ready12-30 18:21:02.954: W/GeckoGLController(6904): GLController::updateCompositor with mCompositorCreated=false12-30 18:21:02.962: I/Gecko(6904): Attempting load of libEGL.so12-30 18:21:02.966: W/GeckoGLController(6904): GLController::compositorCreated12-30 18:21:02.989: E/GeckoConsole(6904): OpenGL compositor Initialized Succesfully.12-30 18:21:02.989: E/GeckoConsole(6904): Version: OpenGL ES 2.0 build 1.8.GOOGLENEXUS.ED945322@211280512-30 18:21:02.989: E/GeckoConsole(6904): Vendor: Imagination Technologies12-30 18:21:02.989: E/GeckoConsole(6904): Renderer: PowerVR SGX 54012-30 18:21:02.989: E/GeckoConsole(6904): FBO Texture Target: TEXTURE_2D12-30 18:21:02.989: W/GeckoGLController(6904): done GLController::updateCompositor12-30 18:21:03.001: E/GeckoConsole(6904): Adding HealthReport:RequestSnapshot observer.12-30 18:21:03.036: I/GeckoDisplayPort(6904): Set strategy VelocityBiasStrategy mult=2.0, threshold=7.6800003, reverse=0.2, dangerBaseX=1.0, dangerBaseY=1.0, dangerIncrX=0.0, dangerIncrY=0.012-30 18:21:04.243: E/GeckoConsole(6904): Remote debugger listening on port 600012-30 18:21:04.282: I/GeckoAxis(6904): Prefs: 0.85,0.97,10.0,0.04,0.04,0.3,0.512-30 18:21:04.395: D/GeckoTabs(6904): handleMessage: Tab:Added12-30 18:21:04.438: D/GeckoTabs(6904): handleMessage: Link:OpenSearch12-30 18:21:04.446: D/GeckoTabs(6904): handleMessage: Content:StateChange12-30 18:21:04.626: D/GeckoEventDispatcher(6904): dispatchEvent: no listeners registered for event 'Intent:GetHandlers'12-30 18:21:06.513: D/GeckoTabs(6904): handleMessage: SessionHistory:New12-30 18:21:06.536: D/GeckoTabs(6904): handleMessage: Content:LocationChange12-30 18:21:06.536: D/GeckoTab(6904): Ignoring location change event: URIs are the same.12-30 18:21:06.544: D/GeckoTabs(6904): handleMessage: Content:SecurityChange12-30 18:21:06.575: D/GeckoTabs(6904): handleMessage: DOMTitleChanged12-30 18:21:06.579: I/GeckoBrowser(6904): Received a title12-30 18:21:06.595: D/GeckoTabs(6904): handleMessage: DOMContentLoaded12-30 18:21:06.606: D/GeckoTabs(6904): handleMessage: Content:PageShow12-30 18:21:06.610: D/GeckoEventDispatcher(6904): dispatchEvent: no listeners registered for event 'Intent:GetHandlers'12-30 18:21:06.626: D/GeckoEventDispatcher(6904): dispatchEvent: no listeners registered for event 'PrivateBrowsing:Data'12-30 18:21:06.649: D/GeckoTabs(6904): handleMessage: Tab:ViewportMetadata12-30 18:21:06.657: D/GeckoTabs(6904): handleMessage: Content:StateChange12-30 18:21:06.684: D/GeckoTabs(6904): handleMessage: Link:OpenSearch12-30 18:21:06.704: D/GeckoTabs(6904): handleMessage: Content:StateChange12-30 18:21:07.212: W/dalvikvm(6904): threadid=12: thread exiting with uncaught exception (group=0x412f9930)12-30 18:21:07.263: E/AndroidRuntime(6904): FATAL EXCEPTION: GeckoBackgroundThread12-30 18:21:07.263: E/AndroidRuntime(6904): android.content.res.Resources$NotFoundException: Resource ID #0x7f0a002a12-30 18:21:07.263: E/AndroidRuntime(6904): at android.content.res.Resources.getValue(Resources.java:1014)12-30 18:21:07.263: E/AndroidRuntime(6904): at android.content.res.Resources.getDimension(Resources.java:522)12-30 18:21:07.263: E/AndroidRuntime(6904): at org.mozilla.gecko.ThumbnailHelper.<init>(ThumbnailHelper.java:56)12-30 18:21:07.263: E/AndroidRuntime(6904): at org.mozilla.gecko.ThumbnailHelper.getInstance(ThumbnailHelper.java:41)12-30 18:21:07.263: E/AndroidRuntime(6904): at org.mozilla.gecko.Tab$5.run(Tab.java:674)12-30 18:21:07.263: E/AndroidRuntime(6904): at android.os.Handler.handleCallback(Handler.java:725)12-30 18:21:07.263: E/AndroidRuntime(6904): at android.os.Handler.dispatchMessage(Handler.java:92)12-30 18:21:07.263: E/AndroidRuntime(6904): at android.os.Looper.loop(Looper.java:137)12-30 18:21:07.263: E/AndroidRuntime(6904): at org.mozilla.gecko.util.GeckoBackgroundThread.run(GeckoBackgroundThread.java:32)12-30 18:21:07.934: W/GeckoGLController(6904): GLController::serverSurfaceDestroyed() with mCompositorCreated=true12-30 18:21:07.950: W/GeckoGLController(6904): done GLController::serverSurfaceDestroyed()12-30 18:21:09.790: D/GeckoTabs(6904): handleMessage: Content:LocationChange12-30 18:21:09.794: D/GeckoTabs(6904): handleMessage: Content:SecurityChange12-30 18:21:09.899: D/GeckoTabs(6904): handleMessage: Tab:ViewportMetadata12-30 18:21:09.903: D/GeckoTabs(6904): handleMessage: DOMTitleChanged12-30 18:21:09.903: I/GeckoBrowser(6904): Received a title12-30 18:21:09.923: D/GeckoTabs(6904): handleMessage: Link:Feed12-30 18:21:11.669: D/GeckoTabs(6904): handleMessage: Tab:ViewportMetadata12-30 18:21:11.692: D/GeckoTabs(6904): handleMessage: DOMContentLoaded12-30 18:21:12.071: D/GeckoTabs(6904): handleMessage: Content:PageShow12-30 18:21:12.075: D/GeckoEventDispatcher(6904): dispatchEvent: no listeners registered for event 'Intent:GetHandlers'12-30 18:21:12.087: D/GeckoEventDispatcher(6904): dispatchEvent: no listeners registered for event 'PrivateBrowsing:Data'12-30 18:21:12.102: D/GeckoTabs(6904): handleMessage: Content:StateChange12-30 18:21:12.114: E/Profiler(6904): BPUnw: [6 total] thread_register_for_profiling(me=0x52da9590, stacktop=0x62dffdfb)12-30 18:21:12.145: E/Profiler(6904): BPUnw: [7 total] thread_register_for_profiling(me=0x4e50f008, stacktop=0x62effdd7)12-30 18:21:12.157: E/Profiler(6904): BPUnw: [8 total] thread_register_for_profiling(me=0x51c0ceb8, stacktop=0x62fffdd7)12-30 18:21:12.177: E/Profiler(6904): BPUnw: [9 total] thread_register_for_profiling(me=0x51f824a8, stacktop=0x630ffc87)
Bests,HanWang > Subject: Re: Android: GeckoView library question [failed to inflate] > From: [email protected] > Date: Sun, 29 Dec 2013 16:14:13 -0800 > To: [email protected] > CC: [email protected] > > > 12-29 13:57:28.196: E/ActivityThread(5016): Caused by: > > java.lang.NullPointerException > > 12-29 13:57:28.196: E/ActivityThread(5016): at > > org.mozilla.gecko.gfx.LayerRenderer.<init>(LayerRenderer.java:139) > > 12-29 13:57:28.196: E/ActivityThread(5016): at > > org.mozilla.gecko.gfx.LayerView.initializeView(LayerView.java:135) > > 12-29 13:57:28.196: E/ActivityThread(5016): at > > org.mozilla.gecko.GeckoView.init(GeckoView.java:105) > > 12-29 13:57:28.196: E/ActivityThread(5016): at > > org.mozilla.gecko.GeckoView.<init>(GeckoView.java:51) > > 12-29 13:57:28.196: E/ActivityThread(5016): ... 25 more > > This means that there's no scrollbar image being returned by > GeckoView.getScrollbarImage(). Because GeckoView doesn't override that > method, this is being called: > > int resId = context.getResources().getIdentifier(name, "drawable", > context.getPackageName()); > return BitmapUtils.decodeResource(context, resId, options); > > so make sure there's a file named > > scrollbar.png > > in res/drawable-mdpi/. > > If you look earlier in the log, you might see > > "decodeResource() OOM! Resource id=" > > or some Android-ish log line from BitmapFactory. > _______________________________________________ > 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

