Search Issue Tracker

Fixed in 2019.1.X

Votes

0

Found in

2019.1.0a13

Issue ID

1112865

Regression

Yes

[Vuforia] Build fails with Build and Run if vuforia packages are present in the editor

XR SDK

-

Steps To Reproduce:

1. Create a Project
2. File > Build Settings > Player Settings
3. Player Settings > XR > Check Vuforia Augmented Reality Support
4. Hierarchy > Create >Vuforia > AR Camera
5. File > Build Settings > Build and Run

Expected Result:

The build is created and it runs automatically.

Observed Result:

Build Fails with null reference exceptions in the console.

Stack Trace:

1.NullReferenceException: Object reference not set to an instance of an objectVuforia.EditorClasses.SetEulaAcceptedInConfigTask.Execute () (at <48b939598f884e49874b24e78741b31a>:0)BuildObserver.CheckAndSetEulaAccepted () (at <48b939598f884e49874b24e78741b31a>:0)BuildObserver.OnPreprocessBuild (UnityEditor.Build.Reporting.BuildReport report) (at <48b939598f884e49874b24e78741b31a>:0)UnityEditor.Build.BuildPipelineInterfaces+<OnBuildPreProcess>c__AnonStorey0.<>m__1 (UnityEditor.Build.IPreprocessBuildWithReport bpp) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/BuildPipelineInterfaces.cs:376)UnityEditor.Build.BuildPipelineInterfaces.InvokeCallbackInterfacesPair[T1,T2] (System.Collections.Generic.List`1[T] oneInterfaces, System.Action`1[T] invocationOne, System.Collections.Generic.List`1[T] twoInterfaces, System.Action`1[T] invocationTwo, System.Boolean exitOnFailure) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/BuildPipelineInterfaces.cs:356)UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)

2. Error building Player: NullReferenceException: Object reference not set to an instance of an object

Note: -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------

1. AR camera doesn't render anything when build and deployed on a platform. Black screen appears when the app is launched on any platform. (Checked on Android, iOS, Standalone)

Stack Trace: 12-26 15:19:36.066 18373-18407/? E/Unity: NullReferenceException: Object reference not set to an instance of an object
at UnityEngine.JsonUtility.FromJson[T] (System.String json) [0x00011] in <65d98bbc8ec6474d9bc218b709a31bb7>:0
at Vuforia.EulaJsonUtility.JsonToVersionStrings (System.String json) [0x00000] in <07ec540372694de48edb66f597ebeae4>:0
at Vuforia.PlayModeEditorUtility+NullPlayModeEditorUtility.IsVuforiaActiveAndEULAAccepted () [0x00024] in <07ec540372694de48edb66f597ebeae4>:0
at Vuforia.VuforiaRuntime.IsVuforiaActiveAndEULAAccepted () [0x00005] in <07ec540372694de48edb66f597ebeae4>:0
at Vuforia.PlatformRuntimeInitialization.InitPlatform () [0x00000] in <07ec540372694de48edb66f597ebeae4>:0

(Filename: <65d98bbc8ec6474d9bc218b709a31bb7> Line: 0)
12-26 15:19:36.157 18373-18407/? E/Unity: NullReferenceException: Object reference not set to an instance of an object
at UnityEngine.JsonUtility.FromJson[T] (System.String json) [0x00011] in <65d98bbc8ec6474d9bc218b709a31bb7>:0
at Vuforia.EulaJsonUtility.JsonToVersionStrings (System.String json) [0x00000] in <07ec540372694de48edb66f597ebeae4>:0
at Vuforia.PlayModeEditorUtility+NullPlayModeEditorUtility.IsVuforiaActiveAndEULAAccepted () [0x00024] in <07ec540372694de48edb66f597ebeae4>:0
at Vuforia.VuforiaRuntime.IsVuforiaActiveAndEULAAccepted () [0x00005] in <07ec540372694de48edb66f597ebeae4>:0
at Vuforia.VuforiaRuntime.VuforiaInitialization () [0x00011] in <07ec540372694de48edb66f597ebeae4>:0

(Filename: <65d98bbc8ec6474d9bc218b709a31bb7> Line: 0)
12-26 15:19:36.180 4909-7901/? V/WindowManager: Relayout Window{89ad4f4 u0 com.Company.ProductNam/com.unity3d.player.UnityPlayerActivity}: viewVisibility=0 req=1080x1920 WM.LayoutParams{(0,0)(fillxfill) sim=#20 ty=1 fl=#80810500 pfl=0x1020000 fmt=-3 wanim=0x10302fc vsysui=0x1716 sysuil=true needsMenuKey=2 colorMode=0 naviIconColor=0}
12-26 15:19:36.193 18373-18373/? D/ViewRootImpl@434dc9[UnityPlayerActivity]: Relayout returned: old=[0,0][1080,1920] new=[0,0][1080,1920] result=0x1 surface={valid=true 3682418688} changed=false
12-26 15:19:36.249 18373-18407/? E/Unity: Exception in callback: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.NullReferenceException: Object reference not set to an instance of an object
at UnityEngine.JsonUtility.FromJson[T] (System.String json) [0x00011] in <65d98bbc8ec6474d9bc218b709a31bb7>:0
at Vuforia.EulaJsonUtility.JsonToVersionStrings (System.String json) [0x00000] in <07ec540372694de48edb66f597ebeae4>:0
at Vuforia.PlayModeEditorUtility+NullPlayModeEditorUtility.IsVuforiaActiveAndEULAAccepted () [0x00024] in <07ec540372694de48edb66f597ebeae4>:0
at Vuforia.VuforiaRuntime.IsVuforiaActiveAndEULAAccepted () [0x00005] in <07ec540372694de48edb66f597ebeae4>:0
at Vuforia.VuforiaARController.Start () [0x00000] in <07ec540372694de48edb66f597ebeae4>:0
at (wrapper managed-to-native) System.Reflection.MonoMethod.InternalInvoke(System.Reflection.MonoMethod,object,object[],System.Exception&)
at System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.B

2.Null reference in thrown when created with 'Build' option as well but it is built successfully

Reproducible On:

2019.1.0a13

Not Reproducible On

2019.1.0a12

Environment:
Occurs on Windows and Mac

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.