Unhandled Exception

Post bug reports and ask for support here.

Moderators: Icemania, elliotg

Joubarbe
Posts: 38
Joined: Mon Mar 29, 2010 2:05 pm

Unhandled Exception

Post by Joubarbe »

Hi,

When I launch the game, I have an unhandled exception error window. DX & NET is updated. All drivers updated. No antivirus.

Thx

Image
Attachments
Unhandled_Exception.jpg
Unhandled_Exception.jpg (156.68 KiB) Viewed 342 times
User avatar
Webbco
Posts: 694
Joined: Sat Feb 06, 2010 10:15 am

RE: Unhandled Exception

Post by Webbco »

Hi Joubarbe, welcome.

Have you downloaded the 2 patches for the game?
Joubarbe
Posts: 38
Joined: Mon Mar 29, 2010 2:05 pm

RE: Unhandled Exception

Post by Joubarbe »

Yes, 1.02 now
User avatar
Erik Rutins
Posts: 38644
Joined: Tue Mar 28, 2000 4:00 pm
Location: Vermont, USA
Contact:

RE: Unhandled Exception

Post by Erik Rutins »

Hi Joubarbe,

Did you allow the .NET and DirectX that came with the game installer to install fully?

Could you post a DxDiag file for us please per the instructions at the top of this forum?

Did you see any difference after updating to 1.0.2?

Regards,

- Erik
Erik Rutins
CEO, Matrix Games LLC


Image

For official support, please use our Help Desk: http://www.matrixgames.com/helpdesk/

Freedom is not Free.
Joubarbe
Posts: 38
Joined: Mon Mar 29, 2010 2:05 pm

RE: Unhandled Exception

Post by Joubarbe »

Yes full install... I already had the 1.02 :)
Attachments
DxDiag.txt
(28.56 KiB) Downloaded 8 times
atlana
Posts: 23
Joined: Tue Mar 30, 2010 12:51 pm

RE: Unhandled Exception

Post by atlana »

exact same problem here. Tried even the REGION/KEYBOARD workaround that seemed to work for some people, but no luck.

Attached is my DXDIAG output. I have let run the installers DirectX and .NET 3.5 installation processes. I've version 1.02 installed. Mine is the DigitalRiver digital download version.

Audio and Video drivers are up to date. Even tried with Kaspersky Internet Security suite 2010 turned OFF (exited). also no luck.

my system is a windows 7 64bit Enterprise Edition EVGA X58 3x SLI mainboard i7 core CPU 12 GB DDR3 Ram Nvidia GTX295 (revision B) Logitech G19 Keyboard Logitech G500 Mouse Logitech G35 Headset
Attachments
DxDiag.txt
(45.08 KiB) Downloaded 4 times
Ricomise
Posts: 36
Joined: Thu Mar 25, 2010 11:19 pm

RE: Unhandled Exception

Post by Ricomise »

I had a similar error, and after some research (with help from Eric and Elliot on these forums) and an e-mail to microsoft, it apperas that it was a problem with installing .NET 3.5 SP1 because of a corrupted or damaged file in an older version on my machine.

Microsoft recommended this tool to remove the damaged components: http://cid-27e6a35d1a492af7.skydrive.li ... p_tool.zip

After running that and re-installing .NET 3.5 and the 3.5 service pack, I was good to go. I don't know if yours is the same issue, but may be worth a try.

Good luck.
User avatar
Erik Rutins
Posts: 38644
Joined: Tue Mar 28, 2000 4:00 pm
Location: Vermont, USA
Contact:

RE: Unhandled Exception

Post by Erik Rutins »

Thank you for the reminder on that, Ricomise and I'm glad to hear it fixed things for you.

Joubarbe and Atlana, it could be that your .NET installation is corrupted. Can you try Ricomise's suggestion and also those in the threads here:

tm.asp?m=2414263 tm.asp?m=2414508
Erik Rutins
CEO, Matrix Games LLC


Image

For official support, please use our Help Desk: http://www.matrixgames.com/helpdesk/

Freedom is not Free.
Joubarbe
Posts: 38
Joined: Mon Mar 29, 2010 2:05 pm

RE: Unhandled Exception

Post by Joubarbe »

Ok.. I just tried to erase .NET and reinstall it from the Distant Worlds menu. No effects, still the error message. Maybe it's switched off or maybe this is because I don't have Windows Media Player, but my "turn windows features on/off" is empty and I tried all the solutions (Microsoft said : "install Windows 7 again"...)

Anyway, it is very strange that THIS specific game can't launch... I think there is something you can do from your side, no games are crashing for that.
atlana
Posts: 23
Joined: Tue Mar 30, 2010 12:51 pm

RE: Unhandled Exception

Post by atlana »

I concur with Joubarbe - did the same thing, used the .NET cleaner tool, which removed quite an array of " leftovers" after uninstalling it from the windows7 "Turn Windows Features On or Off". then went to http://download.microsoft.com/download/ ... 5setup.exe to re-install it, just to be notified that i've to re-install it via the "Turn Windows Features On or Off"-feature. Re-installed it through that but still the same "unhandled exception" error.

other suggested links failed to get it running either.

any more ideas ?



atlana
Posts: 23
Joined: Tue Mar 30, 2010 12:51 pm

RE: Unhandled Exception

Post by atlana »

I think i found the problem, I read somewhere that WindowsMediaPlayer was needed, out of a hunch i re-enabled it in the "Turn Windows Features On or Off" menu, in windows7. I've per DEFAULT WindowsMediaPlayer killed out of my system, since I percieve it as a crappy bloatware, and use VLC for video and AIMP2 as audio player.

The problem is that Distand Worlds DEPENDS on the WindowsMediaPlayer and the installer FAILS to check for it. What for, eludes me, since Windows from XP upwards allows to playback videos via directshow (part of directX) filters/codecs. So, why the DEPENDENCE on the WindowsMediaPlayer? I know that appropriate codecs and filters are installed. Matter of fact every other game over the past years (I'm a hardcore gamer) worked fine without the WindowsMediaPlayer and used the VLC-installed codecs/filters instead.

My question remains - Why the dependance on the WindowsMediaPlayer ?
darkrenown
Posts: 7
Joined: Sat Mar 27, 2010 1:12 pm

RE: Unhandled Exception

Post by darkrenown »

I have media player turned on, got this anyway. Game was running, got about half way through designing a ship and it crashed. As far as I know all my drivers etc are up to date, but DXdiag is attached). The game is actually still running after the crash, I can play with the UI but the main map is just blank white with a red X through it, like a massive image that has failed to load.

Exception text:

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

