List Info

Thread: How to enable support for multiple app in DirectFB




How to enable support for multiple app in DirectFB
user name
2007-04-18 04:59:17
Hi,

We need to run more than one application in same directfb
screen. Currently, if we try to run then these applications
are coming in separate DFB screen. Any help..??

Regards,
Siddharth 


_______________________________________________
directfb-dev mailing list
directfb-devdirectfb.org
http://mail.directfb.org/cgi-bin/mailman/listinfo/
directfb-dev

Re: TestGtkEmbed on MIPS over DirectFB
country flaguser name
India
2007-03-30 09:27:26
 
Hi,
 
As pointed out in my previous mail, the assertions are because of a bug in GTK 2.10.1 and has already been fixed in later version(may be 2.10.6). But later versions did not work for us so we are using 2.10.1.
 
Anyway, you can have a look at gdkdraw.c (contains the actual function(gdk-drawable_set_colormap) causing assertions) for any clue or go for higher version for the actual fix.
 
Regards,
Siddharth
TATA Elxsi, India
 
 
 
-----Original Message-----
From: David Dyrnaes [mailto:david.dyrnaesddei.net]
Sent: Thursday, March 29, 2007 9:22 PM
To: kumarsiddharthtataelxsi.co.in; amitw-o-i.com
Cc: directfb-devdirectfb.org; amitrocksgmail.com
Subject: Re: TestGtkEmbed on MIPS over DirectFB

We believe this could be related to the color map assertion.  Could you give us guidance on how to fix this issue? 

Do you know what element is wrong in the asertion? 


----- Original Message -----
From: Kumar Siddharth <kumarsiddharthtataelxsi.co.in>
To: amitw-o-i.com <amitw-o-i.com&gt;
Cc: David Dyrnaes; Kumar Siddharth <kumarsiddharthtataelxsi.co.in>; directfb-devdirectfb.org <directfb-devdirectfb.org>; amitrocksgmail.com <amitrocksgmail.com&gt;
Sent: Thu Mar 29 08:27:03 2007
Subject: RE: TestGtkEmbed on MIPS over DirectFB


Hi Amit,

I think you missed one more important thing. You have mentioned that you are using GTK 2.10.3, but the Firefox on DFB patch that we have released is for GTK 2.10.1. Also, we were having display problems with Mozilla if we used anything other than GTK 2.10.1 . There is a strong version dependency.

What I suggest is: just go through Bugzilla and DFBMozilla wiki page for build instruction and version information, and build Mozilla with GTK 2.10.1 . You should get correct output as we are getting it on ARM. Please note that you will get a patch for GTK also apart from Firefox. Apply that patch to your GTK code.

Yeah we do get Colormap assertion as the problem is with the GTK 2.10.1 and was fixed in later versions. But it does not affect the output.

You can also post your DFB related queries to "directfb-dev" mailing list for expert comments.

Hope it helps you.

Regards,
Siddharth
TATA Elxsi, India

