Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • 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
0
Question by tamas · Apr 11, 2012 at 06:29 PM · androidshaderglsl

GLSL error

Hello

We are developing a game for android and ios in unity.

We have hit a brick wall in out development today, with some random modifications, suddenly our game wont run on a few devices. We get random crashes on start, right after after initialisation.

Here is a part of the log that we don't understand (it ran on an Atrix android phone):

 04-11 16:46:14.011: D/Unity(11800): Vertex Shader:
 04-11 16:46:14.011: D/Unity(11800): �
 04-11 16:46:14.011: D/Unity(11800): Fragment Shader:
 04-11 16:46:14.021: D/Unity(11800): Vertex Shader:
 04-11 16:46:14.021: D/Unity(11800): �
 04-11 16:46:14.021: D/Unity(11800): Fragment Shader:
 04-11 16:46:14.021: D/Unity(11800): -------- GLSL error: xGZ��
 04-11 16:46:14.021: D/Unity(11800): Vertex Shader:
 04-11 16:46:14.021: D/Unity(11800): Fragment Shader:
 04-11 16:46:14.041: D/Unity(11800): -------- GLSL error: �^�H���Ex��

Yes, those are some weird characters (�) .

It runs without a flaw even on a Motorla defy with cianogenrom ics, and several other devices, on several android os versions. It also runs without a flaw on windows.

What does this errormessage mean? Help would be appreciated.

Comment
Add comment
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

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by Kantharr · Jan 16, 2013 at 05:00 PM

Sorry that I am bringing this back up but I am actually having the exact same problem on our motorola droid X2. We did not create any fancy shaders, we just only have atlases with materials whose shaders are set to Mobile/Particles/Alpha Blended. When the game starts up we use WWW to load the atlas file depending on aspect resolution and we set it to the material. Well this works on all of our devices (iOS and android) except for the Droid X2. The only "fix" I could find is disabling the camera before the loading of atlas then enabling it when it is done but this causes weird graphic screens on the other android devices. Is there a certain setting that I will need to set for the android devices? Like shaders, graphics, etc...

Thank you for any sort of help you can give me and sorry for bringing this topic back up.

[EDIT] I am putting in Debug.Log as I am trying to find the problem and here is where I believe it is stopping at:

     IEnumerator LoadAtlas(string atlasFile, Vector2 atlasDimensions)
     {
         Debug.Log("Loading Assets");
         string url = "";
         #if UNITY_EDITOR
         url = "file://" + Application.dataPath + "/StreamingAssets/Resources/Images/";
         #elif UNITY_ANDROID
         url = "jar:file://" + Application.dataPath + "!/assets/Resources/Images/";
         #else
         url = "file://" + Application.dataPath + "/Raw/Resources/Images/";
         #endif
         
         WWW www = new WWW(url + atlasFile);
         
         yield return www;
         
         if(www.error != null)
         {
             Debug.Log(www.error);
             errorObject.transform.FindChild("InternetError").GetComponent<UILabel>().text = atlasFile + " file is missing";
         }
         else
         {
             Debug.Log("Comparing Texture");
             Texture2D tempTexture = new Texture2D((int)atlasDimensions.x,(int)atlasDimensions.y);
             
             www.LoadImageIntoTexture(tempTexture);
             
             if(tempTexture.width != atlasDimensions.x || tempTexture.height != atlasDimensions.y)
             {
                 errorObj.transform.FindChild("InternetError").GetComponent<UILabel>().text = "This file is " +
                     tempTexture.width.ToString() + "x" + tempTexture.height.ToString() + " while it's suppose to be " +
                         atlasDimensions.x.ToString() + "x" + atlasDimensions.y.ToString();
             }
             else
             {
                 Debug.Log("Assets Loaded");
                 referenceAtlas.replacement.material.mainTexture = tempTexture;
             }
         }
         
         www.Dispose();
     }

It seems like it is stopping when it is initializing WWW. Is this not supported on the droid X2? Also I have changed the graphics level in the player settings to GLES 1.x but because of this it is now closing silently without reporting any errors when I start the game up.

Comment
Add comment · 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.

Follow this Question

Answers Answers and Comments

5 People are following this question.

avatar image avatar image avatar image avatar image avatar image

Related Questions

GLSL shader not working on android 0 Answers

GLSL Shaders not working on android. 0 Answers

How to use #extension with GLSL shader 0 Answers

conditional vertex texture fetch / texture lookups in vertex shader 0 Answers

Uniform variable fails on the android 0 Answers


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