************** Exception Text ************** System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.   at System.Drawing.SafeNativeMethods.Gdip.GdipDrawPolygon(HandleRef graphics, HandleRef pen, HandleRef points, Int32 count)   at System.Drawing.Graphics.DrawPolygon(Pen pen, PointF[] points)   at DistantWorlds.Controls.MainView.DrawShipSymbol(Graphics graphics, BuiltObject builtObject, Color color, Single x, Single y, Single width, Single height, Single originalWidth, Single originalHeight, Boolean fillInterior, Double zoomFactor)   at DistantWorlds.Controls.MainView.0jADydhfkTRXF1ER933(Graphics )   at DistantWorlds.Controls.MainView.OnPaint(PaintEventArgs e)   at System.Windows.Forms.Control.PaintWithErrorHandling(PaintEventArgs e, Int16 layer, Boolean disposeEventArgs)   at System.Windows.Forms.Control.WmPaint(Message& m)   at System.Windows.Forms.Control.WndProc(Message& m)   at System.Windows.Forms.ScrollableControl.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.4927 (NetFXspW7.050727-4900)    CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll ---------------------------------------- MC    Assembly Version: 3.0.0.0    Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)    CodeBase: file:///C:/Windows/assembly/GAC_32/mscorlib/2.0.0.0__b77a5c561934e089/mscorlib.dll ---------------------------------------- System.Windows.Forms    Assembly Version: 2.0.0.0    Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)    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.4927 (NetFXspW7.050727-4900)    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.4927 (NetFXspW7.050727-4900)    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll ---------------------------------------- ??‹–?š‡šš?Œ?˜“‘‰†Ž‰    Assembly Version: 2.0.0.0    Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)    CodeBase: file:///C:/Windows/assembly/GAC_32/mscorlib/2.0.0.0__b77a5c561934e089/mscorlib.dll ---------------------------------------- License    Assembly Version: 1.0.0.0    Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)    CodeBase: file:///C:/Windows/assembly/GAC_32/mscorlib/2.0.0.0__b77a5c561934e089/mscorlib.dll ---------------------------------------- DistantWorlds    Assembly Version: 1.0.2.0    Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)    CodeBase: file:///C:/Windows/assembly/GAC_32/mscorlib/2.0.0.0__b77a5c561934e089/mscorlib.dll ---------------------------------------- DistantWorlds.Controls    Assembly Version: 1.0.0.39631    Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)    CodeBase: file:///C:/Windows/assembly/GAC_32/mscorlib/2.0.0.0__b77a5c561934e089/mscorlib.dll ---------------------------------------- AxInterop.WMPLib    Assembly Version: 1.0.0.0    Win32 Version: 1.0.0.0    CodeBase: file:///D:/Games/Distant%20Worlds/AxInterop.WMPLib.DLL ---------------------------------------- DistantWorlds.Types    Assembly Version: 1.0.0.39630    Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)    CodeBase: file:///C:/Windows/assembly/GAC_32/mscorlib/2.0.0.0__b77a5c561934e089/mscorlib.dll ---------------------------------------- Interop.WMPLib    Assembly Version: 1.0.0.0    Win32 Version: 1.0.0.0    CodeBase: file:///D:/Games/Distant%20Worlds/Interop.WMPLib.DLL ---------------------------------------- Microsoft.DirectX.DirectSound    Assembly Version: 1.0.2902.0    Win32 Version: 5.04.00.2904    CodeBase: file:///C:/Windows/assembly/GAC/Microsoft.DirectX.DirectSound/1.0.2902.0__31bf3856ad364e35/Microsoft.DirectX.DirectSound.dll ---------------------------------------- System.Deployment    Assembly Version: 2.0.0.0    Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Deployment/2.0.0.0__b03f5f7f11d50a3a/System.Deployment.dll ---------------------------------------- Microsoft.VisualBasic    Assembly Version: 8.0.0.0    Win32 Version: 8.0.50727.4927 (NetFXspW7.050727-4900)    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/Microsoft.VisualBasic/8.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dll ---------------------------------------- PresentationCore    Assembly Version: 3.0.0.0    Win32 Version: 3.0.6920.4902 built by: NetFXw7    CodeBase: file:///C:/Windows/assembly/GAC_32/PresentationCore/3.0.0.0__31bf3856ad364e35/PresentationCore.dll ---------------------------------------- WindowsBase    Assembly Version: 3.0.0.0    Win32 Version: 3.0.6920.4902 built by: NetFXw7    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/WindowsBase/3.0.0.0__31bf3856ad364e35/WindowsBase.dll ---------------------------------------- Microsoft.DirectX    Assembly Version: 1.0.2902.0    Win32 Version: 5.04.00.2904    CodeBase: file:///C:/Windows/assembly/GAC/Microsoft.DirectX/1.0.2902.0__31bf3856ad364e35/Microsoft.DirectX.dll ---------------------------------------- Accessibility    Assembly Version: 2.0.0.0    Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/Accessibility/2.0.0.0__b03f5f7f11d50a3a/Accessibility.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.

Attachments
DxDiag.txt
(25.13 KiB) Downloaded 5 times
User avatar
Erik Rutins
Posts: 38644
Joined: Tue Mar 28, 2000 4:00 pm
Location: Vermont, USA
Contact:

RE: Unhandled Exception

Post by Erik Rutins »

ORIGINAL: atlana I think i found the problem, I read somewhere that WindowsMediaPlayer was needed, out of a hunch i re-enabled it in the "Turn Windows Features On or Off" menu, in windows7. I've per DEFAULT WindowsMediaPlayer killed out of my system, since I percieve it as a crappy bloatware, and use VLC for video and AIMP2 as audio player. The problem is that Distand Worlds DEPENDS on the WindowsMediaPlayer and the installer FAILS to check for it. What for, eludes me, since Windows from XP upwards allows to playback videos via directshow (part of directX) filters/codecs. So, why the DEPENDENCE on the WindowsMediaPlayer? I know that appropriate codecs and filters are installed. Matter of fact every other game over the past years (I'm a hardcore gamer) worked fine without the WindowsMediaPlayer and used the VLC-installed codecs/filters instead.
Yes, DW does need Windows Media Player although it does also use DirectX. Elliot would have to comment on the exact reason for the dependency, but it's not that unusual to use something that's standard in Widnows. I didn't think to ask about that as it's normally enabled by default and installed with Windows by default. You're right that we should update the installer to check for it in more detail.

Joubarbe, could you try updating your system to the latest Windows Media Player 11 and make sure it's enabled as well to see if that helps for you?
Erik Rutins
CEO, Matrix Games LLC


Image

For official support, please use our Help Desk: http://www.matrixgames.com/helpdesk/

Freedom is not Free.
User avatar
Erik Rutins
Posts: 38644
Joined: Tue Mar 28, 2000 4:00 pm
Location: Vermont, USA
Contact:

RE: Unhandled Exception

