Author Topic: Windows exception error on Encoder Enable  (Read 1732 times)

DJones

  • New User

  • Offline
  • *
  • 41
Windows exception error on Encoder Enable
« on: August 03, 2014, 05:27:16 PM »
While re-doing the VPS, I've been running RadioDJ on a pc at home to keep the stream up. I was about to do a test run before switching back over but encountered an error when trying to enable the encoders. Quick rundown of setup: Win Server 2012, newest SHOUTcast DNAS (2.2.2) setup temporarily as test (non-public). Setup the encoders the other day and saved, then attempted to enable them today to do a test run.

I tick the checkbox for Enable and hit Ok, then this error pops up (and encoders stay disabled):


Here is the full text of the exception:
Code: [Select]
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.InvalidCastException: Conversion from string "" to type 'Integer' is not valid. ---> System.FormatException: Input string was not in a correct format.
   at Microsoft.VisualBasic.CompilerServices.Conversions.ParseDouble(String Value, NumberFormatInfo NumberFormat)
   at Microsoft.VisualBasic.CompilerServices.Conversions.ToInteger(String Value)
   --- End of inner exception stack trace ---
   at Microsoft.VisualBasic.CompilerServices.Conversions.ToInteger(String Value)
   at Plugin_Encoder.EncoderControl.StartEncoder(Int32 EncoderID)
   at Plugin_Encoder.FormEncoderDetails.ButAddClick(Object sender, EventArgs e)
   at System.Windows.Forms.Control.OnClick(EventArgs e)
   at System.Windows.Forms.Button.OnClick(EventArgs e)
   at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
   at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ButtonBase.WndProc(Message& m)
   at System.Windows.Forms.Button.WndProc(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Loaded Assemblies **************
mscorlib
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.8000 (FX35W81RTMGDR.050727-8000)
    CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
RadioDJ
    Assembly Version: 1.7.2.0
    Win32 Version: 1.7.2.0
    CodeBase: file:///C:/RadioDJ/RadioDJ.exe
----------------------------------------
Microsoft.VisualBasic
    Assembly Version: 8.0.0.0
    Win32 Version: 8.0.50727.7905 (win9rel.050727-7900)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/Microsoft.VisualBasic/8.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dll
----------------------------------------
System
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.7905 (win9rel.050727-7900)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Windows.Forms
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.7905 (win9rel.050727-7900)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System.Drawing
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.7905 (win9rel.050727-7900)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System.Runtime.Remoting
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.8003 (FX35W81RTMGDR.050727-8000)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Runtime.Remoting/2.0.0.0__b77a5c561934e089/System.Runtime.Remoting.dll
----------------------------------------
PluginInterface
    Assembly Version: 1.0.0.0
    Win32 Version: 1.2.0.3
    CodeBase: file:///C:/RadioDJ/PluginInterface.DLL
----------------------------------------
System.Data
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.7905 (win9rel.050727-7900)
    CodeBase: file:///C:/Windows/assembly/GAC_32/System.Data/2.0.0.0__b77a5c561934e089/System.Data.dll
----------------------------------------
MdiTabControl
    Assembly Version: 1.1.4874.26969
    Win32 Version: 1.1.4874.26969
    CodeBase: file:///C:/RadioDJ/MdiTabControl.DLL
----------------------------------------
System.Xml
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.7905 (win9rel.050727-7900)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
System.Configuration
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.7905 (win9rel.050727-7900)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
Devart.Data.MySql
    Assembly Version: 6.60.268.0
    Win32 Version: 6.60.268.0
    CodeBase: file:///C:/RadioDJ/Devart.Data.MySql.DLL
----------------------------------------
Devart.Data
    Assembly Version: 5.0.367.0
    Win32 Version: 5.0.367.0
    CodeBase: file:///C:/RadioDJ/Devart.Data.DLL
----------------------------------------
System.Transactions
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.7905 (win9rel.050727-7900)
    CodeBase: file:///C:/Windows/assembly/GAC_32/System.Transactions/2.0.0.0__b77a5c561934e089/System.Transactions.dll
----------------------------------------
System.EnterpriseServices
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.7905 (win9rel.050727-7900)
    CodeBase: file:///C:/Windows/assembly/GAC_32/System.EnterpriseServices/2.0.0.0__b03f5f7f11d50a3a/System.EnterpriseServices.dll
----------------------------------------
VU_MeterLibrary
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///C:/RadioDJ/VU_MeterLibrary.DLL
----------------------------------------
JCS.Components.NeroBar
    Assembly Version: 1.3.0.0
    Win32 Version: 1.3.0.0
    CodeBase: file:///C:/RadioDJ/JCS.Components.NeroBar.DLL
----------------------------------------
Bass.Net
    Assembly Version: 2.4.10.3
    Win32 Version: 2.4.10.3
    CodeBase: file:///C:/RadioDJ/Bass.Net.DLL
----------------------------------------
Bass.Net
    Assembly Version: 2.4.9.1
    Win32 Version: 2.4.9.1
    CodeBase: file:///C:/RadioDJ/Plugins/Bass.Net.dll
----------------------------------------
Plugin_AuxPlayers
    Assembly Version: 2.5.0.2
    Win32 Version: 2.5.0.2
    CodeBase: file:///C:/RadioDJ/Plugins/Plugin_AuxPlayers.dll
----------------------------------------
Plugin_Carts
    Assembly Version: 2.7.1.0
    Win32 Version: 2.7.1.0
    CodeBase: file:///C:/RadioDJ/Plugins/Plugin_Carts.dll
----------------------------------------
Plugin_Encoder
    Assembly Version: 1.0.5265.41637
    Win32 Version: 2.0.0.0
    CodeBase: file:///C:/RadioDJ/Plugins/Plugin_Encoder.dll
----------------------------------------
Plugin_History
    Assembly Version: 3.1.0.0
    Win32 Version: 3.1.0.0
    CodeBase: file:///C:/RadioDJ/Plugins/Plugin_History.dll
----------------------------------------
Plugin_PlayingInfo
    Assembly Version: 3.1.0.0
    Win32 Version: 3.1.0.0
    CodeBase: file:///C:/RadioDJ/Plugins/Plugin_PlayingInfo.dll
----------------------------------------
Plugin_Playlist
    Assembly Version: 3.5.4.0
    Win32 Version: 3.5.4.0
    CodeBase: file:///C:/RadioDJ/Plugins/Plugin_Playlist.dll
----------------------------------------
Plugin_PlaylistBuilder
    Assembly Version: 3.2.0.0
    Win32 Version: 3.2.0.0
    CodeBase: file:///C:/RadioDJ/Plugins/Plugin_PlaylistBuilder.dll
----------------------------------------
Plugin_Requests
    Assembly Version: 3.4.0.0
    Win32 Version: 3.4.0.0
    CodeBase: file:///C:/RadioDJ/Plugins/Plugin_Requests.dll
----------------------------------------
Plugin_SayTime
    Assembly Version: 3.6.0.0
    Win32 Version: 3.6.0.0
    CodeBase: file:///C:/RadioDJ/Plugins/Plugin_SayTime.dll
----------------------------------------
Plugin_Search
    Assembly Version: 3.1.0.0
    Win32 Version: 3.1.0.0
    CodeBase: file:///C:/RadioDJ/Plugins/Plugin_Search.dll
----------------------------------------
Plugin_SongDetails
    Assembly Version: 3.0.0.0
    Win32 Version: 3.0.0.0
    CodeBase: file:///C:/RadioDJ/Plugins/Plugin_SongDetails.dll
----------------------------------------
Plugin_SoundProcessing
    Assembly Version: 3.0.0.0
    Win32 Version: 3.0.0.0
    CodeBase: file:///C:/RadioDJ/Plugins/Plugin_SoundProcessing.dll
----------------------------------------
Plugin_TracksManager
    Assembly Version: 3.2.0.0
    Win32 Version: 3.2.0.0
    CodeBase: file:///C:/RadioDJ/Plugins/Plugin_TracksManager.dll
----------------------------------------
Plugin_TTS
    Assembly Version: 2.1.0.0
    Win32 Version: 2.1.0.0
    CodeBase: file:///C:/RadioDJ/Plugins/Plugin_TTS.dll
----------------------------------------
Plugin_Utilities
    Assembly Version: 3.4.0.0
    Win32 Version: 3.4.0.0
    CodeBase: file:///C:/RadioDJ/Plugins/Plugin_Utilities.dll
----------------------------------------
System.Speech
    Assembly Version: 3.0.0.0
    Win32 Version: 3.0.6920.1205 (lh_tools_devdiv_wpf_sp1qfe.080214-0334)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Speech/3.0.0.0__31bf3856ad364e35/System.Speech.dll
----------------------------------------
SPB
    Assembly Version: 1.0.3529.753
    Win32 Version: 1.0.3529.753
    CodeBase: file:///C:/RadioDJ/SPB.DLL
----------------------------------------

************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.

For example:

<configuration>
    <system.windows.forms jitDebugging="true" />
</configuration>

When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.



DJones

  • New User

  • Offline
  • *
  • 41
Re: Windows exception error on Encoder Enable
« Reply #1 on: August 03, 2014, 07:36:13 PM »
UPDATE 1: I figured out why it was throwing that exception. I didn't specify the Sample Rate. So apparently, you can not specify the rate on Win2k3 but need to on 2012.

UPDATE 2: It's looking like RadioDJ works just fine when starting everything but as soon as I disconnect (whether it's through RDP or VNC) RadioDJ freezes, but not completely. The program still responds to button presses, like opening the options (and clocks/countdowns keep running), but the audio freezes and will not continue playing at all unless I shut the program down and restart it. But as soon as I disconnect from the remote session, the audio freezes again. I'm not seeing any errors in the Event Viewer. The results are the same whether connecting via RDP (and RadioDJ uses remote audio when starting) or via VNC (using VAC for audio).

Any ideas?

PS. Forgot to mention in this post that it's v1.7.2

Sleurhutje

  • New User

  • Offline
  • *
  • 23
Re: Windows exception error on Encoder Enable
« Reply #2 on: August 09, 2014, 11:02:12 PM »
Hi,

The update on the first problem about the sample rate not entered, works fine for mee too.  :ok:

About the second problem, RadioDJ uses soundcard hardware on a very specific way. When using remote audio on RDP, VNC or TeamViewer, the audio is redirected to the local computer by default. This causes lost of hardware control on the host computer. Some things like TTS is redirected by Windows itself and can be heard on the remote computer or stays on the local host. When restarting RadioDJ, the new sound system is initialized using the remote hardware. When disconnecting the session, these settings are incorrect causing the sound system to crash again. You can try to set audio to leave on the remote computer (host, running RadioDJ). E.g. in Microsoft RDP on the Local Resources tab, at the Sound Settings section, you can set the option to play sounds from the remote computer on the remote instead of local computer. Perhaps this might solve your problem.


Jeroen