Topic locked

iOS Camera Screen goes black

May 26, 2015 - 2:55am #1

Vuforia SDK Version: 4.2.3 -
Description with steps to reproduce:

I have used Vuforia iOS 4.2.3 version in my app. Whenever i try to open a camera it goes black. Not able to understand what to do? Kindly give any solutions?

Device iPhone 7.0.3, ipad 8.1

-
Development OS (Mac OS X, Windows, Linux): iOS -
Mobile OS and Version: iOS 7 & 8 -
Mobile Device Manufacturer and Model name: iPhone ipad -
Do the Vuforia Sample Applications show the same behavior?: Yes in iphone. Not tried in ipad

iOS Camera Screen goes black

June 25, 2015 - 12:24am #27

Thank you for your answer. we can consider the issue as closed.

iOS Camera Screen goes black

June 24, 2015 - 10:53am #26

josefgrunig wrote:

I suspect the license check done in background was failing somehow servers side. Is this possible? I thought the license checks were being done offline since 4.2...

The problem was not related to the license. It was a configuration issue on our server which was specific to the iPhone 4, which we fixed. Cycling licenses is merely an action item to trigger a result.

Note: The iPhone 4 is not officially supported by Vuforia 4.x. The minimum iPhone model tested and supported by Vuforia 4.x is the iPhone 4S.

 

iOS Camera Screen goes black

June 24, 2015 - 12:58am #25

Vuforia started to work again, but I'm confused.

After your reply I started ALL the NOT working apps once (without rebuilding them) and still got the black screen. Then I run the application a second time and from there on they always works. I did non re-instal, did not change the phone environment nor the license keys or network. Then I re-run the procedure that was reproducing the error on the Vuforia Sample, but it works on the first run. 

I suspect the license check done in background was failing somehow servers side. Is this possible? I thought the license checks were being done offline since 4.2...

What happens to the apps if there is an erorr your side?

Thank you for the answers

 

iOS Camera Screen goes black

June 23, 2015 - 12:43pm #24

josefgrunig wrote:

I changed the license from Classic to Starter, and... it works!

It's a good sign if the Starter license is working. Could you try cycling through several licenses and then trying your Classic one again?

josefgrunig wrote:

Please test it with a Classic license and you will for certain reproduce the bug.

I tested with two Starter and three Classic licenses and they all work.

 

iOS Camera Screen goes black

June 23, 2015 - 1:15am #23

Hi dm3d,

did the whole process again, as written in my previous post and got succesfully to reproduce the bug, without changing any setting or line of code at all, a part from inserting the license code. So got an idea: I changed the license from Classic to Starter, and... it works! Please test it with a Classic license and you will for certain reproduce the bug.

Please let me know when we can get a fix/workaround? This issue is becoming embarassing... 

Josef Grunig

iOS Camera Screen goes black

June 22, 2015 - 5:33pm #22

I've tested several of our iOS 4.2.3 sample apps on an iPhone 4 (7.1.2) and have restarted them several times after the initial Xcode install and the video background is displaying fine. Can you try running a new copy of the VuforiaSamples 4.2.3 sample app on your iPhone 4 (7.1.2)?

Note: This troubleshooting is only for the iPhone 4 (7.1.2) and no other device.

iOS Camera Screen goes black

June 18, 2015 - 11:50pm #21

Hi dm3d,

When the app is deleted and re-run from XCode it obviously works, but again only for the first run.

iOS Camera Screen goes black

June 18, 2015 - 11:48pm #20

We confirm this issue

iOS Camera Screen goes black

June 18, 2015 - 9:01pm #19

Seems to only work on the very first run after installation.

iOS Camera Screen goes black

June 18, 2015 - 6:03pm #18

In regards to the iPhone 4 black video background, can you delete the app from your device and re-run from Xcode?

iOS Camera Screen goes black

June 18, 2015 - 8:52am #17

Any feedback? Were you Vuforia guys able to reproduce the issue?

The problem is blocking submission of several apps so I hope we get a fix or at least a workaround very soon.

Josef Grunig

iOS Camera Screen goes black

June 17, 2015 - 7:46am #16

Hi,

I was able to reproduce the problem with the Vuforia examples. It's not Unity related, because I'm using native iOS SDK 4.2.3.

Steps to reproduce the problem:

  1. Download SDK 4.2.3 for iOS
  2. Download example packege and put it in the example folder
  3. Created a Vuforia "Classic" Key and pass it as paramenter of the "setInitParameters" 
  4. Run the example "Image Targets"
  5. The camera will show up without problems
  6. Press the "Stop" button on XCode
  7. Run the example "Image Targets" again
  8. The camera is black

Device on which was possible to reproduce systematically the problem (with the examples and several other apps):

  • Iphone 4 with iOS 7.1.2

Other informations:

  • We are not noticing problems on iOS8
  • We are using OpenGLES2.0
  • On previous version of Vuforia (3.x) was working without issues
  • Xcode Version 6.3.2 (6D2105)
  • OSX Yosemite 10.10.3 (14D136)

If it helps, I got a GPU Frame and notice errors in the QCAR::Renderer::getInstance().drawVideoBackground();

ImageTargetsEAGLView.mm: error: GL Error: Invalid Enum: An enumerated argument to the function call has an unacceptable value.

ImageTargetsEAGLView.mm: error: Validation Error: glTexImage2D(GL_TEXTURE_2D, 0, GL_INVALID_ENUM, 512, 512, 0, GL_INVALID_ENUM, GL_INVALID_ENUM, NULL) : (invalid enum=0x0500): Invalid enum for argument 'internalformat'
 
