Announcement

Collapse
No announcement yet.

[FIXED/124] Unhandled exception during library generation

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • [FIXED/124] Unhandled exception during library generation

    On the initial startup I get an unhandled exception error during the generation of the music library.

    Here are the details:

    ************** Exception Text **************
    System.ArgumentNullException: String reference not set to an instance of a String.
    Parameter name: s
    at System.Text.Encoding.GetBytes(String s)
    at FreewayUltra.frmSkin.b64Encode(String str)
    at FreewayUltra.frmSkin.GenerateLibrary()
    at FreewayUltra.frmSkin.GenerateHandler(Object o, EventArgs e)
    at FreewayUltra.frmSkin.ParseClick(String[] command, Int32 x)
    at FreewayUltra.frmSkin.frmSkin_MouseDown(Object sender, MouseEventArgs e)
    at System.Windows.Forms.Control.OnMouseDown(MouseEven tArgs e)
    at System.Windows.Forms.Control.WmMouseDown(Message& m, MouseButtons button, Int32 clicks)
    at System.Windows.Forms.Control.WndProc(Message& m)
    at System.Windows.Forms.ScrollableControl.WndProc(Mes sage& m)
    at System.Windows.Forms.ContainerControl.WndProc(Mess age& m)
    at System.Windows.Forms.Form.WndProc(Message& m)
    at System.Windows.Forms.Control.ControlNativeWindow.O nMessage(Message& m)
    at System.Windows.Forms.Control.ControlNativeWindow.W ndProc(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.42 (RTM.050727-4200)
    CodeBase: file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
    ----------------------------------------
    FreewayUltra
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///C:/Documents%20and%20Settings/Sean%20Behm/Desktop/Freeway/FreewayUltra.exe
    ----------------------------------------
    System.Windows.Forms
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.42 (RTM.050727-4200)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
    ----------------------------------------
    System
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.42 (RTM.050727-4200)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
    ----------------------------------------
    System.Drawing
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.42 (RTM.050727-4200)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
    ----------------------------------------
    System.Xml
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.42 (RTM.050727-4200)
    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.42 (RTM.050727-4200)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
    ----------------------------------------
    -Custom Widebody 332i-
    -Custom HRE wheels-

    -Focal Audio:-
    Alpine PXA-H701+C701-
    -(2)Focal 33KX-
    -(2)Focal KP165 K3P Kits-
    -(2)Focal FP 1.800 Amps-
    -(2)Focal FP 2.150 Amps-
    -(3)Xenarc 7"TSV Touch LCD’s-

    -PROJECT DETAILS-

  • #2
    Same problem here..

    /Me.

    Comment


    • #3
      Try the new build (122), and please make remaining reports for this bug here. Do not post duplicate threads.
      Offical Freeway Subforum
      Official Freeway Website

      Comment


      • #4
        Latest build (0.7.212) gives me this when trying to browse music

        Code:
        ************** Exception Text **************
        System.InvalidOperationException: Failed to compare two elements in the array. ---> System.NullReferenceException: Object reference not set to an instance of an object.
           at FreewayUltra.SortClass.System.Collections.IComparer.Compare(Object x, Object y)
           at System.Array.SorterObjectArray.QuickSort(Int32 left, Int32 right)
           --- End of inner exception stack trace ---
           at System.Array.SorterObjectArray.QuickSort(Int32 left, Int32 right)
           at System.Array.Sort(Array keys, Array items, Int32 index, Int32 length, IComparer comparer)
           at System.Collections.ArrayList.Sort(Int32 index, Int32 count, IComparer comparer)
           at System.Collections.ArrayList.Sort(IComparer comparer)
           at FreewayUltra.frmSkin.ParseClick(String[] command, Int32 x)
           at FreewayUltra.frmSkin.frmSkin_MouseDown(Object sender, MouseEventArgs e)
           at System.Windows.Forms.Control.OnMouseDown(MouseEventArgs e)
           at System.Windows.Forms.Control.WmMouseDown(Message& m, MouseButtons button, Int32 clicks)
           at System.Windows.Forms.Control.WndProc(Message& m)
           at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
           at System.Windows.Forms.ContainerControl.WndProc(Message& m)
           at System.Windows.Forms.Form.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.42 (RTM.050727-4200)
            CodeBase: file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
        ----------------------------------------
        FreewayUltra
            Assembly Version: 1.0.0.0
            Win32 Version: 1.0.0.0
            CodeBase: file:///C:/Documents%20and%20Settings/User/Skrivbord/FreewayUltra/FreewayUltra.exe
        ----------------------------------------
        System.Windows.Forms
            Assembly Version: 2.0.0.0
            Win32 Version: 2.0.50727.42 (RTM.050727-4200)
            CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
        ----------------------------------------
        System
            Assembly Version: 2.0.0.0
            Win32 Version: 2.0.50727.42 (RTM.050727-4200)
            CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
        ----------------------------------------
        System.Drawing
            Assembly Version: 2.0.0.0
            Win32 Version: 2.0.50727.42 (RTM.050727-4200)
            CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
        ----------------------------------------
        System.Xml
            Assembly Version: 2.0.0.0
            Win32 Version: 2.0.50727.42 (RTM.050727-4200)
            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.42 (RTM.050727-4200)
            CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.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.
        EDIT:

        After app restart it seems to work!

        Thou, I'm still having this issue with freeway doing something bad to Gates after a few seconds of playback. It results in the standard windows error popup...
        Attached Files
        My carputer

        Old one

        Comment


        • #5
          Alright, pretty sure the old library code was ****. Try the new build (213).
          Offical Freeway Subforum
          Official Freeway Website

          Comment


          • #6
            library.zip

            After successfuly building the library, when pressing show all songs I get:
            Code:
            See the end of this message for details on invoking 
            just-in-time (JIT) debugging instead of this dialog box.
             
            ************** Exception Text **************
            System.InvalidOperationException: Failed to compare two elements in the array. ---> System.NullReferenceException: Object reference not set to an instance of an object.
               at FreewayUltra.SortClass.System.Collections.IComparer.Compare(Object x, Object y)
               at System.Array.SorterObjectArray.QuickSort(Int32 left, Int32 right)
               --- End of inner exception stack trace ---
               at System.Array.SorterObjectArray.QuickSort(Int32 left, Int32 right)
               at System.Array.Sort(Array keys, Array items, Int32 index, Int32 length, IComparer comparer)
               at System.Collections.ArrayList.Sort(Int32 index, Int32 count, IComparer comparer)
               at System.Collections.ArrayList.Sort(IComparer comparer)
               at FreewayUltra.frmSkin.ParseClick(String[] command, Int32 x)
               at FreewayUltra.frmSkin.frmSkin_MouseDown(Object sender, MouseEventArgs e)
               at System.Windows.Forms.Control.OnMouseDown(MouseEventArgs e)
               at System.Windows.Forms.Control.WmMouseDown(Message& m, MouseButtons button, Int32 clicks)
               at System.Windows.Forms.Control.WndProc(Message& m)
               at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
               at System.Windows.Forms.ContainerControl.WndProc(Message& m)
               at System.Windows.Forms.Form.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.42 (RTM.050727-4200)
                CodeBase: file:///C:/WINNT/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
            ----------------------------------------
            FreewayUltra
                Assembly Version: 1.0.0.0
                Win32 Version: 1.0.0.0
                CodeBase: file:///C:/Download/FreeWayUltra/FreewayUltra.exe
            ----------------------------------------
            System.Windows.Forms
                Assembly Version: 2.0.0.0
                Win32 Version: 2.0.50727.42 (RTM.050727-4200)
                CodeBase: file:///C:/WINNT/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
            ----------------------------------------
            System
                Assembly Version: 2.0.0.0
                Win32 Version: 2.0.50727.42 (RTM.050727-4200)
                CodeBase: file:///C:/WINNT/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
            ----------------------------------------
            System.Drawing
                Assembly Version: 2.0.0.0
                Win32 Version: 2.0.50727.42 (RTM.050727-4200)
                CodeBase: file:///C:/WINNT/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
            ----------------------------------------
            System.Xml
                Assembly Version: 2.0.0.0
                Win32 Version: 2.0.50727.42 (RTM.050727-4200)
                CodeBase: file:///C:/WINNT/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.42 (RTM.050727-4200)
                CodeBase: file:///C:/WINNT/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.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.

            Then After restarting FW with the built library.xml file I get:
            Code:
            See the end of this message for details on invoking 
            just-in-time (JIT) debugging instead of this dialog box.
             
            ************** Exception Text **************
            System.NullReferenceException: Object reference not set to an instance of an object.
               at FreewayUltra.frmSkin.frmSkin_Shown(Object sender, EventArgs e)
               at System.Windows.Forms.Form.OnShown(EventArgs e)
               at System.Windows.Forms.Form.CallShownEvent()
               at System.Windows.Forms.Control.InvokeMarshaledCallbackDo(ThreadMethodEntry tme)
               at System.Windows.Forms.Control.InvokeMarshaledCallbackHelper(Object obj)
               at System.Threading.ExecutionContext.runTryCode(Object userData)
               at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)
               at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
               at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
               at System.Windows.Forms.Control.InvokeMarshaledCallback(ThreadMethodEntry tme)
               at System.Windows.Forms.Control.InvokeMarshaledCallbacks()
             
             
            ************** Loaded Assemblies **************
            mscorlib
                Assembly Version: 2.0.0.0
                Win32 Version: 2.0.50727.42 (RTM.050727-4200)
                CodeBase: file:///C:/WINNT/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
            ----------------------------------------
            FreewayUltra
                Assembly Version: 1.0.0.0
                Win32 Version: 1.0.0.0
                CodeBase: file:///C:/Download/FreeWayUltra/FreewayUltra.exe
            ----------------------------------------
            System.Windows.Forms
                Assembly Version: 2.0.0.0
                Win32 Version: 2.0.50727.42 (RTM.050727-4200)
                CodeBase: file:///C:/WINNT/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
            ----------------------------------------
            System
                Assembly Version: 2.0.0.0
                Win32 Version: 2.0.50727.42 (RTM.050727-4200)
                CodeBase: file:///C:/WINNT/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
            ----------------------------------------
            System.Drawing
                Assembly Version: 2.0.0.0
                Win32 Version: 2.0.50727.42 (RTM.050727-4200)
                CodeBase: file:///C:/WINNT/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
            ----------------------------------------
            System.Xml
                Assembly Version: 2.0.0.0
                Win32 Version: 2.0.50727.42 (RTM.050727-4200)
                CodeBase: file:///C:/WINNT/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.42 (RTM.050727-4200)
                CodeBase: file:///C:/WINNT/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.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.
            /Me.

            Comment


            • #7
              Cross your fingers, download 214, and start from scratch (do not use old library.xml).
              Offical Freeway Subforum
              Official Freeway Website

              Comment


              • #8
                Originally posted by oeri View Post
                Cross your fingers, download 214, and start from scratch (do not use old library.xml).
                Fixed. Thanks...I am really liking this front end so far.
                -Custom Widebody 332i-
                -Custom HRE wheels-

                -Focal Audio:-
                Alpine PXA-H701+C701-
                -(2)Focal 33KX-
                -(2)Focal KP165 K3P Kits-
                -(2)Focal FP 1.800 Amps-
                -(2)Focal FP 2.150 Amps-
                -(3)Xenarc 7"TSV Touch LCD’s-

                -PROJECT DETAILS-

                Comment


                • #9
                  library.zip

                  Now generating the music library works fine, BUT:

                  1) Couldn't you add a newline character after every "/>" in library.xml to make it human readable? also first line of library.xml should be:
                  Code:
                  <?xml version="1.0" encoding="UTF-16" ?>
                  2) You still have problems with special characters:
                  some files information are still not saved correctly in the library:
                  d:\mp3\house\atb\04 zwischenstück.mp3
                  d:\mp3\goa trance\kox box\the great unknown\09 - doppelgänger.mp3
                  d:\mp3\chillout - ambient\jaia - blue energy\06 - maï maï.mp3
                  d:\mp3\80's\a-ha - the hits of\10 - i´ve been losing you.mp3

                  Thanks,
                  /Me.

                  Comment


                  • #10
                    Originally posted by Pishaa View Post
                    1) Couldn't you add a newline character after every "/>" in library.xml to make it human readable?
                    I'm not too concerned about this. People really shouldn't be digging around the library file anyway.

                    2) You still have problems with special characters:
                    some files information are still not saved correctly in the library:
                    I have no solution for this. C# gets really funny with international characters, and I have no idea why. If you have any suggestions, let me know.
                    Offical Freeway Subforum
                    Official Freeway Website

                    Comment

                    Working...
                    X