Skip to content
This repository has been archived by the owner on Sep 14, 2021. It is now read-only.

White screen on Instant Preview instead of camera feed. #158

Closed
sNAtttu opened this issue Apr 1, 2018 · 87 comments
Closed

White screen on Instant Preview instead of camera feed. #158

sNAtttu opened this issue Apr 1, 2018 · 87 comments

Comments

@sNAtttu
Copy link

sNAtttu commented Apr 1, 2018

Hello!

I'm trying the new Instant Preview feature in the HelloAR example scene. The installation was successful and when pressing the play button it logs to console "Instant Preview Version: 1.0.7" like it should.

However I'm only seeing white screen instead of the feed from the back camera. I'm seeing the "Searching for surfaces…" but the text doesn't change and the screen stays white.

  • OS Windows
  • Unity version 2018.1.0b13
  • ARCore unity SDK version 1.1.0
  • Latest ARCore version from store

instantpreview
This is the screen in the phone and in the Unity editor.

Thanks for any help and it's a really great feature. Can't wait to get it to work.

@DanMillerDev
Copy link

I also had some trouble getting this to work on my Samsung S8, I was however able to get it working on a pixel device.

@pablisho
Copy link
Contributor

pablisho commented Apr 4, 2018

Hi, thanks for the report. I added it to our internal tracking and we'll be looking into it.

@pablisho pablisho added the bug label Apr 4, 2018
@sNAtttu
Copy link
Author

sNAtttu commented Apr 5, 2018

@DanMillerDev
Hi, have you got it to work on your Samsung S8?
I'm using S8+ myself but haven't got it to work yet.

@michaelybecker
Copy link

Joining the club; Galaxy S7 here. Occasionally it works but more often than not I get a constant "not connected to editor". A fresh reboot helps, occasionally.

@dylan-hart
Copy link

anyone running the editor with OpenGL, try switching to DX11. this resolved the issue for me.

@rfilkov
Copy link

rfilkov commented Apr 8, 2018

It doesn't work on Galaxy S8. The Instant-preview app stays on 'Press PLAY in Unity Unity editor '. White screen in the Editor. Unity console says: 'Instant Preview Version: 1.0.7'.

@norbykov
Copy link

Same here as with rfilkov. Not working on Samsung Galaxy S8.

@MarkeMark
Copy link

The exact same issue here too on the Samsung Galaxy S8+

@markusfehr
Copy link

Yesterday with my s8 and android version 7 it worked, after upgrading to android version 8 I've the same issue.

@dpacholczyk
Copy link

Any luck with that? I have same problem with s8 after upgrade to Android 8

I've debugged the reason. Frame.CameraImage.Texture in ARCoreBackgroundRenderer.cs returns null so there is no image and I see the white screen

Probably it is relate with what wrote @rfilkov - the instant preview does seems to not work correctly and it is not passing the frame image

@dpacholczyk
Copy link

anybody was able to handle this problem?

@pap3rinik
Copy link

me too, same issue on U2017.3.1, OSX 10.13.4 using a Samsung S8 "Oreo"

@Roland09
Copy link

Roland09 commented Apr 29, 2018

Same issue for me with the S8. Does anyone have a solution? When I check the adb log I see this:

[EGL] Attaching window :0xdc97f808
WARNING: Shader
Unsupported: 'ARCore/ARBackground' - Pass '' has no vertex shader
...
Unable to lookup library path for 'instant_preview_unity_plugin', native render plugin support disabled.
Unable to find instant_preview_unity_plugin

Well, it's true, that ARBackground.shader code doesn't have a vertex shader. Question is what now?

@philmaas
Copy link

same here latest ARCore + S8 Android 7 + Unity 2017.4.2f2

@omerfaruk
Copy link

Same 2018.1 + Pixel Android P Beta

@mraeclo
Copy link

mraeclo commented May 14, 2018

same here, galaxy s9 running android 8.0.0, unity 207.3.1f1, arcore 1.2.0, and instant preview 1.0.8

@omerfaruk
Copy link

i opt out from beta program and it works correctly now. Be careful about android P

@mraeclo
Copy link

mraeclo commented May 15, 2018

@omerfaruk what do you mean? what exactly did you do?
thanks

@omerfaruk
Copy link

I was on 2018.1 + Pixel Android P Beta and had error. After turn back to android 8.1 my instant preview start working @mraeclo

@mraeclo
Copy link

mraeclo commented May 15, 2018

thanks @omerfaruk

@pap3rinik
Copy link

same here, galaxy s8 running android 8.0.0, unity 207.3.1f1 on OSX, arcore 1.2.0, and instant preview 1.0.8

@juanmajr93
Copy link

juanmajr93 commented May 22, 2018

Hi my unity version is 2017.4.3f1 and my mobile phone is Google pixel. I have activated developer options and USB debugging. Also in project settings I have enabled instant preview. Nevertheless ,the error is the follow:
image

@dpacholczyk
Copy link

I see that a lot of people have exactly same problem. I'm wondering when it will be fixed. Deploying each, even smallest change, to the device is just a waste of time

@gstanlo
Copy link

gstanlo commented May 23, 2018

Sometimes the ports Instant Preview uses don't get freed and Instant Preview can't listen on the port. Only one instance of Unity with Instant Preview will work at a time. If you close all instances of Unity and check your instant preview port, is it open? You can do that on windows with:
netstat -ano | findstr 49838
and on osx with:
netstat -an | grep 49838

If open, they should not show any output.
If the port isn't open, try using adb kill-server which sometimes helps.

@juanmajr93
Copy link

I solved the problem changing unity version.

@coffiarts
Copy link

Same for me: I get a blank (white) screen, with the message "Seaching for surfaces".

Adding 2 more details from my case:

  • When bulding the HelloAR app and running directly on my mobile, I don't get the white screen, but simply an empty Unity game scene (horizon with blue sky), with no possibility to interact
  • android logcat states: "E Unity : Unable to find unitygar"; it's the only error logged; anything else is "I" (Info) or "D" (Debug) messages

@juanmajr93 What exactly do you mean by "changing unity version"?

I really hope that some developer will have a look into this, as seems to affect many people by now.

@philmaas
Copy link

@juanmajr93 can you let us know which unity version worked for you?
eagerly awaiting a fix for this bug

@gstanlo
Copy link

gstanlo commented May 25, 2018

It's not apparent why a different Unity version would cause an Instant Preview compatibility problem.

@coffiarts was HelloAR scene added to the Unity build?

@philmaas I recently tested with an S8 on Windows 10 / SDK v1.20. Which OS/SDK version are you using?

@Goliath86
Copy link

Yes, the problem still there even after the 1.3.0 update

@JanLoehr
Copy link

JanLoehr commented Jul 7, 2018

Same for me, Galaxy S9 8.0.0, Unity 2018.1.5.f1, latest Arcore stuff

@avrahamraskin
Copy link

I'm not sure if this is the fix. But I thought it might have something to do with the new Unity Hub which is technically like a second Unity instance running. So I restarted my computer and made sure to open Unity standalone, without Hub (and after checking that the port was indeed open). I opened the project and Preview worked for me.

@gkiernozek
Copy link

Problem still exists in Unity 2018.2.2f1 and ARCore v1.4.0 :/ if anyone has any solution to this I would be more than grateful as this would speed up my development times significantly.

@MarcoLavoro
Copy link

MarcoLavoro commented Aug 10, 2018

i use Samsung A6 i tried this version of unity:
Unity 2017.4.5f1 (64-bit)
Unity 2018.1.0f2 (64-bit)
Unity 2018.2.2f1 (64-bit)
ARcore 1.4

NOTHING works with istant preview...

please no one can help us?

@MarcoLavoro
Copy link

@dylan-hart how can i run the with DX11?

@MarcoLavoro
Copy link

@avrahamraskin how can i open unity without this "hub"?

@MarcoLavoro
Copy link

@juanmajr93 what version of unity and what device?

@avrahamraskin
Copy link

avrahamraskin commented Aug 13, 2018 via email

@gkiernozek
Copy link

I have tried to run without hub but it doesn't help :/

@DomCoccorese
Copy link

I'm developing on Samsung Galaxy S8. I've tried Unity 2017.3.1 and 2017.4.10. It always gives me blank screen with Searching for Surfaces message.
It also appears the following error on the console:

Couldn't start Instant Preview server with adb path: C:\Users\name\Documents\Android\Sdk\platform-tools\adb.exe.

I've tryed to reinstall android sdk as well as stop and restart adb server via command line. Nothing happens and the same error still occurs.

Any idea?

@pablisho
Copy link
Contributor

Hi, ARCore SDK for Unity 1.5.0 has been released and this issue should be fixed. Please feel free to comment if you still experience it.

@DomCoccorese
Copy link

Hello, I've downloaded and installed the sdk update 1.5.0 but blank screen still occurs with the same error log:

Couldn't start Instant Preview server with adb path "C:\Users\name\AppData\Local\Android\Sdk\platform-tools\adb.exe".
UnityEngine.Debug:LogErrorFormat(String, Object[])
GoogleARCoreInternal.InstantPreviewManager:StartServer(String, String&) (at Assets/GoogleARCore/SDK/InstantPreview/Scripts/InstantPreviewManager.cs:515)
GoogleARCoreInternal.c__Iterator0:MoveNext() (at Assets/GoogleARCore/SDK/InstantPreview/Scripts/InstantPreviewManager.cs:140)
UnityEngine.MonoBehaviour:StartCoroutine(IEnumerator)
GoogleARCoreInternal.ARCoreAndroidLifecycleManager:CreateSession(ARCoreSession) (at Assets/GoogleARCore/SDK/Scripts/Managers/ARCoreAndroidLifecycleManager.cs:83)
GoogleARCore.ARCoreSession:Awake() (at Assets/GoogleARCore/SDK/Scripts/ARCoreSession.cs:63)

@rfilkov
Copy link

rfilkov commented Sep 28, 2018

@pablisho Yes, I can confirm the instant preview finally works in Unity editor now, but there is a new issue. When I run the app on the device, I get: "Failure to initialize! - Your hardware does not support this application, sorry!" What does this mean and is there a workaround? There was no problem with ARCore from 1.0 to v1.4.1. I use Unity 2017.4.0, as required.

@MarcoLavoro
Copy link

if i open a new prowect it works, but if i import the new sdk in previus arcore projects the problem still persist...

@vincentlorant
Copy link

Deleting GoogleARCore and PlayServiceResolver, and reimporting the project (Asset-> reimport all) fixed the problem for me

@MarcoLavoro
Copy link

@vincentlorant you mean the folders?

@MarcoLavoro
Copy link

Btw doing reimport now the instant preview works (only on unity) but while i compile i have this error:

Error: Duplicate file(s) in apk: 'C:\Users\carlo\Documents\Sviluppo\ArCore Balance\Temp\StagingArea\android-libraries\arcore_unity\libs'

can you help me?

@OptiHub
Copy link

OptiHub commented Oct 18, 2018

I reimported the project and reinstalled ARCore, but it's still not working for me. In the Editor is a white screen and the Instant Preview App is showing a red Message "Not connected to editor"

@kromley
Copy link

kromley commented Oct 28, 2018

Everything was working fine on my Samsung S8+, and then I upgraded to a S9+ and I am now getting the problem, HelloAR says searching for surfaces.. and it just has a white screen above that. I'm on Unity 2018.2.14f1 and ARCore 1.5.0.

Any suggestions on how to get this working again would be greatly appreciated.

@ProfessorJamJam
Copy link

When using Samsung Galaxy Note 9, Unity 2017.4.6f1, and ARCore 1.5.0, instant preview gets a white screen. Using a Google Pixel 2 with this setup, however, works fine.

@geronimo-lisboa
Copy link

In samsung S8 the error is intermitent. The instant preview worked as it should yesterday. Today it isnt working. I havent installed any updates.

@webnovationNET
Copy link

webnovationNET commented Nov 3, 2018

Same here, the instant preview suddenly stopped working 2 days ago(Honor 10, Unity 2018.2.13f1, and ARCore 1.5)

EDIT: Not sure if that was the case, but update Unity to the 2018.2.14f1 did solve the issue.

@haranrk
Copy link

haranrk commented Nov 3, 2018

Using ARCore v1.5 on a Mac with a rooted OnePlus 5. It shows the white screen on a fresh import and the helloAR example.

@listopad
Copy link

listopad commented Jan 7, 2019

Same here, the instant preview suddenly stopped working 2 days ago(Honor 10, Unity 2018.2.13f1, and ARCore 1.5)

EDIT: Not sure if that was the case, but update Unity to the 2018.2.14f1 did solve the issue.

Same here too :(

Honor 8X, Unity 2018.3.0f2, ARCore 1.6.

@EricBatlle
Copy link

this error still occurs, should be oppened no? :(

@knightcube
Copy link

I get this same error on mac OS, Unity 2019.1, ARcore 1.12.0

@djebel-amila
Copy link

Same problem. mac OS, Unity 2020.1.10f1, ARCore XR Plugin 3.1.8 ?

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

No branches or pull requests