Log in or register to post comments

Camera not working when app installed on mobile

June 3, 2015 - 11:03am #1

Vuforia SDK Version: vuforia-unity 4-2-3 -

Description with steps to reproduce:

Hello,

I tried making simple AR app using ARCamera and image target in unity. After completing all the neccessory steps when I try to run a app on mobile, the camera does not start, instead a black screen comes up after that Unity screen.

Kinidly let me know what is the issue ASAP.

 

 

 

 

 

 

 

 

 

Regards,

Haresh Masand.

 

-

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

Mobile OS and Version: Android -

Mobile Device Manufacturer and Model name: Samsung S7392 -

Do the Vuforia Sample Applications show the same behavior?: Yes

Camera not working when app installed on mobile

July 1, 2019 - 3:38am #38

Just some updates, I tried to update all to the latest Unity (2019) and Vuforia (8.x) and now it result in pink screen. So I think this is shader issue in videobackground

[Edited] after changing the shader to legacy shader diffuse, the result is the same green color screen. So forget this part.

Camera not working when app installed on mobile

June 30, 2019 - 6:42am #37

Hi, the camera also has issues on acer iconia tab 8 device, I tried using the sample vuforia core and it show green color camera.

I am using Vuforia (7.0.50) and Unity (2017.3) on Android 4.4, Acer Iconia Tab 8

AttachmentSize
Image icon Screenshot_2019-06-30-21-40-36.png1015.58 KB

Camera not working when app installed on mobile

January 23, 2019 - 2:32pm #36

Hello,

I suggest you take advantage of our Core samples as a basis for starting your project.

https://assetstore.unity.com/packages/templates/packs/vuforia-core-samples-99026

Thanks,

Vuforia Engine Support

Camera not working when app installed on mobile

January 23, 2019 - 7:40am #35

Complete amateur here, can anyone tell me a way to fix this?
I am connected to the internet as well as pasted in my License for vuforia.
I have also deleted the main camera, leaving only the AR camera along with the image targets and objects as children.
Help...?

AttachmentSize
Image icon Screenshot_20190123-233630.jpg38.82 KB

Camera not working when app installed on mobile

November 14, 2017 - 9:50am #34

Hi Rahul,

Did you activate Vuforia Support in Player Settings -> XR Settings? If you did and you are still seeing this issue, could you take a screen shot of your scene hierarchy (with the ARCamera selected) and your Vuforia Configuration?

Thanks,

-Vuforia Support

Camera not working when app installed on mobile

November 13, 2017 - 10:28pm #33

I just upgrade the vuforia version and i have already entered a license key for the same .

 

I just need to discuss in the new version of vuforia we does not have AR prefab where camera is present.So that we put our own camera as child to the ARCamera what all proerties should camera have so the camera will be working good in the device as it is not running on the device ?

As it is showing only the black screen when i install on the device but it is working good for the editor any other specification we need to change  for the same . 

Please specify the same .

Any help is really appreciated .

Regards

Rahul Ahuja

 

 

Camera not working when app installed on mobile

November 13, 2017 - 4:59pm #32

rahulahuja wrote:

Vuforia SDK Version: vuforia-unity 6.5

Unity version - 2017.2.0f3 .

Description with steps to reproduce:

Hello,

I tried making simple AR app using ARCamera and image target in unity. After completing all the neccessory steps when I try to run a app on mobile, the camera does not start, instead a black screen comes up after that Unity screen.

Kindly let me know what is the issue ASAP.

 

I have tried the latest JDK and other things  i have done check the OpenGl ES2 but my camera does not start. Please give me some relevant solution.

 

 

 

 

 

 

 

 

 

Regards,

Rahul Ahuja.

 

-

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

Mobile OS and Version: Android -

Mobile Device Manufacturer and Model name: Samsung S7392 -

Do the Vuforia Sample Applications show the same behavior?: Yes

Have you entered a license key? Are there any errors in ADB Logcat?

Thanks,

-Vuforia Support

Camera not working when app installed on mobile

November 13, 2017 - 3:10am #31

Vuforia SDK Version: vuforia-unity 6.5

Unity version - 2017.2.0f3 .

Description with steps to reproduce:

Hello,

I tried making simple AR app using ARCamera and image target in unity. After completing all the neccessory steps when I try to run a app on mobile, the camera does not start, instead a black screen comes up after that Unity screen.

Kindly let me know what is the issue ASAP.

 

I have tried the latest JDK and other things  i have done check the OpenGl ES2 but my camera does not start. Please give me some relevant solution.

 

 

 

 

 

 

 

 

 

Regards,

Rahul Ahuja.

 

-

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

Mobile OS and Version: Android -

Mobile Device Manufacturer and Model name: Samsung S7392 -

Do the Vuforia Sample Applications show the same behavior?: Yes

Camera not working when app installed on mobile

September 19, 2017 - 7:49am #30

Hi again,

 

Only to report that finally I'd been able to run Vuforia on 64bits devices after the integration in my app of 64bits version of libVuforia.so included in the fresh new version 6-5-19 released past week.

 

Regards

Camera not working when app installed on mobile

September 19, 2017 - 7:49am #29

Hi again,

 

Only to report that finally I'd been able to run Vuforia on 64bits devices after the integration in my app of 64bits version of libVuforia.so included in the fresh new version 6-5-19 released past week.

 

Regards

Camera not working when app installed on mobile

September 15, 2017 - 2:31am #28

Hi,

Any news about this issue...?

I've readed through the thread, none of the proposed solutions looks to work. I'm executing SDK version 6.2.10 of Vuforia and sample app for Android, developing over Android Studio 2.1.2

When I tried to start Image Targets recognition, (some) devices show the commented black screen, console shows:

09-15 11:24:15.710 26624-26624/com.vuforia.samples.VuforiaSamples D/ImageTargets: onCreate

09-15 11:24:15.732 26624-26988/com.vuforia.samples.VuforiaSamples W/System.err: The library libVuforia.so could not be loaded

09-15 11:24:15.735 26624-26988/com.vuforia.samples.VuforiaSamples I/art: System.exit called, status: 1

09-15 11:24:15.735 26624-26988/com.vuforia.samples.VuforiaSamples I/AndroidRuntime: VM exiting with result code 1, cleanup skipped.

and ap crashes. I'm having this error ONLY IN SOME RECENT DEVICES (no matter what Android version):

Samsung Galaxy S6

Xiaomi redmi note 3

Nexus 5X

Could someone explains why Vuforia is failing for this scenarios? If there isn't a solution for that, is there any way to check if Vuforia is loaded or not before trying to access it and prevent the app crash?

Thanks and Regards,

 

Camera not working when app installed on mobile

September 14, 2016 - 12:16pm #27

Hello,

The Device Tracker feature will only work on devices with a gyroscope. Trying to initialize Vuforia's Device Tracker on device without a gyroscope will result in the tracker failing to initialize.

Thanks.

Camera not working when app installed on mobile

September 10, 2016 - 3:29pm #26

I'm with this same HUGE PROBLEM because some devices are working fine and some aresn't.

When I use ARCam with World center mode to First or Specific targes, it works well on all tested devices. However, when I change to Device Tracking, a lot of devices stop working and reports BLACK SCREEN.

I made a list with beta testers, as follows:

(OK) Samsung Galaxy S4 Mini - Android 4.4

(OK) Samsung Galaxy S2 - Android 4.0.4

(OK) Samsung Galaxy S4 - Android 5.0.1

(OK) Moto G4 Plus - Android 6.0.1

(OK) Samsung Galaxy S5  Android 6.0.1

(OK) LG K10 - Android 6.0

(OK) Moto G2 - Android 6.0

(Black screen) Samsung Galaxy Gran Prime Duos - Android 4.4.4

(Black screen) LG Volt TV - Android 5.0.1

(Black screen) Moto G1 - Android 4.4

(Black screen) Samsung Galaxy J5 - Android 5.1.1

(Black screen) Samsung Galaxy Gran Prime Duos - Android 5.0.2

(Black screen) Samsung A7 - Android 5.1.1

 

As can be noted, it sounds like not just an Android issue, because same Android versions in different devices report different behaviors.

I am using Vuforia 5.5.9 and Unity 5.3.5f1 with latest Java SDK. HOW to solve this issue?

Camera not working when app installed on mobile

