[Unity3d] engine crashes, exceptions, warnings, bugs and hints summary and workarounds

Source: Internet
Author: User

Turn http://blog.sina.com.cn/s/blog_5b6cb9500101ai9h.html This paste will continue to update, are often encountered in the project problems, summed up into stickers, remind themselves and convenient for future inspection, can also help the students in need. If you have any good bug good warning good crash can share, please advise. Xuzhiping7#qq.com. 1.u3d often inexplicable wonderful collapse.  Usually due to an empty exception, a lot of checking their own references are null pointers. 2. Code Toggle warning Prompt.  Warning Tip: Some is Mac OS X (UNIX) and Some is windows.this might leads to incorrect line numbers in stacktraces and compiler E Rrors. Many text editors can fix this using the Convert Line endings menu commands. Encoding format problem, vs words directly advanced save scheme inside modify, generally I choose Unicode (UTF8 generation signature) MAC Intosh (CR), window can choose the format of Windows, both sides to use, it is recommended to choose CR. Bug:ios, the game in Chinese display garbled. Resolution: Ditto, modify the code page encoding. UNICODE (UTF8 signature) MACINTOSH (CR) 3. The Chinese interface solves the problem. MonoDevelop Chinese Display solution: http://www.cocoachina.com/bbs/read.php?tid-78563.html Chinese Mac system MonoDevelop garbled solution:/http blog.csdn.net/ssihc0/article/details/6796118 4. Installation Empty Project ErrorI don't know how to try an empty project on iOS again at the wrong prompt. Probably saying "no way to find what you need." Re-install it, it is estimated that the unity file corruption or installation is not completely wrong. Re-install it. Error tip: Missingmethodexception:cannot find the requested method. Estimated to be cracked u3d caused, the cracked file may not support WIN7 under the ... Workaround: 1, change the genuine. 2, change a crack file. 5. Platform compilation error or library reference missingError Cs1061:type ' System.IO.FileInfo ' does not contain a definition for ' delete ' and no extension method ' delete ' O F type ' System.IO.FileInfo ' could be found (is missing a using directive or an assembly reference?) There are generally two reasons for this error. 1. There is no reference to the relevant library. 2. Choose the wrong compilation platform. (Buildsetting inside platform) error prompt: Could not start compilationwin32exception:applicationname= "Xxxx\mono.exe",......

Solution: Reload Unity3d. 6. Memory Resource Load Error issue  Error Hint: Trying to reload asset from disk, which is not stored on disk  personal is when loading multiple assetbundle, after releasing the Mirror, the following bug has occurred. This warning doesn't have any effect on the game process, but it's annoying to jump out of it. Our project was caused by the deletion of the dictionary when it was deleted.   Solution Reference:http://blog.sina.com.cn/s/blog_5b6cb95001019ipi.html  personally think that the larger may be the following reason:  has not released the mirror to load the bug again. All Assetbundle are loaded and then released again, so there is no problem.  unity would only allow you to having a single instance of a particular assetbundle loaded at one time in your Applicati On. What this means is so you can ' t retrieve an assetbundle from a WWW object if the same one have been loaded previously and Have not been unloaded. In practical terms it means if you try to access a previously loaded assetbundle like this: (By:http://docs.unity3d . com/documentation/manual/keepingtrackofloadedassetbundles.html)    Look, it seems there are other problems that can lead to this hint. Below is the related can continue in-depth information, can help you understand u3d loading and memory management: Baidu search for the following two articles, should be from the Holy Scriptures Forum: 1. "Full understanding of unity loading and memory management" 2. "A comprehensive understanding of unity loading and memory management mechanisms: further depth and detail"   Discussion of foreign forum: http://forum.unity3d.com/threads/49298-trying-to-reload-asset-from-disk-that-is-not-stored-on-disk  looks like the foreigner also did not completely exactly fix this.    error Hint: Deleting persistent object without writing it first  no matter how you should not directly modify an initial data loaded from Assetbundle, The general must first instantiate and then modify it. But the things that are referenced (such as mesh) cannot be modified. If you want to modify it, copy it first.  //duplicate a copy of the model to avoid directly modifying the referenced mirror model. as follows: Mesh temp = mesh.instantiate (Smr.sharedmesh) as Mesh;mymesh.sharedmesh = temp;   7. Time error, nan errorError Hint: Transform.position assign attempt for ' XXX ' are not valid. Input rotation is {nan, Nan, Nan, nan}. Generally because the game is suspended timescale set to 0, you need to find the corresponding Time.delttime parameters such as function modification. Doing so causes an error in the calculation to be reported as an empty exception. Detailed resolution see another article: Questions about Nan (not a number) http://blog.sina.com.cn/s/blog_5b6cb9500101cd9e.html 8. Animation ErrorThis error was introduced in the 4.0 new animation system. Error hint: Mecanim:BindSkeleton:Cannot find Transform "objectname" solution: 1. Find the corresponding transform "objectname" model, search all the corresponding names directly in the retrieval panel, Easy to find. 2. Change the animation animationtype of the rig portion of the model's panel to none 9. Error hints for coordinate system vector calculationsError hint: Look rotation viewing vector is zero solution: generally due to camera rotation angle. It is also possible that the calculation of vectors is superfluous and the system prompts. Our project is to force the camera 90 degrees of time to appear, change to 89.9 degrees is no problem. Specific also some reference U3D official forum: http://answers.unity3d.com/questions/397425/look-rotation-viewing-vector-is-zero-error.html If found no solution to search under. 10. About AssetserverError: Obviously uploaded all the changes, but others do not download the machine with the latest code. Cause: After the merge code, the operation of Ignore server change,unity by default is based on your machine, if this code is not modified again, then assetserver do not think this thing has been modified, did not upload the code. Workaround: Make a space to save the code again. 11. Errors in data format  Error hint: illegal JSON sequence Solution: Http://forum.unity3d.com/threads/143168-JsonFX-WTF-Illegal-JSON-sequence 12. The project under Export WinDOS platform is not running successfullyError: The path of the corresponding Assetbundle is not found: Because the assetbundle loaded, and the game in the Chinese path, Assetbundle path can not have Chinese. You can change to a directory without Chinese. The solutions that can be solved at the root are now unavailable. 13. Error Importing ResourcesError message: Errors while importing package:couldn ' t decompress the package Solution: Import Resources error, most of them are Chinese path caused by the curse. Try to change the resources to no Chinese path. such as the C/D packing directory. 14. Efficiency Tuning ErrorError tip: Non matching profiler.endsample (beginsample and endsample count must match) Workaround: http://forum.muchdifferent.com/ Unitypark/index.php?p=/discussion/1468/non-matching-profiler-endsample/p1 15.IOS JIT error problem, compile error, debug errorJIT errors under iOS are more common because iOS does not support JIT dynamic compilation, so you need to change the appropriate AOT static compilation. Error tip: Attempting to JIT compile method ' System.Linq.OrderedEnumerable ' 1>:getenumerator () ' while running with-- Aot-only. Workaround: About error resolution using the LINQ dictionary sort http://blog.sina.com.cn/s/blog_5b6cb9500101gnrl.html Error tip: Installation of apps is prohibited by a policy on the device solution: Open a switch that allows the app to be installed, in the "Settings-Universal-" Access restrictions-"Install application" this. 16.u3d pathfinding Information ErrorError message: "XXXX" can only is called on the active agent that have been placed on a NavMesh. WORKAROUND: Assign the model to the corresponding terrain location directly when the character or mob is generated. Since the start of the pathfinding build did not get the correct configuration and always error. 17.Assetbundle resource version not correctTeam collaboration sometimes someone may use a u3d version that is different from others, and this is a requirement to contract first. You have to use the same version as the basis for development. Workaround: About the Assetbundle issue, the 4.1 version of the package that was hit out in 4.2 reads is not adaptable. Be aware of the packaging environment.

[Unity3d] engine crashes, exceptions, warnings, bugs and hints summary and workarounds

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.