Assert in file: C:/BuildAgent/work/.../Mono/MonoBehaviour.cpp at line 1667

Hi,

we are currently working on an Iphone/Android Game and after i syncronised my code with our asset server, i get a warning.

“The referenced script on this Behaviour is missing!”

Assert in file: C:/BuildAgent/work/…/Mono/MonoBehaviour.cpp at line 1667

The functionality works just fine, and also all scripts are attached to our game objects.
I have no clue where this warning comes from, is there anybody who had this issue before ? Or any idea from where this might come from?

regards

log files?
http://unity3d.com/support/documentation/Manual/Log%20Files.html

BatchMode: 0, IsHumanControllingUs: 1, StartBugReporterOnCrash: 1, shouldGiveDebuggerChanceToAttach: 0
Initialize mono
Mono path[0] = 'C:/Program Files (x86)/Unity/Editor/Data/Mono/lib/mono/2.0'
Mono path[1] = 'C:/Program Files (x86)/Unity/Editor/Data/Managed'
Mono path[2] = 'C:/Program Files (x86)/Unity/Editor/Data/UnityScript'
Using monoOptions --debugger-agent=transport=dt_socket,embedding=1,defer=y
Direct3D:
    Version:  Direct3D 9.0c [nvd3dum.dll 8.17.12.6099]
    Renderer: NVIDIA GeForce GTX 260
    Vendor:   NVIDIA
    VRAM:     896 MB
    Caps:     Shader=30 DepthRT=1 NativeDepth=1 NativeShadow=1 DF16=0 DF24=0 INTZ=1 RAWZ=0 NULL=1 RESZ=0 SlowINTZ=0
IsTimeToCheckForNewEditor: Update time 1297467119 current 1297465821
LicenseInfo:InitializeProtection
  open PACE from our own executable
  opened PACE, get info...
  checked authorization, authstate=100 r=0
  ReadDeveloperData
  ReadTokens
C:/Users/Philipp/Documents/GPWS1011

Unloading -2 unused Assets to reduce memory usage. Loaded Objects now: 45.
System memory in use: 88.8 MB.
Unloading 20 Unused Serialized files (Serialized files now loaded: 0 / Dirty serialized files: 0)
Platform assembly: C:\Program Files (x86)\Unity\Editor\Data\Managed\UnityEngine.dll (this message is harmless)
Platform assembly: C:\Program Files (x86)\Unity\Editor\Data\Managed\UnityEditor.dll (this message is harmless)
Non platform assembly: data-061E9FA8 (this message is harmless)
Non platform assembly: data-061F1FE8 (this message is harmless)
Non platform assembly: data-061FEB00 (this message is harmless)
Non platform assembly: data-0D0F0048 (this message is harmless)
Platform assembly: C:\Program Files (x86)\Unity\Editor\Data\Mono\lib\mono\2.0\I18N.dll (this message is harmless)
Platform assembly: C:\Program Files (x86)\Unity\Editor\Data\Mono\lib\mono\2.0\I18N.West.dll (this message is harmless)
Platform assembly: C:\Program Files (x86)\Unity\Editor\Data\Mono\lib\mono\2.0\System.Core.dll (this message is harmless)
Platform assembly: C:\Program Files (x86)\Unity\Editor\Data\Mono\lib\mono\2.0\System.dll (this message is harmless)
Platform assembly: C:\Program Files (x86)\Unity\Editor\Data\Mono\lib\mono\2.0\UnityScript.dll (this message is harmless)
Platform assembly: C:\Program Files (x86)\Unity\Editor\Data\Mono\lib\mono\2.0\Boo.Lang.dll (this message is harmless)
Mono: successfully reloaded assembly
Platform assembly: C:\Program Files (x86)\Unity\Editor\Data\Mono\lib\mono\2.0\Mono.Cecil.dll (this message is harmless)
Platform assembly: C:\Program Files (x86)\Unity\Editor\Data\Mono\lib\mono\2.0\System.Xml.dll (this message is harmless)

Unloading -11 unused Assets to reduce memory usage. Loaded Objects now: 691.
System memory in use: 105.4 MB.
Unloading 83 Unused Serialized files (Serialized files now loaded: 1 / Dirty serialized files: 1)
<I> Initializing (RawInput).

<RI> Input initialized.

Your 64 bit Windows installation is missing an imporant service pack patch. Please apply http://support.microsoft.com/kb/976038 to ensure stability.
 
(Filename: C:/BuildAgent/work/f724c1acfee760b6/PlatformDependent/Win/wow64.cpp Line: 42)

Non platform assembly: data-0D35B288 (this message is harmless)
Non platform assembly: data-0927CF20 (this message is harmless)
Non platform assembly: data-0D33F438 (this message is harmless)
Non platform assembly: data-0D2E1938 (this message is harmless)
Platform assembly: C:\Program Files (x86)\Unity\Editor\Data\Mono\lib\mono\2.0\I18N.dll (this message is harmless)
Platform assembly: C:\Program Files (x86)\Unity\Editor\Data\Mono\lib\mono\2.0\I18N.West.dll (this message is harmless)
Mono: successfully reloaded assembly

Unloading 677 unused Assets to reduce memory usage. Loaded Objects now: 876.
System memory in use: 120.8 MB.
Unloading 16 Unused Serialized files (Serialized files now loaded: 2 / Dirty serialized files: 2)
Instanciate InputManager
UnityEngine.Debug:Internal_Log(Int32, String, Object)
UnityEngine.Debug:Log(Object)
InputManager:get_Instance() (at Assets\Scripts\Input\InputManager.cs:14)
MadeController:Start() (at Assets\Scripts\Controller\MadeController.cs:73)
 
(Filename: Assets/Scripts/Input/InputManager.cs Line: 14)

Instantiate GameManager
UnityEngine.Debug:Internal_Log(Int32, String, Object)
UnityEngine.Debug:Log(Object)
GameManager:.ctor() (at Assets\Scripts\GameManager\GameManager.cs:26)
GameManager:.cctor()
CatFood:Update() (at Assets\Scripts\CatFood.cs:56)
CatFood:Update() (at Assets\Scripts\CatFood.cs:47)
 
(Filename: Assets/Scripts/GameManager/GameManager.cs Line: 26)

The referenced script on this Behaviour is missing!
 
(Filename: C:/BuildAgent/work/f724c1acfee760b6/Runtime/Mono/MonoBehaviour.cpp Line: 1667)

The referenced script on this Behaviour is missing!
 
(Filename: C:/BuildAgent/work/f724c1acfee760b6/Runtime/Mono/MonoBehaviour.cpp Line: 1667)


Unloading 286 unused Assets to reduce memory usage. Loaded Objects now: 1436.
System memory in use: 137.7 MB.
Unloading 14 Unused Serialized files (Serialized files now loaded: 2 / Dirty serialized files: 2)
Instanciate InputManager
UnityEngine.Debug:Internal_Log(Int32, String, Object)
UnityEngine.Debug:Log(Object)
InputManager:get_Instance() (at Assets\Scripts\Input\InputManager.cs:14)
MadeController:Start() (at Assets\Scripts\Controller\MadeController.cs:73)
 
(Filename: Assets/Scripts/Input/InputManager.cs Line: 14)

if you know about what section it quits at, you can do Debug.Logs to fill hte log with events. (i.e. “starting ai thinking” “Finish ai thinking”)

If you have no clue, start testing each part seperately. set returns for suspect functions and keep debugging until you find what is killing it then log almost every section of what you find wrong. Best way to find things…

If you look in your code, make sure you are not stacking functions. So you dont have a function that calls its self because you didnt find somehting 300 times, that will crash unity quick.

How do I avoid getting the “3 Unused Materials Were removed” warning? I am also on Win64 and I get this warning on startup.

Does anyone know anything about :

By the way?

Just a wild stab in the dark, but did you try installing the service pack patch?

When I download the patch and try to unzip it asks for a password.

Fortunately the password comes with the patch ( in the email with the patch ) , But the password never works. I’ve tried different machines. Different OS ( Vista64, Win7x64 ) But always the same result. I supply the password to the extractor. The password fails and the dialog lets me know that the files were not extracted.

Do you know anyone who has made this patch work?

Has this problem been solved yet? I am stuck at exactly the same problem.

Back to original topic, I’m getting the same error.

I get 2 warnings with the only information being

The referenced script on this Behaviour is missing!

(Filename: C:/BuildAgent/work/f724c1acfee760b6/Runtime/Mono/MonoBehaviour.cpp Line: 1667)

I’m only developing for Windows and using Win7 x64.

Hi,

after updating to unity3.3 the warning is gone.

Best regards

Mine hasn’t. :confused:

Bump =/

I’m getting the same problem on Unity 3.3.0 f4

Windows 7 64bit, JDK - 6u26 x64

Sorry for the necro bump, but seriously, what is this?

Edit to be less vague:
I’ve tried selecting, copying deleting and pasting everything as mentioned in this thread, I’ve also tried deleting each object (root object) one by one and running to see if the problem went away, but it didn’t. Restarting Unity and deleting the log file (in AppData/Local/Unity/Editor) as mentioned in another post also didn’t solve it.

Edit to be nice to people in the future:
I narrowed it down to where I could remove the error by deleting any one child object in a certain prefab object. This broke the link with the prefab that I I must have moved to another folder. To fix the link just drag the object in your scene onto the prefab in the Project window to overwrite the old prefab, and effectively fix the link (and remove the error).