September 9, 2016 - 3:34pm #25

In case anyone is having this issue - I found that in Unity, Android settings I put on "Auto API" which caused it to go black. I turned this off and only left OpenGLES2 on and the camera on Android now works. 

 

It was a strange issue as I could see Vuforia on the play mode in editor but getting a black screen on Android when OpenGLES3 is added or on Auto API. Something to keep in mind during development. 

Camera not working when app installed on mobile

August 22, 2016 - 12:42am #24

Thanks for the reply, when I said it only works if i wait on the scene before for 20 seconds what i mean is that if i try to progress before that i just get a black screen. 



Looking at the discussion you sent to me they mentioned loading screens however i don't have these is there a way to implement them? Sorry if the question sounds noobie i'm just learning :)



Thank you!

Camera not working when app installed on mobile

August 19, 2016 - 9:32am #23

Hello,

For the question regarding the time to load a scene, please see the following discussion:

https://developer.vuforia.com/forum/unity-extension-technical-discussion/too-shlow-when-loading-arcamera-loading-scenes

Thanks

Camera not working when app installed on mobile

August 19, 2016 - 7:16am #22

I'm having an issue on my nexus 6p 



Some of my scenes with AR Cameras wont load (show a black screen) or only load if i wait a good 20 seconds before invoking the scene load.



Please help!!

Camera not working when app installed on mobile

August 15, 2016 - 1:28pm #21

Any updates on this matter?
I'm facing a different problem which is,
I can test my app viay pc cam and I can execute my AR file on image target immediately which is a 3d model with shades on. But when I send app to my Nexus 7 or either Nexus 5 I can't see 3d model at all. It doesn't recognise image target or acting like that. But interesting thing is I have one more I.age target and that is a vidoe, it works smoothly with out a problem. I couldn't get my head around it to understand what's going on exactly. I've tried to create new scenes but when I put 3d model it doesn't work on android side for some reason

Any ideas?
I'm on latest version of unity 5.4 or something and vuforia is latest one as well.

Camera not working when app installed on mobile

July 13, 2016 - 10:18am #20

Hey guys,

maybe someone can still help me!

I am developing using Unity5.3.5f1 (64 Bit) and have the same problem with the black screen on my Nexus 7 Android version 4.4.3.

I tryed every solution for the player settings mentioned here but nothing worked!

