Bug 201502 - org.eclipse.sound.feature makes Eclipse unusable if soundcard busy
Summary: org.eclipse.sound.feature makes Eclipse unusable if soundcard busy
Status: RESOLVED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.4   Edit
Hardware: PC Linux
: P5 normal (vote)
Target Milestone: 3.4 M2   Edit
Assignee: Platform-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: contributed
Depends on:
Blocks:
 
Reported: 2007-08-28 23:35 EDT by Nick Boldt CLA
Modified: 2007-08-29 13:03 EDT (History)
3 users (show)

See Also:


Attachments
Patch to ignore potential exceptions that are thrown by AudioLine.getLine(Info). (2.76 KB, patch)
2007-08-29 12:31 EDT, Remy Suen CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Nick Boldt CLA 2007-08-28 23:35:22 EDT
Using Linux GTK Eclipse 3.3 + org.eclipse.sound.feature_1.0.0.v200706261618, and while running XMMS (playing A Perfect Circle, if that matters ;-)), I get many (like 100s) of "Job Success" errors (in groups of 2 - 6 per dialog) like the attached one:

NLS missing message: SoundJob_0 in: org.eclipse.internal.sound.messagesPCM_SIGNED 44100.0 Hz, 16 bit, stereo, 4 bytes/frame, little-endian
Audio Device Unavailable

Ultimately, had to `killall eclipse java`.

Could Eclipse just throw away these these errors, if the soundcard is busy / not available?
Comment 1 Nick Boldt CLA 2007-08-28 23:39:57 EDT
Interesting footnote. 

I had Window > Preferences > Server > Audio > [ ] Enable sounds (unchecked) after I killed and restarted Eclipse. So, if this feature is not being used, why is it complaining about not having access to the soundcard? 

Or, did not getting the soundcard disable it automatically, along with the "success" errors?

Anyway, I think it's cool you guys are exploring the addition of sound to Eclipse. It's probably my wonky hardware (Thinkpad T60p) that's to blame. ;-)
Comment 2 Kim Horne CLA 2007-08-29 12:09:53 EDT
I think the problem is that you're playing A Perfect Circle instead of Tool.  Please upgrade to Tool and reopen if the problem persists.
Comment 3 Kim Horne CLA 2007-08-29 12:11:29 EDT
Just kidding.  ;)

I'll look into fixing this but for the record I the Server->Audio preferences aren't ours.  I'm not sure who's contributing that.
Comment 4 Kim Horne CLA 2007-08-29 12:12:27 EDT
Putting the priority a bit lower as this is just a problem in our incubator.  
Comment 5 Remy Suen CLA 2007-08-29 12:31:48 EDT
Created attachment 77272 [details]
Patch to ignore potential exceptions that are thrown by AudioLine.getLine(Info).

If the line can't be retrieved for whatever reasons, we'll just ignore the error and return instead of trying to play any sounds.

This patch also fixes the NLS issue with the missing message.
Comment 6 Kim Horne CLA 2007-08-29 12:41:48 EDT
Fix applied to HEAD and the features and update site have been rebuilt.  Thanks Remy!
Comment 7 Nick Boldt CLA 2007-08-29 13:03:45 EDT
Wow, that was fast! Thanks!