hello,

one month ago I posted the message below on java_linux.bugs - since this is quite 
urgent for me, I*m pasting it here again -
would be great if someone of you could answer ----

THANX,

david


Full_Name: david gabriel
   JDK_Version: 1.2
   JDK_Arch: i386 (x86)
   Linux_Dist: Suse
   Linux_Dist_Ver: 6.0
   Libc_Ver: libc.so.4 => libc.so.4.7.6
   Ld_Ver: ld-linux.so.1 => ld-linux.so.1.9.9
   Dyn_Java: no
   Toolkit: Motif
   Toolkit_Ver:
   Bug_Example: http://
   Submission from: ppp196-160.rz.hu-berlin.de (141.20.196.160)


   when displaying animated gifs, an Object appears in the Threadlist named "Image
   Animator 0".
   when opening several anim. gifs, several "Image Animator 0" Threads appear.
   these threads don.t disappear after the following code:

   public class ImageUtil {
       public static int ratio = 3;
       public static MediaTracker mt=null;
       public static Toolkit tk = null;
       public static Dimension getSize(String img_path, Component c) {
           if (tk==null) tk = c.getToolkit();
           Image i = tk.getImage(img_path);
           if (mt == null) mt = new MediaTracker(c);
           mt.addImage(i,0);
           try{mt.waitForID(0);}catch(InterruptedException ex){System.err.println(ex);}
           Image offscreen = c.createImage(1,1);
           Graphics g = offscreen.getGraphics();
           g.drawImage(i,0,0,c);
           Dimension d = new Dimension(i.getWidth(c),i.getHeight(c));
           mt.removeImage(i);
           offscreen = null;
           i = null;
           g.dispose();
           //System.out.println(i.getHeight(c)+" "+i.getWidth(c));
           return d;
       }


   after some time, athreadlist looks like:

   Thread[Image Animator 0,3,main]
   Thread[Image Animator 0,3,main]
   Thread[Image Animator 0,3,main]
   Thread[Image Animator 0,3,main]
   Thread[Image Animator 0,3,main]
   Thread[Image Animator 0,3,main]
   Thread[Image Animator 0,3,main]
   Thread[Image Animator 0,3,main]


   calling a stop() function on the corresponding threads results in a crash
   of the whole application saying:


   KILLING: Thread[Image Animator 0,3,main]
   SIGSEGV   11*  segmentation violation
           stackpointer=0xbe9ff3c0

all other (legal) ways to kill the Thread have no effect -

   The corresponding ImageFetcher Thread (for jpegs etc) disappears after the Image is 
no longer
   used...


   Hmmmmmm....


----------------------------------------------------------------------
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to