I try to implement the Vuforia Object Recognition Unity Sample (https://developer.vuforia.com/library//articles/Training/Vuforia-Object-Recognition-Unity-Sample-Guide)

I have no idea how to fix this problem! :(

Thanks for your help!

Camera not working when app installed on mobile

June 28, 2016 - 11:35pm #19

In android build settings 

Select rendering path as legacy Defered

In the rendering section select static batching and gpu skinning only.

then it should work fine

Camera not working when app installed on mobile

June 18, 2015 - 9:07pm #18

miralupaJeff wrote:

Yes this works fine, Vuforia 4.2.3 in Unity 4.6 is working properly when I build on my S3. The issue here is that the final project will be a Unity 5 version so it might not be useable on a S3 phone.

Since it is working in Unity 4.6.x, you might want to try latest Unity 5.1.1f1 which was released today.

Camera not working when app installed on mobile

June 11, 2015 - 6:47pm #17

Yes this works fine, Vuforia 4.2.3 in Unity 4.6 is working properly when I build on my S3. The issue here is that the final project will be a Unity 5 version so it might not be useable on a S3 phone.

Camera not working when app installed on mobile

June 11, 2015 - 1:06pm #16

miralupaJeff wrote:

Still no success following both of these interventions... I'm completely clueless, especially since it works on an old tablet perfectly well... I also checked and my phone already autorized the camera for this app.

If you haven't already done so, you might want to try using Unity 4.6.6 and Vuforia 4.2.3 and compiling to your Galaxy S3 (4.4.2).

Camera not working when app installed on mobile

June 11, 2015 - 9:50am #15

It doesn't work either sadly. Thanks a lot for the help though, I guess we'll figure out a solution at some point.

Camera not working when app installed on mobile

June 11, 2015 - 8:56am #14

Still one last thing to test is the Camera Mode; what happens if you try with camera mode set to MODE_OPTIMIZE_SPEED ?

 

Camera not working when app installed on mobile

June 11, 2015 - 7:56am #13

Still no success following both of these interventions... I'm completely clueless, especially since it works on an old tablet perfectly well... I also checked and my phone already autorized the camera for this app.

Camera not working when app installed on mobile

June 11, 2015 - 6:30am #12

For the Galaxy S3 issue, you kmay want to check that the Android Player Settings > Device Filter is set to ARMv7 (only),   and NOT to "Fat (ARMv7 + x86)".

Secondly, you may want to try upgrading to Unity 5.0.3, as there were some rendering issues (as reported in other Forum threads) with 5.0.1 and 5.0.2 with Vuforia 4.2.3, which have been resolved in 5.0.3.

https://unity3d.com/get-unity/download/archive

Camera not working when app installed on mobile

June 11, 2015 - 5:23am #11

Setting the graphics to Force Open GL ES 2.0 in Android did not fix the issue on my Samsung Galaxy S3, though.

Camera not working when app installed on mobile

June 11, 2015 - 4:26am #10

.......If we change our Graphics API in our iOS Unity Build Settings from Automatic to OpenGL ES2.0 - it *appears* to start working again.  We're testing more - but clearly this seems to be a Unity/Vuforia Automatic/Metal/GLES3.0 issue........

When you import Vuforia 4.2.3 unity package, this will set the OpenGL settings to use OpenGL ES 2.0 automatically.

This works in Unity 4.6 and Unity 5.0 with the iOS Player Settings.

A few reasons why it might fail to set the Graphics API automatically, as far as I can tell, are:

- if you have accidentally excluded the "Extension Import" script from the unity package import

- or if you are using an old version o Vuforia (such as 4.0.103)

- or if you have upgraded from an old version of Vuforia to a newer version and had forgotten to remove the "old" Extension Import script before doing the upgrade

 

Other than that, if you create a fresh new project in Unity and import Vuforia (or one of the samples), the Graphics API should be automatically  set to GLES 2.0

 

 

Camera not working when app installed on mobile

June 10, 2015 - 5:41pm #9

Update - some progress.

 

If we change our Graphics API in our iOS Unity Build Settings from Automatic to OpenGL ES2.0 - it *appears* to start working again.  We're testing more - but clearly this seems to be a Unity/Vuforia Automatic/Metal/GLES3.0 issue.

 

We tested the non-Unity Sample SDK- and that appeared to be ok.  

 

Can you look into the Automatic graphics API setting and Unity - specifically if set to Automatic and run on new phones (iPhone6,iPad Air, etc)?

 

Camera not working when app installed on mobile

June 10, 2015 - 10:58am #8

We just tried a build when the change to "Custom/RenderVideoBackground" 

but same results.  Note, we're not getting crashes, just black screen for the Blackground Plane.  This test was on iPhone 6+ iOS 8.3, Unity 4.6.6, latest XCode, Vuforia Unity plugin. 

Camera not working when app installed on mobile

June 10, 2015 - 8:57am #7

dm3d wrote:

  • What happens if you change BackgroundPlane shader from "Custom/VideoBackground" to "Custom/RenderVideoBackground"?
  • Can you reproduce the issue with the Android (non-Unity) ImageTargets 4.2.3 sample?

 

 

Changing the shader of the BackgroundPlane did not work sadly. As for the native Android app, I'm afraid it goes belong to my knowledge of Android development... I only use and know Unity and did not manage to work through the whole procedure of Eclipse without encountering multiple bugs and problems.

Camera not working when app installed on mobile

June 9, 2015 - 6:32pm #6

We see this same problem, screen black and the same error messages. HOWEVER, error messages occur on devices that also work - so we think the error message has nothing to do with the black screen/capture problem but is hardware specific - which is vuforia problem.

 

Using Unity 4.6.6, latest XCODE, latested Vuforia SDK

 

Does not work*  on following devices

(*=black screen, but can capture if you point at AR target and press capture - however, image captured is black)

-> black screen on iPad Air (iOS 8.3)

-> black screen on iPad Air with cellular + 3G  (iOS 8.13)

-> black screen on iPhone 6+ (iOS 8.3)

 
 

Does Works on:

-> iPad 4 (8.1.3)

 

So the problem is definitely a Vuforia SDK problem and specific iOS hardware - this needs to get fixed ASAP.

 

Camera not working when app installed on mobile

June 9, 2015 - 4:51pm #5

  • What happens if you change BackgroundPlane shader from "Custom/VideoBackground" to "Custom/RenderVideoBackground"?
  • Can you reproduce the issue with the Android (non-Unity) ImageTargets 4.2.3 sample?

 

Camera not working when app installed on mobile

June 5, 2015 - 6:36am #4

After more tests, I can confirm that the black screen and the crash occurs in both Landscape and Portrait mode, wether I build the project in one orientation or the other. 

I have done the test in Unity 5.0.2p1. The Vuforia packages and the license key are indeed the same as you noted.

Thank you for your support, I appreciate!

Camera not working when app installed on mobile

June 4, 2015 - 8:10pm #3

I had success running sample app using following:

  • Unity 5.0.2p1
  • Samsung Galaxy S3 (SGH-I747) -- 4.1.2
  • ImageTargets 4.2.3

You might want to try using Unity 5.0.2p1 with your S3 (4.4.2) to see if it works. Also make sure you are using 4.2 license key with 4.2.3 SDK.

You also mention that issue occurs in landscape, but the ImageTargets sample is locked to portrait-mode. Did you modify the sample app?

Camera not working when app installed on mobile

June 4, 2015 - 5:23am #2

Hello,

I have the same issue but the problem occurs only on Samsung Galaxy S3. The Unity splash screen appears, then the app is trying to trigger the camera, only to crash out of memory. I have tested the app on S4 and even an old tablet that runs Android 4.2.2 and the AR camera works just fine, as it should be. I have the complete logcat of the crash, but here are the most important lines:

 

W/Adreno-ES20( 4275): <core_glDiscardFramebufferEXT:3708>: GL_INVALID_ENUM
W/QCameraHWI_Preview(  176): android::status_t android::QCameraStream_preview::processPreviewFrame(mm_camera_ch_data_buf_t*): CAMERA_MSG_PREVIEW_FRAME
W/QCameraHWI_Preview(  176): 3rd party preview case
W/QCameraHWI_Preview(  176): previewBufSize = 460800
D/ShotSingle(  176): CAMERA_MSG_PREVIEW_FRAME E
D/ShotSingle(  176): CAMERA_MSG_PREVIEW_FRAME X
D/SecCameraCoreManager(  176): getParameters
W/Adreno-GSL( 4275): <gsl_ldd_control:393>: ioctl fd 62 code 0xc01c0934 (IOCTL_KGSL_GPUMEM_ALLOC_ID) failed: errno 12 Out of memory
E/Adreno-GSL( 4275): <ioctl_kgsl_sharedmem_alloc:1524>: ioctl_kgsl_sharedmem_alloc: FATAL ERROR : (null)
F/libc    ( 4275): Fatal signal 11 (SIGSEGV) at 0x00000000 (code=1), thread 4275 (com.Jeff.Vuforia)

 

Description of the issue:

When running a Vuforia-based app, including any of the Vuforia samples, the camera video background is not rendered; the background is always looking black; however the targets are correctly detected and their 3D augmentation models are correctly rendered on top of the black background. The app then crashes out of memory.

Exact Device Model number:

Samsung Galaxy SIII  SGH-1747M

Installed OS version:

Android 4.4.2

Vuforia SDK version

Vuforia SDK 4.2.3

Unity version

5.0.2f1 32bit

Platform (Andoid native, iOS native or Unity)

In the editor, everything works fine and I can use my webcam. Once I build on the phone, the problem occurs.

Samples:

The issue can be reproduced with the Image Targets Vuforia Unity sample.

Error Logs:

See above for the logcat extract linked to the crash.

Device orientation:

The issue occurs in landscape mode.

Back/Front Camera:

None of the cameras work.

Camera Mode:

The issue occurs when using MODE_DEFAULT, no tests have been done in other modes, but I confirm that it works all good on different devices.

Concurrent camera access:

No apps is interfering with the camera. Even after a complete reboot, the camera cannot be used in the Vuforia app.

Log in or register to post comments