GUI.DrawTexture crashing certain phones

Hello!

We have run into a crash bug that’s really starting to grind our gears rusty.
We’ve located the cause, but haven’t found the solution for it.

When a scene is loaded and includes the function GUI.DrawTexture, the game crashes on Nexus S, Samsung Galaxy S and Motorola Droid X.

If we comment out all the GUI.DrawTexture functions, the scene loads perfectly (although doesn’t contain anything, obviously).

Anyone else who has run into this problem?

oh we would enjoy bug report :wink: with repro sure

We have submitted a bug report. Case 402012
We were replied, but the game wasn’t tested on any of the phones we listed.

well, it was testes on HTC and produced NullReference exception. Did you fix it? Because it may be the real issue :wink:

Thanks for your answer Alexey, I have already looked into the HTC problem. I have not been able to reproduce the described crash and frankly it has not occured ever before and we’ve had no complaints about that particular model.

I answer as I did in the bug report: it is ONLY the listed phones which have the problem. I am full aware that you have tested it on another phone. Do you have access to one of the listed phones? Because otherwise you will not be able to reproduce the problem.

We solved the problems by stripping the project of everything that uses Unity GUI to draw textures to the screen. This has removed the crash completly. It would appear fairly obvious to me at the very least that the problem would hence lie in the Unity GUI.

Excuse me if I seem disrespectful, but I’m a bit annoyed at this particular problem.

well, then we have a problem
Oleg tested your repro project on random phone and found exceptions in scripts
you are saying you don’t see them
maybe you sent bad repro? i mean null reference exception can crash anything. While i can understand your feelings, i can’t help without repro project (i tried GUI.DrawTexture on NexusS for different thing and it worked)
And we are very interested in repro project because we have some similar repros but that can’t be reproduced for some reasons

Right now I’m creating a “safe-mode” which replaces all GUI-drawing with planes.
The solution should be fully implemented tomorrow.
I’ll send the project to you in a new bug report then so you can compare the two modes.