View Issue Details

IDProjectCategoryLast Update
0000974AI War 1 / ClassicCrash/ExceptionNov 20, 2010 3:02 pm
Reporterafguy200105 Assigned Tokeith.lamothe  
Status resolvedResolutionfixed 
Summary0000974: Mac OSX AI War 4.022 Freezes
DescriptionI have tried playing about 7 games so far, and 1 with 4.022, and the game keeps on freezing. I am in full screen mode, and am not able to exit the game at all...only with a hard restart of the computer. It happens usually at the 35-55 minute mark in the games. I am not very knowledgable at error reports or how to find logs for yall to use, but if you tell me where to go to find them, I will upload them for you.
TagsNo tags attached.
Internal Weight

Activities

keith.lamothe

Oct 30, 2010 4:38 pm

administrator   ~0002391

Sorry to hear about the troubles, they have been more common on the OSX side though lots of people have no trouble over there. It's been tricky trying to figure out what's going on.

Anyway, the logs are the most likely to help and will be in the RuntimeData folder under your game directory; they're text files like UnhandledErrors.txt and FailedAssertions.txt .

For the having-to-hard-start thing, windowed mode may be best until things settle down.

By the way, roughly how far into the game are you getting before it freezes?

keith.lamothe

Oct 30, 2010 4:38 pm

administrator   ~0002392

Oh, nvm, just saw your comment about 35-55 minutes in, thanks :)

afguy200105

Oct 30, 2010 4:40 pm

reporter  

ErrorsReportedByEngine.txt (2,861 bytes)   
10/27/2010 12:11:46 (4.000)
-----------------------------------Error-----------------------------------Log String: pthread_getschedparam(thread, &policy, &param)
Stack Trace: UnityEngine.WWW:.ctor(String)
GameSound:LoadForPlay()
GameSound:Play()
GameSoundGroup:Play(SoundType)
Game:PlaySound(String, SoundType)
ForegroundObject:FireAtObject(ForegroundObject, Int32, FInt, FInt)
ForegroundObject:TryAttack()
Game:RunOneCycleOfSimulation()
Game:RunNextCycle(Boolean)
Game:RunFrame()
MainCameraLogic:FixedUpdate()

10/27/2010 16:31:16 (4.000)
-----------------------------------Exception-----------------------------------Log String: NullReferenceException: Object reference not set to an instance of an object
Stack Trace: GameButton.RenderSelf (Rect buttonRect, Boolean IsEnabled)
ArcenButtonSetSelfRender.Render (Rect ParentBounds, Vector2 EffectiveScrollPosition, Vector3 MousePositionFromTopLeft)
AbstractArcenWindow.WindowFunctionCall (Int32 WindowID)
UnityEngine.GUI+_Window.Do ()
UnityEngine.GUI.EndWindows (UnityEngine.IDList idlist)
UnityEngine.GUIUtility.EndGUI (Int32 doLayout, Int32 doWindows, UnityEngine.IDList idlist)

10/27/2010 17:38:03 (4.000)
-----------------------------------Error-----------------------------------Log String: pthread_getschedparam(thread, &policy, &param)
Stack Trace: UnityEngine.WWW:.ctor(String)
GameSound:LoadForPlay()
GameSound:Play()
GameSoundGroup:Play(SoundType)
Game:PlaySound(String, SoundType)
GameButton:DoTypeClicked(Boolean, Boolean)
GameButtonWindow:HandleButtonClick(IBoundedSelfRenderer, Boolean)
ArcenButtonSetSelfRender:Render(Rect, Vector2, Vector3)
AbstractArcenWindow:WindowFunctionCall(Int32)
UnityEngine.GUI:BeginWindows(Event, Int32, IDList, Int32)

10/29/2010 18:13:08 (4.021)
-----------------------------------Error-----------------------------------Log String: pthread_getschedparam(thread, &policy, &param)
Stack Trace: UnityEngine.WWW:.ctor(String)
GameSound:LoadForPlay()
GameSound:Play()
GameSoundGroup:Play(SoundType)
Game:PlaySound(String, SoundType)
ForegroundObject:FireAtObject(ForegroundObject, Int32, FInt, FInt)
ForegroundObject:TryAttack()
Game:RunOneCycleOfSimulation()
Game:RunNextCycle(Boolean)
Game:RunFrame()
MainCameraLogic:FixedUpdate()

10/30/2010 15:21:07 (4.022)
-----------------------------------
ErrorsReportedByEngine-----------------------------------
10/30/2010 15:21:07 (4.022)
-----------------------------------Error-----------------------------------Log String: pthread_getschedparam(thread, &policy, &param)
Stack Trace: UnityEngine.WWW:.ctor(String)
GameSound:LoadForPlay()
GameSound:Play()
GameSoundGroup:Play(SoundType)
Game:PlaySound(String, SoundType)
ForegroundObject:FireAtObject(ForegroundObject, Int32, FInt, FInt)
ForegroundObject:TryAttack()
Game:RunOneCycleOfSimulation()
Game:RunNextCycle(Boolean)
Game:RunFrame()
MainCameraLogic:FixedUpdate()



ErrorsReportedByEngine.txt (2,861 bytes)   

afguy200105

Oct 30, 2010 4:41 pm

reporter   ~0002393

I found the file....I reread the bug tracker forum as well, and it pointed me to the same place to find the file.

keith.lamothe

Oct 30, 2010 4:44 pm

administrator   ~0002394

Thanks for posting that. Sigh, though, it's the same-ol-same-ol pthread exception when trying to load a sound file. That in itself doesn't bring the game down, it keeps going a bit further but then whatever the overarching problem is just makes it all die. And we've not been able to find out what the problem is or find anyone else who has done so.

So basically we just keep fixing up stuff we think might be causing errors and hope it does something to help.

Not that playing with no sound is desirable, but does it do any better with sound and music disabled?

afguy200105

Oct 30, 2010 4:47 pm

reporter   ~0002395

I haven't tried playing with either the sound or music disabled. This latest crash I noticed that the sound effects stopped for about 30 seconds, but the game and music still played. After the 30 seconds though, the whole game froze.

Chris_McElligottPark

Nov 1, 2010 10:48 pm

administrator   ~0002511

Coming in 4.023:

* If the dreaded pthread_getschedparam error is encountered on OSX, normally this means a crash is imminent within 30 seconds or so if the player does not disable their sound first.
** We've been attempting many things to solve this problem, and still will be hunting for it, but as a temporary salve we've now made it so that when this error is encountered it will AUTOMATICALLY disable the sound for the player and shows them a message advising them to save their game and restart the program asap.
** It also now logs some extra information about the state of their program to hopefully aid in actually fixing the root cause of this.
** It also stops further images, music, and similar from being loaded, as they could also trigger the same crash and the player really needs to restart, anyway.

keith.lamothe

Nov 20, 2010 3:02 pm

administrator   ~0004104

Thankfully, it seems that Chris's rewrite of the sound subsystem has finally solved the OSX saga of problems with it :)

Issue History

Date Modified Username Field Change
Oct 30, 2010 4:33 pm afguy200105 New Issue
Oct 30, 2010 4:38 pm keith.lamothe Note Added: 0002391
Oct 30, 2010 4:38 pm keith.lamothe Note Added: 0002392
Oct 30, 2010 4:40 pm afguy200105 File Added: ErrorsReportedByEngine.txt
Oct 30, 2010 4:41 pm afguy200105 Note Added: 0002393
Oct 30, 2010 4:44 pm keith.lamothe Note Added: 0002394
Oct 30, 2010 4:47 pm afguy200105 Note Added: 0002395
Nov 1, 2010 10:48 pm Chris_McElligottPark Note Added: 0002511
Nov 20, 2010 3:02 pm keith.lamothe Note Added: 0004104
Nov 20, 2010 3:02 pm keith.lamothe Status new => resolved
Nov 20, 2010 3:02 pm keith.lamothe Resolution open => fixed
Nov 20, 2010 3:02 pm keith.lamothe Assigned To => keith.lamothe
Apr 14, 2014 9:27 am Chris_McElligottPark Category Bug - Crash or Exception => Crash/Exception