Monday, 17 November 2014

Nexus 10 and Android Lollipop (5) problem (Solved)

This is now address in version 1.6.0.  I like to give special thanks to Anton and Felix for helping me verifying and debugging this problem.

What is the problem?

There seems to be a bug with Nexus 10 and Android L opengl shader program implementation.  I have been using this shader program for all platforms and devices including IOS since now.  



precision mediump float;
            uniform vec4 vColor;
            varying vec2 vTextureCoord;
            uniform sampler2D sTexture;
            uniform lowp float textureMask;

            void main() {
                  gl_FragColor = textureMask * texture2D(sTexture, vTextureCoord)*vColor  + (1.0- textureMask)*vColor;
            }


 This shader program is simply for rendering any set of vertices with color and/or texture based on the "textureMask" variable.  I dont know exactly what happened internally with the driver but when rendering different vertices as color or texture the driver throw a glerror 1285 which stand for "out of memory".  However, I think the problem is because of the memory corruption when switching between texture and color.  

Case 1) To render object as pure color, I just need to pass in just the position vertices while disable the texture vertices.  

Case 2)  To render object with texture, I need to pass in both the position and texture vertices.

 What I think is that when switching from case 2 back to case 1.  The driver may not recognize that the texture vertices should be disable and potentially reference to incorrect memory.  This is my guess but it make the most sense.


The solution:


I have created two separate shaders for each purpose so there are no need for extra flag and optional parameter for the cases I described.  By breaking them into two simple shader programs I am able to bypass the driver glitch.

Lesson Learned:

Simple is better :)

------------------------------------------------------------------------------------------------------------------------------

Right now there seems to be problem running Drawexpress with the latest Android Lollipop on Nexus 10.  The problem is related to opengl issues.  I am not sure about the exact problem yet since I dont have the Nexus 10 device to test with yet. If you have a Nexus 10 please hold off on updating to Lollipop. 

If you have other devices and are having the problem loading Drawexpress after Lollipop update please email me at support@drawexpress.com.  I am also greatly appreciated if anyone with Nexus 10 who is willing to join my Android beta testing program.

- PD

