It is currently Wed Sep 08, 2010 9:23 pm




Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 16 posts ]  Go to page 1, 2  Next
[r1216] Crash when undoing for things. 
Author Message

Joined: Sat Jan 10, 2009 5:12 pm
Posts: 56
Post [r1216] Crash when undoing for things.

Steps to reproduce:
1. Open the attachment. Map format is ZDoom UDMF.
2. Select all the things.
3. Copy and paste them in other place (the same map).
4. Press C to cancel the selection on the pasted ones.
5. Move the player thing from the pasted ones.
6. Undo the first time. The player thing is returned to the pasted position.
7. Undo the second time.

The exception says:
Object reference not set to an instance of an object.

Sometimes it might fail, so I paste exception text from the detail when crashes.
Quote:
************** Exception Text **************
System.NullReferenceException: Object reference not set to an instance of an object.
at CodeImp.DoomBuilder.Map.Thing.DetermineSector()
at CodeImp.DoomBuilder.Controls.ThingInfoPanel.ShowInfo(Thing t)
at CodeImp.DoomBuilder.Windows.MainForm.ShowThingInfo(Thing t)
at CodeImp.DoomBuilder.Windows.MainForm.RefreshInfo()
at CodeImp.DoomBuilder.Editing.UndoManager.PerformUndo(Int32 levels)
at CodeImp.DoomBuilder.Editing.UndoManager.PerformUndo()
at CodeImp.DoomBuilder.Actions.Action.Begin()
at CodeImp.DoomBuilder.Actions.ActionManager.BeginActionByKey(Int32 key, Boolean repeated)
at CodeImp.DoomBuilder.Actions.ActionManager.KeyPressed(Int32 key)
at CodeImp.DoomBuilder.Windows.MainForm.MainForm_KeyDown(Object sender, KeyEventArgs e)
at System.Windows.Forms.Control.OnKeyDown(KeyEventArgs e)
at System.Windows.Forms.Control.ProcessKeyEventArgs(Message& m)
at System.Windows.Forms.Control.ProcessKeyMessage(Message& m)
at System.Windows.Forms.Control.WmKeyChar(Message& m)
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 CodeImp.DoomBuilder.Windows.MainForm.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)


You do not have the required permissions to view the files attached to this post.


Wed Aug 05, 2009 1:15 am
Profile
Developer

Joined: Fri May 15, 2009 3:45 pm
Posts: 126
Post Re: [r1216] Crash when undoing for things.

I can't reproduce it.


Wed Aug 05, 2009 4:36 pm
Profile

Joined: Sat Jan 10, 2009 5:12 pm
Posts: 56
Post Re: [r1216] Crash when undoing for things.

If it fails, you can delete those pasted things and restart at step 2 until it happenes. I usually paste them about 300 units on the right.

The debugger says in Thing.cs, Line 210: nl = map.NearestLinedef(pos);, where map is null.


Thu Aug 06, 2009 12:33 am
Profile
Developer

Joined: Fri May 15, 2009 3:45 pm
Posts: 126
Post Re: [r1216] Crash when undoing for things.

Sorry, works fine for me.


Thu Aug 06, 2009 8:02 am
Profile

Joined: Sat Jan 10, 2009 5:12 pm
Posts: 56
Post Re: [r1216] Crash when undoing for things.

Oh, I have no idea. Should I do something or just let it go?


Fri Aug 07, 2009 10:51 am
Profile

Joined: Fri May 15, 2009 3:04 am
Posts: 21
Post Re: [r1216] Crash when undoing for things.

I also followed your instructions to the letter and had no problems. Worked fine for me too, sorry.


Sat Aug 08, 2009 1:30 am
Profile

Joined: Sat Jan 10, 2009 10:44 am
Posts: 52
Location: Follow the white rabbit...
Post Re: [r1216] Crash when undoing for things.

I randomly get this when undoing some changes, but there isn't a particular step to follow.


Sat Aug 08, 2009 11:50 pm
Profile

Joined: Mon Jun 01, 2009 2:21 pm
Posts: 9
Post Re: [r1216] Crash when undoing for things.

Errors like this may occour when you do not have the proper version of microsoft.net framework installed for the program. I had the exact same error message with different programs before.


Sun Aug 16, 2009 10:25 am
Profile
User avatar

Joined: Sun Jan 04, 2009 4:49 pm
Posts: 543
Post Re: [r1216] Crash when undoing for things.

DoomerMrT wrote:
Errors like this may occour when you do not have the proper version of microsoft.net framework installed for the program. I had the exact same error message with different programs before.

Where the hell did you learn this? This is absolute bullshit. This error looks like an actual bug in the program and I am very sure it has got NOTHING to do with the .NET version. Doom Builder does not even start when you have an incorrect framework version.


Sun Aug 16, 2009 1:58 pm
Profile
User avatar

Joined: Tue Jul 14, 2009 7:24 am
Posts: 22
Location: USA
Post Re: [r1216] Crash when undoing for things.

I've noticed that a thing won't have a sector associated with it until the first time you mouse over it in Things mode. I know that sounds completely and totally crazy, but I'll see if I can come up with some steps to reproduce it when I get off work just to make sure I'm not imagining things. I didn't really think much about it until I read this.


Mon Aug 17, 2009 7:30 pm
Profile
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 16 posts ]  Go to page 1, 2  Next


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group. Designed by Vjacheslav Trushkin for Free Forums/DivisionCore.