- Home /
Vuforia & Unity readpixels error
Hi all,
Past month i've been working with Unity and Vuforia to create an Augmented Reality game for android/tablet. I've been working with a unity-pro trial and since today i've got a full unity pro license. Now i don't know if it has to do with the change from trial to full, but ever since i'm getting the error:
ReadPixels was called to read pixels from system frame buffer, while not inside drawing frame. UnityEngine.Texture2D:ReadPixels(Rect, Int32, Int32, Boolean)
and
Trying to read pixel out of bounds
Leaving me unable to run the game in the editor. It works fine when i build it towards my android or switch platform to pc. But that takes lots of time and i really want to keep bugtesting in the editor instead of building everytime i would like to test something new.
I've tried lots of things already (complete new projects, exporting and importing packages and added a external webcam as well).
(Also: im getting a Webcam profile nog found! error from the WebCamBehaviour script, might have something to do with it)
Thanks in advance,
Tawei
You should also post this in the Vuforia forums at Qualcomm
I just buyed Unity3d Pro License and then when i test the app which i'm working (built with Vuforia) it fails giving me the ReadPixels error...
Before i used the Trial Pro Version and all works as expected..
Any Solutions?!
I m so disappointed i just spend so many bucks to buy it!
Emiliano
Hello,
So I was having the same problem: I took a unity free, upgraded to trial, and the ReadPixel was working fine. Then I bought the unity PRO, and the ReadPixel occured... But only on IOS/ Android. It was working fine in web & standalone.
I emailed the support, and it turns out that to be able to use the ReadPixel thing on IOS/ Android you have to pay for these add-ons (1500$ each ><) for these platform as well.
Hope this helps
Answer by Tawei · May 16, 2013 at 07:29 AM
Hi all,
I still haven't managed to fix the errors, but i did find something odd about the editor.
These errors started happening when i switched to a full pro version, from a trial pro version. Yesterday i started my project in another pro-trial and what do you know? The bug disappeared...
So i guess this has something to do with the full pro version, but everything seems up to date. Starting to feel lost in this o.O
Hi,
does this error also happen with the ImageTargets sample app?
Has anyone found a solution to this? I am having the same problem. I had everything working fine with the Unity Pro trial, then my trial expired and everything still worked fine. Then I upgraded to a full (i.e. non-trial) license and I'm getting the readpixels error in play mode. I am able to compile to iOS without issue, but can't test in play mode anymore without receiving the ReadPixels error.
Any help is greatly appreciated I am on a very tight timeline.
Thanks for your help.
$$anonymous$$
Answer by fafase · Nov 20, 2014 at 11:13 AM
This is long gone I know but in my case the problem came from the selected build platform.
As I was building for Android, I selected it but trying to launch back in the Editor and the error comes in. Switch back to PC/Mac and that goes again.
I would guess there is a macro in their code that is not taking care properly of the platform.