From owner-freebsd-java Tue Dec 10 1:50:16 2002 Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3B10F37B401 for ; Tue, 10 Dec 2002 01:50:10 -0800 (PST) Received: from smtp.web.de (smtp01.web.de [217.72.192.180]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4209743EA9 for ; Tue, 10 Dec 2002 01:50:09 -0800 (PST) (envelope-from g.w.k@web.de) Received: from [213.148.149.130] (helo=hunter.muc.macsch.com) by smtp.web.de with esmtp (WEB.DE(Exim) 4.93 #1) id 18Lh1j-00054X-00; Tue, 10 Dec 2002 10:50:07 +0100 Subject: Re: java/46151: Sound Capture works only one time From: "Georg-W. Koltermann" To: Juan Velasco Cc: freebsd-java@FreeBSD.org, Alex Zax In-Reply-To: <200212092350.gB9No3A2071449@freefall.freebsd.org> References: <200212092350.gB9No3A2071449@freefall.freebsd.org> Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Ximian Evolution 1.0.8 Date: 10 Dec 2002 10:50:04 +0100 Message-Id: <1039513807.5810.18.camel@hunter.muc.macsch.com> Mime-Version: 1.0 Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org You may be suffering from a general sound problem in FBSD 4.7R instead of a JAVA problem. Take a look at http://www.freebsd.org/cgi/query-pr.cgi?pr=kern/35004 , the patches in that PR fixed the problem for me. I never tried JAVA with sound, though, I just experienced the general problem with native code sound applications. -- Regards, Georg. Am Di, 2002-12-10 um 00.50 schrieb Juan Velasco: > The following reply was made to PR java/46151; it has been noted by GNATS. > > From: Juan Velasco > To: Alex Zax > 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 > > > > > > > > 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:
>
cite="mid1039475199.3df521ff9f3ef@www2.x-mail.net"> >
>
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-- > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-java" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message