Hope to hear something very soon; if you need more details please let me know.
 
Josef Grunig

iOS Camera Screen goes black

June 15, 2015 - 9:33am #15

I have a similar problem. My project is based on Unity3d 5.1. Integrated Vuforiya SDK 4.2.3 and new version Cardboard SDK. The platform - iOS. Any ideas?

iOS Camera Screen goes black

June 14, 2015 - 7:30pm #14

I get this same issue for Android, built on a Windows 7 machine, Unity 5.0.1p3, Vuforia 4.2

I use OpenGL ES2.0 regardless and still it gives me this black screen problem randomly. 

My app starts with a menu and on clicking the menu, I get an ARCamera turned On. Happens when I run the app for too long. 

I've cleared cache in my C# scripts but still no luck. It gives me this black screen randomly and I am not able to demo the app to my clients because of this problem.

Again, please note that the ARCamera works, but as I switch between scenes it turns black at some point. And then I would either have to restart the application, or restart the device.

iOS Camera Screen goes black

June 12, 2015 - 12:59pm #13

Changing the Graphics API to Open GL 2.0, didn't work for us. Any other sollution?"

Here is the log showing it is set for Open GL 2.0.

"Creating OpenGLES2.0 graphics device

Initialize engine version: 4.6.6f2 (ab0b38d96363)

UnloadTime: 16.263166 ms

Setting BehaviourComponentFactory

UnityEngine.Events.CachedInvokableCall`1:Invoke(Object[])

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

UnityEngine.Debug:Log(Object)

Vuforia.ComponentFactoryStarterBehaviour:SetBehaviourComponentFactory()

System.Action:Invoke()

Mono.Security.Cryptography.RSAManaged:get_IsCrtPossible()

Vuforia.ComponentFactoryStarterBehaviour:Awake()

UnityEngine.Events.CachedInvokableCall`1:Invoke(Object[])

UnityEngine.GameObject:Internal_AddComponentWithType(Type)

UnityEngine.GameObject:AddComponent(Type)

UnityEngine.GameObject:AddComponent()

Vuforia.QCARBehaviour:Awake()

UnityEngine.Events.CachedInvokableCall`1:Invoke(Object[])""

 

iOS Camera Screen goes black

June 11, 2015 - 12:06pm #12

The iOS Metal API is not supported by Vuforia. The "Automatic" value in Graphics API settings for iOS in Unity will choose Metal by default, but for Vuforia you should manually set it to OpenGL ES 2.0. In Vuforia 4.2.3, the "OpenGL ES 2.0" should be selected automatically at time of import.

https://developer.vuforia.com/forum/issues-and-bugs/camera-not-working-when-app-installed-mobile#comment-2051006

 

iOS Camera Screen goes black

June 11, 2015 - 3:39am #11
Hi,
 
The black screen issue affects currently Unity 5.0 - 5.1 and Vuforia 4.x.
Currently Vuforia seems to have problems with the iOS Metal API (which is auto selected on x64 device), to fix this issue:
 
In Unity goto "Build settings -> iOS" and click "Player Settings".
Now the Player Settings Panel should be opened on the right side.
Select the Tab "Other Settings" and set the option "Graphics API" to "Open GL ES 2.0".
 
This fixes the black screen issue for me on Mac OS 10.10 + Unity 5.x.
 
Hope that helps ;)

iOS Camera Screen goes black

June 10, 2015 - 12:30pm #10

I have a Same Issue On iPhone 4s but its working fine on iPhone6, Any Update to fix this issue?

iOS Camera Screen goes black

June 9, 2015 - 4:20pm #9

Is the video background black if you compile the native (non-Unity) iOS ImageTargets 4.2.3 sample app to your device from Xcode?

iOS Camera Screen goes black

June 8, 2015 - 8:35am #8

I have the same issue on the Android side, as posted in this topic.

Looks like many people need a solution for this as soon as possible.

iOS Camera Screen goes black

June 8, 2015 - 8:07am #7

I am seeing the same issue with Vuforia 4.2.3 on iOS 8.2 on iPad Mini 2.  The video background is black but image tracking (and AR rendering) does succeed.

iOS Camera Screen goes black

May 29, 2015 - 10:56am #6

Any luck on fixing this? 

 

iOS Camera Screen goes black

May 26, 2015 - 9:32pm #5

Ya i have changed the key. Still same issue

iOS Camera Screen goes black

May 26, 2015 - 8:33pm #4

Built ImageTargets 4.2.3 in Unity 4.6.4f1 and Unity 5.0.2p1 and ran successfully on an iPad Air 2 (iOS 8.2). Are you enabling camera permissions (needed for iOS 8)? Are you building the project in Unity and then manually running it from Xcode? Here's additional info needed for debugging:

https://developer.vuforia.com/forum/device-support/how-report-device-issue

iOS Camera Screen goes black

May 26, 2015 - 6:10pm #3

Exactly the same issue. Seeing lots of posts about camera not displaying, but no concrete solutions. 

Everything works a-OK in the Editor, but nothing on iOS is working and it sounds like you've tested on more devices than we have. 

Really hungry for a solution, been banging my face on the table trying to solve it all day. 

iOS Camera Screen goes black

May 26, 2015 - 7:35am #2

Did you Update your Keystore??

When you upgrade from 4.0.1 to 4.2.3 you have to use the newer Keystore

Topic locked