Alice Community

Alice Community (http://www.alice.org/community/index.php)
-   How do I...? (http://www.alice.org/community/forumdisplay.php?f=16)
-   -   Error!!! i imported a sound file and it is not working (http://www.alice.org/community/showthread.php?t=7107)

the man 08-19-2011 07:12 AM

Error!!! i imported a sound file and it is not working
 
Alice version: 2.2 02/10/2011



*****Running World*****

Exception in thread "JMF thread: com.sun.media.PlaybackEngine@a6bcec ( prefetchThread)" java.lang.IllegalArgumentException: Requested value 7.9588003 exceeds allowable maximum value 6.0206.

at javax.sound.sampled.FloatControl.setValue(Unknown Source)

at com.sun.media.sound.DirectAudioDevice$DirectDL$Gain.setValue(Unknown Source)

at com.sun.media.renderer.audio.device.JavaSoundOutput.setGain(JavaSoundOutput.java:157)

at com.sun.media.renderer.audio.AudioRenderer.initDevice(AudioRenderer.java:294)

at com.sun.media.renderer.audio.JavaSoundRenderer.initDevice(JavaSoundRenderer.java:125)

at com.sun.media.renderer.audio.JavaSoundRenderer.open(JavaSoundRenderer.java:91)

at com.sun.media.BasicRendererModule.doPrefetch(BasicRendererModule.java:157)

at com.sun.media.BasicTrackControl.prefetchTrack(BasicTrackControl.java:98)

at com.sun.media.PlaybackEngine.doPrefetch1(PlaybackEngine.java:592)

at com.sun.media.PlaybackEngine.doPrefetch(PlaybackEngine.java:547)

at com.sun.media.PrefetchWorkThread.process(BasicController.java:1430)

at com.sun.media.StateTransitionWorkThread.run(BasicController.java:1339)

*****Stopping World*****

*****Running World*****

*****Stopping World*****

*****Running World*****

*****Stopping World*****

*****Running World*****

Exception in thread "JMF thread: com.sun.media.PlaybackEngine@c2e9d1 ( prefetchThread)" java.lang.IllegalArgumentException: Requested value 7.9588003 exceeds allowable maximum value 6.0206.

at javax.sound.sampled.FloatControl.setValue(Unknown Source)

at com.sun.media.sound.DirectAudioDevice$DirectDL$Gain.setValue(Unknown Source)

at com.sun.media.renderer.audio.device.JavaSoundOutput.setGain(JavaSoundOutput.java:157)

at com.sun.media.renderer.audio.AudioRenderer.initDevice(AudioRenderer.java:294)

at com.sun.media.renderer.audio.JavaSoundRenderer.initDevice(JavaSoundRenderer.java:125)

at com.sun.media.renderer.audio.JavaSoundRenderer.open(JavaSoundRenderer.java:91)

at com.sun.media.BasicRendererModule.doPrefetch(BasicRendererModule.java:157)

at com.sun.media.BasicTrackControl.prefetchTrack(BasicTrackControl.java:98)

at com.sun.media.PlaybackEngine.doPrefetch1(PlaybackEngine.java:592)

at com.sun.media.PlaybackEngine.doPrefetch(PlaybackEngine.java:547)

at com.sun.media.PrefetchWorkThread.process(BasicController.java:1430)

at com.sun.media.StateTransitionWorkThread.run(BasicController.java:1339)

*****Stopping World*****

*****Running World*****

Exception in thread "JMF thread: com.sun.media.PlaybackEngine@1442e06 ( prefetchThread)" java.lang.IllegalArgumentException: Requested value 7.9588003 exceeds allowable maximum value 6.0206.

at javax.sound.sampled.FloatControl.setValue(Unknown Source)

at com.sun.media.sound.DirectAudioDevice$DirectDL$Gain.setValue(Unknown Source)

at com.sun.media.renderer.audio.device.JavaSoundOutput.setGain(JavaSoundOutput.java:157)

at com.sun.media.renderer.audio.AudioRenderer.initDevice(AudioRenderer.java:294)

at com.sun.media.renderer.audio.JavaSoundRenderer.initDevice(JavaSoundRenderer.java:125)

at com.sun.media.renderer.audio.JavaSoundRenderer.open(JavaSoundRenderer.java:91)

at com.sun.media.BasicRendererModule.doPrefetch(BasicRendererModule.java:157)

at com.sun.media.BasicTrackControl.prefetchTrack(BasicTrackControl.java:98)

at com.sun.media.PlaybackEngine.doPrefetch1(PlaybackEngine.java:592)

at com.sun.media.PlaybackEngine.doPrefetch(PlaybackEngine.java:547)

at com.sun.media.PrefetchWorkThread.process(BasicController.java:1430)

at com.sun.media.StateTransitionWorkThread.run(BasicController.java:1339)

legolizard 08-19-2011 07:59 AM

Alice is not a music lover and is very fickle about what she likes to listen to. :p May I have the file I maybe I can fix it. :) Just put in a Zip file .

the man 08-23-2011 04:44 PM

1 Attachment(s)
at first Alice played my video with this sound clip but then suddenly I got the "ERROR" message. Anyways, here you go

legolizard 08-23-2011 05:05 PM

1 Attachment(s)
Ta da!:)

the man 08-25-2011 09:41 AM

Thank you.

Unfortunately I couldn´t get it to work

Error during simulation.




Alice version: 2.2 02/10/2011



Throwable that caused the error:

java.lang.IllegalArgumentException: Requested value 7.9588003 exceeds allowable maximum value 6.0206.

at javax.sound.sampled.FloatControl.setValue(Unknown Source)

at com.sun.media.sound.DirectAudioDevice$DirectDL$Gain.setValue(Unknown Source)

at com.sun.media.renderer.audio.device.JavaSoundOutput.setGain(JavaSoundOutput.java:157)

at com.sun.media.renderer.audio.JavaSoundRenderer$GCA.setLevel(JavaSoundRenderer.java:202)

at edu.cmu.cs.stage3.media.jmfmedia.Player.updateVolumeLevel(Player.java:104)

at edu.cmu.cs.stage3.media.jmfmedia.Player.setVolumeLevel(Player.java:111)

at edu.cmu.cs.stage3.alice.core.response.SoundResponse$RuntimeSoundResponse.updateVolumeLevel(SoundResponse.java:94)

at edu.cmu.cs.stage3.alice.core.response.SoundResponse$RuntimeSoundResponse.prologue(SoundResponse.java:154)

at edu.cmu.cs.stage3.alice.core.response.DoInOrder$RuntimeDoInOrder.childPrologueIfNecessary(DoInOrder.java:53)

at edu.cmu.cs.stage3.alice.core.response.DoInOrder$RuntimeDoInOrder.update(DoInOrder.java:100)

at edu.cmu.cs.stage3.alice.core.response.CallToUserDefinedResponse$RuntimeCallToUserDefinedResponse.update(CallToUserDefinedResponse.java:89)

at edu.cmu.cs.stage3.alice.core.behavior.TriggerBehavior.internalSchedule(TriggerBehavior.java:70)

at edu.cmu.cs.stage3.alice.core.Behavior.schedule(Behavior.java:233)

at edu.cmu.cs.stage3.alice.core.Sandbox.scheduleBehaviors(Sandbox.java:70)

at edu.cmu.cs.stage3.alice.core.World.scheduleBehaviors(World.java:457)

at edu.cmu.cs.stage3.alice.core.World.schedule(World.java:499)

at edu.cmu.cs.stage3.alice.core.clock.DefaultClock.schedule(DefaultClock.java:99)

at edu.cmu.cs.stage3.alice.authoringtool.AuthoringTool$8.run(AuthoringTool.java:710)

at edu.cmu.cs.stage3.alice.authoringtool.util.DefaultScheduler.simulateOnce(DefaultScheduler.java:115)

at edu.cmu.cs.stage3.alice.authoringtool.util.DefaultScheduler.run(DefaultScheduler.java:76)

at edu.cmu.cs.stage3.scheduler.AbstractScheduler.run(AbstractScheduler.java:45)

at java.awt.event.InvocationEvent.dispatch(Unknown Source)

at java.awt.EventQueue.dispatchEvent(Unknown Source)

at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)

at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)

at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)

at java.awt.Dialog$1.run(Unknown Source)

at java.awt.Dialog$3.run(Unknown Source)

at java.security.AccessController.doPrivileged(Native Method)

at java.awt.Dialog.show(Unknown Source)

at java.awt.Component.show(Unknown Source)

at java.awt.Component.setVisible(Unknown Source)

at java.awt.Window.setVisible(Unknown Source)

at java.awt.Dialog.setVisible(Unknown Source)

at edu.cmu.cs.stage3.swing.DialogManager.showModalDialog(DialogManager.java:61)

at edu.cmu.cs.stage3.swing.DialogManager.showDialog(DialogManager.java:131)

at edu.cmu.cs.stage3.alice.authoringtool.AuthoringTool.play(AuthoringTool.java:5182)

at edu.cmu.cs.stage3.alice.authoringtool.Actions$16.actionPerformed(Actions.java:177)

at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)

at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)

at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)

at javax.swing.DefaultButtonModel.setPressed(Unknown Source)

at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)

at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)

at java.awt.Component.processMouseEvent(Unknown Source)

at javax.swing.JComponent.processMouseEvent(Unknown Source)

at java.awt.Component.processEvent(Unknown Source)

at java.awt.Container.processEvent(Unknown Source)

at java.awt.Component.dispatchEventImpl(Unknown Source)

at java.awt.Container.dispatchEventImpl(Unknown Source)

at java.awt.Component.dispatchEvent(Unknown Source)

at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)

at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)

at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)

at java.awt.Container.dispatchEventImpl(Unknown Source)

at java.awt.Window.dispatchEventImpl(Unknown Source)

at java.awt.Component.dispatchEvent(Unknown Source)

at java.awt.EventQueue.dispatchEvent(Unknown Source)

at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)

at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)

at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)

at java.awt.EventDispatchThread.pumpEvents(Unknown Source)

at java.awt.EventDispatchThread.pumpEvents(Unknown Source)

at java.awt.EventDispatchThread.run(Unknown Source)

legolizard 08-25-2011 03:02 PM

Strange. Let me test it out I might have uploaded the wrong file...

Edit: Ah. I see the problem; update your version of Alice and then it [I]should [/I]work.

aikmin 08-29-2011 02:36 AM

This bug has been fixed in the new August 5th update.


All times are GMT -5. The time now is 09:12 AM.

Copyright ©2019, Carnegie Mellon University
Alice 2.x © 1999-2012, Alice 3.x © 2008-2012, Carnegie Mellon University. All rights reserved.