- Sort Posts
- 31 replies
- Last post
Black screen when app installed first time
Black screen when app installed first time
Black screen when app installed first time
Hi,
you mention a generic "black screen" issue, but it is hard to tell what it is about, without any additional information about your application and your device and OS version;
however, this sounds like an initialization error, which you can reveal by checking the Logs of your App using "ADB logcat"; it is possible that you're facing an error like "Invalid App Key", "Missing App Key" or "Network connection error";
Also, are you using an Init Error Handler ? Vuforia provides a convenient Default Initialization Error Handler script that you can attach to your ARCamera and which will display a dialog on the screen if an error occurred at initialization time; this may tell what goes wrong.
The Vuforia Samples also provide an example of Init Error Handler usage.
Black screen when app installed first time
I'm running with unity Android not iOS. I'm facing with all version of OS. But when i connect the mobile to the unity edtior and run then it's working fine but when i generated the apk and copy into mobile device then install, i'm getting black screen error. I'm not sure why this happening but same code working fine with vuforia 3 version. But in vuforia 4.0.103 is not working.
In Unity Editor it's working fine.
Black screen when app installed first time
Hi,
There wasn't any error. There was even "QCAR initialization succesfull" message. The error appears on Android 4.4.2, but on 4.4.4 and 5 are no longer. After that error I can't use default camer app from system, until I reboot device. App works well on iOS becasue I don't use split obb.
Also "black screen' it's camera color from unity.
I fix this error by upgrading app with Vuforia 4.2.
Black screen when app installed first time
I tried to upgraded into vuforia 4.2 of my app but when i install the app, the app is crashing in my mobile. I tried below for upgraded,
Black screen when app installed first time
I've done that but when i scan the image then the app cameraview is freezing. I've combined cloud reco and video playback. Do i need to change anything? When i use below line then the app is crashing but when i don't use this line, the camera is freezing when target detect.
mCloudRecoBehaviour.CloudRecoEnabled = false;
public CloudRecoBehaviour mCloudRecoBehaviour;
Black screen when app installed first time
@Alessandro: Did you check your unity video playback 4.2.3 sample code? Does it works fine? I tried to run your sample code into unity and when i run into android mobile then scan the tracker image, it's crashing. So, maybe you've some issue in your cloud reco code. that's why for me also getting error.
Please check proper and let me know.
Black screen when app installed first time
Have you tried the Video Playback sample and the Cloud Reco sample unity-packages from 4.2.3 ?
Regarding the Cloud Reco code that you reported below, I believe you're referring to this little tutorial (as the code snippets seem to be basicaly copied from there):
https://developer.vuforia.com/forum/faq/unity-how-do-i-create-simple-cloud-reco-app
This should work fine on 4.0 as well as 4.2.3; a quick test to try is to setup a fresh new mini project with 4.2.3 and the code of the Tutorial above and see if that works.
Black screen when app installed first time
Hello,
I've setup with new project and when i installed the app first time it gets crashed and when i scan the tracker image then the camera freeze and the app crasshed. Not sure, what is happening. Please it's frustrating because i thought to release my app on last week but due to this issue it's getting too late.
Android version 4.3, 4.4.1, 4.4.4, 5 not working but it works fine in unity editor.
Black screen when app installed first time
The code what you given in the link is working fine with 4.0.103. This is what i'm telling from first but the same code don't work with 4.2.3. Please check early and let me know because i need to release my app soon.
https://developer.vuforia.com/forum/faq/unity-how-do-i-create-simple-cloud-reco-app
Black screen when app installed first time
I tested the Tutorial setup and code on 3 different devices and I did not observe any crash;
this is the complete test code I used:
using UnityEngine; using System.Collections; using Vuforia; public class SimpleCloudHandler : MonoBehaviour, ICloudRecoEventHandler { public ImageTargetBehaviour ImageTargetTemplate; private CloudRecoBehaviour mCloudRecoBehaviour; private bool mIsScanning = false; private string mTargetMetadata = ""; // Use this for initialization void Start() { // register this event handler at the cloud reco behaviour mCloudRecoBehaviour = GetComponent<CloudRecoBehaviour>(); if (mCloudRecoBehaviour) { mCloudRecoBehaviour.RegisterEventHandler(this); } } public void OnInitialized() { Debug.Log("Cloud Reco initialized"); } public void OnInitError(TargetFinder.InitState initError) { Debug.Log("Cloud Reco init error " + initError.ToString()); } public void OnUpdateError(TargetFinder.UpdateState updateError) { Debug.Log("Cloud Reco update error " + updateError.ToString()); } public void OnStateChanged(bool scanning) { mIsScanning = scanning; if (scanning) { // clear all known trackables ObjectTracker tracker = TrackerManager.Instance.GetTracker<ObjectTracker>(); tracker.TargetFinder.ClearTrackables(false); } } // Here we handle a cloud target recognition event public void OnNewSearchResult(TargetFinder.TargetSearchResult targetSearchResult) { // do something with the target metadata mTargetMetadata = targetSearchResult.MetaData; Debug.Log("Metadata : " + targetSearchResult.MetaData); if (ImageTargetTemplate) { // enable the new result with the same ImageTargetBehaviour: ObjectTracker tracker = TrackerManager.Instance.GetTracker<ObjectTracker>(); ImageTargetBehaviour imageTargetBehaviour = (ImageTargetBehaviour)tracker.TargetFinder.EnableTracking( targetSearchResult, ImageTargetTemplate.gameObject); } // stop the target finder (i.e. stop scanning the cloud) mCloudRecoBehaviour.CloudRecoEnabled = false; } void OnGUI() { // Display current 'scanning' status GUI.Box(new Rect(100, 100, 200, 50), mIsScanning ? "Scanning" : "Not scanning"); // Display metadata of latest detected cloud-target GUI.Box(new Rect(100, 200, 200, 50), "Metadata: " + mTargetMetadata); // If not scanning, show button // so that user can restart cloud scanning if (!mIsScanning) { if (GUI.Button(new Rect(100, 300, 200, 50), "Restart Scanning")) { // Restart TargetFinder mCloudRecoBehaviour.CloudRecoEnabled = true; } } } }
The setup is using an App License Key for SDK 4.2.3 (which I generated few hours ago on my test account) and the Cloud Access and Secret Keys copy-pasted from the official Cloud Reco sample of Vuforia SDK 4.2.3
The result shows a Cube when the stones (or chips) target is detected; the GUI allows the user to restart the scanning.
See also attached screenshot.
Attachment | Size |
---|---|
![]() | 1.48 MB |
Black screen when app installed first time
Same code i'm using and the same code working fine with 4.0.103 but it's not working with 4.2.3. It's working fine with unity editor but it's not working in mobile. Please help me and already i sent my project link for download and test because i tried all the ways what you mentioned. No luck. Please do the needful.
Black screen when app installed first time
Could you check the logs with adb logcat and see if there is any error message around the crash ?
Also, check again all the steps in the Migration guide:
https://developer.vuforia.com/library/articles/Solution/How-To-Migrate-a-Unity-Project
and make sure to Close your Unity project, delete the Library folder as well as the "obj" and "Temp" directories, then reopen the Unity project and verify that your Unity project does not reveal any error in the Console.
Black screen when app installed first time
Please check the log and when i scan the image i'm getting metadata value but after that suddenly the app is crashing.
Black screen when app installed first time
The logs you pasted do not show any error or useful details on why the crash might occur;
try one of these commands from the console:
adb logcat -s QCAR Unity
(this will show all Logs that are logged by the Vuforia native SDK and by Unity)
or, you can filter the Logs by level; for example, the following will report all errors:
adb logcat *:E
Black screen when app installed first time
Now open the app it crashed. See the logs,
Black screen when app installed first time
Can you please give your project link to download and check? Please check the video of the app working and it showing black screen only.
www.xplorear.com/Unity/projects/20150602_194151.mp4
Last 10days i'm facing with this issue. Please help on this.
Black screen when app installed first time
The logs do not reveal an error message, however they show multiple attempts of the TargetFinder to retrieve the init state; so, something must be broken in your project;
the black camera shown in the video is not a "crash"; it looks like you might be doing something incorrect at initialization time in some of your script.
Again, try to isolate the issue in a minimal repro-case; in my previous post (see post #16) I already posted the test code that you can use (which works correctly here with Vuforia 4.0 as well as Vuforia 4.2.3);
if you can reproduce a crash log using such minimal repro-case, then we can look at it and verify whether there is a problem in Vuforia, but otherwise it sounds more like an App specific issue that you need to debug first within your app.
Black screen when app installed first time
Black screen when app installed first time
It works fine when using 4.6.5 and when i scan the image the video keyframe texture is showing
Glad to hear it now works with Unity 4.6.
...but i can't able to click the button and watch the video. Which file should i check the code for click the play icon and video play
That depends on where you have put that code in your project; if you have taken inspiration from the VideoPlayback sample code, the Play() method is in a script called VideoPlayerHelper.cs; if you start from that and you look for references to that function call in your project, you should be able to find out the code that triggers the Play.
Hi,
I have simmilar problem. I use Unity 4.6.3 and Vuforia 4.0.103. Apps with obb split have black screen on camera view at first run.