View Issue Details

IDProjectCategoryLast Update
0000034AI War 1 / ClassicCrash/ExceptionOct 19, 2010 8:07 pm
Reporterthemachineissentient Assigned Tokeith.lamothe  
Severitycrash 
Status resolvedResolutionfixed 
Fixed in Version3.719 
Summary0000034: 3.7 crash report when alt tabbing out of game
Description http://www.arcengames.com/forums/index.php/topic,7249.0.html


Got this crash report when I alt-tabbed out of game
Specs: Windows Vista x64/nVidia 8800gts512/Quadcore 2.4/8GB Ram

10/2/2010 1:55:26 PM (3.700)
-----------------------------------Error-----------------------------------Log String: Failed to get cursor position:
Access is denied.

Stack Trace:
10/2/2010 1:55:26 PM (3.700)
-----------------------------------Error-----------------------------------Log String: Failed to get cursor position:
Access is denied.


Specifically it's from "..\..\PlatformDependent\Win\Input.cpp at line:281".

I'm guessing it's happening due to some call to UnityEngine.Input that shouldn't be made if the window doesn't have focus, etc. It's worth trying to catch the exception but I'm thinking that it won't let us. Do you know how to detect if the app has focus in Unity?

By the way, I don't see the pdb file in the installation; did you decide to not go with the debug build? Granted, the pdb itself was 40+ MB, it would just be nice to have line numbers Not that this error would have given any.

(Chris replies yes, it was omitted)

Ok, I get this crash whenever I lock and unlock my machine (ctrl+alt+del, lock; ctrl+alt+del, unlock). It is quite reproducible. I commented out all references to both Input.mousePosition and Event.current.mousePosition, and it still happens (there are still references to both Input and Event.current that have nothing to do with the cursor).

I tried it with Tidalis and no problems.

My guess is that this is a bug introduced in Unity 3, I guess a UnityAnswers post is a good idea at this point.
TagsNo tags attached.
Internal Weight

Relationships

has duplicate 0000272 closedChris_McElligottPark unhandled error. text 

Activities

Moonshine Fox

Oct 3, 2010 7:31 am

reporter   ~0000040

http://www.arcengames.com/forums/index.php/topic,7279.0.html

According to @BOFH, this bug no longer occurs in 3.701.

leb0fh

Oct 3, 2010 10:19 am

reporter   ~0000052

Bug seems to not be present in 3.701
Alt-tabbing no longer causes exception (or crash).
Tested Steam Community overlay also and that also doesn't cause exception, and also Raptr overlay. (As both overlays steal focus from the app)

Chris_McElligottPark

Oct 3, 2010 12:03 pm

administrator   ~0000067

Interesting that it seems no longer present. We'll keep an eye on this, anyway...

Chris_McElligottPark

Oct 6, 2010 10:47 pm

administrator   ~0000433

Last edited: Oct 14, 2010 11:41 am

There was a bit more info from another user here: http://www.arcengames.com/mantisbt/view.php?id=272

And I've made a bug report to unity.

Chris_McElligottPark

Oct 7, 2010 11:52 am

administrator   ~0000442

Update: Unity have confirmed this as an issue and have assigned it internally to be looked at.

Issue History

Date Modified Username Field Change
Oct 2, 2010 10:06 pm themachineissentient New Issue
Oct 2, 2010 10:26 pm Chris_McElligottPark Assigned To => Chris_McElligottPark
Oct 2, 2010 10:26 pm Chris_McElligottPark Status new => confirmed
Oct 3, 2010 7:31 am Moonshine Fox Note Added: 0000040
Oct 3, 2010 10:19 am leb0fh Note Added: 0000052
Oct 3, 2010 12:03 pm Chris_McElligottPark Note Added: 0000067
Oct 3, 2010 12:03 pm Chris_McElligottPark Status confirmed => acknowledged
Oct 6, 2010 10:46 pm Chris_McElligottPark Relationship added has duplicate 0000272
Oct 6, 2010 10:47 pm Chris_McElligottPark Note Added: 0000433
Oct 7, 2010 11:52 am Chris_McElligottPark Note Added: 0000442
Oct 14, 2010 11:41 am Chris_McElligottPark Note Edited: 0000433
Oct 19, 2010 8:07 pm Chris_McElligottPark Status acknowledged => resolved
Oct 19, 2010 8:07 pm Chris_McElligottPark Fixed in Version => 3.719
Oct 19, 2010 8:07 pm Chris_McElligottPark Resolution open => fixed
Oct 19, 2010 8:07 pm Chris_McElligottPark Assigned To Chris_McElligottPark => keith.lamothe
Apr 14, 2014 9:27 am Chris_McElligottPark Category Bug - Crash or Exception => Crash/Exception