128 comments:

  1. Nice information. Android is one of the most popular mobile operating system developed by Google. Learning Android Training in Chennai is useful to make a wonderful future in mobile application development field.

    ReplyDelete
    Replies
    1. Java Online Training Java Online Training Java Online Training Java Online Training Java Online Training Java Online Training

      Hibernate Online Training Hibernate Online Training Spring Online Training Spring Online Training Spring Batch Training Online Spring Batch Training Online

      Delete
    2. I have read your blog its very attractive and impressive. I like it your blog.

      Java Training in Chennai Core Java Training in Chennai Core Java Training in Chennai

      Java Online Training Java Online Training JavaEE Training in Chennai Java EE Training in Chennai

      Delete
  2. Thanks for your informative article. Android SDK allows you to create stunning mobile application loaded with more features and enhanced priority. With basis on Java coding language, you can create stunning mobile application with ease. Android Training Institutes in Chennai | Android Training in Chennai

    ReplyDelete
  3. The one and only Operating system that is used widely by many around the world. Thanks for providing some useful information regarding the OS. This content was very helpful to me. Thanks for sharing. Keep blogging article like this.


    Android training in chennai | Android course in chennai | Android training center in chennai

    ReplyDelete
  4. Great blog..You have clearly explained about the concept..Step by step explanation is too good to understand..Its very useful for me to understand..Keep on sharing..
    Android training in chennai

    ReplyDelete
  5. Excellent post!!!. The strategy you have posted on this technology helped me to get into the next level and had lot of information in it.
    Web designing Course in Chennai | Hadoop Training in Chennai

    ReplyDelete
  6. Wonderful Blog with lots of useful information. Thanks for useful information. Very nice to see this post.
    Android Training in Chennai | Android Training Institutes in Chennai | Android Training Center in Chennai

    ReplyDelete
  7. Pretty article! I found some useful information in your blog, it was awesome to read, thanks for sharing this great content to my vision, keep sharing.
    Regards,
    Android Training in Chennai | iOS Training in Chennai

    ReplyDelete
  8. Excellent post!!!. The strategy you have posted on this technology helped me to get into the next level and had lot of information in it.
    Android training in Chennai | Android course in Chennai

    ReplyDelete
  9. Pretty article! I found some useful information in your blog, it was awesome to read, thanks for sharing this great content to my vision, keep sharing.
    Regards,
    Pearson Vue Exam Center in Chennai | Certification Exam Centers in Chennai

    ReplyDelete
  10. We actually love to oblige you the best things with 100% agreements and faster ever.

    ReplyDelete
  11. Both the cases can be dubious. Indeed, even the President of the United States of America, Barack Obama called them advances savage and trap borrowers in a cycle of obligation. Indeed, it is trusted that this cycle or rollover, is a fundamental piece of the business' plan of action.

    ReplyDelete
  12. What started as a no credit check advance will wind up harming your credit if not paid effectively.

    ReplyDelete
  13. At the point when significant auto repairs shock you and abandon you stranded without cash, an auto title advance can give the cash need to get your auto settled.

    ReplyDelete
  14. Really endure in mind United States and that we can money your test terribly brief amount with a virtually low charge.
    check cashing Claymont

    ReplyDelete
  15. your article is more useful and informative.. thanks to share this... keep rocking..

    Android Training in chennai | Android course in chennai

    ReplyDelete
  16. Good and nice blog post, thanks for sharing your information.. it is very useful to me.. keep rocks and updating

    Java Training in chennai | Software Testing Training in chennai

    ReplyDelete
  17. Nice post. I was checking constantly this blog and I’m impressed! Extremely useful info specially
    Back Office Support

    ReplyDelete
  18. Good and first-rate blog publish, thank you for sharing your statistics.. It's far very useful to me java training in chennai

    ReplyDelete
  19. I’m glad that you shared this helpful info with us. Please keep us informed like be mini projects in chennai . Thank you for sharing.

    ReplyDelete
  20. Your good knowledge and kindness in playing with all the pieces were very useful.
    Event organizers in dharmapuri

    ReplyDelete
  21. This was an nice and amazing and the given contents were very useful and the precision has given here is good.
    Data Science Training in Chennai

    ReplyDelete
  22. When strated to study your article , I just had ful concentration with your site,no breaks i did not get,so this article is more interesting and technical best.Thanks for sharing!
    AngularJs Training in Bangalore
    Angularjs Online Training

    ReplyDelete
  23. I feel really happy to have seen your webpage and look forward to so many more entertaining times reading here. Thanks once more for all the details.

    python training in chennai

    python training in bangalore

    python online training

    python training in pune

    ReplyDelete
  24. A universal message I suppose, not giving up is the formula for success I think. Some things take longer than others to accomplish, so people must understand that they should have their eyes on the goal, and that should keep them motivated to see it out til the end.
    Data Science Training in Chennai
    Data science training in bangalore
    Data science online training
    Data science training in pune
    Data science training in kalyan nagar
    Data Science with Python training in chenni

    ReplyDelete
  25. After seeing your article I want to say that the presentation is very good and also a well-written article with some very good information which is very useful for the readers....thanks for sharing it and do share more posts like this.
    python training in rajajinagar
    Python training in btm
    Python training in usa

    ReplyDelete
  26. Great post! I am actually getting ready to across this information, It’s very helpful for this blog.Also great with all of the valuable information you have Keep up the good work you are doing well.
    DevOps online Training
    DevOps Training in USA

    ReplyDelete
  27. Great post! I am actually getting ready to across this information, It’s very helpful for this blog.Also great with all of the valuable information you have Keep up the good work you are doing well.

    Android Training in Chennai

    ReplyDelete
  28. Good Post, I am a big believer in posting comments on sites to let the blog writers know that they ve added something advantageous to the world wide web.
    angularjs Training in bangalore

    angularjs Training in btm

    angularjs Training in electronic-city

    angularjs Training in online

    angularjs Training in marathahalli

    ReplyDelete
  29. Hello! This is my first visit to your blog! We are a team of volunteers and starting a new initiative in a community in the same niche. Your blog provided us useful information to work on. You have done an outstanding job.

    AWS Online Training | Online AWS Certification Course - Gangboard
    AWS Training in Chennai | AWS Training Institute in Chennai Velachery, Tambaram, OMR
    AWS Training in Bangalore |Best AWS Training Institute in BTM ,Marathahalli

    ReplyDelete
  30. the information which you have provided is better then other blog.
    so nice work keep it up. And thanks for sharing.Offshore Anonymous Hosting

    ReplyDelete
  31. nice work keep it up thanks for sharing the knowledge.Thanks for sharing this type of information, it is so useful.
    Epoxy Grout manufacturer in delhi

    ReplyDelete
  32. Great Article… I love to read your articles because your writing style is too good, its is very very helpful for all of us and I never get bored while reading your article because, they are becomes a more and more interesting from the starting lines until the end
    Blueprism training in Chennai

    Blueprism training in Bangalore

    ReplyDelete
  33. nice topic which you have choose.
    second is, the information which you have provided is better then other blog.
    so nice work keep it up. And thanks for sharing.
    block adhesive manufacturer in delhi

    ReplyDelete
  34. Does your blog have a contact page? I’m having problems locating it but, I’d like to shoot you an email. I’ve got some recommendations for your blog you might be interested in hearing.
    AWS Training in Chennai |Best Amazon Web Services Training in Chennai
    AWS Training in Rajaji Nagar | Amazon Web Services Training in Rajaji Nagar

    Best AWS Training Institute in BTM Layout Bangalore ,AWS Coursesin BTM

    ReplyDelete
  35. Great Article… I love to read your articles because your writing style is too good, its is very very helpful for all of us. Do check Six Sigma Training in Bangalore | Six Sigma Training in Dubai & Get trained by an expert who will enrich you with the latest trends.

    ReplyDelete
  36. Great Article… I love to read your articles because your writing style is too good, its is very very helpful for all of us. Do check Six Sigma Training in Bangalore | Six Sigma Training in Dubai & Get trained by an expert who will enrich you with the latest trends.

    ReplyDelete
  37. This is really an awesome post.Really very informative and creative contents in the post. These concept is a good way to enhance the knowledge.I like it and help me to development very well.Thank you for this brief explanation and very nice information.We got a good knowledge.Thanks a lot.aws online training

    ReplyDelete
  38. I wish to indicate because of you only to bail me out of this specific trouble. As a consequence of checking through the net and meeting systems that were not beneficial, I thought my life was finished.
    best safety training in chennai

    ReplyDelete
  39. Thanks for sharing this blog, I am reading your post from the beginning, it was so interesting to read. Visit for
    Europe Honeymoon Packages

    ReplyDelete
  40. Good job in presenting the correct content with the clear explanation. The content looks real with valid information. Good Work

    DevOps is currently a popular model currently organizations all over the world moving towards to it. Your post gave a clear idea about knowing the DevOps model and its importance.

    Good to learn about DevOps at this time.


    devops training in chennai | devops training in chennai with placement | devops training in chennai omr | devops training in velachery | devops training in chennai tambaram | devops institutes in chennai | devops certification in chennai | trending technologies list 2018

    ReplyDelete
  41. Very Informative article you have described everything in a brilliant way. This is really useful arrticle for begginer learner. Appreciated!

    Android Training
    Android Training in Chennai

    ReplyDelete
  42. Your blog was really amazing and informative. Thanks for sharing with us. Visit for
    Web Designing Company in Delhi
    SEO Service in Delhi

    ReplyDelete
  43. Outstanding blog post, I have marked your site so ideally I’ll see much more on this subject in the foreseeable future.
    python training in chennai | python course institute in chennai

    ReplyDelete
  44. Awwsome informative blog ,Very good information thanks for sharing such wonderful blog with us ,after long time came across such knowlegeble blog. keep sharing such informative blog with us. Aviation Courses in Chennai | Best Aviation Academy in Chennai | Aviation Academy in Chennai | Aviation Training in Chennai | Aviation Institute in Chennai

    ReplyDelete
  45. It is a great post. Keep sharing such kind of useful information.

    smarthrsolution
    Technology

    ReplyDelete
  46. I found your blog while searching for the updates, I am happy to be here. Very useful content and also easily understandable providing.. Believe me I did wrote an post about tutorials for beginners with reference of your blog. 
    excel advanced excel training in bangalore | Devops Training in Chennai

    ReplyDelete
  47. Awwsome informative blog ,Very good information thanks for sharing such wonderful blog with us ,after long time came across such knowlegeble blog. keep sharing such informative blog with us. Aviation Courses in Chennai | Best Aviation Academy in Chennai | Aviation Academy in Chennai | Aviation Training in Chennai | Aviation Institute in Chennai

    ReplyDelete
  48. Nice post. By reading your blog, i get inspired and this provides some useful information. Thank you for posting this exclusive post for our vision. 

    angularjs Training in btm

    angularjs Training in electronic-city

    angularjs online Training

    angularjs Training in marathahalli

    angularjs interview questions and answers

    ReplyDelete
  49. Great informative bog. Thanks for sharing such a valuable information with us.

    karnatakapucresult
    Technology

    ReplyDelete
  50. Thanks for given such informative and valuable blog. Visit for
    SEO Service in Delhi

    ReplyDelete
  51. Thanks first of all for the useful info.
    the idea in this article is quite different and innovative please update more.
    AngularJS Training in Guindy
    AngularJS Training in Ambattur
    Angularjs Training Bangalore
    Angularjs courses in Bangalore

    ReplyDelete

  52. Hmm, it seems like your site ate my first comment (it was extremely long) so I guess I’ll just sum it up what I had written and say, I’m thoroughly enjoying your blog. I as well as an aspiring blog writer, but I’m still new to the whole thing. Do you have any recommendations for newbie blog writers? I’d appreciate it.
    Advanced AWS Interview Questions And Answers, Top 250+AWS Interviews Questions and Answers 2018
    Advanced AWS Interview questions and answers | Top 110 AWS Interview Question and Answers
    Advanced AWS Training in Bangalore | Best Amazon Web Services Training in Bangalore
    Advanced AWS Training in Pune | Best Amazon Web Services Training in Pune
    Advanced AWS Online Training | Best Online AWS Certification Course in india

    ReplyDelete
  53. This post is much helpful for us. This is really very massive value to all the readers and it will be the only reason for the post to get popular with great authority.
    Selenium testing training in chennai
    Selenium course
    Software testing selenium training
    Software Testing Training Institutes in Chennai
    software testing course
    testing courses in chennai

    ReplyDelete
  54. Given article is very helpful and very useful for my admin, and pardon me permission to share articles here hopefully helped :

    Obat infeksi usus
    Obat Radang Tenggorokan Kronis
    Obat Sekelan
    Obat epilepsi
    Obat benjolan di kelopak mata

    ReplyDelete
  55. You’ve written a really great article here. Your writing style makes this material easy to understand.. I agree with some of the many points you have made. Thank you for this is real thought-provoking content
    python course institute in bangalore
    python Course in bangalore
    python training institute in bangalore

    ReplyDelete
  56. Beberapa tips cara menggugurkan kandungan dengan manjakani untuk anda dengan menggunakan obat penggugur janin cytotec , terbukti obat aborsi asli sangat ampuh . Jika anda telah haid obat telat datang bulan terbaik juga manjur , kami jual obat aborsi ini secara online cara menggugurkan hamil

    ReplyDelete
  57. Great Article… I love to read your articles because your writing style is too good, its is very very helpful for all of us and I never get bored while reading your article because, they are becomes a more and more interesting from the starting lines until the end.
    Java training in Bangalore | Java training in Jaya nagar

    Java training in Bangalore | Java training in Electronic city

    Java training in Chennai | Java training institute in Chennai | Java course in Chennai

    Java training in USA

    ReplyDelete