• Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
Question by Hashton · Nov 25, 2015 at 02:38 PM · bugvrsdkgooglefrozen

Google Cardboard SDK launches app frozen

I launched the app onto my Android device when I open it the unity watermark comes up looking a little weird then it goes into my VR game frozen I have to then go into settings and back it out for it to un-freeze and work. Any fixes or anybody else getting this. I have 0 compile errors and stuff like that. Thanks in advance to any replies!!

Comment
RobertWebb
Fmcdonald

People who like this

2 Show 6
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image RobertWebb · Dec 09, 2015 at 07:32 AM 0
Share

Exact same thing here. Did you find a solution?

It works fine in the Unity Editor on Windows, but on Android it starts up frozen, not responding to phone movement. Hit settings, setup, then simply hit the back button without changing anything, and it's fixed (till next time you run the app).

I've also seen this reported in the comments here: http://www.raywenderlich.com/116805/make-vr-game-unity-google-cardboard but none of their suggestions work.

It's a show-stopper bug. Anyone know what to do?

Thanks, Rob.

avatar image Fmcdonald · Jan 14, 2016 at 08:43 PM 0
Share

Dealing with a similar issue. Anyone find anything?

avatar image MakeCodeNow · Jan 15, 2016 at 04:56 AM 0
Share

What device and what version of Android are you using? A new version of the SDK just came out yesterday. Have you tried that? Also, do you see anything if you use LogCat?

avatar image RobertWebb MakeCodeNow · Jan 15, 2016 at 07:00 AM 0
Share

Samsung Galaxy S5, Android 5.0.

What's the new version of the Cardboard SDK? The release notes page hasn't been updated since October: https://developers.google.com/cardboard/unity/release-notes That was version 0.5.2. I've updated to that now and it didn't make a difference (I also updated Unity to 5.3.1 which didn't help).

LogCat has hundreds of lines as always. What am I looking for?

It seems it is frozen in the sense that moving the phone around doesn't alter the viewpoint. But it IS still rendering each frame and handling the Back button in my code. It just won't alter the viewpoint until hitting Cardboard's settings button, then "Setup", then back button. After that moving the phone around updates the view correctly.

avatar image NGC6543 RobertWebb · Jan 15, 2016 at 08:05 AM 0
Share

You can get it here : https://github.com/googlesamples/cardboard-unity It seems that the release note hadn't been updated.

avatar image WelchCompositions · Apr 22, 2017 at 12:57 AM 0
Share

finding this is happening with Unity 5.6's integrated cardboard SDK when I enable VR through code. It works for a bit but then will freeze and eventually crash. Going to settings and back sometimes fixes temporarily. The scene is empty other than a camera and a light.

         VRSettings.LoadDeviceByName (VRSettings.supportedDevices [1]);
     EnableVR (VRSettings.supportedDevices [1]);
     VRSettings.enabled = true;

3 Replies

· Add your reply
  • Sort: 
avatar image

Answer by amit-chai · Jan 15, 2016 at 06:36 AM

Look in "Player Setting". "Virtual Reality Support" = make sure it's Unchecked. This is making game freeze.

Comment

People who like this

0 Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image RobertWebb · Jan 15, 2016 at 06:48 AM 0
Share

It is already unticked for me, so this doesn't fix it.

avatar image

Answer by RobertWebb · Jan 15, 2016 at 08:57 AM

I found a fix, so hopefully this works for others too (solution in bold below).

I looked through LogCat and found this: "There must be only one Cardboard object in a scene".

My hierarchy includes this:

  • Capsule

    • Main Camera

    • CardboardMain

      • Head

      • Stereo Render

  • Cardboard

I wanted to move the Cardboard node under a capsule representing the viewer, but when running, it kept creating an additional Cardboard node at the top level, and at some point this node stuck around when not running too (was easier to control if it didn't only appear at run-time). I renamed the one under Capsule for clarity.

Both the CardboardMain and Cardboard nodes had the Cardboard script attached. I simply removed the one attached to CardboardMain and it fixed the freeze on start-up.

I also found that if you set the Default Orientation in the Player Settings to Auto Rotation, and only set it to Landscape Left in the script, then you end up with a clipped viewport, blanking out most of each eye's view. I had to set it to Landscape Left in the Player Settings to fix this. (I want my app to toggle VR mode on and off, so I set it back to auto when not in VR mode).

Comment
Seditiar

People who like this

1 Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Seditiar · Jan 15, 2016 at 10:52 AM 0
Share

Disabling the script in CardboardMain fixed this for me, thanks!

avatar image

Answer by Fmcdonald · Jan 15, 2016 at 05:44 PM

I was dealing with the same issue and I think I found it: Every time you play in editor, your "cardboardMain" object creates another object, "Cardboard" in your scene. Before you build it out, delete this Cardboard object. Fixed it right up for me.

Comment

People who like this

0 Show 0 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Welcome to Unity Answers

If you’re new to Unity Answers, please check our User Guide to help you navigate through our website and refer to our FAQ for more information.

Before posting, make sure to check out our Knowledge Base for commonly asked Unity questions.

Check our Moderator Guidelines if you’re a new moderator and want to work together in an effort to improve Unity Answers and support our users.

Follow this Question

Answers Answers and Comments

11 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Implementing google cardboard and kudan SDK 2 Answers

Accessing VR SDK names by script? 1 Answer

Left eye not rendering when setting Direct Render flag to false - iOS / Cardboard SDK 5 Answers

Why can't I install Andoir SDK for unity 2 Answers

Cardboard VR Game on Iphone just fills half the Screen 1 Answer


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges