ScriptUO

Scripting Resources & Utilities => ScriptUO Application => Bug discussion => Topic started by: Biza on November 18, 2015, 05:14:25 PM

Title: Unhandled exception
Post by: Biza on November 18, 2015, 05:14:25 PM
Getting a error whenever I try to start suo app, get the error as soon as the program launches.

Finding it very difficult to script without this insanely awesome program.

Not sure what changed on my PC. I ran it one day and the next I got this.

Spoiler: show
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.IndexOutOfRangeException: Index was outside the bounds of the array.
   at ᝈ.ᡙᙊ(Byte[] ᙂ)
   at ᝈ.ᝮ(Process p)
   at ᝈ.គ()
   at ᝈ..ctor(RichTextBox debug)
   at ᙘ.ᙢ()
   at ᡪᙂ.ᙢ()
   at ᥾.ᣈᙊ(Object ᙂ, EventArgs ᙄ)
   at System.Windows.Forms.Timer.OnTick(EventArgs e)
   at System.Windows.Forms.Timer.TimerNativeWindow.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.5485 (Win7SP1GDR.050727-5400)
    CodeBase: file:///C:/Windows/Microsoft.NET/Framework64/v2.0.50727/mscorlib.dll
----------------------------------------
ScriptUO
    Assembly Version: 1.0.3592.26639
    Win32 Version: 1.0.3592.26639
    CodeBase: file:///C:/Users/Matt/Desktop/ScriptUO_v239.exe
----------------------------------------
System
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.5485 (Win7SP1GDR.050727-5400)
    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.5491 (Win7SP1GDR.050727-5400)
    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.5492 (Win7SP1GDR.050727-5400)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
zip
    Assembly Version: 0.0.0.0
    Win32 Version: 1.0.3592.26639
    CodeBase: file:///C:/Users/Matt/Desktop/ScriptUO_v239.exe
----------------------------------------
ScriptUO
    Assembly Version: 1.0.3592.26639
    Win32 Version: 1.0.3592.26639
    CodeBase: file:///C:/Users/Matt/Desktop/ScriptUO_v239.exe
----------------------------------------
Microsoft.VisualBasic
    Assembly Version: 8.0.0.0
    Win32 Version: 8.0.50727.5483 (Win7SP1GDR.050727-5400)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/Microsoft.VisualBasic/8.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dll
----------------------------------------
ICSharpCode.TextEditor
    Assembly Version: 0.0.0.0
    Win32 Version: 1.0.3592.26639
    CodeBase: file:///C:/Users/Matt/Desktop/ScriptUO_v239.exe
----------------------------------------
System.Xml
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.5485 (Win7SP1GDR.050727-5400)
    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.5483 (Win7SP1GDR.050727-5400)
    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.
Title: Re: Unhandled exception
Post by: TrailMyx on November 18, 2015, 06:40:35 PM
Try running it before you start UO.  Also try moving the executable to a different location.  Every once in a while I get a strange exception as well.
Title: Re: Unhandled exception
Post by: Crome969 on November 18, 2015, 11:38:13 PM
How about we fix it? :D
Title: Re: Unhandled exception
Post by: TrailMyx on November 19, 2015, 06:31:34 AM
How about we fix it? :D

I doubt it will actually compile at the moment.  :)  It's shocking to realize I wrote this back in 2008.
Title: Re: Unhandled exception
Post by: Biza on November 19, 2015, 06:44:30 AM
It seems it wont run with UO running at all, Guess I need to finally order a new battery for my 24/7 laptop anyway.
Title: Re: Unhandled exception
Post by: TrailMyx on November 19, 2015, 06:50:45 AM
How do you launch UO?  Perhaps you try launching differently and see if that makes a difference.  When this happens to me, it does just seem to go away and doesn't come back for years.

Title: Re: Unhandled exception
Post by: Biza on November 19, 2015, 07:44:30 PM
Launch from the client.exe or euo, either way it wont work while uo is running. if i open suo before I launch uo it will work now. not sure what changed other than restarting my computer.
Title: Re: Unhandled exception
Post by: TrailMyx on November 19, 2015, 08:05:51 PM
There's some legacy code in there that still tries to interface with the client to pull position information, but that's hopelessly broken now.  No doubt it's tickling a sore area now.  :)

Anyhow, at least you figured a way to get it going.
Title: Re: Unhandled exception
Post by: ErwinEUO on March 20, 2017, 11:08:44 AM
Hey Folks,

Sorry for bumping super old topic but I didn't see an update on the problem.

I was able to get thru the 'Unhandled Exception' issue in Windows 10 by setting Compatibility Level to "Windows Vista (Service Pack 2)".  Previously, I wasn't able to launch SUO without the crash.

Hope this helps someone!

EE
Title: Re: Unhandled exception
Post by: TrailMyx on March 20, 2017, 11:42:46 AM
Thanks for reminding me; I need to fix that.  :)
Title: Re: Unhandled exception
Post by: gimlet on March 20, 2017, 12:35:08 PM
Thanks for reminding me; I need to fix that.  :)

yea - fix that please!
Title: Re: Unhandled exception
Post by: TrailMyx on March 20, 2017, 12:37:08 PM
Thanks for reminding me; I need to fix that.  :)

yea - fix that please!

I'm probably just going to release the source for all to laugh at.
Title: Re: Unhandled exception
Post by: Crome969 on March 20, 2017, 01:58:48 PM
go for it.. i want to to see the source of your master piece  ;D
Title: Re: Unhandled exception
Post by: TrailMyx on March 20, 2017, 03:55:44 PM
go for it.. i want to to see the source of your master piece  ;D

lol, masterpiece.  When I started SUO, I didn't know how to program in C#, so it was truly my first .NET and C# project.  And it shows it with every line of code.  It's worth releasing just to see Crome laugh himself so hard that he'd choke on his Schnitzel and Heffe.

I look back at that now and kinda shake my head.  Talk about coding by the seat of your pants.
Title: Re: Unhandled exception
Post by: Crome969 on March 21, 2017, 01:12:05 AM
It's worth releasing just to see Crome laugh himself so hard that he'd choke on his Schnitzel and Heffe.
To bad i dont find my very first c# project.. you would die while laughing  ;)