Hi Firefox OS does not use SurfaceFlinger, but using OpenGL and hw composer hal for composition. >From the crash, It seems that your code passes the following code. SurfaceTextureClient is a default android class. You might need to fix the class not to call ComposerService::getComposerService(). http://androidxref.com/4.0.4/xref/frameworks/base/libs/gui/SurfaceTextureClient.cpp#250
By the way from JB4.3, FakeSurfaceComposer is added just to provide GraphicBufferAlloc to BufferQueue. It is added to support nexus7's camra. http://mxr.mozilla.org/mozilla-central/source/widget/gonk/nativewindow/FakeSurfaceComposer.cpp Regards, Sotaro ----- Original Message ----- From: "Zeyun Dou" <[email protected]> To: [email protected] Sent: Wednesday, January 22, 2014 3:36:22 AM Subject: [b2g] B2G dependency on SurfaceFlinger ? Hi all: In my device, the Firefox OS dependency on SurfaceFlinger, if I stop the surfaceflinger service, Firefox OS will start up failed. it will always request for SurfaceFlinger from ComposerService. I use the strace to dump the stack , as the belows: 01-01 08:01:53.610 D/CallStack( 2809): #00 pc 0002855a /system/lib/libgui.so (android::ComposerService::getComposerService()+33) 01-01 08:01:53.610 D/CallStack( 2809): #01 pc 00024096 /system/lib/libgui.so (android::SurfaceTextureClient::query(int, int*) const+69) 01-01 08:01:53.610 D/CallStack( 2809): #02 pc 00023bd2 /system/lib/libgui.so (android::SurfaceTextureClient::hook_query(ANativeWindow const*, int, int*)+7) 01-01 08:01:53.610 D/CallStack( 2809): #03 pc 0000f394 /system/lib/libMali.so 01-01 08:01:53.610 D/CallStack( 2809): #04 pc 0007af88 /system/lib/libMali.so (_mali_frame_builder_acquire_output+36) 01-01 08:01:53.610 D/CallStack( 2809): #05 pc 00020d98 /system/lib/libMali.so 01-01 08:01:53.610 D/CallStack( 2809): #06 pc 0001a778 /system/lib/libMali.so 01-01 08:01:53.610 D/CallStack( 2809): #07 pc 000109a0 /system/lib/libMali.so (shim_glClear+72) I think maybe I did something wrong, anybody would help me ? thanks! _______________________________________________ dev-b2g mailing list [email protected] https://lists.mozilla.org/listinfo/dev-b2g _______________________________________________ dev-b2g mailing list [email protected] https://lists.mozilla.org/listinfo/dev-b2g
