ADRIFT Forum


The place to discuss the ADRIFT Interactive Fiction toolkit

"Add Task" Crash?

This forum is the place to learn about and discuss ADRIFT 5. Feel free to mention any bugs you find here, but please also add these to the Bugs & Enhancements list.

Please also refer to the ADRIFT 5 Wiki for more information.

"Add Task" Crash?

Postby mrburger » Wed Aug 15, 2012 12:39 am

This is a pretty devastating issue. Whenever I try to add a new task, even in a brand new project, I am given a dialog box telling me the "Parameter is not valid," and whose Details button gives me this:

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

************** Exception Text **************
System.ArgumentException: Parameter is not valid.
at System.Drawing.Graphics.GetHdc()
at System.Windows.Forms.Internal.WindowsGraphics.FromGraphics(Graphics g, ApplyGraphicsProperties properties)
at System.Windows.Forms.WindowsGraphicsWrapper..ctor(IDeviceContext idc, TextFormatFlags flags)
at System.Windows.Forms.TextRenderer.MeasureText(IDeviceContext dc, String text, Font font, Size proposedSize, TextFormatFlags flags)
at Infragistics.Win.DrawUtility.MeasureStringHelper(Graphics gr, String text, Font font, Size layoutArea, StringFormat stringFormat, Int32& charactersFitted, Int32& linesFilled, Boolean returnElementsFitted, GdiDrawStringFlags drawStringFlags)
at Infragistics.Win.DrawUtility.MeasureString(Graphics gr, String text, Font font, GdiDrawStringFlags drawStringFlags)
at Infragistics.Win.DrawUtility.MeasureString(Graphics gr, String text, Font font, EmbeddableEditorOwnerBase owner, Object ownerContext)
at Infragistics.Win.UltraWinEditors.TextEditorControlBase.ShouldAutoSizeHeight(Int32& height)
at Infragistics.Win.UltraWinEditors.TextEditorControlBase.SetBoundsCore(Int32 x, Int32 y, Int32 width, Int32 height, BoundsSpecified specified)
at System.Windows.Forms.Control.ScaleControl(SizeF factor, BoundsSpecified specified)
at System.Windows.Forms.Control.ScaleControl(SizeF includedFactor, SizeF excludedFactor, Control requestingControl)
at System.Windows.Forms.Control.Scale(SizeF includedFactor, SizeF excludedFactor, Control requestingControl)
at System.Windows.Forms.Control.ScaleChildControls(SizeF includedFactor, SizeF excludedFactor, Control requestingControl)
at System.Windows.Forms.Control.Scale(SizeF includedFactor, SizeF excludedFactor, Control requestingControl)
at System.Windows.Forms.ContainerControl.OnChildLayoutResuming(Control child, Boolean performLayout)
at System.Windows.Forms.Control.OnChildLayoutResuming(Control child, Boolean performLayout)
at System.Windows.Forms.Control.OnLayoutResuming(Boolean performLayout)
at System.Windows.Forms.Control.ResumeLayout(Boolean performLayout)
at ..()
at ...ctor(clsTask& , Boolean )
at ..ˆ(Object , EventArgs )
at System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e)
at System.Windows.Forms.ToolStripMenuItem.OnClick(EventArgs e)
at System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)
at System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)
at System.Windows.Forms.ToolStripItem.FireEventInteractive(EventArgs e, ToolStripItemEventType met)
at System.Windows.Forms.ToolStripItem.FireEvent(EventArgs e, ToolStripItemEventType met)
at System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)
at System.Windows.Forms.ToolStripDropDown.OnMouseUp(MouseEventArgs mea)
at System.Windows.Forms.Control.WmMouseUp(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.ToolStrip.WndProc(Message& m)
at System.Windows.Forms.ToolStripDropDown.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.3634 (GDR.050727-3600)
CodeBase: file:///c:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
dev500
Assembly Version: 5.0.23.0
Win32 Version: 5.0.23.0
CodeBase: file:///C:/Program%20Files/ADRIFT%205.0/dev500.exe
----------------------------------------
System.Windows.Forms
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3637 (GDR.050727-3600)
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.3634 (GDR.050727-3600)
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.3639 (GDR.050727-3600)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
Microsoft.VisualBasic
Assembly Version: 8.0.0.0
Win32 Version: 8.0.50727.3053 (netfxsp.050727-3000)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/Microsoft.VisualBasic/8.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dll
----------------------------------------
{1f15e14e-acd2-4b12-8cc2-d3a69a3f6b83}
Assembly Version: 0.0.0.0
Win32 Version: 5.0.23.0
CodeBase: file:///C:/Program%20Files/ADRIFT%205.0/dev500.exe
----------------------------------------
Infragistics2.Win.v10.3
Assembly Version: 10.3.20103.2067
Win32 Version: 5.0.23.0
CodeBase: file:///C:/Program%20Files/ADRIFT%205.0/dev500.exe
----------------------------------------
Infragistics2.Win.UltraWinToolbars.v10.3
Assembly Version: 10.3.20103.2067
Win32 Version: 5.0.23.0
CodeBase: file:///C:/Program%20Files/ADRIFT%205.0/dev500.exe
----------------------------------------
Infragistics2.Win.UltraWinDock.v10.3
Assembly Version: 10.3.20103.2067
Win32 Version: 5.0.23.0
CodeBase: file:///C:/Program%20Files/ADRIFT%205.0/dev500.exe
----------------------------------------
Infragistics2.Win.UltraWinStatusBar.v10.3
Assembly Version: 10.3.20103.2067
Win32 Version: 5.0.23.0
CodeBase: file:///C:/Program%20Files/ADRIFT%205.0/dev500.exe
----------------------------------------
Infragistics2.Shared.v10.3
Assembly Version: 10.3.20103.2067
Win32 Version: 5.0.23.0
CodeBase: file:///C:/Program%20Files/ADRIFT%205.0/dev500.exe
----------------------------------------
Infragistics2.Win.UltraWinTree.v10.3
Assembly Version: 10.3.20103.2067
Win32 Version: 5.0.23.0
CodeBase: file:///C:/Program%20Files/ADRIFT%205.0/dev500.exe
----------------------------------------
System.Xml
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3082 (QFE.050727-3000)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
Infragistics2.Win.UltraWinTabControl.v10.3
Assembly Version: 10.3.20103.2067
Win32 Version: 5.0.23.0
CodeBase: file:///C:/Program%20Files/ADRIFT%205.0/dev500.exe
----------------------------------------
Accessibility
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/Accessibility/2.0.0.0__b03f5f7f11d50a3a/Accessibility.dll
----------------------------------------
System.Deployment
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Deployment/2.0.0.0__b03f5f7f11d50a3a/System.Deployment.dll
----------------------------------------
System.Runtime.Serialization.Formatters.Soap
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Runtime.Serialization.Formatters.Soap/2.0.0.0__b03f5f7f11d50a3a/System.Runtime.Serialization.Formatters.Soap.dll
----------------------------------------
Infragistics2.Win.Misc.v10.3
Assembly Version: 10.3.20103.2067
Win32 Version: 5.0.23.0
CodeBase: file:///C:/Program%20Files/ADRIFT%205.0/dev500.exe
----------------------------------------
Infragistics2.Win.UltraWinEditors.v10.3
Assembly Version: 10.3.20103.2067
Win32 Version: 5.0.23.0
CodeBase: file:///C:/Program%20Files/ADRIFT%205.0/dev500.exe
----------------------------------------
Infragistics2.Win.UltraWinListView.v10.3
Assembly Version: 10.3.20103.2067
Win32 Version: 5.0.23.0
CodeBase: file:///C:/Program%20Files/ADRIFT%205.0/dev500.exe
----------------------------------------
zlib.net
Assembly Version: 1.0.5.0
Win32 Version: 5.0.23.0
CodeBase: file:///C:/Program%20Files/ADRIFT%205.0/dev500.exe
----------------------------------------
System.Configuration
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
lv7ivfur
Assembly Version: 5.0.23.0
Win32 Version: 2.0.50727.3634 (GDR.050727-3600)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
Infragistics2.Win.UltraWinSpellChecker.v10.3
Assembly Version: 10.3.20103.2067
Win32 Version: 5.0.23.0
CodeBase: file:///C:/Program%20Files/ADRIFT%205.0/dev500.exe
----------------------------------------

************** 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.




Which I'm not fully able to understand, sorry. Why should I need some sort of debugging enabled? Is the debugging thing even related to my Add Task issue, or does ADRIFT just not recognize what's wrong? I want to use the program, it feels really smooth and great. In the state it's in, though, I can't get a single game off the ground.

On top of this, though, it should be noted: ADRIFT tends to crash on me after about an hour, like no dialog box or anything, (except that "Send Error Report" bullhonkey). And before it crashes altogether, it gets into this state where every single thing I try and do triggers an error dialog box. Ever heard of this happening? Is something wrong with my computer?

There might be something wrong with my computer. After a thorough googling, I've found not a single complaint matching mine. I fear the worst.

:cry:
mrburger
 
Posts: 3
Joined: Wed Aug 15, 2012 12:22 am

Re: "Add Task" Crash?

Postby Po. Prune » Wed Aug 15, 2012 5:37 am

Hi. Welcome to our little corner of the IF universe.
I'm not sure what the problem is, but could you write the task that causes the crash, and also what computer and operating syst. you're using.
D-Day V.5 in progress 79Kb so far (slowly getting there)
The Inheritance (Annual Adrift Comp. entry) in progress
User avatar
Po. Prune
Moderator
 
Posts: 3427
Joined: Mon Jun 24, 2002 8:18 am
Location: Denmark

Re: "Add Task" Crash?

Postby Campbell » Wed Aug 15, 2012 7:33 am

I can't say I've seen this before. The only thing I have noticed is that you're running 5.0.23, whereas the latest is 5.0.24. Can you try that and see if you still get the error?
ADRIFT Developer developer.
User avatar
Campbell
Site Admin
 
Posts: 3850
Joined: Sun Jun 23, 2002 11:05 am
Location: Edinburgh, Scotland

Re: "Add Task" Crash?

Postby Lazzah » Wed Aug 15, 2012 11:50 am

What operating system does your computer have?
Current WIP: "The Axe of Kolt": 375kb at 17/6/13.

"The Fortress of Fear" - OUT NOW!
Download Blorb at: http://www.adrift.co/game/1366;
Download .exe file at: https://www.dropbox.com/s/8ofoq9zpa1iesyp/FoF.exe
User avatar
Lazzah
 
Posts: 1026
Joined: Thu Mar 31, 2011 4:54 am
Location: London, England

Re: "Add Task" Crash?

Postby mrburger » Sun Aug 19, 2012 4:17 am

My computer runs on Windows XP Professional. Is that the problem?

Downloaded 5.0.24, and problem persists. Here's an update, though: if I add a task immediately upon opening the program, then it lets me add one (1) task. However, if I try to go back and edit that task, or if I try to add another task, or if I do anything that would otherwise bring up the New Task window again, it gets me an unhandled exception error.
mrburger
 
Posts: 3
Joined: Wed Aug 15, 2012 12:22 am

Re: "Add Task" Crash?

Postby mrburger » Sun Aug 19, 2012 4:18 am

Also, thanks for the welcome. That was nice.
mrburger
 
Posts: 3
Joined: Wed Aug 15, 2012 12:22 am

Re: "Add Task" Crash?

Postby Campbell » Sun Aug 19, 2012 9:21 am

Do you have your font scaling set to something like 125% rather than 100%?
ADRIFT Developer developer.
User avatar
Campbell
Site Admin
 
Posts: 3850
Joined: Sun Jun 23, 2002 11:05 am
Location: Edinburgh, Scotland

Re: "Add Task" Crash?

Postby NickyDude » Sun Aug 19, 2012 2:50 pm

mrburger wrote:Also, thanks for the welcome. That was nice.


You'll find were all pretty nice around here. 8) We also give proper constructive criticism so don't take it to heart if no one likes your first game. :)
ImageI reject your reality and substitute my own...
User avatar
NickyDude
Moderator
 
Posts: 2467
Joined: Sun Jun 23, 2002 10:36 pm
Location: UK

Re: "Add Task" Crash?

Postby Lazzah » Mon Aug 20, 2012 6:15 am

mrburger wrote:My computer runs on Windows XP Professional. Is that the problem?

There is at least one known issue with using ADRIFT on a computer running XP, that being that XP does not like the <wait x> function where you get the game to pause for "x" seconds. My Dutch playtester reported that her computer was freezing for several seconds instead of 1 second, so I have had to program in an "OS Selection Page" to my game,

It may well be that these problems you report are due to XP, but Campbell is the best person to confirm that.
Current WIP: "The Axe of Kolt": 375kb at 17/6/13.

"The Fortress of Fear" - OUT NOW!
Download Blorb at: http://www.adrift.co/game/1366;
Download .exe file at: https://www.dropbox.com/s/8ofoq9zpa1iesyp/FoF.exe
User avatar
Lazzah
 
Posts: 1026
Joined: Thu Mar 31, 2011 4:54 am
Location: London, England

Re: "Add Task" Crash?

Postby Campbell » Mon Aug 20, 2012 10:51 am

I think the <wait x> issue is to do with the way some countries interpret numbers. E.g. 1.50 in some languages could be interpreted as 150 as the . character is not a decimal place. Therefore instead of waiting 1 1/2 seconds, it would wait 2 1/2 minutes.
ADRIFT Developer developer.
User avatar
Campbell
Site Admin
 
Posts: 3850
Joined: Sun Jun 23, 2002 11:05 am
Location: Edinburgh, Scotland

Re: "Add Task" Crash?

Postby ralphmerridew » Mon Aug 20, 2012 7:10 pm

In that case, you should probably set things up so that it doesn't use a localized version of parse_number (or whatever it's called); you should write your own equivalent to that function, or force it to use a fixed locale.
Bloodhounds can make you laugh and cuss in the same breath. They are endearing, faithful, and can sling drool ten feet in any direction. -- Virginia Lanier
User avatar
ralphmerridew
 
Posts: 2195
Joined: Fri Dec 13, 2002 11:56 pm
Location: Missouri

Re: "Add Task" Crash?

Postby Campbell » Mon Aug 20, 2012 9:09 pm

Yes, thanks rm, I know the solution. Not everything occurs as I am writing it tho.
ADRIFT Developer developer.
User avatar
Campbell
Site Admin
 
Posts: 3850
Joined: Sun Jun 23, 2002 11:05 am
Location: Edinburgh, Scotland


Return to ADRIFT 5.0

Who is online

Users browsing this forum: Google [Bot] and 1 guest

cron