Post by Erik Rutins »

ORIGINAL: darkrenown I have media player turned on, got this anyway. Game was running, got about half way through designing a ship and it crashed. As far as I know all my drivers etc are up to date, but DXdiag is attached). The game is actually still running after the crash, I can play with the UI but the main map is just blank white with a red X through it, like a massive image that has failed to load.
Was this also with 1.0.2?

Could you if possible upload a save file for us?

Your video driver seems to have no version or date in your DxDiag - when did you last update it, could you try reinstalling the latest video driver please?
Erik Rutins
CEO, Matrix Games LLC


Image

For official support, please use our Help Desk: http://www.matrixgames.com/helpdesk/

Freedom is not Free.
Joubarbe
Posts: 38
Joined: Mon Mar 29, 2010 2:05 pm

RE: Unhandled Exception

Post by Joubarbe »

Ok it's finally working for me :) Previously, when I tried to install WMP, either the installation file said "wrong windows version", or said "use your - windows features on/off - screen" which one was empty. This time I used this file : http://www.blogsdna.com/2409/downgrade- ... dows-7.htm and curiously it's working.

Thank you for your help, even if I can assure you that from your side, you have to do something to make your game independant of WMP :)

EDIT : the main menu music is the same that the one of Geopolitical Simulator, funny :)
atlana
Posts: 23
Joined: Tue Mar 30, 2010 12:51 pm

RE: Unhandled Exception

Post by atlana »

same problem like DarkRenown has above after playingfor ~2 hours. Mine was saying that i'dnt have enough 'storage/writing space' ??? which is actually laughable, with 40 GB free on my OS-drive, 126 GB free on the drive i've Distant Worlds installed, and my G19-keyboard/EVEREST ULTIMATE showing that 70% of my 12 GB Ram were not even used.

I smell a major memory leak hole? :P

EDIT: i managed to save the state-of-the-galaxy (save-game) when the JIT .NET compiler crashed on me (like it did with DarkRenown), and apparently save-game loaded fine after game crash-n-reload.
darkrenown
Posts: 7
Joined: Sat Mar 27, 2010 1:12 pm

RE: Unhandled Exception

Post by darkrenown »

ORIGINAL: Erik Rutins

Was this also with 1.0.2?

Could you if possible upload a save file for us?

Your video driver seems to have no version or date in your DxDiag - when did you last update it, could you try reinstalling the latest video driver please?
Yes, this was a new game with 1.02. I don't have a save, I'd just started a new game, ordered some colony ships, started making a design and it crashed. Odd the video drivers have no date, but they're whatever was newest 2 weeks ago when I built this computer. I see ATI put out newer ones on the 24th though, so I'll try them just in case.
User avatar
Erik Rutins
Posts: 38644
Joined: Tue Mar 28, 2000 4:00 pm
Location: Vermont, USA
Contact:

RE: Unhandled Exception

Post by Erik Rutins »

Darkrenown,

I discussed your crash with Elliot and he had the following comments (so far):

"This looks like it may be a bug in Windows: https://connect.microsoft.com/VisualStu ... nexception

I would suggest: - ensure they are up-to-date with Windows fixes/patches, especially any service packs for .Net (e.g. .Net 2.0 SP1) - disable any antivirus that is running.

I can try some extra stuff in the next patch that may minimize the likelihood of seeing this bug - it appears to happen under specific circumstances according to that link."
Erik Rutins
CEO, Matrix Games LLC


Image

For official support, please use our Help Desk: http://www.matrixgames.com/helpdesk/

Freedom is not Free.
User avatar
Erik Rutins
Posts: 38644
Joined: Tue Mar 28, 2000 4:00 pm
Location: Vermont, USA
Contact:

RE: Unhandled Exception

Post by Erik Rutins »

One more question for you, Darkrenown.

What zoom level were you playing at when this happened?
Erik Rutins
CEO, Matrix Games LLC


Image

For official support, please use our Help Desk: http://www.matrixgames.com/helpdesk/

Freedom is not Free.
darkrenown
Posts: 7
Joined: Sat Mar 27, 2010 1:12 pm

RE: Unhandled Exception

Post by darkrenown »

It was almost fully zoomed in, although as I said I was on the ship design screen at the time.

No AV software was running.

Windows is fully up-to-date (in fact it just updated itself again today). Are the .net updates included in windows updates, or would I have to look for them seperately? Although it should be the latest version anyway as the PC is only 2 weeks old and I installed the latest .net along with all the drivers etc.
Post Reply

Return to “Tech Support”