Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Black screen after running ViroSample #115

Closed
rammuk opened this issue Dec 14, 2017 · 24 comments
Closed

Black screen after running ViroSample #115

rammuk opened this issue Dec 14, 2017 · 24 comments

Comments

@rammuk
Copy link

rammuk commented Dec 14, 2017

Hi

I am trying to run the Viro sample app o my device

iPhone 6 with iOS 11
xcode 9.2

Everything seems to work fine ( no errors ) except when the app lunch I get a blank screen and nothing happens

Any suggestions?

@dam00n
Copy link
Collaborator

dam00n commented Dec 14, 2017

Hi @rammuk, did you add your API key to your App.js file? Step 6 in the getting started guide:

  1. ADD YOUR KEY
    Edit App.js under your project directory and replace API_KEY_HERE with the key emailed to you

If that is not the issue, can you tell us whether this issue is on AR / VR or both?

@rammuk
Copy link
Author

rammuk commented Dec 14, 2017

Hi @dam00n

Yes I did add it,
I am trying to run AR from xcode

@dam00n
Copy link
Collaborator

dam00n commented Dec 15, 2017

Hi @rammuk , ARKit is only supported on iPhone 6s and above which is why you are seeing the black screen. Is there is use case for why you want to build AR for non-supported devices? If so, we could look into seeing how to support that use case but right now it is unclear to us.

@rammuk
Copy link
Author

rammuk commented Dec 15, 2017

Hi @dam00n same outcome using iPhone 7 with ios 11.2

@dam00n
Copy link
Collaborator

dam00n commented Dec 15, 2017

Hi @rammuk , interesting. Usually, the black screen is due to missing or incorrectly entered API key apiKey:"XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX"or unsupported device.

Can we get a little more information from you, so we can investigate further?

  1. Were you able to view HelloWorldSceneAR.js on your device? You mentioned in your original post that you were trying to view the Viro Sample App. Are you referring to HelloWorldSceneAR.js or something like ARSampleApp -> https://github.com/viromedia/viro/tree/master/js/ARSample

  2. Does VR work for you? Try HellowWorldScene.js and tap VR from the AR/VR menu?

  3. Are you getting a black screen (only black) or a blank screen (camera view of your world with nothing appearing in it, like Hello World text)?

@rammuk
Copy link
Author

rammuk commented Dec 17, 2017

HI @dam00n

Checked again the API key and it's ok

  1. I am trying to use the ViroSample example ( react native )
  2. Ill get back to you on that
  3. I am getting only black screen didn't even ask for permission to use the camera

When I am using the Viro media app and Entering Testbed it's also working fine

Hope the information will help

Thanks
Ram

@achuvm
Copy link
Collaborator

achuvm commented Dec 20, 2017

Hi @rammuk,

Sorry for the delayed response as we were preparing our latest release.

That's interesting that you can't seem to build the ViroSample via Xcode.

Can you try the following:

  1. Uninstall the app from your device and reinstall it (it should ask you for camera permissions the first time).
  2. Try creating a new workspace by following the steps here: https://docs.viromedia.com/docs/starting-a-new-viro-project-1
  3. Update to our latest release (https://docs.viromedia.com/docs/releases)

Also, any log output that you see when running the app through Xcode would also be helpful.

We've been unable to repro this issue on our various test devices.

Thanks

@dam00n
Copy link
Collaborator

dam00n commented Jan 6, 2018

Hi @rammuk are you still seeing this issue? We are still unable to reproduce. If you can provide additional info per @achuvm questions above, we would be happy to look into it more.

@dam00n dam00n closed this as completed Jan 19, 2018
@myhendry
Copy link

myhendry commented Feb 28, 2018

Hi Danny, ARCore is now supported on Samsung Edge devices. I can now download the app from Playstore. The AR and VR samples are working fine. I can see both samples.

However, I get a black screen when running the quick start sample on my device. The api key is correct n I get the ngrok address. There was no option for me to choose between AR or VR. Only allows me to enter settings to select the choice of viewer. I tried to set the default as AR in the codes and also amended the starting text "Hello World". However, i still just get a blank black screen with Hello World text. Shaking my phone also doesn't make the options (to set AR or VR) show up. Please advise. Thanks

@dam00n
Copy link
Collaborator

dam00n commented Feb 28, 2018

Hi @myhendry sorry you are running into issues. What version of Android are you running on?

  1. There are some Google issues/bugs with ARCore working with certain devices. Do you have an Samsung S7 edge SM-9350 -> Samsung S7 edge SM-9350 cannot run ARCore google-ar/arcore-android-sdk#197

  2. For the Viro Testbed app, try reloading using ADB with the command: adb shell input text rr

https://docs.viromedia.com/docs/develop-with-viro

Are you able to run other AR apps on your S7 edge using ARCore?

@myhendry
Copy link

Hi Danny, mine is Samsung Galaxy S7 Edge SM-G935FD.

My mac and mobile is not set up to use ADB. I will look that up and try

the sample app AR Hello World provided is working fine

I changed the Hello World text and try to run the app. However, it still shows Hello World with a blank background even though the Hello World text has been changed. It seems the file has not been loaded at all. Hope the info provided will help your team in debugging.

Looking forward to trial your awesome tool! Thanks :)

