Log in or register to post comments

Unity -> iOS, Background video is black

May 27, 2015 - 3:42pm #1

Vuforia SDK Version: 4.2.3 -

Description with steps to reproduce:

This is a simple setup that is only serving as image recognition. An AR Camera with a series of tags that activates a UnityEngine.UI.Text saying if it sees a tag or not. 

It works just fine in the Editor, but when built out to iOS (we have two test devices: iPhone 5s and iPod Touch 5th Gen), the camera only shows a dark plane. Image Recognition is still running, because the Tag Recognition text is still working. 

Unity version is 4.6.4.

This is the only messaging that seems relevant coming from XCode while we're debugging:

 

cameraDeviceInitCamera

2015-05-27 15:16:18.817 Develop[641:345055] *** -[AVCaptureVideoDataOutput setVideoSettings:] - videoSettings dictionary contains one or more unsupported (ignored) keys: (

    Width,

    Height

)

cameraDeviceGetVideoMode

Using default scene scale for device: 1

Replacements.RemotingServices:CreateClientProxy(Type, String, Object[])

UnityEngine.Debug:Internal_Log(Int32, String, Object)

UnityEngine.Debug:Log(Object)

Vuforia.QCARAbstractBehaviour:CheckSceneScaleFactor()

Vuforia.QCARAbstractBehaviour:ConfigureVideoBackground(Boolean)

Vuforia.CameraDeviceImpl:Init(CameraDirection)

ShipPart:Reset()

Vuforia.QCARAbstractBehaviour:StartQCAR(Boolean, Boolean)

Vuforia.QCARAbstractBehaviour:Start()

Replacements.RemotingServices:CreateClientProxy(Type, String, Object[])

 

(Filename: /Users/builduser/buildslave/unity/build/artifacts/iPhonePlayer-armv7-il2cppGenerated/UnityEngineDebug.cpp Line: 56)

 

2015-05-27 15:16:18.844 Develop[641:345055] ERROR/AR(641) 2015-05-27 15:16:18: VideoBackgroundConfig with screen size of zero received, skipping config step

cameraDeviceSelectVideoMode

cameraDeviceStartCamera

markerTrackerStart

objectTrackerStart

Trackable B02 lost

Replacements.RemotingServices:CreateClientProxy(Type, String, Object[])

UnityEngine.Debug:Internal_Log(Int32, String, Object)

UnityEngine.Debug:Log(Object)

Vuforia.TagTrackingBehaviour:OnTrackingLost()

Vuforia.TagTrackingBehaviour:OnTrackableStateChanged(Status, Status)

System.Collections.Generic.List`1:GetEnumerator()

Vuforia.TrackableBehaviour:RegisterTrackableEventHandler(ITrackableEventHandler)

Vuforia.TagTrackingBehaviour:Start()

Replacements.RemotingServices:CreateClientProxy(Type, String, Object[])

 

-

Development OS (Mac OS X, Windows, Linux): OS X -

Mobile OS and Version: iOS 7.1 and 8.3 tested -

Mobile Device Manufacturer and Model name: iPhone 5s, iPod Touch 5th Gen -

Do the Vuforia Sample Applications show the same behavior?: No.

Unity -> iOS, Background video is black

December 10, 2015 - 12:17am #9

i wasted a hole day binary excluding debug to figure it out. the key issue here with Fonts (i used proxymininova light) after i replaced bold text on UI component to Normal everything is compiling succesfully with any unity 32 version onm Windows 7 (latest vuforia sdk) i reccomend no one to repeat that practise (i dled all unity5 version from site and after only i reimport vuforia package sdk getting closer to get the clues about that backgroundvideosize of zero bug shiiiiii

Unity -> iOS, Background video is black

July 20, 2015 - 6:01pm #8

Yes AlessandroB, thanks! it was related to that one Unity 5.1.1f1 fix everything.

Unity -> iOS, Background video is black

July 20, 2015 - 9:11am #7

Unity -> iOS, Background video is black

July 20, 2015 - 7:03am #6

Hi AlessandroB, thanks for your quick reply. 

 

I'm using:

Unity 5.1.2f

Vuforia 4.2.3

XCode 6.4

 

I really don't know what to do, 'cause I already tested the camera access throught Unit using WebCamDevice/WebCamTexture and works perfectly.

What I can't understand it's why works on iPhone 6 - ios8 and no one else.

 

My friend helped me implementing this solution: https://developer.vuforia.com/forum/unity-3-extension-technical-discussion/ios-app-rejection-no-camera-detected-after-allowing-cam  but with no success.

 

Do you have other suggestion of what could be?

 

Regards

Unity -> iOS, Background video is black

July 20, 2015 - 1:44am #5

If you are using Unity 4.6.4 (as the first poster of this thread mentioned), you can try upgrading to Unity 4.6.7, as there seem to be quite a large number of iOS and/or IL2CPP related bug-fixes between Unity version 4.6.4 and version 4.6.7, according to the Release notes:

https://unity3d.com/unity/whats-new/unity-4.6.7

https://unity3d.com/unity/whats-new/unity-4.6.6

https://unity3d.com/unity/whats-new/unity-4.6.5

 

 

Unity -> iOS, Background video is black

July 19, 2015 - 6:29pm #4

Yes! I´m wondering here too, any news about that? 

My UNITY + Vuforia project works fine on ANDROID but on ios I get this:

 

VideoBackgroundConfig with screen size of zero received, skipping config step

cameraDeviceSelectVideoMode

cameraDeviceStartCamera

markerTrackerStart

objectTrackerStart

cameraDeviceGetVideoMode

OpenGLES error 0x0502 in /Classes/Unity/GlesHelper.mm:334

 

Application crashes, I´ve tested in:

 

iPhone 4 - ios7.0.1

iPad 2 - ios 7.1

iPhone 6 - ios8.2 - works just fine

 

 

 

 

 

Unity -> iOS, Background video is black

June 12, 2015 - 11:37am #3

Almost the same problem here and we can't find the sollution. 

Any news in your project?

Unity -> iOS, Background video is black

May 29, 2015 - 10:55am #2

Correction: the Image Targets demo works fine on these devices and Unity version as a separate build.

When I add demo to our project, it does not run (same problem, no camera output).

There are no useful errors while debugging in XCode. 

Log in or register to post comments