Log in or register to post comments

Vuforia - ERROR/AR: Cannot setMode to AR before Camera is init & VideoBackgroundConfig with screen size of zero received...

April 6, 2019 - 8:56pm #1

Im building an iOS App using OSX 10.14.2:

Unity 2018.3.11f1

Vuforia 8.1.7

XCode 10.1

iPhoneX iOS 12.1.4

Main errors I notice:

ERROR/AR(3693) 2019-04-07 23:25:00: Cannot setMode to AR before Camera is initialized

ERROR/AR(3693) 2019-04-07 23:25:00: VideoBackgroundConfig with screen size of zero received, skipping config step

I'm building a by-the-book AR Image target App. One target with just an quad with image material.

The Video Background works, but no AR occurs. I'm testing on my iPhoneX device.

Here is the full log:

 2019-04-06 23:24:55.414761-0400 preliminary[3693:697977] [DYMTLInitPlatform] platform initialization successful
2019-04-06 23:24:55.530113-0400 preliminary[3693:697798] Built from '2018.3/staging' branch, Version '2018.3.11f1 (5063218e4ab8)', Build type 'Development', Scripting Backend 'il2cpp'
2019-04-06 23:24:55.534945-0400 preliminary[3693:697798] -> registered mono modules 0x1027cf0c0
-> applicationDidFinishLaunching()
PlayerConnection initialized from /var/containers/Bundle/Application/48DF0C7C-7436-4869-A3AB-690211BA8DB5/preliminary.app/Data (debug = 0)
PlayerConnection initialized network socket : 0.0.0.0 55000
Multi-casting "[IP] 192.168.0.15 [Port] 55000 [Flags] 3 [Guid] 4161839500 [EditorId] 2665488027 [Version] 1048832 [Id] iPhonePlayer(iPhone):56000 [Debug] 1 [PackageName] iPhonePlayer" to [225.0.0.222:54997]...
Waiting for connection from host on [0.0.0.0:55000]...
PlayerConnection accepted from [192.168.0.2] handle:0x6
Started listening to [0.0.0.0:55000]
PlayerConnection already initialized - listening to [0.0.0.0:55000]
2019-04-06 23:24:55.950630-0400 preliminary[3693:697798] Metal GPU Frame Capture Enabled
2019-04-06 23:24:55.951161-0400 preliminary[3693:697798] Metal API Validation Disabled
2019-04-06 23:24:56.219767-0400 preliminary[3693:697798] [Warning] Trying to set delaysTouchesBegan to NO on a system gate gesture recognizer - this is unsupported and will have undesired side effects
-> applicationDidBecomeActive()
Renderer: Apple A11 GPU
Vendor:   Apple Inc.
Version:  OpenGL ES 2.0 Metal - 58.4
GLES:     2
GL_OES_depth_texture GL_OES_depth_texture_cube_map GL_OES_depth24 GL_OES_element_index_uint GL_OES_fbo_render_mipmap GL_OES_mapbuffer GL_OES_packed_depth_stencil GL_OES_rgb8_rgba8 GL_OES_standard_derivatives GL_OES_texture_float GL_OES_texture_half_float GL_OES_texture_half_float_linear GL_OES_vertex_array_object GL_EXT_blend_minmax GL_EXT_color_buffer_half_float GL_EXT_debug_label GL_EXT_debug_marker GL_EXT_discard_framebuffer GL_EXT_draw_instanced GL_EXT_instanced_arrays GL_EXT_map_buffer_range GL_EXT_occlusion_query_boolean GL_EXT_pvrtc_sRGB GL_EXT_read_format_bgra GL_EXT_separate_shader_objects GL_EXT_shader_framebuffer_fetch GL_EXT_shader_texture_lod GL_EXT_shadow_samplers GL_EXT_sRGB GL_EXT_texture_filter_anisotropic GL_EXT_texture_rg GL_EXT_texture_storage GL_APPLE_clip_distance GL_APPLE_color_buffer_packed_float GL_APPLE_copy_texture_levels GL_APPLE_framebuffer_multisample GL_APPLE_rgb_422 GL_APPLE_sync GL_APPLE_texture_format_BGRA8888 GL_APPLE_texture_max_level GL_APPLE_texture_packed_float GL_IMG_
read_format GL_IMG_texture_compression_pvrtc
OPENGL LOG: Creating OpenGL ES 2.0 graphics device ; Context level  <OpenGL ES 2.0> ; Context handle -2118777536
Initialize engine version: 2018.3.11f1 (5063218e4ab8)
WARNING: Shader Unsupported: 'Standard' - Pass 'META' has no vertex shader
WARNING: Shader Unsupported: 'Standard' - Pass 'META' has no vertex shader
UnloadTime: 3.152542 ms
WARNING: Shader Unsupported: 'Legacy Shaders/Diffuse' - Pass 'Meta' has no vertex shader
Compiled for iOS
Vuforia.PlatformRuntimeInitialization:InitPlatform()

(Filename: ./Runtime/Export/Debug.bindings.h Line: 45)

Initializing Vuforia Engine
Vuforia.VuforiaRuntime:InitVuforia()

(Filename: ./Runtime/Export/Debug.bindings.h Line: 45)

Vuforia Engine Version: 8.1.7
Vuforia.VuforiaRuntime:LogVersions()
Vuforia.VuforiaRuntime:InitVuforia()

(Filename: ./Runtime/Export/Debug.bindings.h Line: 45)

Vuforia Engine Unity Extension Version: 8.1.7
Vuforia.VuforiaRuntime:LogVersions()
Vuforia.VuforiaRuntime:InitVuforia()

(Filename: ./Runtime/Export/Debug.bindings.h Line: 45)

Unity Editor Version: 2018.3.11f1
Vuforia.VuforiaRuntime:InitVuforia()

(Filename: ./Runtime/Export/Debug.bindings.h Line: 45)

Initializing Vuforia...
2019-04-06 23:25:00.020028-0400 preliminary[3693:697798] [MC] System group container for systemgroup.com.apple.configurationprofiles path is /private/var/containers/Shared/SystemGroup/systemgroup.com.apple.configurationprofiles
2019-04-06 23:25:00.020232-0400 preliminary[3693:697798] [MC] Reading from public effective user settings.
2019-04-06 23:25:00.024833-0400 preliminary[3693:697798] User pre-granted access to the camera
2019-04-06 23:25:00.024878-0400 preliminary[3693:697798] INFO/AR(3693) 2019-04-07 23:25:00: Vuforia selected rendering API OpenGL ES 2.x
2019-04-06 23:25:00.024895-0400 preliminary[3693:697798] INFO/AR(3693) 2019-04-07 23:25:00: Vuforia SDK version 8.1.7
2019-04-06 23:25:00.071370-0400 preliminary[3693:697798] INFO/AR(3693) 2019-04-07 23:25:00: Matched precache profile for Apple, iPhone10,6, iOS 12, 800.1
2019-04-06 23:25:00.850332-0400 preliminary[3693:697798] INFO/AR(3693) 2019-04-07 23:25:00: Vuforia Fusion: Detected and enabled use of ARKit
2019-04-06 23:25:00.850627-0400 preliminary[3693:697798] Rendering mode set to: OpenGL ES 2.0
2019-04-06 23:25:00.865466-0400 preliminary[3693:697798] Rendering mode set to: OpenGL ES 2.0
2019-04-06 23:25:00.866013-0400 preliminary[3693:697798] DEBUG/AR(3693) UIView has CAEAGLLayer layer class
2019-04-06 23:25:00.866217-0400 preliminary[3693:697798] DEBUG/AR(3693) UIView does not respond to selector renderFrameVuforia
2019-04-06 23:25:00.866313-0400 preliminary[3693:697798] DEBUG/AR(3693) UIView has CAEAGLLayer layer class
2019-04-06 23:25:00.866440-0400 preliminary[3693:697798] DEBUG/AR(3693) UIView does not respond to selector renderFrameVuforia
2019-04-06 23:25:00.866559-0400 preliminary[3693:697798] DEBUG/AR(3693) Could not find a UIView with CAEAGLLayer or CAMetalLayer layer class that responds to selector renderFrameVuforia
Vuforia Engine initialization successful
Vuforia.VuforiaRuntime:HasInitializationCompleted()
Vuforia.VuforiaARController:UpdateState(Boolean, Boolean)
System.Reflection.MonoMethod:Invoke(Object, BindingFlags, Binder, Object[], CultureInfo)
System.Delegate:DynamicInvokeImpl(Object[])
Vuforia.DelegateHelper:InvokeDelegate(Delegate, Object[])

(Filename: ./Runtime/Export/Debug.bindings.h Line: 45)

2019-04-06 23:25:00.908454-0400 preliminary[3693:697798] ERROR/AR(3693) 2019-04-07 23:25:00: Cannot setMode to AR before Camera is initialized
2019-04-06 23:25:00.909684-0400 preliminary[3693:697798] INFO/AR(3693) 2019-04-07 23:25:00: ObjectTracker: Successfully created dataset
Successfully created data set.
Found Trackable named TL with id 1
Vuforia.StateManager:AssociateTrackableBehavioursForDataSet(DataSet)
Vuforia.DataSet:Load(String, StorageType)
Vuforia.DatabaseLoadARController:LoadDatasets()
Vuforia.VuforiaARController:StartAfterInitializationCompleted()
System.Reflection.MonoMethod:Invoke(Object, BindingFlags, Binder, Object[], CultureInfo)
System.Delegate:DynamicInvokeImpl(Object[])
Vuforia.DelegateHelper:InvokeDelegate(Delegate, Object[])

(Filename: ./Runtime/Export/Debug.bindings.h Line: 45)

Start Vuforia Engine
Vuforia.VuforiaARController:StartVuforia(Boolean)
Vuforia.VuforiaARController:StartAfterInitializationCompleted()
System.Reflection.MonoMethod:Invoke(Object, BindingFlags, Binder, Object[], CultureInfo)
System.Delegate:DynamicInvokeImpl(Object[])
Vuforia.DelegateHelper:InvokeDelegate(Delegate, Object[])

(Filename: ./Runtime/Export/Debug.bindings.h Line: 45)

cameraDeviceStartCamera
2019-04-06 23:25:00.951206-0400 preliminary[3693:697798] INFO/AR(3693) 2019-04-07 23:25:00: Starting camera with profile for iPhone10,6, 800.1
Using Legacy Rendering
Vuforia.VideoTextureUpdaterFactory:CreateTextureUpdater(Camera, BackgroundPlaneBehaviour)
Vuforia.VideoBackgroundBehaviour:Awake()
UnityEngine.GameObject:AddComponent()
Vuforia.VuforiaARController:StartAfterInitializationCompleted()
System.Reflection.MonoMethod:Invoke(Object, BindingFlags, Binder, Object[], CultureInfo)
System.Delegate:DynamicInvokeImpl(Object[])
Vuforia.DelegateHelper:InvokeDelegate(Delegate, Object[])

(Filename: ./Runtime/Export/Debug.bindings.h Line: 45)

2019-04-06 23:25:00.952894-0400 preliminary[3693:697798] ERROR/AR(3693) 2019-04-07 23:25:00: VideoBackgroundConfig with screen size of zero received, skipping config step
-> applicationWillResignActive()
Stop Vuforia Engine
Vuforia.VuforiaARController:StopVuforia()
Vuforia.VuforiaARController:OnApplicationPause(Boolean)
System.Reflection.MonoMethod:Invoke(Object, BindingFlags, Binder, Object[], CultureInfo)
System.Delegate:DynamicInvokeImpl(Object[])
Vuforia.DelegateHelper:InvokeDelegate(Delegate, Object[])
Vuforia.DelegateHelper:InvokeWithExceptionHandling(Action`1, T)

(Filename: ./Runtime/Export/Debug.bindings.h Line: 45)

2019-04-06 23:44:31.390684-0400 preliminary[3693:697991] TIC Read Status [7:0x0]: 1:57
-> applicationDidEnterBackground()

Vuforia - ERROR/AR: Cannot setMode to AR before Camera is init & VideoBackgroundConfig with screen size of zero received...

April 8, 2019 - 1:40pm #3

Thanks for your response, no I didn’t try swapping the targets in your sample. Can you link me to the sample code? Thanks

Vuforia - ERROR/AR: Cannot setMode to AR before Camera is init & VideoBackgroundConfig with screen size of zero received...

April 8, 2019 - 10:14am #2

Hello,

In my experience, these "ERROR" messages are not errors in the fact that they will inhibit the Vuforia Engine samples from running properly. They are more reflections of race conditions in the SDK where it is waiting for the camera to complete initialization. I've escalated a ticket with the development team to re-evaluate the severity of these messages.

There can be other factors that will cause your target to not be detected. Have you tried using our Core samples by only substituting your Image Target for ours to see if that initiates detection?

Thanks,

Vuforia Engine Support

Log in or register to post comments