REW 5.16 on Linux: Exception com.sun.media.sound.DirectAudioDevice cannot be cast to javax.sound.sampled.SourceDataLine - Home Theater Forum and Systems - HomeTheaterShack.com

 
Thread Tools
post #1 of 4 Old 08-24-16, 07:44 AM Thread Starter
New Member
 
Join Date: Aug 2016
Posts: 4
REW 5.16 on Linux: Exception com.sun.media.sound.DirectAudioDevice$DirectClip cannot be cast to javax.sound.sampled.SourceDataLine

REW sometimes works for me if I choose actual audio-devices in preferences (best chances after rebooting and deleting REW config), otherwise it starts but audio output doesn't work: Checking Levels, Calibrating and measuring don't output any sound.
Choosing Pulse Audio Mixer as input and output-device has never worked - i require pulse audio because I have a 2.1-system with active speakers and pulse audio does lfe-crossover.

When output fails, the log contains the same every time:

Spoiler
Aug 24, 2016 2:32:21 PM roomeqwizard.RoomEQ_Wizard main
INFORMATION: REW V5,16 running JRE 1.8.0_91 64-bit on linux 4.4.0-34-generic
Exception in thread "AWT-EventQueue-0" java.lang.ClassCastException: com.sun.media.sound.DirectAudioDevice$DirectClip cannot be cast to javax.sound.sampled.SourceDataLine
at roomeqwizard.JD.B(Unknown Source)
at roomeqwizard.JD.k(Unknown Source)
at roomeqwizard.jC$13.actionPerformed(Unknown Source)
at javax.swing.JComboBox.fireActionEvent(JComboBox.java:1258)
at javax.swing.JComboBox.setSelectedItem(JComboBox.java:586)
at roomeqwizard.JD.A(Unknown Source)
at roomeqwizard.JD.C(Unknown Source)
at roomeqwizard.JD$1.actionPerformed(Unknown Source)
at javax.swing.Timer.fireActionPerformed(Timer.java:313)
at javax.swing.Timer$DoPostEvent.run(Timer.java:245)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:756)
at java.awt.EventQueue.access$500(EventQueue.java:97)
at java.awt.EventQueue$3.run(EventQueue.java:709)
at java.awt.EventQueue$3.run(EventQueue.java:703)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivile ge(ProtectionDomain.java:76)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:726)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.jav a:201)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:1 16)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:1 09)
at java.awt.WaitDispatchSupport$2.run(WaitDispatchSupport.java:184)
at java.awt.WaitDispatchSupport$4.run(WaitDispatchSupport.java:229)
at java.awt.WaitDispatchSupport$4.run(WaitDispatchSupport.java:227)
at java.security.AccessController.doPrivileged(Native Method)
at java.awt.WaitDispatchSupport.enter(WaitDispatchSupport.java:227)
at java.awt.Dialog.show(Dialog.java:1084)
at javax.swing.JOptionPane.showOptionDialog(JOptionPane.java:869)
at roomeqwizard.RoomEQ_Wizard$3.run(Unknown Source)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:756)
at java.awt.EventQueue.access$500(EventQueue.java:97)
at java.awt.EventQueue$3.run(EventQueue.java:709)
at java.awt.EventQueue$3.run(EventQueue.java:703)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivile ge(ProtectionDomain.java:76)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:726)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.jav a:201)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:1 16)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.jav a:105)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
der Papst is offline  
Sponsored Links
Advertisement
 
post #2 of 4 Old 08-26-16, 02:23 AM
REW Author
 
JohnM's Avatar
John
 
Join Date: Apr 2006
Location: UK
Posts: 6,560
Re: REW 5.16 on Linux: Exception com.sun.media.sound.DirectAudioDevice$DirectClip cannot be cast to javax.sound.sampled.SourceDataLine

Looks like a problem in the Pulse Audio mixer. REW is asking for a SourceDataLine but a DirectClip is being returned.
JohnM is offline  
post #3 of 4 Old 08-26-16, 05:59 AM Thread Starter
New Member
 
Join Date: Aug 2016
Posts: 4
Re: REW 5.16 on Linux: Exception com.sun.media.sound.DirectAudioDevice$DirectClip cannot be cast to javax.sound.sampled.SourceDataLine

Quote:
JohnM wrote: View Post
Looks like a problem in the Pulse Audio mixer. REW is asking for a SourceDataLine but a DirectClip is being returned.
Thanks for help

But why does output-device: USB or D2X sometimes work but most often not and pulseaudio-mixer never?
I've read java always uses pulseaudio unless set configured otherwise - i tried seting it to use alsa, doesn't work either (but i don't know if java really tried to use alsa or this post is just wrong)

And is this problem caused by pulseaudio or openjdk?

BTW: sry for my really bad english...
der Papst is offline  
 
post #4 of 4 Old 08-26-16, 11:01 AM
REW Author
 
JohnM's Avatar
John
 
Join Date: Apr 2006
Location: UK
Posts: 6,560
Re: REW 5.16 on Linux: Exception com.sun.media.sound.DirectAudioDevice$DirectClip cannot be cast to javax.sound.sampled.SourceDataLine

I'm afraid I don't know, sorry, but users have reported better results using Oracle's Java builds for Linux rather than OpenJDK.
JohnM is offline  
Reply

Bookmarks

Tags
516 , cast , exception , linux , rew

Quick Reply
Message:
Options

Register Now




PLEASE COMPLETE ALL REQUIRED FIELDS BELOW... THANKS!

REQUIRED FIELDS ON THIS PAGE
YOU MUST COMPLETE ALL OF THESE

Username
Password
Confirm Password
Email Address
Confirm Email Address
Random Question
Random Question #2




User Name:
Password
Please enter a password for your user account. Note that passwords are case-sensitive.

Password:


Confirm Password:
Email Address
PLEASE READ BELOW PRIOR TO ENTERING AN EMAIL ADDRESS!

ATTENTION!

YOU MUST ACTIVATE YOUR ACCOUNT!

Activation requires you reply to an email we will send you after you register... if you do not reply to this email, you will not be able to view certain areas of the forum or certain images... nor will you be able download software.

AN INVALID EMAIL ADDRESS WILL CAUSE YOUR ACCOUNT TO BE DELETED!

See our banned email list here: Banned Email List

We DO NOT respond to spamcop, boxtrapper and spamblocker emails... please add @hometheatershack DOT com to your whitelist prior to registering or you will get nowhere on your registration.


Email Address:
OR

Log-in









Human Verification

In order to verify that you are a human and not a spam bot, please enter the answer into the following box below based on the instructions contained in the graphic.



Thread Tools
Show Printable Version Show Printable Version
Email this Page Email this Page



Posting Rules  
You may post new threads
You may post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML is not allowed!
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

 


For the best viewing experience please update your browser to Google Chrome