&nbsp; &nbsp; &nbsp;  
&nbsp; &nbsp; &nbsp; &nbsp;  -----Original Message-----
 &nbsp; &nbsp;   ; From: amit shah [gmail.com">mailto:amitrocksgmail.com]
 &nbsp; &nbsp; &nbsp;  Sent: Wednesday, March 28, 2007 5:03 AM
 &nbsp;   ; &nbsp; To: Kumar Siddharth
  ; &nbsp; &nbsp;  Cc: davidddei.net
&nbsp;   ; &nbsp;  Subject: Re: TestGtkEmbed on MIPs over DirectFB
&nbsp;   ; &nbsp; 
&nbsp; &nbsp;   
&nbsp; &nbsp; &nbsp;   Hi Siddharth,
 &nbsp; &nbsp; &nbsp; 
  ; &nbsp; &nbsp;  One important piece of information I missed yesterday on my mail was
   ; &nbsp; &nbsp;
 &nbsp;   ; &nbsp; Whenever the browser tries to paint on the screen&nbsp; we see this message&nbsp; on the console.
&nbsp;   ; &nbsp; 
&nbsp; &nbsp;   ;  (TestGtkEmbed:20853): Gdk-CRITICAL **: gdk_drawable_set_colormap: assertion `cmap == NULL || gdk_drawable_get_depth (drawable) == cmap->visual->depth' failed
&nbsp; &nbsp; &nbsp;  
&nbsp; &nbsp; &nbsp; &nbsp; This we verified by displaying an animated GIF on the screen only the first frame is seen and the browser starts to spew the above mentioned message as it tries to paint the next successive frames.
&nbsp; &nbsp;   ;  While the browser is spewing out these messages if  i reload the page I see the last GIF frame rendered which is may not be the same as the first ; one .
 &nbsp; &nbsp;   ;
 &nbsp; &nbsp; &nbsp;   Are we missing something here.
&nbsp; &nbsp; &nbsp; &nbsp;
 ; &nbsp; &nbsp; &nbsp; regards
&nbsp; &nbsp;   ;  --amit
&nbsp; &nbsp; &nbsp;  
&nbsp; &nbsp; &nbsp; &nbsp;  Replies to your queries&nbsp; below.
&nbsp; &nbsp; &nbsp;  
&nbsp; &nbsp; &nbsp; &nbsp;
 ; &nbsp; &nbsp; &nbsp; On 3/27/07, Kumar Siddharth <kumarsiddharthtataelxsi.co.in > wrote:

&nbsp; &nbsp;   ;   &nbsp; &nbsp; &nbsp;  Hi Amit,
&nbsp; &nbsp; &nbsp; &nbsp;  &nbsp; &nbsp; &nbsp; &nbsp;
 ; &nbsp; &nbsp; &nbsp;  &nbsp; &nbsp; &nbsp;  I have tested the stripped down version of TestGtkEmbed(provided by you) with our Firefox X86 build over DFB and it is working fine. Also, we are able to run our Mozilla TestGtkEmbed over DirectFB on ARM processor. It is rendering local pages quite well. May be the problem lies somewhere else.
&nbsp; &nbsp; &nbsp; &nbsp;  &nbsp; &nbsp; &nbsp; &nbsp;
 ; &nbsp; &nbsp; &nbsp;  &nbsp; &nbsp; &nbsp;  What is your target OS..??


&nbsp;   ; &nbsp;   &nbsp; We are using open embedded linux with kernel version 2.6.11-r000069-V1.08rc9
 &nbsp; &nbsp;   


&nbsp;   ; &nbsp;   &nbsp; &nbsp; &nbsp;  Are DirectFB examples running fine..??


 &nbsp; &nbsp; &nbsp;  Yes all of the examples are running fine except the following ones
 ; &nbsp; &nbsp; &nbsp; 1) df_flip&nbsp; &nbsp; : Fills the screen with gray colour : attachment  = &nbsp; df_flip.cap
 &nbsp; &nbsp; &nbsp;  2) pss &nbsp;   ; &nbsp; :Bombed&nbsp; &nbsp;  : attachment = pss.cap
&nbsp; &nbsp;   ;  3) df_drivertest : Got stuck on initialization : attachment = df_drivertest.cap
&nbsp; &nbsp; &nbsp;   4) df_texture  :Bombed&nbsp; :  attachment = df_texture.cap
   ; &nbsp; &nbsp;  &nbsp;
 &nbsp; &nbsp;   ; I have also included the o/p of df_ok which is some benchmarking info which might be helpful.
&nbsp;   ; &nbsp; 
&nbsp; &nbsp;   ; &nbsp;
 &nbsp; &nbsp;   ;


 &nbsp;   ; &nbsp;  &nbsp; &nbsp; &nbsp;  Are you able to run GTK Demos properly..??


   ; &nbsp; &nbsp; Yes they run fine
 ; &nbsp; &nbsp; &nbsp;


&nbsp; &nbsp; &nbsp; &nbsp;  &nbsp; &nbsp; &nbsp;  Is it something to do with the memory available etc..(Just a wild guess)..??



 &nbsp;   ; &nbsp; Memory status before running TestGTkEmbed
 &nbsp; &nbsp;   ; 1K blocks
&nbsp; &nbsp; &nbsp;   Total ; &nbsp; &nbsp; &nbsp; &nbsp;   ; &nbsp; &nbsp; &nbsp; &nbsp;   ; &nbsp; &nbsp; &nbsp; &nbsp;   ; &nbsp; Used   ; &nbsp; &nbsp; &nbsp; &nbsp;   ; &nbsp; &nbsp; &nbsp; &nbsp;   ; &nbsp; &nbsp; &nbsp; &nbsp;   ; &nbsp; &nbsp; &nbsp; &nbsp; free   ; &nbsp; &nbsp; &nbsp; &nbsp;   ; &nbsp;  Shared&nbsp; &nbsp; &nbsp; &nbsp;   ; &nbsp; &nbsp; &nbsp; &nbsp;   ; &nbsp; &nbsp; &nbsp;  buffers
&nbsp; &nbsp;   ;  93284 ; &nbsp; &nbsp; &nbsp; &nbsp;   ; &nbsp; &nbsp; &nbsp; &nbsp;   ; &nbsp; &nbsp; &nbsp; &nbsp;   ; &nbsp; 59668 ; &nbsp; &nbsp; &nbsp; &nbsp;   ; &nbsp; &nbsp; &nbsp; &nbsp;   ; &nbsp; &nbsp; &nbsp; &nbsp;   ; &nbsp; &nbsp; 33416 ; &nbsp; &nbsp; &nbsp; &nbsp;   ; &nbsp; &nbsp; &nbsp; &nbsp;   ; 0 &nbsp; &nbsp; &nbsp;   ; &nbsp; &nbsp; &nbsp; &nbsp;   ; &nbsp; &nbsp; &nbsp; &nbsp;   ; &nbsp;  2288
 ; &nbsp; &nbsp; &nbsp; Memory status AFTER running TestGTkEmbed
 &nbsp; &nbsp;   ; 93284 ; &nbsp; &nbsp; &nbsp; &nbsp;   ; &nbsp; &nbsp; &nbsp; &nbsp;   ; &nbsp; &nbsp; &nbsp; &nbsp;   ; &nbsp; 68724 ; &nbsp; &nbsp; &nbsp; &nbsp;   ; &nbsp; &nbsp; &nbsp; &nbsp;   ; &nbsp; &nbsp; &nbsp; &nbsp;   ; &nbsp; &nbsp; &nbsp; 24560 ; &nbsp; &nbsp; &nbsp; &nbsp;   ; &nbsp; &nbsp; &nbsp; &nbsp;   ; 0 &nbsp; &nbsp; &nbsp;   ; &nbsp; &nbsp; &nbsp; &nbsp;   ; &nbsp; &nbsp; &nbsp; &nbsp;   ; &nbsp; 2288
 ; &nbsp; &nbsp; &nbsp;  
&nbsp; &nbsp; &nbsp;  


&nbsp; &nbsp;   ;   &nbsp; &nbsp; &nbsp;  Just to inform you, we have fixed some bugs related to transparent images and gifs. We'll be releasing the patch shortly. That may be of some help for you.
 ; &nbsp; &nbsp; &nbsp;  &nbsp; &nbsp; &nbsp; &nbsp;
 ; &nbsp; &nbsp; &nbsp;  &nbsp; &nbsp; &nbsp;  From which folder you are running TestGtkEmbed..?? Try running from mozilla/dist/bin .


   ; &nbsp; &nbsp; Tried it. Same results.
&nbsp;   ; &nbsp; 


  ; &nbsp; &nbsp;   &nbsp; &nbsp; &nbsp;  Regards,
&nbsp;   ; &nbsp;   &nbsp; &nbsp; &nbsp;  Siddharth
  ; &nbsp; &nbsp;   &nbsp; &nbsp; &nbsp;  TATA Elxsi, India
&nbsp; &nbsp; &nbsp; &nbsp;  &nbsp; &nbsp; &nbsp;   &nbsp; &nbsp; &nbsp;   &nbsp; &nbsp; &nbsp; &nbsp;
 ; &nbsp; &nbsp; &nbsp;  &nbsp; &nbsp; &nbsp; &nbsp;

&nbsp; &nbsp; &nbsp; &nbsp;  &nbsp; &nbsp; &nbsp;   &nbsp; &nbsp; &nbsp;  -----Original Message-----
 &nbsp; &nbsp;   ;  &nbsp; &nbsp; &nbsp;   &nbsp; &nbsp; &nbsp;  From: amit shah [gmail.com">mailto:amitrocksgmail.com]
 &nbsp; &nbsp; &nbsp;   &nbsp; &nbsp; &nbsp;   &nbsp; &nbsp; &nbsp;  Sent: Tuesday, March 27, 2007 8:38 AM
 &nbsp;   ; &nbsp;  &nbsp; &nbsp; &nbsp;   &nbsp; &nbsp; &nbsp;  To: kumarsiddharthtataelxsi.co.in
 ; &nbsp; &nbsp; &nbsp;  &nbsp; &nbsp; &nbsp;   &nbsp; &nbsp; &nbsp;  Subject: TestGtkEmbed on MIPs over DirectFB
&nbsp;   ; &nbsp;   &nbsp; &nbsp; &nbsp;   &nbsp; &nbsp; &nbsp; 
  ; &nbsp; &nbsp;   &nbsp; &nbsp; &nbsp;   &nbsp; &nbsp; &nbsp; 
  ; &nbsp; &nbsp;   &nbsp; &nbsp; &nbsp;   &nbsp; &nbsp; &nbsp;  Hi Siddhrath,
 &nbsp; &nbsp; &nbsp;   &nbsp; &nbsp; &nbsp;   &nbsp; &nbsp; &nbsp; 
  ; &nbsp; &nbsp;   &nbsp; &nbsp; &nbsp;   &nbsp; &nbsp; &nbsp;   &nbsp; &nbsp; &nbsp; &nbsp;   We are trying to port over firefox on a mips based AMD au1200 processor. We have reached a stage where we can build the complete browser reliably.
  ; &nbsp; &nbsp;   &nbsp; &nbsp; &nbsp;   &nbsp; &nbsp; &nbsp; 

 &nbsp; &nbsp; &nbsp;   &nbsp; &nbsp; &nbsp;   &nbsp; &nbsp; &nbsp;  However, when running the TestGtkEmbed and TestGtkEmbedNotebook (in mozilla/embedding/browser/gtk/tests/), we are having a problem with refreshing the screen.&nbsp; Actually, with the notebook program, nothing draws.&nbsp; With the TestGtkEmbed (stripped down version attached) it displays the initial screen upon loading the url, but then nothing after unless we reload the document.&nbsp; Obviously, this affects things like java script with timers and active objects as well as animated gifs (we only see the first image).

&nbsp;   ; &nbsp;   &nbsp; &nbsp; &nbsp;   &nbsp; &nbsp; &nbsp; &nbsp; The stripped down TestGtkEmbed program has only the toolbar and status bar left. ; The toolbar at the top and status bar at the bottom.&nbsp; If I remove any more of the draw events for any of the other objects, then even the initial screen for the browser will not draw. ; However, we are seeing both the tool bar and status bar updating fine.

&nbsp; &nbsp; &nbsp;    &nbsp; &nbsp; &nbsp;   &nbsp; &nbsp; &nbsp; &nbsp; It appears to be something to do with a signal from the browser object rendering to not triggering the redraw of the screen.&nbsp; However, all attempts to use the obvious Gtk/Gdk calls to force refresh such as show, draw, invalidate, etc. (hooked to the js_status callback among other places) have no affect.

&nbsp;   ; &nbsp;   &nbsp; &nbsp; &nbsp;   &nbsp; &nbsp; &nbsp; &nbsp; Could you please let me know the best way to approach debugging this problem?&nbsp; What are the best places to put debugging to isolate it? Is one of the 'qa' test programs appropriate to help isolate this problem?

  ; &nbsp; &nbsp;   &nbsp; &nbsp; &nbsp;   &nbsp; &nbsp; &nbsp;  I have included the list of distributions we used below.&nbsp; Any help you could provide would be very much appreciated.

 &nbsp;   ; &nbsp;  &nbsp; &nbsp; &nbsp;   &nbsp; &nbsp; &nbsp;  thanks
&nbsp; &nbsp; &nbsp;    &nbsp; &nbsp; &nbsp;   &nbsp; &nbsp; &nbsp;  --amit
&nbsp; &nbsp; &nbsp;    &nbsp; &nbsp; &nbsp;   &nbsp; &nbsp; &nbsp; 

 &nbsp; &nbsp; &nbsp;   &nbsp; &nbsp; &nbsp;   &nbsp; &nbsp; &nbsp;   &nbsp; &nbsp; &nbsp;  atk-1.9.0
  ; &nbsp; &nbsp;   &nbsp; &nbsp; &nbsp;   &nbsp; &nbsp; &nbsp;   &nbsp; &nbsp; &nbsp;  binutils-2.16.1
 ; &nbsp; &nbsp; &nbsp;  &nbsp; &nbsp; &nbsp;   &nbsp; &nbsp; &nbsp;   &nbsp; &nbsp; &nbsp; &nbsp;   ; &nbsp; &nbsp; xpgot patch
&nbsp; &nbsp; &nbsp; &nbsp;  &nbsp; &nbsp; &nbsp;   &nbsp; &nbsp; &nbsp;   &nbsp; &nbsp; &nbsp;  cairo-1.2.4
 &nbsp; &nbsp; &nbsp;   &nbsp; &nbsp; &nbsp;   &nbsp; &nbsp; &nbsp;   &nbsp; &nbsp; &nbsp;  DirectFB-1.0.0-rc2
&nbsp; &nbsp;   ;   &nbsp; &nbsp; &nbsp;   &nbsp; &nbsp; &nbsp;   &nbsp; &nbsp; &nbsp;  fontconfig-2.4.1
&nbsp; &nbsp; &nbsp; &nbsp;  &nbsp; &nbsp; &nbsp;   &nbsp; &nbsp; &nbsp;   &nbsp; &nbsp; &nbsp;  freetype-2.1.10
 ; &nbsp; &nbsp; &nbsp;  &nbsp; &nbsp; &nbsp;   &nbsp; &nbsp; &nbsp;   &nbsp; &nbsp; &nbsp;  gcc-3.4.4
  ; &nbsp; &nbsp;   &nbsp; &nbsp; &nbsp;   &nbsp; &nbsp; &nbsp;   &nbsp; &nbsp; &nbsp; &nbsp;   ; &nbsp; &nbsp; Backported gcc 4.0 visibility flag
 ; &nbsp; &nbsp; &nbsp;  &nbsp; &nbsp; &nbsp;   &nbsp; &nbsp; &nbsp;   &nbsp; &nbsp; &nbsp; &nbsp;   ; &nbsp; &nbsp; MABI 32 support for MIPS
 ; &nbsp; &nbsp; &nbsp;  &nbsp; &nbsp; &nbsp;   &nbsp; &nbsp; &nbsp;   &nbsp; &nbsp; &nbsp;  gdb-6.5
&nbsp; &nbsp;   ;   &nbsp; &nbsp; &nbsp;   &nbsp; &nbsp; &nbsp;   &nbsp; &nbsp; &nbsp;  glib-2.12.3
 &nbsp; &nbsp; &nbsp;   &nbsp; &nbsp; &nbsp;   &nbsp; &nbsp; &nbsp;   &nbsp; &nbsp; &nbsp;  glibc-2.3.6
 &nbsp; &nbsp; &nbsp;   &nbsp; &nbsp; &nbsp;   &nbsp; &nbsp; &nbsp;   &nbsp; &nbsp; &nbsp;  gtk+-2.10.3
 &nbsp; &nbsp; &nbsp;   &nbsp; &nbsp; &nbsp;   &nbsp; &nbsp; &nbsp;   &nbsp; &nbsp; &nbsp;  jpeg-6b
&nbsp; &nbsp;   ;   &nbsp; &nbsp; &nbsp;   &nbsp; &nbsp; &nbsp;   &nbsp; &nbsp; &nbsp;  libIDL-0.8.7
 &nbsp; &nbsp;   ;  &nbsp; &nbsp; &nbsp;   &nbsp; &nbsp; &nbsp;   &nbsp; &nbsp; &nbsp;  libpng-1.2.12
 &nbsp;   ; &nbsp;  &nbsp; &nbsp; &nbsp;   &nbsp; &nbsp; &nbsp;   &nbsp; &nbsp; &nbsp;  libxml2-2.6.23
   ; &nbsp; &nbsp;  &nbsp; &nbsp; &nbsp;   &nbsp; &nbsp; &nbsp;   &nbsp; &nbsp; &nbsp;  linux-libc-headers-2.6.11.0
&nbsp; &nbsp; &nbsp; &nbsp;  &nbsp; &nbsp; &nbsp;   &nbsp; &nbsp; &nbsp;   &nbsp; &nbsp; &nbsp;  linuxthreads
 &nbsp; &nbsp;   ;  &nbsp; &nbsp; &nbsp;   &nbsp; &nbsp; &nbsp;   &nbsp; &nbsp; &nbsp;  linuxthreads_db
 ; &nbsp; &nbsp; &nbsp;  &nbsp; &nbsp; &nbsp;   &nbsp; &nbsp; &nbsp;   &nbsp; &nbsp; &nbsp;  ncurses-5.5
 &nbsp; &nbsp; &nbsp;   &nbsp; &nbsp; &nbsp;   &nbsp; &nbsp; &nbsp;   &nbsp; &nbsp; &nbsp;  pango-1.14.4
 &nbsp; &nbsp;   ;  &nbsp; &nbsp; &nbsp;   &nbsp; &nbsp; &nbsp;   &nbsp; &nbsp; &nbsp;  pkg-config-0.21
 ; &nbsp; &nbsp; &nbsp;  &nbsp; &nbsp; &nbsp;   &nbsp; &nbsp; &nbsp;   &nbsp; &nbsp; &nbsp;  SDL-1.2.11
 &nbsp; &nbsp; &nbsp;   &nbsp; &nbsp; &nbsp;   &nbsp; &nbsp; &nbsp;   &nbsp; &nbsp; &nbsp;  SDL_gfx-2.0.13
   ; &nbsp; &nbsp;  &nbsp; &nbsp; &nbsp;   &nbsp; &nbsp; &nbsp;   &nbsp; &nbsp; &nbsp;  termcap-1.3.1
 &nbsp;   ; &nbsp;  &nbsp; &nbsp; &nbsp;   &nbsp; &nbsp; &nbsp;   &nbsp; &nbsp; &nbsp;  zlib-1.2.3
 &nbsp; &nbsp; &nbsp;   &nbsp; &nbsp; &nbsp;   &nbsp; &nbsp; &nbsp;   &nbsp; &nbsp; &nbsp;  firefox 1.5.0.3 <http://1.5.0.3/>
  ; &nbsp; &nbsp;   &nbsp; &nbsp; &nbsp;   &nbsp; &nbsp; &nbsp;   &nbsp; &nbsp; &nbsp; &nbsp;   ; &nbsp; with DFB patch
&nbsp; &nbsp; &nbsp; &nbsp;  &nbsp; &nbsp; &nbsp;   &nbsp; &nbsp; &nbsp; 

 &nbsp; &nbsp; &nbsp;   &nbsp; &nbsp; &nbsp; 

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )