From alexzax@x-mail.net  Mon Dec  9 15:06:50 2002
Return-Path: <alexzax@x-mail.net>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 4506637B401
	for <FreeBSD-gnats-submit@freebsd.org>; Mon,  9 Dec 2002 15:06:50 -0800 (PST)
Received: from mailer.x-mail.net (mailer.x-mail.net [64.69.79.202])
	by mx1.FreeBSD.org (Postfix) with ESMTP id EA5A443F28
	for <FreeBSD-gnats-submit@freebsd.org>; Mon,  9 Dec 2002 15:06:49 -0800 (PST)
	(envelope-from alexzax@x-mail.net)
Received: by mailer.x-mail.net (MTA)
	id A4ACF77C3FA; Mon,  9 Dec 2002 18:06:39 -0500 (EST)
Received: from [217.226.118.161] by www2.x-mail.net with HTTP; Mon, 09 Dec 2002 15:06:39 -0800
Message-Id: <1039475199.3df521ff9f3ef@www2.x-mail.net>
Date: Mon, 09 Dec 2002 15:06:39 -0800
From: Alex Zax <alexzax@x-mail.net>
To: FreeBSD-gnats-submit@freebsd.org
Cc: sny@x-mail.net
Subject: Sound Capture works only one time

>Number:         46151
>Category:       java
>Synopsis:       Sound Capture works only one time
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    phantom
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Dec 09 15:10:02 PST 2002
>Closed-Date:    Mon Nov 10 02:37:11 PST 2003
>Last-Modified:  Mon Nov 10 02:37:11 PST 2003
>Originator:     Alex Zahovaev
>Release:        FreeBSD 4.7-RELEASE i386
>Organization:
>Environment:
System: FreeBSD 4.7-RELEASE FreeBSD 4.7-RELEASE #0: Mon Oct 14 00:50:30 
GMT 2002 root@:/usr/src/sys/compile/GENERIC i386
javax.sound.sampled
Classic VM (build 1.3.1-p7-root-021014-00:03, green threads, nojit)
Java HotSpot(TM) Client VM (build 
1.4.0-internal-root_08_dec_2002_16_37, mixed mode)
JavaSoundDemo.jar
Hardware doesn't make sence.
>Description:
        A Deadlock happens on the sound capturing (captureLine.read(...)) after a 
second open of the Capture Line.
        It looks like a DeadLock in a native part of the java sound library.
>How-To-Repeat:
        - start the JavaSoundDemo.jar
        - select the "Capture/Payback" tab
        - press the "Record" button, recording will start
        - press the "Stop" button, recording will stop
        - press the "Record" button, recording WILL NOT start        
>Fix:
        Hopefully a "restart of the sound system" before opening a CaptureLine will 
help (if all corresponded threads will be killed).
        But the implementation classes are not public.

>Release-Note:
>Audit-Trail:

From: Juan Velasco <Juan.Velasco@pandora.be>
To: Alex Zax <alexzax@x-mail.net>
Cc: FreeBSD-gnats-submit@FreeBSD.ORG, sny@x-mail.net,
	vjordana@t-online.de, freebsd-questions@FreeBSD.ORG
Subject: Re: java/46151: Sound Capture works only one time
Date: Tue, 10 Dec 2002 00:43:32 +0100

 --------------070209060506030409040308
 Content-Type: text/plain; charset=us-ascii; format=flowed
 Content-Transfer-Encoding: 7bit
 
 I have a problem too when I try to play sound with java and the new patch1:
 
 jrv@dune> java -version
 java version "1.4.0-internal"
 Java(TM) 2 Runtime Environment, Standard Edition (build 
 1.4.0-internal-jrv_09_dec_2002_03_00)
 Java HotSpot(TM) Client VM (build 1.4.0-internal-jrv_09_dec_2002_03_00, 
 mixed mode)
 
 jrv@dune> java -jar JavaSoundDemo.jar
 
 An unexpected exception has been detected in native code outside the VM.
 Unexpected Signal : 11 occurred at PC=0x29003732
 Function=makeNativeToUnicodeArray+0xDEE
 Library=/usr/local/bsd-sun-jdk1.4.0/lib/i386/libfontmanager.so
 
 Current Java thread:.........
 
 Any clues?
 
 
 
 Alex Zax wrote:
 
 >>Number:         46151
 >>Category:       java
 >>Synopsis:       Sound Capture works only one time
 >>Confidential:   no
 >>Severity:       serious
 >>Priority:       medium
 >>Responsible:    freebsd-java
 >>State:          open
 >>Quarter:        
 >>Keywords:       
 >>Date-Required:
 >>Class:          sw-bug
 >>Submitter-Id:   current-users
 >>Arrival-Date:   Mon Dec 09 15:10:02 PST 2002
 >>Closed-Date:
 >>Last-Modified:
 >>Originator:     Alex Zahovaev
 >>Release:        FreeBSD 4.7-RELEASE i386
 >>Organization:
 >>Environment:
 >>    
 >>
 >System: FreeBSD 4.7-RELEASE FreeBSD 4.7-RELEASE #0: Mon Oct 14 00:50:30 
 >GMT 2002 root@:/usr/src/sys/compile/GENERIC i386
 >javax.sound.sampled
 >Classic VM (build 1.3.1-p7-root-021014-00:03, green threads, nojit)
 >Java HotSpot(TM) Client VM (build 
 >1.4.0-internal-root_08_dec_2002_16_37, mixed mode)
 >JavaSoundDemo.jar
 >Hardware doesn't make sence.
 >  
 >
 >>Description:
 >>    
 >>
 >        A Deadlock happens on the sound capturing (captureLine.read(...)) after a 
 >second open of the Capture Line.
 >        It looks like a DeadLock in a native part of the java sound library.
 >  
 >
 >>How-To-Repeat:
 >>    
 >>
 >        - start the JavaSoundDemo.jar
 >        - select the "Capture/Payback" tab
 >        - press the "Record" button, recording will start
 >        - press the "Stop" button, recording will stop
 >        - press the "Record" button, recording WILL NOT start        
 >  
 >
 >>Fix:
 >>    
 >>
 >        Hopefully a "restart of the sound system" before opening a CaptureLine will 
 >help (if all corresponded threads will be killed).
 >        But the implementation classes are not public.
 >
 >  
 >
 >>Release-Note:
 >>Audit-Trail:
 >>Unformatted:
 >>    
 >>
 >
 >To Unsubscribe: send mail to majordomo@FreeBSD.org
 >with "unsubscribe freebsd-java" in the body of the message
 >
 >
 >  
 >
 
 
 
 --------------070209060506030409040308
 Content-Type: text/html; charset=us-ascii
 Content-Transfer-Encoding: 7bit
 
 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
 <html>
 <head>
   <title></title>
 </head>
 <body>
 I have a problem too when I try to play sound with java and the new patch1:<br>
 <br>
 jrv@dune&gt; java -version<br>
  java version "1.4.0-internal"<br>
  Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0-internal-jrv_09_dec_2002_03_00)<br>
  Java HotSpot(TM) Client VM (build 1.4.0-internal-jrv_09_dec_2002_03_00,
 mixed mode)<br>
 <br>
 jrv@dune&gt; java -jar JavaSoundDemo.jar <br>
 <br>
 An unexpected exception has been detected in native code outside the VM.<br>
 Unexpected Signal : 11 occurred at PC=0x29003732<br>
 Function=makeNativeToUnicodeArray+0xDEE<br>
 Library=/usr/local/bsd-sun-jdk1.4.0/lib/i386/libfontmanager.so<br>
 <br>
 Current Java thread:.........<br>
 <br>
 Any clues?<br>
 <br>
 <br>
 <br>
 Alex Zax wrote:<br>
 <blockquote type="cite"
  cite="mid1039475199.3df521ff9f3ef@www2.x-mail.net">
   <blockquote type="cite">
     <pre wrap="">Number:         46151
 Category:       java
 Synopsis:       Sound Capture works only one time
 Confidential:   no
 Severity:       serious
 Priority:       medium
 Responsible:    freebsd-java
 State:          open
 Quarter:        
 Keywords:       
 Date-Required:
 Class:          sw-bug
 Submitter-Id:   current-users
 Arrival-Date:   Mon Dec 09 15:10:02 PST 2002
 Closed-Date:
 Last-Modified:
 Originator:     Alex Zahovaev
 Release:        FreeBSD 4.7-RELEASE i386
 Organization:
 Environment:
     </pre>
   </blockquote>
   <pre wrap=""><!---->System: FreeBSD 4.7-RELEASE FreeBSD 4.7-RELEASE #0: Mon Oct 14 00:50:30 
 GMT 2002 root@:/usr/src/sys/compile/GENERIC i386
 javax.sound.sampled
 Classic VM (build 1.3.1-p7-root-021014-00:03, green threads, nojit)
 Java HotSpot(TM) Client VM (build 
 1.4.0-internal-root_08_dec_2002_16_37, mixed mode)
 JavaSoundDemo.jar
 Hardware doesn't make sence.
   </pre>
   <blockquote type="cite">
     <pre wrap="">Description:
     </pre>
   </blockquote>
   <pre wrap=""><!---->        A Deadlock happens on the sound capturing (captureLine.read(...)) after a 
 second open of the Capture Line.
         It looks like a DeadLock in a native part of the java sound library.
   </pre>
   <blockquote type="cite">
     <pre wrap="">How-To-Repeat:
     </pre>
   </blockquote>
   <pre wrap=""><!---->        - start the JavaSoundDemo.jar
         - select the "Capture/Payback" tab
         - press the "Record" button, recording will start
         - press the "Stop" button, recording will stop
         - press the "Record" button, recording WILL NOT start        
   </pre>
   <blockquote type="cite">
     <pre wrap="">Fix:
     </pre>
   </blockquote>
   <pre wrap=""><!---->        Hopefully a "restart of the sound system" before opening a CaptureLine will 
 help (if all corresponded threads will be killed).
         But the implementation classes are not public.
 
   </pre>
   <blockquote type="cite">
     <pre wrap="">Release-Note:
 Audit-Trail:
 Unformatted:
     </pre>
   </blockquote>
   <pre wrap=""><!---->
 To Unsubscribe: send mail to <a class="moz-txt-link-abbreviated" href="mailto:majordomo@FreeBSD.org">majordomo@FreeBSD.org</a>
 with "unsubscribe freebsd-java" in the body of the message
 
 
   </pre>
 </blockquote>
 <br>
 <br>
 </body>
 </html>
 
 --------------070209060506030409040308--
 
Responsible-Changed-From-To: freebsd-java->phantom 
Responsible-Changed-By: phantom 
Responsible-Changed-When: Sat Jun 14 03:36:23 PDT 2003 
Responsible-Changed-Why:  
My recent project (done using most recent jdk14 native port) shown that 
problem is also persit in jdk14 too.  I'll be handling this problem soon, 
so assign it to myself. 


http://www.freebsd.org/cgi/query-pr.cgi?pr=46151 
State-Changed-From-To: open->closed 
State-Changed-By: phantom 
State-Changed-When: Mon Nov 10 02:36:46 PST 2003 
State-Changed-Why:  
It's fixed in jdk1.4.2-p5. 


http://www.freebsd.org/cgi/query-pr.cgi?pr=46151 
>Unformatted:
