- Home /
Standalone problems!
When i build the game and start that that crashs but when i start that in developer build that works fine.
Check the Player Log FIle for any relevant errors that may have caused your crash, then post back here with the errors so others can better help you resolve your issues
Too much character.
To sum it up, the log file has lots of:
(0x00A7B331) (LegoTest): (filename not available): Thread::SetName + 0x2bb41
(0x00A8AF10) (LegoTest): (filename not available): Thread::SetName + 0x3b720
(0x00A8B6A4) (LegoTest): (filename not available): Thread::SetName + 0x3beb4
(0x00A8B877) (LegoTest): (filename not available): Thread::SetName + 0x3c087
(0x00AC050F) (LegoTest): (filename not available): CacheReaderBase::~CacheReaderBase + 0xc39f
(0x00ABA9B0) (LegoTest): (filename not available): CacheReaderBase::~CacheReaderBase + 0x6840
(0x008E186D) (LegoTest): (filename not available): ReadObjectFromPersistent$$anonymous$$anager + 0x1d
(0x008E7AB0) (LegoTest): (filename not available): Unity::GameObject::GetSupported$$anonymous$$essagesRecalculate + 0x80
(0x008E84ED) (LegoTest): (filename not available): Unity::GameObject::SetSupported$$anonymous$$essagesDirty + 0x1d
(0x008E98A8) (LegoTest): (filename not available): Unity::GameObject::AwakeFromLoad + 0x8
(0x00AB7076) (LegoTest): (filename not available): CacheReaderBase::~CacheReaderBase + 0x2f06
(0x00ABA923) (LegoTest): (filename not available): CacheReaderBase::~CacheReaderBase + 0x67b3
(0x008E186D) (LegoTest): (filename not available): ReadObjectFromPersistent$$anonymous$$anager + 0x1d
(0x0088BF44) (LegoTest): (filename not available): RemapPPtrTransfer::RemapPPtrTransfer + 0x8e4
(0x00B92DC6) (LegoTest): (filename not available): Register$$anonymous$$odule_Navigation + 0x46146
Answer by DaveA · Aug 13, 2013 at 06:17 PM
Toward the bottom, which represents the higher level calls, is this: RaiseNullExceptionObject
So my guess is you are getting a null, or trying to use a null, and not checking for it, and/or not putting a try/catch around it. Do you see any problems in the console when you run it in the editor? Check that all your variables are initialized (like you have assigned game objects and transforms and so forth with the Inspector). It's happening early on, so it may be in an Awake or Start routine.
If none of that helps, try disabling scripts one by one and try running until you stop crashing. The last thing you disabled has the problem. Then disable parts of the script one by one (like comment out stuff), until it stops crashing again. The last thing you disabled has the problem. Repeat until you see where your error is.
i have error in editor: UnityException: You are not allowed to call this function when declaring a variable. $$anonymous$$ove it to the line after without a variable declaration. If you are using C# don't use this function in the constructor or field initializers, Ins$$anonymous$$d move initialization to the Awake or Start function.
Your answer
Follow this Question
Related Questions
Multiplayer lagging in player but not in editor. 0 Answers
Works in player but NullReferenceException in build. 2 Answers
How do I change the size & position of the standalone player in windows? 0 Answers
Regarding PlayerPrefs vrs. (WebPlayer && Standalone) Builds 1 Answer
Is there a way to keep Windows Standalone Player 'on top'? 1 Answer