Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice
  4. Dismiss Notice

3 problems with cinemachine

Discussion in 'Cinemachine' started by gfontest, Feb 27, 2021.

  1. gfontest

    gfontest

    Joined:
    Dec 27, 2019
    Posts:
    2
    When i create a virtual camera in cinemachine it appears the next 3 problems:

    1- It doesn´t appear in the inspector, when i select the Virtual Camera, this components:
    - Body
    - Aim

    Console:
    2- It appears this problem:
    ExecutionEngineException: String conversion error: Illegal byte sequence encounted in the input. System.Reflection.Assembly.GetCodeBase (System.Boolean escaped) (at <eae584ce26bc40229c1b1aa476bfa589>:0) System.Reflection.Assembly.get_CodeBase () (at <eae584ce26bc40229c1b1aa476bfa589>:0) System.Reflection.AssemblyName.Create (System.Reflection.Assembly assembly, System.Boolean fillCodebase) (at <eae584ce26bc40229c1b1aa476bfa589>:0) System.Reflection.RuntimeAssembly.GetName (System.Boolean copiedName) (at <eae584ce26bc40229c1b1aa476bfa589>:0) System.Reflection.Assembly.GetName () (at <eae584ce26bc40229c1b1aa476bfa589>:0) Cinemachine.Utility.ReflectionHelpers.GetTypesInAllDependentAssemblies (System.Predicate1[T] predicate) (at Library/PackageCache/com.unity.cinemachine@2.6.3/Editor/Utility/ReflectionHelpers.cs:83) Cinemachine.Editor.CinemachineVirtualCameraBaseEditor1[T].OnEnable () (at Library/PackageCache/com.unity.cinemachine@2.6.3/Editor/Editors/CinemachineVirtualCameraBaseEditor.cs:56) Cinemachine.Editor.CinemachineVirtualCameraEditor.OnEnable () (at Library/PackageCache/com.unity.cinemachine@2.6.3/Editor/Editors/CinemachineVirtualCameraEditor.cs:42)

    3- And this a lot of times:
    NullReferenceException: Object reference not set to an instance of an object
    Cinemachine.Editor.CinemachineVirtualCameraEditor.UpdateStageState (Cinemachine.CinemachineComponentBase[] components) (at Library/PackageCache/com.unity.cinemachine@2.6.3/Editor/Editors/CinemachineVirtualCameraEditor.cs:488)
    Cinemachine.Editor.CinemachineVirtualCameraEditor.UpdateInstanceData () (at Library/PackageCache/com.unity.cinemachine@2.6.3/Editor/Editors/CinemachineVirtualCameraEditor.cs:424)
    Cinemachine.Editor.CinemachineVirtualCameraEditor.DrawPipelineInInspector () (at Library/PackageCache/com.unity.cinemachine@2.6.3/Editor/Editors/CinemachineVirtualCameraEditor.cs:144)
    Cinemachine.Editor.CinemachineVirtualCameraEditor.OnInspectorGUI () (at Library/PackageCache/com.unity.cinemachine@2.6.3/Editor/Editors/CinemachineVirtualCameraEditor.cs:138)
    UnityEditor.UIElements.InspectorElement+<>cDisplayClass59_0.<CreateIMGUIInspectorFromEditor>b0 () (at <420b942f64794d4da66420603f126f7b>:0)
    UnityEngine.GUIUtility:processEvent(Int32, IntPtr, Boolean&)

    I think the 1st problem is a consequence of the 3rd problem and this problem is a consequence of the 2nd one but..
     

    Attached Files:

  2. gfontest

    gfontest

    Joined:
    Dec 27, 2019
    Posts:
    2
    I've tried to create an empty project and import the cinemachine etc. And i have the same problem too.
     
  3. Gregoryl

    Gregoryl

    Unity Technologies

    Joined:
    Dec 22, 2016
    Posts:
    7,238
    We have never seen this problem before. Can you send me your empty project that has the problem?
     
  4. AdrianRhesa

    AdrianRhesa

    Joined:
    Jul 19, 2018
    Posts:
    4
    Those errors happened to me as well. After series of testing, I found out that I saved my Unity project under the folder that contains japanese kanji character in it. Have not test it with spaces and other symbols. But be aware to avoid saving your project inside a folder named using kanjis.
     
  5. Gregoryl

    Gregoryl

    Unity Technologies

    Joined:
    Dec 22, 2016
    Posts:
    7,238
    I created a new 2020.2.1f1 project named かめ信託銀行 and installed CM 2.6.3. No errors.
     
  6. GameFDev

    GameFDev

    Joined:
    Jul 13, 2020
    Posts:
    10
    We came across to this bug today. It's not the project name that is the problem I believe, it's the folder names above it. One of our devs had a folder structure like: C:\Users\cenk\Masaüstü\Projects\MyProject, Masaüstü means desktop in Turkish and we were getting the errors mentioned in the first post. We moved the project to C:\Projects\MyProject and errors are gone now.
     
    ozgurd5, MonkeyYao and Gregoryl like this.
  7. MonkeyYao

    MonkeyYao

    Joined:
    Jul 3, 2012
    Posts:
    18
    This problem occurs if the folder path of the project contains non-English content. For example, the folder path contains Chinese words
     
    Gregoryl likes this.
  8. HIBIKI_entertainment

    HIBIKI_entertainment

    Joined:
    Dec 4, 2018
    Posts:
    548
    @Gregoryl, I remember you mentioned to my team once, that OS folder depth could sometimes be problematic in some cases.

    Maybe this is a combined issue, OS folder depth and non supported characters.

    @GameFDev seems to have taken both steps here to fix that issue.
     
    Gregoryl likes this.
  9. ozgurd5

    ozgurd5

    Joined:
    Dec 24, 2022
    Posts:
    1
    i am also from turkey and that was also my problem and my solution. thank you cenk!
     
  10. WhiteWolf1262

    WhiteWolf1262

    Joined:
    Mar 28, 2023
    Posts:
    1
    Hate to necro a post, but this post saved me a lot of frustration. I had my folder called "Unity - Game Projects" took out the " - " symbol, and no errors. So, it doesn't like any kind of special characters. Spaces were okay though when I renamed my folder "Unity Projects" works like a charm now.
     
    antoinecharton likes this.