@myhendry
Copy link

Hi Danny,

i set debug={true} on SceneNavigator and it seems to be working now! I will test it further next couple of days and revert if any issues. Thanks :)

@dam00n
Copy link
Collaborator

dam00n commented Feb 28, 2018

@myhendry awesome, glad you got it working. And yes, please let us know if you encounter additional issues. I am going to close this issue.

@dam00n dam00n reopened this Feb 28, 2018
@dam00n dam00n closed this as completed Feb 28, 2018
@myhendry
Copy link

myhendry commented Mar 2, 2018

screenshot_20180302-155322

Hi Danny,

sorry for the trouble.

my Samsung Galaxy Edge android prompted me to update the system files. After i updated, can't seem to update the ar app now.

It seems any change is not updated to the mobile. The AR feature still work ok

i set up adb and got my mobile device connected. I run the adb script provided, my mobile reacted; however, there is no update to my mobile device.

d issue seems to be the desktop connection to the mobile

@achuvm
Copy link
Collaborator

achuvm commented Mar 2, 2018

Hi @myhendry,

When you connect your device to your computer, can you confirm that you can see your device in ADB with the adb devices command?

If that works then maybe you can try to connect to you packager server by reverse tethering over usb: adb reverse tcp:8081 tcp:8081.

Then in the testbed app, you can use the ip address: 127.0.0.1.

Let me know if that doesn't work for you and what error you see.

Andy

@myhendry
Copy link

myhendry commented Mar 2, 2018

Hi Andy, thanks for your prompt response.

Entering the ip address: 127.0.0.1 works now! Thanks

@MayeulGarreau
Copy link

MayeulGarreau commented May 6, 2018

Hi, first thanks for your amazing job on AR/VR !

After having followed the instructions "Quick Start (Windows)" and "Integrating with React Native Projects [for Android]", the VR "Hello World" experience works but the AR one doesn't.

Indeed, I am facing a black screen with just the "Analysing AR..." message just as @myhendry for AR.

Any other suggestions to solve this problem ?

I'm working with :

  • Samsung Galaxy S7 SM-G930F (which is able to run other AR apps with ARCore) with Android 7.0 ;
  • Android Studio 3.0

Thank you in advance !

@dam00n
Copy link
Collaborator

dam00n commented May 7, 2018

Hi @MayeulGarreau, thanks for the kind words and sorry to hear you are having issues. Can you try reloading your scene either by shaking the device and hitting reload or by using ADB. More details here on our Testbed doc page -> https://docs.viromedia.com/docs/develop-with-viro

If you are still having issues after running through that let us know

@MayeulGarreau
Copy link

Hi Danny, thanks for the quick answer! I tried what you advised, but it didn't work :( . I later found the reason of my problem: android camera has crashed and i didn't noticed it till then --'

Thanks again for your help!

@dam00n
Copy link
Collaborator

dam00n commented May 8, 2018

@MayeulGarreau glad you were able to resolve it. Interesting that your camera had crashed. Let us know if you have any further issues

@larrylegend
Copy link

In case it helps anyone else, my problem was I hadn't disabled Instant Run. https://developer.android.com/studio/run?authuser=1#disable-ir

This is mentioned in the documentation, I just missed it. https://docs.viromedia.com/docs/installing-viro-android , last item under step 3.

(My situation was on Android, I could get AR & VR to work with the Viro Media app, and VR worked with the ViroSample code, but if I tapped AR in the ViroSample, I just got a black screen with no buttons or "Hello World" text.)

@MiladHajiShafiee
Copy link

MiladHajiShafiee commented Sep 3, 2019

Hello i'm trying to run ViroSample app on my devices (Samsung j5 prime & Huawei p30 lite) everything is ok and VR experience works well but when choose AR experience in samsung app crashes and in huawei it sticks in a black screen. any approach?
by the way samsung android versioin=8.1
and huawei's is 9

@waqaramjad
Copy link

i unable to run AR test sample and test bed app in moto x-style . droid moto and huwai p9 lite

@rgouzal
Copy link

rgouzal commented Oct 8, 2020

Same here not working on a Samsung device, I read on the viro website that viro does not require API key anymore. I even checked their website for registration to register and get API key the page does not exist.

www.viromedia.com/signup

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants